|
|
|
|
@ -17,6 +17,7 @@ import com.rehome.dywoa.utils.GsonUtils
|
|
|
|
|
import com.rehome.dywoa.utils.HttpListener
|
|
|
|
|
import com.rehome.dywoa.utils.NoProgresshttpUtils
|
|
|
|
|
import com.rehome.dywoa.utils.NohttpUtils
|
|
|
|
|
import com.rehome.dywoa.weiget.DatePickDialog
|
|
|
|
|
import com.yolanda.nohttp.NoHttp
|
|
|
|
|
import com.yolanda.nohttp.RequestMethod
|
|
|
|
|
import com.yolanda.nohttp.rest.Response
|
|
|
|
|
@ -66,24 +67,24 @@ class MjApplyActivity : BaseActivityOaToolbarViewBinding<ActivityMjApplyBinding>
|
|
|
|
|
|
|
|
|
|
resetCurrentMonth()
|
|
|
|
|
|
|
|
|
|
// binding.tvSt.setOnClickListener(View.OnClickListener { view: View? ->
|
|
|
|
|
//
|
|
|
|
|
// val dialog = DatePickDialog(
|
|
|
|
|
// context, calendar
|
|
|
|
|
// ) { outPutDate: String?,calendarBack:Calendar? ->
|
|
|
|
|
// if (calendarBack != null) {
|
|
|
|
|
// if(calendarBack.after(calendarSunday)){
|
|
|
|
|
// showToast("开始时间不能在结束时间之后")
|
|
|
|
|
// }else{
|
|
|
|
|
// stime = binding.tvSt.getText().toString().trim { it <= ' ' }
|
|
|
|
|
// binding.tvSt.text = outPutDate
|
|
|
|
|
// calendar = calendarBack;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// //checkServerConnectStatus()
|
|
|
|
|
// }
|
|
|
|
|
// dialog.show()
|
|
|
|
|
// })
|
|
|
|
|
binding.tvSt.setOnClickListener(View.OnClickListener { view: View? ->
|
|
|
|
|
|
|
|
|
|
val dialog = DatePickDialog(
|
|
|
|
|
context, calendar
|
|
|
|
|
) { outPutDate: String?,calendarBack:Calendar? ->
|
|
|
|
|
if (calendarBack != null) {
|
|
|
|
|
if(calendarBack.after(calendarSunday)){
|
|
|
|
|
showToast("开始时间不能在结束时间之后")
|
|
|
|
|
}else{
|
|
|
|
|
stime = binding.tvSt.getText().toString().trim { it <= ' ' }
|
|
|
|
|
binding.tvSt.text = outPutDate
|
|
|
|
|
calendar = calendarBack;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//checkServerConnectStatus()
|
|
|
|
|
}
|
|
|
|
|
dialog.show()
|
|
|
|
|
})
|
|
|
|
|
//
|
|
|
|
|
// binding.tvEt.setOnClickListener(View.OnClickListener { view: View? ->
|
|
|
|
|
//
|
|
|
|
|
|