//11
 public bool SetMeterChanged()
 {
     Model.DSPTCH_CUR_MESSAGE MCurMessagePress = new Model.DSPTCH_CUR_MESSAGE();
     MCurMessagePress.AVR_DATA          = "";
     MCurMessagePress.AVR_HANDLE_FLAG   = "0";
     MCurMessagePress.AVR_MSG_TYPE      = CST_MeterChanged.ToString();
     MCurMessagePress.AVR_WRITE_TIME    = DateTime.Now.ToString(_DateFormateStr);
     MCurMessagePress.FK_DEVICE_MADE_NO = _EquipNo;
     BLL.DSPTCH_CUR_MESSAGE BCurMessage = new BLL.DSPTCH_CUR_MESSAGE();
     if (!BCurMessage.Update(MCurMessagePress))
     {
         BCurMessage.Add(MCurMessagePress);
     }
     return(true);
 }
 //2
 public bool SetProgressBar()
 {
     Model.DSPTCH_CUR_MESSAGE MCurMessageLogin = new Model.DSPTCH_CUR_MESSAGE();
     MCurMessageLogin.FK_DEVICE_MADE_NO = _EquipNo;
     MCurMessageLogin.AVR_MSG_TYPE      = CST_ProgressBar.ToString();
     MCurMessageLogin.AVR_DATA          = _MParm.In_ProgressBarCurSeconds + "|" + _MParm.In_ProgressBarTotalSeconds;
     MCurMessageLogin.AVR_WRITE_TIME    = DateTime.Now.ToString(_DateFormateStr);
     MCurMessageLogin.AVR_HANDLE_FLAG   = "0";
     BLL.DSPTCH_CUR_MESSAGE BCurMessage = new BLL.DSPTCH_CUR_MESSAGE();
     if (!BCurMessage.Update(MCurMessageLogin))
     {
         BCurMessage.Add(MCurMessageLogin);
     }
     return(true);
 }
 //8
 public bool SetQuarantineStatus()
 {
     Model.DSPTCH_CUR_MESSAGE MCurMessagePress = new Model.DSPTCH_CUR_MESSAGE();
     MCurMessagePress.AVR_DATA          = string.Join("|", _MParm.In_QuarantineStatus);
     MCurMessagePress.AVR_HANDLE_FLAG   = "0";
     MCurMessagePress.AVR_MSG_TYPE      = CST_QuarantineStatus.ToString();
     MCurMessagePress.AVR_WRITE_TIME    = DateTime.Now.ToString(_DateFormateStr);
     MCurMessagePress.FK_DEVICE_MADE_NO = _EquipNo;
     BLL.DSPTCH_CUR_MESSAGE BCurMessage = new BLL.DSPTCH_CUR_MESSAGE();
     if (!BCurMessage.Update(MCurMessagePress))
     {
         BCurMessage.Add(MCurMessagePress);
     }
     return(true);
 }
 //4
 public bool SetErrorBoard()
 {
     Model.DSPTCH_CUR_MESSAGE MCurMessageLogin = new Model.DSPTCH_CUR_MESSAGE();
     MCurMessageLogin.FK_DEVICE_MADE_NO = _EquipNo;
     MCurMessageLogin.AVR_MSG_TYPE      = CST_ErrorBoard.ToString();
     MCurMessageLogin.AVR_DATA          = _MParm.In_ErrorBoardJoinString;
     MCurMessageLogin.AVR_WRITE_TIME    = DateTime.Now.ToString(_DateFormateStr);
     MCurMessageLogin.AVR_HANDLE_FLAG   = "0";
     BLL.DSPTCH_CUR_MESSAGE BCurMessage = new BLL.DSPTCH_CUR_MESSAGE();
     if (!BCurMessage.Update(MCurMessageLogin))
     {
         BCurMessage.Add(MCurMessageLogin);
     }
     return(true);
 }
 /// 1
 /// <summary>
 ///
 /// </summary>
 public bool LoginOn()
 {
     Model.DSPTCH_CUR_MESSAGE MCurMessageLogin = new Model.DSPTCH_CUR_MESSAGE();
     MCurMessageLogin.FK_DEVICE_MADE_NO = _EquipNo;
     MCurMessageLogin.AVR_MSG_TYPE      = CST_LoginOn.ToString();
     MCurMessageLogin.AVR_DATA          = "1";
     MCurMessageLogin.AVR_WRITE_TIME    = DateTime.Now.ToString(_DateFormateStr);
     MCurMessageLogin.AVR_HANDLE_FLAG   = "0";
     BLL.DSPTCH_CUR_MESSAGE BCurMessage = new BLL.DSPTCH_CUR_MESSAGE();
     if (!BCurMessage.Update(MCurMessageLogin))
     {
         BCurMessage.Add(MCurMessageLogin);
     }
     WriteRunningLogs("登录装置编号:" + _EquipNo, 0);
     return(true);
 }
        //14
        public bool SetHighVoltage()
        {
            Model.DSPTCH_CUR_MESSAGE MCurMessagePress = new Model.DSPTCH_CUR_MESSAGE();
            MCurMessagePress.AVR_DATA          = _MParm.In_HighVoltage;
            MCurMessagePress.AVR_HANDLE_FLAG   = "0";
            MCurMessagePress.AVR_MSG_TYPE      = CST_HighVoltage.ToString();
            MCurMessagePress.AVR_WRITE_TIME    = DateTime.Now.ToString(_DateFormateStr);
            MCurMessagePress.FK_DEVICE_MADE_NO = _EquipNo;
            BLL.DSPTCH_CUR_MESSAGE BCurMessage = new BLL.DSPTCH_CUR_MESSAGE();
            if (!BCurMessage.Update(MCurMessagePress))
            {
                BCurMessage.Add(MCurMessagePress);
            }

            WriteRunningLogs("当前客户端耐压仪数据:" + _MParm.In_HighVoltage, 0);
            return(true);
        }
        public bool SetCurCheckStateStop()
        {
            Model.DSPTCH_CUR_MESSAGE MCurMessagePress = new Model.DSPTCH_CUR_MESSAGE();
            MCurMessagePress.AVR_DATA          = "2";
            MCurMessagePress.AVR_HANDLE_FLAG   = "0";
            MCurMessagePress.AVR_MSG_TYPE      = CST_CurCheckState.ToString();
            MCurMessagePress.AVR_WRITE_TIME    = DateTime.Now.ToString(_DateFormateStr);
            MCurMessagePress.FK_DEVICE_MADE_NO = _EquipNo;
            BLL.DSPTCH_CUR_MESSAGE BCurMessage = new BLL.DSPTCH_CUR_MESSAGE();
            if (!BCurMessage.Update(MCurMessagePress))
            {
                BCurMessage.Add(MCurMessagePress);
            }

            WriteRunningLogs("当前客户端检定状态:2", 0);
            return(true);
        }