| | |
| | | import safeluck.drive.evaluation.cEventCenter.CEventCenter; |
| | | import safeluck.drive.evaluation.cEventCenter.ICEventListener; |
| | | |
| | | import safeluck.drive.evaluation.customview.MyInputDialog; |
| | | import safeluck.drive.evaluation.customview.QRCodeDialog; |
| | | import safeluck.drive.evaluation.customview.SelectDialog; |
| | | import safeluck.drive.evaluation.customview.SelectDialogThree; |
| | |
| | | import safeluck.drive.evaluation.platformMessage.JKMessage0204; |
| | | import safeluck.drive.evaluation.platformMessage.PlatFormConstant; |
| | | import safeluck.drive.evaluation.util.Utils; |
| | | import safeluck.drive.evaluation.widget.StatusDialog; |
| | | |
| | | /**单机训练UI |
| | | * MyApplication2 |
| | |
| | | // //TODO 发送JKMessage0202 给平台,开始考试 |
| | | if (btn_start_exam.getText().toString().equalsIgnoreCase("开始训练")){ |
| | | |
| | | SelectDialogThree selectDialog = SelectDialogThree.newInstance("场地训练","道路训练","道路训练(不含灯光)"); |
| | | SelectDialogThree selectDialog = SelectDialogThree.newInstance("场地训练","道路训练","道路训练(不含灯光)","线路采集"); |
| | | selectDialog.setSelectedListener((int res)->{ |
| | | if (res != SelectDialog.SELECT_NONE){ |
| | | if (res== SelectDialogThree.FIRST){ |
| | | sendJK0202(2); |
| | | }else if (res== SelectDialogThree.SECOND){ |
| | | sendJK0202(3); |
| | | }else { |
| | | }else if (res == SelectDialogThree.THIRD){ |
| | | sendJK0202(4); |
| | | }else{ |
| | | Toast.makeText(_mActivity, "线路采集", Toast.LENGTH_SHORT).show(); |
| | | } |
| | | } |
| | | }); |
| | |
| | | |
| | | case R.id.view_map: |
| | | |
| | | String url = getArcGisUrl(ExamPlatformData.getInstance().getExamType()); |
| | | Log.i(TAG,"map head lulao gps url="+url); |
| | | startArcGisMapFragment(url); |
| | | // String url = getArcGisUrl(ExamPlatformData.getInstance().getExamType()); |
| | | // Log.i(TAG,"map head lulao gps url="+url); |
| | | // startArcGisMapFragment(url); |
| | | // StatusDialog.with(_mActivity).setCancelable(true).setPrompt("加载中,请稍后...").setType(StatusDialog.Type.PROGRESS).show(); |
| | | |
| | | MyInputDialog myDialog = MyInputDialog.Companion.newInstance("您将退出系统,请确认数据已保存"); |
| | | |
| | | myDialog.setOnClick(new MyInputDialog.MyOnClickListener() { |
| | | @Override |
| | | public void onSure(String string) { |
| | | |
| | | Log.i(TAG,"收到的:"+string); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public void onCancle() { |
| | | |
| | | } |
| | | }); |
| | | |
| | | myDialog.show(getFragmentManager(),"mydialog"); |
| | | break; |
| | | case R.id.iv_head: |
| | | MyLog.i(TAG,"学员签到"); |