|
|
@@ -202,13 +202,16 @@ namespace UAS_MES.OQC
|
|
|
{
|
|
|
if (al_code.Text != "" || ob_maxngacceptqty.Text != "")
|
|
|
{
|
|
|
- if (Checkob_maxngacceptqty())
|
|
|
+ if (dh.getFieldDataByCondition("oqcbatch", "ob_status", "ob_checkno='" + ob_checkno.Text + "'").ToString() == "UNCHECK")
|
|
|
{
|
|
|
- SaveConfiguration_Click(sender, e);
|
|
|
+ if (Checkob_maxngacceptqty())
|
|
|
+ {
|
|
|
+ SaveConfiguration_Click(sender, e);
|
|
|
+ }
|
|
|
}
|
|
|
+ else OperateResult.AppendText(">>送检批次必须为待检验状态\n", Color.Red);
|
|
|
}
|
|
|
- else
|
|
|
- OperateResult.AppendText(">>AQL和最大不合格允许通过数至少填写一个\n", Color.Red);
|
|
|
+ else OperateResult.AppendText(">>AQL和最大不合格允许通过数至少填写一个\n", Color.Red);
|
|
|
}
|
|
|
|
|
|
//对于最大不合格允通过数的校验
|