void UCDispatchDetails_StopEvent(object sender, EventArgs e)
 {
     try
     {
         //if (!JudgeProjectOK("停工"))
         //{
         //    return;
         //}
         if (MessageBoxEx.Show("确认要停工吗?", "提示", MessageBoxButtons.OKCancel) != DialogResult.OK)
         {
             return;
         }
         StopReason = new UCStopReason();
         if (StopReason.ShowDialog() == DialogResult.OK)
         {
             strStopReason = StopReason.Content;
             DStatus = StopReason.DStatus;
             PStatus = StopReason.PStatus;
             strStarTime = string.Empty;
             strStopTime = DateTime.Now.ToString();
             strCTime = string.Empty;
             strContinueTime = string.Empty;
             AlterOrdersStatus(DStatus, PStatus);
             base.btnSave.Enabled = true;
         }
     }
     catch (Exception ex)
     {
         HXCPcClient.GlobalStaticObj.GlobalLogService.WriteLog(ex);
     }
 }
 void UCDispatchDetails_StopEvent(object sender, EventArgs e)
 {
     if (!JudgeProjectOK("停工"))
     {
         return;
     }
     if (MessageBoxEx.Show("确认要停工吗?", "提示", MessageBoxButtons.OKCancel) != DialogResult.OK)
     {
         return;
     }
     StopReason = new UCStopReason();
     if (StopReason.ShowDialog() == DialogResult.OK)
     {
         strStopReason = StopReason.Content;
         DStatus = StopReason.DStatus;
         PStatus = StopReason.PStatus;               
         strStarTime = string.Empty;
         strStopTime = DateTime.Now.ToString();
         strCTime = string.Empty;
         strContinueTime = string.Empty;              
         AlterOrdersStatus(DStatus, PStatus);
         base.btnSave.Enabled = true;
     }
 }