yxj
20 小时以前 3b5c38bbd9df7c5d9bad86c0a48cbac90cc975f8
凯贝新增统合、紫光华智客户条码生成功能
1个文件已修改
28 ■■■■ 已修改文件
WarM/条码打印/Gy_CusBarCodeBill_KaiBei_HuaSan.cs 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WarM/ÌõÂë´òÓ¡/Gy_CusBarCodeBill_KaiBei_HuaSan.cs
@@ -71,7 +71,7 @@
        public const Int16 HCusModelCol = 49;
        //
        public  string ModName = "85";
        public  string ModCaption = "新华三客户标签生成";
        public  string ModCaption = "新华三、东方通信、统合、紫光华智客户标签生成";
        public const string ModRightName = "Gy_CusBarCodeBill_KaiBei_HuaSan";
        public DBUtility.ClsPub.Enum_BillStatus BillStatus;
@@ -714,6 +714,14 @@
                            {
                                HBarCodeType = "东方通信内箱码";
                            }
                            else if (cmbHCusName.Text.Contains("统合"))
                            {
                                HBarCodeType = "统合内箱码";
                            }
                            else if (cmbHCusName.Text.Contains("紫光华智"))
                            {
                                HBarCodeType = "紫光华智内箱码";
                            }
                            else
                            {
                                HBarCodeType = "新华三内箱码";
@@ -799,7 +807,7 @@
                            //条码前缀 = 2位固定码('09') + CPN客户编码(规格型号)+ 2位预留码(固定'01')+ 5位年年月日日(YYMDD) + 3位09码流水号(固定'001') + ä¾›åº”商代码(固定'105652')
                            sWTMNumber = "09" + HMaterModel + "01" + sYear + sPeriod + sDay + "001105652";
                        }
                        //新华三
                        //新华三、统合、紫光华智
                        else
                        {
                            //条码前缀 = 2位固定码('09') + CPN客户编码(规格型号)+ 2位预留码(固定'01')+ 5位年年月日日(YYMDD) + 3位09码流水号(固定'001') + ä¾›åº”商代码(固定'151091')
@@ -839,6 +847,14 @@
                            if (cmbHCusName.Text.Contains("东方通信"))
                            {
                                HBarCodeType = "东方通信外箱码";
                            }
                            else if (cmbHCusName.Text.Contains("统合"))
                            {
                                HBarCodeType = "统合外箱码";
                            }
                            else if (cmbHCusName.Text.Contains("紫光华智"))
                            {
                                HBarCodeType = "紫光华智外箱码";
                            }
                            else
                            {
@@ -926,7 +942,7 @@
        private void Display()
        {
            //刷新内箱码列表
            DataSet DSet = oCn.RunProcReturn("select * from h_v_Gy_BarCodeBill_CusList where HInterID=" + HInterID.ToString() + " and (条码类型='新华三内箱码' or æ¡ç ç±»åž‹='东方通信内箱码) order by HItemID", "h_v_Gy_BarCodeBill_CusList", ref DBUtility.ClsPub.sExeReturnInfo);
            DataSet DSet = oCn.RunProcReturn("select * from h_v_Gy_BarCodeBill_CusList where HInterID=" + HInterID.ToString() + " and (条码类型 in ('新华三内箱码','东方通信内箱码','统合内箱码','紫光华智内箱码') order by HItemID", "h_v_Gy_BarCodeBill_CusList", ref DBUtility.ClsPub.sExeReturnInfo);
            //生成首行标题
            if (DSet == null)
            {
@@ -937,7 +953,7 @@
            grdSub.DataSource = DSet.Tables[0].DefaultView;
            //刷新外箱码列表
            DataSet DWSet = oCn.RunProcReturn("select * from h_v_Gy_BarCodeBill_CusList where HInterID=" + HInterID.ToString() + " and (条码类型='新华三外箱码' or æ¡ç ç±»åž‹='东方通信外箱码) order by HItemID", "h_v_Gy_BarCodeBill_CusList", ref DBUtility.ClsPub.sExeReturnInfo);
            DataSet DWSet = oCn.RunProcReturn("select * from h_v_Gy_BarCodeBill_CusList where HInterID=" + HInterID.ToString() + " and (条码类型 in ('新华三外箱码','东方通信外箱码','统合外箱码','紫光华智外箱码') order by HItemID", "h_v_Gy_BarCodeBill_CusList", ref DBUtility.ClsPub.sExeReturnInfo);
            //生成首行标题
            if (DWSet == null)
            {
@@ -1693,7 +1709,7 @@
        {
            try
            {
                oCn.RunProc("update Gy_BarCodeBill_Cus set HPrintQty=isnull(HPrintQty,0)+1 where HBarCodeType in ('新华三内箱码','东方通信内箱码') and HInterID=" + HInterID, ref DBUtility.ClsPub.sExeReturnInfo);
                oCn.RunProc("update Gy_BarCodeBill_Cus set HPrintQty=isnull(HPrintQty,0)+1 where HBarCodeType in ('新华三内箱码','东方通信内箱码','统合内箱码','紫光华智内箱码') and HInterID=" + HInterID, ref DBUtility.ClsPub.sExeReturnInfo);
            }
            catch (Exception e)
            {
@@ -1808,7 +1824,7 @@
        {
            try
            {
                oCn.RunProc("update Gy_BarCodeBill_Cus set HPrintQty=isnull(HPrintQty,0)+1 where HBarCodeType in ('新华三外箱码','东方通信外箱码') and HInterID=" + HInterID, ref DBUtility.ClsPub.sExeReturnInfo);
                oCn.RunProc("update Gy_BarCodeBill_Cus set HPrintQty=isnull(HPrintQty,0)+1 where HBarCodeType in ('新华三外箱码','东方通信外箱码','统合外箱码','紫光华智外箱码') and HInterID=" + HInterID, ref DBUtility.ClsPub.sExeReturnInfo);
            }
            catch (Exception e)
            {