yusijie
2023-02-22 b51ed3cea777b1809afe07db7314b0e0a8c0e9b8
WorkM/³µ¼ä¹ÜÀí/QC_NoPassProdCheckBill.cs
@@ -19,6 +19,7 @@
        public long HProcExchInterID;
        public long HProcExchEntryID;
        public long HMainSourceInterID;
        public string HBillSubType;
        //定义列
        public const Int16 HTagCol = 0;
        public const Int16 HSnoCol = 1;
@@ -175,6 +176,15 @@
            if (!DBUtility.Xt_BaseBillFun.Fun_AllowDeleteBill(BillOld, ref s))
            {
                MessageBox.Show(s + ",不允许删除", "提示");
                return;
            }
            //
            ClsXt_SystemParameter oClsXt_SystemParameter = new ClsXt_SystemParameter();
            string DeleteCtl = oClsXt_SystemParameter.GetSingleSystemParameter("QC_NoPassProdCheckBill_DeleteCtl", ref DBUtility.ClsPub.sExeReturnInfo);
            if (DeleteCtl == "Y" && BillOld.omodel.HMaker != DBUtility.ClsPub.CurUserName && DBUtility.ClsPub.CurUserName != "admin" && DBUtility.ClsPub.CurUserName != "Admin")
            {
                MessageBox.Show("登录用户与制单人不一致,不允许删除", "提示");
                return;
            }
            //
@@ -1140,6 +1150,19 @@
                        }
                        
                    }
                    else
                    {
                        if (DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HBadQtyCol].Value) != 0)
                        {
                            MessageBox.Show("第" + (i + 1) + "行,没有不良原因不能填写不良数量!");
                            return false;
                        }
                        if (DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HBadPCSQtyCol].Value) != 0)
                        {
                            MessageBox.Show("第" + (i + 1) + "行,没有不良原因不能填写不良PCS数量!");
                            return false;
                        }
                    }
                }
                //if (ClsPub.isDoule(txtHBadPNL.Text) != sPNLQty)
                //{
@@ -1148,7 +1171,7 @@
                //}
                if (ClsPub.isDoule(txtHBadQty.Text) != sPCSQty)
                {
                    MessageBox.Show("明细报废PCS数不等于总报废PCS,不允许保存!");
                    MessageBox.Show("表体明细不良数不等于表头总不良数量,不允许保存!");
                    return false;
                }
            }
@@ -1236,6 +1259,7 @@
            BillNew.omodel.HGroupName = ClsPub.isStrNull(this.cmbHGroupName.Text);
            BillNew.omodel.HOrderProcNo = ClsPub.isStrNull(this.txtHOrderProcNo.Text);
            BillNew.omodel.HProcExchQty = ClsPub.isDoule(this.txtHProcExchQty.Text);
            BillNew.omodel.HBillSubType = HBillSubType;
            //明细类赋值
            BillNew.DetailColl=new List<Model.ClsQC_NoPassProdCheckBillSub>();