zzr99
2022-05-16 820074f0ce1c04edfb4a9fb4ed5b3fa784e6e8d0
WorkM/³µ¼ä¹ÜÀí/QC_NoPassProdCheckBill.cs
@@ -1141,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)
                //{
@@ -1149,7 +1162,7 @@
                //}
                if (ClsPub.isDoule(txtHBadQty.Text) != sPCSQty)
                {
                    MessageBox.Show("明细报废PCS数不等于总报废PCS,不允许保存!");
                    MessageBox.Show("表体明细不良数不等于表头总不良数量,不允许保存!");
                    return false;
                }
            }