1
zrg
2026-03-26 611aa0de379591132a470759382fbc55b13c7e46
WarM/ÌõÂë´òÓ¡/Gy_BarCodeBill_Rework.cs
@@ -600,14 +600,20 @@
                string Ret = "";
                if (oSystemParameter.ShowBill(ref Ret))
                {
                    //判断客户为龙山汽配
                    if (oSystemParameter.omodel.Gy_BarCodeBill_Rework_Ctrl != "")//生成物料条码时,机型码不允许为空,如若物料代码前缀不为G或L的,可跳过控制
                    //生成物料条码时,机型码不允许为空,如若物料代码前缀不为G或L的,可跳过控制
                    if (oSystemParameter.omodel.Gy_BarCodeBill_Rework_Ctrl != "")
                    {
                        string[] HMaterNumberPrefix = oSystemParameter.omodel.Gy_BarCodeBill_Rework_Ctrl.Split(',');
                        for (int j = 0; j < grdMain.Rows.Count; j++)
                        {
                            char HMaterfirstChar = grdMain.Rows[j].Cells[HSubjoin2Col].Value.ToString()[0];
                            if (ClsPub.isLong(grdMain.Rows[j].Cells[HMaterIDCol].Value) == 0)
                            {
                                continue;
                            }
                            char HMaterfirstChar = grdMain.Rows[j].Cells[HMaterNumberCol].Value.ToString()[0];
                            if (ClsPub.isLong(grdMain.Rows[j].Cells[HMaterIDCol].Value) != 0 && grdMain.Rows[j].Cells[HSubjoin2Col].Value.ToString() == "" && HMaterNumberPrefix.Contains(HMaterfirstChar.ToString()))
                            {
                                MessageBox.Show("第" + (j + 1) + "行,机型码未维护,不允许生成条码");