Exemplo n.º 1
0
 public void CheckMachine(string machineNo)
 {
     try
     {
         ResponseResult res = new ResponseResult();
         using (ReplenishBLL repBll = new ReplenishBLL())
         {
             res = repBll.CheckMachine(machineNo);
             if (res.Message == "OK")
             {
                 this.SetActiveColor("txtNoOfLabel");
                 this.SetTextFocusControl(this.txtNoOfLabel, false);
             }
             else
             {
                 base.ShowWarningBox(string.Format("'{0}' {1}", machineNo, ResourceManager.Instance.GetString(res.Message)), ResourceManager.Instance.GetString("TITLE_PLEASE_CHECK"));
                 this.SetActiveColor("txtMCNo");
                 this.SetTextFocusControl(this.txtMCNo, true);
             }
         }
     }
     catch (WebException wex)
     {
         base.HideWaitProcess();
         base.ShowErrorBox(wex.Message, "WebException");
     }
     catch (Exception ex)
     {
         base.HideWaitProcess();
         base.ShowErrorBox(ex.Message, "Exception");
     }
 }
Exemplo n.º 2
0
        public ResponseResult CheckMachine(string mcno)
        {
            response = new ResponseResult();

            using (ReplenishBLL repBll = new ReplenishBLL())
            {
                response = repBll.CheckMachine(mcno);
            }

            return response;
        }