| | |
| | | |
| | | import androidx.annotation.NonNull; |
| | | import androidx.annotation.Nullable; |
| | | import androidx.fragment.app.DialogFragment; |
| | | import androidx.lifecycle.Observer; |
| | | import androidx.lifecycle.ViewModelProviders; |
| | | import androidx.work.OneTimeWorkRequest; |
| | |
| | | import safeluck.drive.evaluation.cEventCenter.ICEventListener; |
| | | import safeluck.drive.evaluation.customview.ArrowView; |
| | | import safeluck.drive.evaluation.customview.HouseView; |
| | | import safeluck.drive.evaluation.customview.LoadProgressDialog; |
| | | import safeluck.drive.evaluation.customview.MyDialogFragment; |
| | | import safeluck.drive.evaluation.customview.QRCodeDialog; |
| | | import safeluck.drive.evaluation.httpmodule.RetrofitCreator; |
| | | import safeluck.drive.evaluation.im.MessageProcessor; |
| | | import safeluck.drive.evaluation.platformMessage.JKMessage0201; |
| | | import safeluck.drive.evaluation.platformMessage.JKMessage0202; |
| | | import safeluck.drive.evaluation.platformMessage.JKMessage0204; |
| | | import safeluck.drive.evaluation.platformMessage.PlatFormConstant; |
| | | import safeluck.drive.evaluation.util.Utils; |
| | | import safeluck.drive.evaluation.viewmodels.TimeViewModel; |
| | | |
| | |
| | | public static SupportFragment newInstance() { |
| | | return new NetWorkTrainFragment(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | private Handler mHandler = new Handler(new Handler.Callback() { |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | private LoadProgressDialog loadProgressDialog; |
| | | MyDialogFragment myDialogFragment; |
| | | SimulateNightBean simulateNightBean = null; |
| | | @Override |
| | | public void onClick(View v) { |
| | | switch (v.getId()) { |
| | |
| | | |
| | | break; |
| | | case R.id.btn_return: |
| | | _mActivity.onBackPressed(); |
| | | // _mActivity.onBackPressed(); |
| | | QRCodeDialog qrCodeDialog = QRCodeDialog.newInstance("f"); |
| | | qrCodeDialog.setStyle(DialogFragment.STYLE_NORMAL,R.style.Dialog_FullScreen); |
| | | qrCodeDialog.show(getFragmentManager(),"qrcode"); |
| | | break; |
| | | case R.id.iv_head: |
| | | MyLog.i(TAG,"签到,获取身份证物理卡号"); |
| | | AYSdk.getInstance().sendCmd(Constant.READ_PHYSICAL_ID,""); |
| | | MyLog.i(PlatFormConstant.HTTPTAG,"签到"); |
| | | // AYSdk.getInstance().sendCmd(Constant.READ_PHYSICAL_ID,""); |
| | | //TODO 获得物理卡号 发送JKMessage0201给平台,获取姓名、身份证、head_url |
| | | loadProgressDialog = LoadProgressDialog.newInstance("请稍后..."); |
| | | loadProgressDialog.setStyle(DialogFragment.STYLE_NORMAL,R.style.Dialog_FullScreen); |
| | | loadProgressDialog.showNow(getFragmentManager(),"loadingdiaolog"); |
| | | |
| | | //从服务器获取用于生成签到二维码的url |
| | | break; |
| | | } |
| | | } |
| | |
| | | super.onDetach(); |
| | | CEventCenter.onBindEvent(false,icEventListener,Constant.BIND_SPEED_TOPIC); |
| | | } |
| | | |
| | | |
| | | } |