Пример #1
0
        public string sSaveBox(string sCode, DataTable dtBarCode)
        {
            string sReturn = "";

            try
            {
                TH.WebService.DAL._BarCodeList DAL = new TH.WebService.DAL._BarCodeList();

                if (dtBarCode == null || dtBarCode.Rows.Count == 0)
                {
                    sReturn = "获得条形码列表失败";
                }
                else
                {
                    int iCou = DAL.iBarCodeBox(sCode, dtBarCode);

                    sReturn = "装箱成功:" + dtBarCode.Rows.Count.ToString() + "条";
                }
            }
            catch (Exception ee)
            {
                sReturn = ee.Message;
            }
            return(sReturn);
        }
Пример #2
0
        public string sBarCodeInvalid(DataTable dt)
        {
            string sReturn = "";

            try
            {
                TH.WebService.DAL._BarCodeList DAL = new TH.WebService.DAL._BarCodeList();

                if (dt == null || dt.Rows.Count == 0)
                {
                    sReturn = "获得条形码列表失败";
                }
                else
                {
                    int iCou = DAL.iBarCodeInvalid(dt);

                    sReturn = "成功作废条形码:" + iCou.ToString() + "条";
                }
            }
            catch (Exception ee)
            {
                sReturn = ee.Message;
            }
            return(sReturn);
        }
Пример #3
0
        public int iChkBarCodeUsed(string sType, string sCode, string BarCode, int RDType)
        {
            TH.WebService.DAL._BarCodeList DAL = new TH.WebService.DAL._BarCodeList();
            int iCou = DAL.iChkBarCodeUsed(sType, sCode, BarCode, RDType);

            return(iCou);
        }
Пример #4
0
        public decimal dBarCodeQty(string sBarCode)
        {
            decimal d = 0;

            try
            {
                TH.WebService.DAL._BarCodeList DAL = new TH.WebService.DAL._BarCodeList();
                d = DAL.dBarCodeQty(sBarCode);
            }
            catch (Exception ee)
            {
            }
            return(d);
        }
Пример #5
0
        public int iBarCodeUsed(string sBarCode, string sType)
        {
            int iCou = 0;

            try
            {
                TH.WebService.DAL._BarCodeList DAL = new TH.WebService.DAL._BarCodeList();
                iCou = DAL.iBarCodeUsed(sBarCode, sType);
            }
            catch (Exception ee)
            {
            }
            return(iCou);
        }
Пример #6
0
        public string sSaveUnBox(string sCode)
        {
            string sReturn = "";

            try
            {
                TH.WebService.DAL._BarCodeList DAL = new TH.WebService.DAL._BarCodeList();

                int iCou = DAL.iBarCodeUnBox(sCode);

                sReturn = "拆箱成功:" + iCou.ToString() + "条";
            }
            catch (Exception ee)
            {
                sReturn = ee.Message;
            }
            return(sReturn);
        }
Пример #7
0
        public string dtSBoxInvCode(string sBarCode)
        {
            string sReturn = "";

            try
            {
                TH.WebService.DAL._BarCodeList DAL = new TH.WebService.DAL._BarCodeList();
                DataTable dt = DAL.dtSBoxInvCode(sBarCode);

                if (dt != null && dt.Rows.Count > 0)
                {
                    sReturn = Cls序列化.SerializeDataTableXml(dt);
                }
            }
            catch (Exception ee)
            {
            }
            return(sReturn);
        }