コード例 #1
0
        private void 确定_Click(object sender, RoutedEventArgs e)
        {
            if (isSendStatu == false)
            {
                return;
            }
            if ("正常".Equals(crt310lbl.Text) && "正常".Equals(zt598lbl.Text) && "正常".Equals(printlbl.Text) && "正常".Equals(cj201lbl.Text) && "正常".Equals(crt603lbl.Text))
            {
                sendStatu = new Thread(delegate() {
                    try
                    {
                        isSendStatu = false;
                        DeviceState.SendStatu();
                        showInfo("监控平台状态:" + MaintainSignAccess.upException(SysBLL.maintainSignParam.Account));

                        isSendStatu = true;
                    }
                    catch (Exception ex) { log.Write("error:维护人员提交修复异常:" + ex.Message); showInfo("监控平台状态:" + "提交失败"); isSendStatu = true; }
                });
                sendStatu.Start();
            }
            else
            {
                showInfo("监控平台状态:" + "异常未处理");
            }
        }
コード例 #2
0
 private void query()
 {
     try
     {
         maintainSignInfo = MaintainSignAccess.MaintainSign(SysBLL.maintainSignParam.Account.ToLower(), SysBLL.maintainSignParam.Passsword.ToLower());
         SysBLL.maintainSignParam.MaintainSignInfo = maintainSignInfo;
         if ("0".Equals(maintainSignInfo.code))
         {
             Util.JumpUtil.jumpCommonPage("FormMechineState");
             return;
         }
         throw new Exception("维护人员签到失败");
     }
     catch (ThreadAbortException ae)
     {
         shoeInfo("查询失败,请稍后再试...");
         log.Write("error:维护人员签到等待页面:" + ae.Message);
         Thread.Sleep(1000 * 4);
         if (isCloseForm)
         {
             return;
         }
         Util.JumpUtil.jumpCommonPage("FormTemp");
         return;
     }
     catch (Exception ex)
     {
         log.Write("error:维护人员签到异常:" + ex.Message);
         if (maintainSignInfo != null)
         {
             if (maintainSignInfo.message != null)
             {
                 shoeInfo(maintainSignInfo.message);
             }
             else
             {
                 shoeInfo("查询失败,请稍后再试...");
             }
         }
         else
         {
             shoeInfo("查询失败,请稍后再试...");
         }
         Thread.Sleep(1000 * 4);
         if (isCloseForm)
         {
             return;
         }
         Util.JumpUtil.jumpCommonPage("FormTemp");
     }
 }