Exemple #1
0
        public ResponseResult StartReplenish(string jobno, string mcno, int noOfBag, string userid)
        {
            response = new ResponseResult();

            using (ReplenishBLL repBll = new ReplenishBLL())
            {
                response = repBll.StartReplenish(jobno, mcno, noOfBag, userid);
            }

            return response;
        }
        public void StartReplenish()
        {
            try
            {
                ResponseResult res = new ResponseResult();
                using (ReplenishBLL repBll = new ReplenishBLL())
                {
                    res = repBll.StartReplenish(this.txtJobNo.Text, this.txtMCNo.Text, Int32.Parse(this.txtNoOfLabel.Text), this.USER_ID);
                }

                if (res.Status)
                {
                    if (res.Message == "OK")
                    {
                        this.lblTotalQty.Text = String.Format("{0}   /   {1}", this.SCAN_COUNTER, this.txtNoOfLabel.Text);
                        this.REP_NO           = res.Data.ToString();
                        this.SetActiveColor("txtSerialNo");
                        this.SetTextFocusControl(this.txtSerialNo, true);
                    }
                }
            }
            catch (WebException wex)
            {
                base.HideWaitProcess();
                base.ShowErrorBox(wex.Message, "WebException");
                this.SetActiveColor("txtJobNo");
                this.SetTextFocusControl(this.txtJobNo, true);
            }
            catch (Exception ex)
            {
                base.HideWaitProcess();
                base.ShowErrorBox(ex.Message, "Exception");
                this.SetActiveColor("txtJobNo");
                this.SetTextFocusControl(this.txtJobNo, true);
            }
        }