Пример #1
0
        public string AddLotDetailsToUd108A(List <PalletSelection> objVerifiedPallets, string lblNumStr, int lblNum)
        {
            string msg = "";

            try
            {
                UD108Services _UD108Services = new UD108Services();
                List <UD108A> _ud108AList    = new List <UD108A>();
                UD108A        _ud108A;
                for (var i = 0; i < objVerifiedPallets.Count; i++)
                {
                    _ud108A                = new UD108A();
                    _ud108A.Company        = objVerifiedPallets[i].Company;
                    _ud108A.RunningNo_Key1 = objVerifiedPallets[i].UD108Key1;
                    _ud108A.DPNum_Key2     = objVerifiedPallets[i].DPNum;
                    _ud108A.SONum_Key3     = objVerifiedPallets[i].SONum.ToString();
                    _ud108A.LotNum         = objVerifiedPallets[i].LotNum;
                    _ud108A.Qty            = objVerifiedPallets[i].PalletQty;
                    _ud108A.UserID         = objVerifiedPallets[i].UserId;
                    _ud108A.PalletLblNum   = lblNum.ToString();
                    _ud108A.PalletLblId    = lblNumStr;
                    _ud108A.Status         = "READY";
                    _ud108AList.Add(_ud108A);
                }

                _UD108Services.UD108A_Add(_ud108AList);
            }
            catch (Exception ex)
            {
                msg = "AddLotDetailsToUd108A: " + ex.Message.ToString();
            }
            return(msg);
        }
Пример #2
0
        public string AddLotDetailsToUd108A(List <PickingDtl> pickingDtl)
        {
            string msg = "";

            try
            {
                UD108Services _UD108Services = new UD108Services();
                List <UD108A> _ud108AList    = new List <UD108A>();
                UD108A        _ud108A;
                for (var i = 0; i < pickingDtl.Count; i++)
                {
                    _ud108A                = new UD108A();
                    _ud108A.Company        = pickingDtl[i].Company;
                    _ud108A.RunningNo_Key1 = pickingDtl[i].RunningNo_Key1;
                    _ud108A.DPNum_Key2     = pickingDtl[i].DPNum_Key2;
                    _ud108A.SONum_Key3     = pickingDtl[i].SONum_Key3;
                    _ud108A.LotNum         = pickingDtl[i].LotNum;
                    _ud108A.Qty            = pickingDtl[i].Qty;
                    _ud108A.UserID         = pickingDtl[i].UserID;
                    _ud108A.Status         = pickingDtl[i].Status;
                    _ud108AList.Add(_ud108A);
                }

                _UD108Services.UD108A_Add(_ud108AList);
            }
            catch (Exception ex)
            {
                msg = "AddLotDetailsToUd108A: " + ex.Message.ToString();
            }
            return(msg);
        }