Ejemplo n.º 1
0
 protected override void StartExam()
 {
     InitExamItem();
     ExamContext.StartExam();
     Module.StartAsync(ExamContext).ContinueWith((task) =>
     {
     });
 }
Ejemplo n.º 2
0
 public void StartExam()
 {
     //第一步首先清楚上一次考试项目的扣分规则
     mainLinerLayout = (LinearLayout)this.FindViewById(Resource.Id.RuleBreakTable);
     InitBrokenRules();
     ExamContext.StartExam();
     Module.StartAsync(ExamContext).ContinueWith((task) =>
     {
     });
 }
Ejemplo n.º 3
0
 public void StartExam()
 {
     //第一步首先清楚上一次考试项目的扣分规则
     mainLinerLayout = (LinearLayout)this.FindViewById(Resource.Id.RuleBreakTable);
     mainLinerLayout.RemoveAllViews();
     edtTxtStartTime.Text = DateTime.Now.ToString("HH:mm:ss");
     ExamContext.StartExam();
     Module.StartAsync(ExamContext).ContinueWith((task) =>
     {
     });
 }
Ejemplo n.º 4
0
        protected override void StartExam()
        {
            BreakRuleIndex = 0;
            //第一步首先清楚上一次考试项目的扣分规则
            mainLinerLayout = (LinearLayout)this.FindViewById(Resource.Id.RuleBreakTable);
            mainLinerLayout.RemoveAllViews();

            InitBrokenRules();

            InitExamItem();
            //TODO:这点
            //
            try
            {
                //可能
                List <Setting> lstSetting = new List <Setting> {
                };
                var setting = new Setting {
                    Key = "PrepareDrivingEnable", Value = (!chkClosePrepareDriving.Checked).ToString(), GroupName = "GlobalSettings"
                };
                lstSetting.Add(setting);
                setting = new Setting {
                    Key = "ContinueExamIfFailed", Value = (!chkExamFailEnd.Checked).ToString(), GroupName = "GlobalSettings"
                };
                lstSetting.Add(setting);
                setting = new Setting {
                    Key = "SimulationsLightOnDay", Value = (!chkCloseSimulationLights.Checked).ToString(), GroupName = "GlobalSettings"
                };
                lstSetting.Add(setting);
                setting = new Setting {
                    Key = "SimulationsLightOnNight", Value = (!chkCloseSimulationLights.Checked).ToString(), GroupName = "GlobalSettings"
                };
                lstSetting.Add(setting);

                globalSetting.PrepareDrivingEnable    = !chkClosePrepareDriving.Checked;
                globalSetting.ContinueExamIfFailed    = !chkExamFailEnd.Checked;
                globalSetting.SimulationsLightOnDay   = !chkCloseSimulationLights.Checked;
                globalSetting.SimulationsLightOnNight = !chkCloseSimulationLights.Checked;

                //UpdateSettings(lstSetting);
            }
            catch (Exception ex)
            {
                Logger.Error(ExamUIName, "startExamUpdateSettingError:" + ex.Message);
            }
            ExamContext.StartExam();
            Module.StartAsync(ExamContext).ContinueWith((task) =>
            {
            });
        }
Ejemplo n.º 5
0
        public void StartExam()
        {
            if (ExamContext == null || !ExamContext.EndExamTime.HasValue)
            {
                return;
            }
            //第一步首先清楚上一次考试项目的扣分规则

            InitBrokenRules();
            tvStartTime.Text = DateTime.Now.ToString("开始时间:HH:mm:ss");
            ExamContext.StartExam();
            Module.StartAsync(ExamContext).ContinueWith((task) =>
            {
            });
        }
Ejemplo n.º 6
0
 protected override void StartExam()
 {
     InitExamItemColor();
     InitExamItem();
     InitBrokenRules();
     //todo:为了美观可以考虑使用Dialog 的方式弹出地图
     MapSecledOption();
     ExamContext.StartExam();
     ExamContext.StartExamTime = DateTime.Now;
     tv_Exam_Status.Text       = "正在考试";
     tv_RG.Enabled             = true;
     tv_exam_mode.Enabled      = false;
     tv_Start_Time.Text        = DateTime.Now.ToString("HH:mm:ss");
     startExamTime             = DateTime.Now;
     btn_Start.Text            = "停止考试";
 }
Ejemplo n.º 7
0
 protected override void StartExam()
 {
     //if (tempMessage != null && !CheckAuth(tempMessage.CarSignal.Gps))
     //    return;
     //不在检测授权
     Logger.Error("开始考试");
     if (startExamTime.HasValue)
     {
         Logger.Error("正在考试");
         return;
     }
     //重置初始化静态判断变量
     Constants.IsTriggerStartExam = false;
     startExamTime = DateTime.Now;
     TipsQueque.Clear();
     lstBorkenRuleInfo.Clear();
     AddTips("开始考试");
     btnEnd.Enabled    = true;
     btnEnd.Visibility = ViewStates.Visible;
     btnEnd.SetBackgroundColor(Color.DarkRed);
     btnEnd.SetTextColor(Color.Blue);
     StartEndStatus = false;
     //设置地图选项和白考也考选项
     MapSpinner.Enabled = false;
     IsTriggerPullOver  = false;
     //初始化开始项目颜色
     InitExamItemColor();
     InitExamItem();
     mainLinerLayout = (LinearLayout)this.FindViewById(Resource.Id.RuleBreakTable);
     InitBrokenRules();
     InitExamParam();
     ExamContext.StartExam();
     Module.StartAsync(ExamContext).ContinueWith((task) =>
     {
     });
 }