Exemple #1
0
        public ResponseResult CheckJobOrder(string jobno)
        {
            response = new ResponseResult();

            using (ReplenishBLL repBll = new ReplenishBLL())
            {
                response = repBll.CheckJobOrder(jobno);
            }

            return response;
        }
 public void CheckJobOrder(string jobNo)
 {
     try
     {
         ResponseResult res = new ResponseResult();
         using (ReplenishBLL repBll = new ReplenishBLL())
         {
             res = repBll.CheckJobOrder(jobNo);
             if (res.Message == "OK")
             {
                 this.SetActiveColor("txtMCNo");
                 this.lblProductNo.Text = res.Data.ToString();
                 this.SetTextFocusControl(this.txtMCNo, true);
             }
             else
             {
                 base.ShowWarningBox(string.Format("'{0}' {1}", jobNo, ResourceManager.Instance.GetString(res.Message)), ResourceManager.Instance.GetString("TITLE_PLEASE_CHECK"));
                 this.SetActiveColor("txtJobNo");
                 this.SetTextFocusControl(this.txtJobNo, true);
             }
         }
         this.txtMCNo.Text      = string.Empty;
         this.txtNoOfLabel.Text = string.Empty;
         //this.lblProductNo.Text = string.Empty;
         this.txtSerialNo.Text  = String.Empty;
         this.lblLabelScan.Text = String.Empty;
         this.lblMtlCode.Text   = String.Empty;
         this.lblMtlName.Text   = String.Empty;
         this.lblGrade.Text     = String.Empty;
         this.lblColor.Text     = String.Empty;
         this.lblQty.Text       = String.Empty;
         this._SCAN_COUNTER     = 0;
         this.lblTotalQty.Text  = "0   /   0";
     }
     catch (WebException wex)
     {
         base.HideWaitProcess();
         base.ShowErrorBox(wex.Message, "WebException");
     }
     catch (Exception ex)
     {
         base.HideWaitProcess();
         base.ShowErrorBox(ex.Message, "Exception");
     }
 }