yxj
2025-12-08 fdfee59e6a121674bbfa430be30a6c1cb956f34e
夏宝调拨条码生成模块,条码生成时流水号获取修正
1个文件已修改
8 ■■■■ 已修改文件
WarM/条码打印/Gy_BarCodeBill_XiaBao.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WarM/ÌõÂë´òÓ¡/Gy_BarCodeBill_XiaBao.cs
@@ -706,10 +706,10 @@
                            ////条码前缀 = ç»„织代码 + ç‰©æ–™ä»£ç  + å¹´ + æœˆ + æ—¥
                            //sTMNumber = HOrgNumber + sMaterID + sYear + sPeriod + sDay;
                            //循环判断该行前面所有行中是否存在相同物料
                            //循环判断该行前面所有行中是否存在相同条码前缀
                            for (int i = 0; i < j; i++)
                            {
                                if(ClsPub.isLong(grdMain.Rows[j].Cells[HMaterIDCol].Value)== ClsPub.isLong(grdMain.Rows[j - i - 1].Cells[HMaterIDCol].Value))
                                if(sTMNumber == ClsPub.isStrNull(grdMain.Rows[j - i - 1].Cells[HTMNumberCol].Value))
                                {
                                    LSH = ClsPub.isLong(grdMain.Rows[j - i - 1].Cells[HLSHCol].Value);
                                    HBarcodeNo = ClsPub.isLong(grdMain.Rows[j - i - 1].Cells[HBarcodeNoCol].Value);
@@ -872,11 +872,11 @@
                        }
                        else
                        {
                            //循环判断该行后面的所有行是否存在和该行物料相同的行,如不存在 åˆ™å›žå¡«å¯¹åº”流水号信息,存在则不回填流水号信息
                            //循环判断该行后面的所有行是否存在和该行条码前缀相同的行,如不存在 åˆ™å›žå¡«å¯¹åº”流水号信息,存在则不回填流水号信息
                            bool b = false;
                            for (int i = 0; i < j; i++)
                            {
                                if (ClsPub.isLong(grdMain.Rows[grdMain.Rows.Count - j - 1].Cells[HMaterIDCol].Value) == ClsPub.isLong(grdMain.Rows[grdMain.Rows.Count - i - 1].Cells[HMaterIDCol].Value))
                                if (ClsPub.isStrNull(grdMain.Rows[grdMain.Rows.Count - j - 1].Cells[HTMNumberCol].Value) == ClsPub.isStrNull(grdMain.Rows[grdMain.Rows.Count - i - 1].Cells[HTMNumberCol].Value))
                                {
                                    b = true;
                                    break;