zzr99
2022-05-17 76c42727bf5a17e2e520401b7de8108e7aec3a49
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;
@@ -1140,6 +1141,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 +1162,7 @@
                //}
                if (ClsPub.isDoule(txtHBadQty.Text) != sPCSQty)
                {
                    MessageBox.Show("明细报废PCS数不等于总报废PCS,不允许保存!");
                    MessageBox.Show("表体明细不良数不等于表头总不良数量,不允许保存!");
                    return false;
                }
            }
@@ -1236,6 +1250,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>();