智云外网版WMS\MES\SCM(作废)
yxj
2023-03-07 83e76d9d4d384777efa90df4992f4c5a6210a9d7
条码生成模块,新增条码类型:奇瑞条码单箱
1个文件已修改
17 ■■■■ 已修改文件
SCM/条码打印/Gy_BarCodeBill.cs 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SCM/ÌõÂë´òÓ¡/Gy_BarCodeBill.cs
@@ -220,6 +220,7 @@
                if (CampanyName == "四维尔") //系统参数  å®¢æˆ·å®šåˆ¶åŒ–名称
                {
                    cmbHBarCodeType.Items.Add("奇瑞条码");
                    cmbHBarCodeType.Items.Add("奇瑞条码单箱");
                }
                //cmbHBarCodeType.Items.Add("托盘条码");
                cmbHBarCodeType.SelectedIndex = 0;
@@ -679,7 +680,7 @@
                            MessageBox.Show(" ç¬¬" + ClsPub.isLong(grdMain.Rows[j].Cells[HSnoCol].Value) + "行,物料:" + ClsPub.isStrNull(grdMain.Rows[j].Cells[HMaterNameCol].Value) + " ï¼Œæœªå¯ç”¨æ‰¹æ¬¡ç®¡ç†ï¼Œä¸å…è®¸æœ‰æ‰¹æ¬¡ï¼");
                            return false;
                        }
                        if (cmbHBarCodeType.Text == "奇瑞条码")
                        if (cmbHBarCodeType.Text == "奇瑞条码" || cmbHBarCodeType.Text == "奇瑞条码单箱")
                        {
                            string HCusBatchNo = "";    //客户批次
                            HCusBatchNo = DBUtility.ClsPub.isStrNull(grdMain.Rows[j].Cells[HCustomBatchNoCol].Value);
@@ -1587,7 +1588,7 @@
                            #endregion
                        }
                        else if (cmbHBarCodeType.Text == "奇瑞条码")
                        else if (cmbHBarCodeType.Text == "奇瑞条码" || cmbHBarCodeType.Text == "奇瑞条码单箱")
                        {
                            //条码前缀 = ç»„织代码 + ç‰©æ–™å†…码 + å¹´ + æœˆ + æ—¥
                            sTMNumber = HOrgNumber + HNumber + sYear + sPeriod + sDay;
@@ -1666,7 +1667,7 @@
                                //条码编号 = æ¡ç å‰ç¼€ + æµæ°´å·
                                TM = sTMNumber + LSH2;
                            }
                            else if (cmbHBarCodeType.Text == "奇瑞条码")
                            else if (cmbHBarCodeType.Text == "奇瑞条码" || cmbHBarCodeType.Text == "奇瑞条码单箱")
                            {
                                //条码编号 = æ¡ç å‰ç¼€ + æµæ°´å·
                                TM = sTMNumber + LSH2;
@@ -1734,7 +1735,7 @@
                            grdSub.Rows[i].Cells[HSourceBillType2Col].Value = grdMain.Rows[j].Cells[HBillTypeCol].Value;
                            grdSub.Rows[i].Cells[HPrintCol].Value = "0";
                            grdSub.Rows[i].Cells[HWeiCol].Value = WeiShu;
                            if (cmbHBarCodeType.Text == "奇瑞条码")
                            if (cmbHBarCodeType.Text == "奇瑞条码" || cmbHBarCodeType.Text == "奇瑞条码单箱")
                            {
                                grdSub.Rows[i].Cells[HBarcodeNoCol].Value = CusTMLSH;
                            }
@@ -1801,7 +1802,7 @@
                            MessageBox.Show("条码生成失败,批量生成流水号失败!");
                            return;
                        }
                        if (cmbHBarCodeType.Text == "奇瑞条码")
                        if (cmbHBarCodeType.Text == "奇瑞条码" || cmbHBarCodeType.Text == "奇瑞条码单箱")
                        {
                            string[] sSQLCusNoMul = new string[1];
                            sSQLCusNoMul[0] = " exec h_p_WMS_SetMaxNo_QTY '" + sCusTMNumber + "'," + nn.ToString() + " ";
@@ -1913,6 +1914,12 @@
                            HRemark = "奇瑞条码";
                            HBarCodeStatus = "待装箱";
                        }
                        else if (cmbHBarCodeType.Text == "奇瑞条码单箱")
                        {
                            HBarCodeType = "唯一条码";
                            HRemark = "奇瑞条码单箱";
                            HBarCodeStatus = "";
                        }
                        else
                        {
                            HBarCodeType = ClsPub.isStrNull(cmbHBarCodeType.Text);