|
|
@@ -146,9 +146,9 @@ namespace UAS_MES.OQC
|
|
|
//对于最大不合格允通过数的校验
|
|
|
private bool Checkob_maxngacceptqty()
|
|
|
{
|
|
|
- if (ob_maxngacceptqty.Text == "0" || ob_maxngacceptqty.Text == "" || int.Parse(ob_maxngacceptqty.Text) < 0)
|
|
|
+ if (int.Parse(ob_maxngacceptqty.Text) < 0)
|
|
|
{
|
|
|
- OperateResult.AppendText(">>最大不合格允通过数必须大于0\n", Color.Red);
|
|
|
+ OperateResult.AppendText(">>最大不合格允通过数必须大于等于0\n", Color.Red);
|
|
|
ob_maxngacceptqty.Text = null;
|
|
|
return false;
|
|
|
}
|