雅琪诺MES智能条码管理系统
zgq
2021-01-12 14fbc3da54fb7254940d65c574f16ed76dc9afa8
在线裁切增加批次和条码后缀二等品CP和样本品B
1个文件已修改
45 ■■■■■ 已修改文件
SCM/单据资料/Sc_ICMOReportToBarCode.cs 45 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SCM/µ¥¾Ý×ÊÁÏ/Sc_ICMOReportToBarCode.cs
@@ -544,7 +544,21 @@
                //条码前缀 = ç»„织代码 + ç‰©æ–™å†…码 + å¹´ + æœˆ + æ—¥
                //sTMNumber = HOrgNumber + HNumber + sYear + sPeriod + sDay;
                //sTMNumber = DBUtility.ClsPub.isStrNull(txtHBatchNo.Text);
                //获取最大流水号,降等品加CP后缀以重新生成流水号
                if (sType == "SaveDown")
                {
                    sTMNumber = HNumber + ";" + DBUtility.ClsPub.isStrNull(txtHBatchNo.Text) + "CP";
                }
                else if (sType == "Sample")
                {
                    sTMNumber = HNumber + ";" + DBUtility.ClsPub.isStrNull(txtHBatchNo.Text) + "B";
                }
                else
                {
                sTMNumber = HNumber + ";" + DBUtility.ClsPub.isStrNull(txtHBatchNo.Text);
                }
                //sTMNumber = HNumber + ";" + DBUtility.ClsPub.isStrNull(txtHBatchNo.Text);
                Ds = oWeb.getDataSetBySQL("exec h_p_WMS_GetMaxNo  '" + sTMNumber + "'", "h_p_WMS_GetMaxNo", ref DBUtility.ClsPub.sExeReturnInfo);//获取最大流水号
                LSH = ClsPub.isInt(Ds.Tables[0].Rows[0][0]);
@@ -563,7 +577,21 @@
                }
                //条码编号 = æ¡ç å‰ç¼€ + æµæ°´å·
                TM = sTMNumber + "-" + LSH2;
                //降等品时增加CP后缀
                string sTMNumberNew = HNumber + ";" + DBUtility.ClsPub.isStrNull(txtHBatchNo.Text);
                if (sType == "SaveDown")
                {
                    TM = sTMNumberNew + "CP-" + LSH2;
                }
                else if (sType == "Sample")
                {
                    TM = sTMNumberNew + "B-" + LSH2;
                }
                else
                {
                    TM = sTMNumberNew + "-" + LSH2;
                }
                //TM = sTMNumber + "-" + LSH2;
                HBarCode = TM;
                HBarCodeType = "唯一条码";
@@ -572,11 +600,24 @@
                HAuxPropID = 0;
                HUnitID = DBUtility.ClsPub.isLong(txtHUnitName.Tag);
                HQty2 = HQty;
                HBatchNo2 = HBatchNo;
                //HBatchNo2 = HBatchNo;
                //if (HSourceBillType != "生产订单")
                //{
                    //HBatchNo2 = TM;
                //HBatchNo2 = HBatchNo + "-" + LSH2;
                //判断按钮类型给批次增加后缀
                if (sType == "SaveDown")
                {
                    HBatchNo2 = HBatchNo + "CP-" + LSH2;
                }
                else if (sType == "Sample")
                {
                    HBatchNo2 = HBatchNo + "B-" + LSH2;
                }
                else
                {
                HBatchNo2 = HBatchNo + "-" + LSH2;
                }
                //}
                //HSourceBillType = HSourceBillTypeID;
                HBarcodeQtys = 0;