|
|
@@ -147,11 +147,6 @@ namespace UAS_MES.OQC
|
|
|
List<string> ci_kind_update = new List<string>();
|
|
|
List<string> oi_sampleqty_update = new List<string>();
|
|
|
int ChooseCount = 0;
|
|
|
- if (int.Parse(ob_maxngacceptqty.Text == "" ? "0" : ob_maxngacceptqty.Text) > int.Parse(ob_sampleqty.Text == "" ? "0" : ob_sampleqty.Text))
|
|
|
- {
|
|
|
- OperateResult.AppendText(">>最大不合格通过数不允许大于抽检数\n", Color.Red);
|
|
|
- return;
|
|
|
- }
|
|
|
for (int i = 0; i < CheckTypeDGV.Rows.Count; i++)
|
|
|
{
|
|
|
//用户勾选的数据才进行操作
|
|
|
@@ -231,6 +226,11 @@ namespace UAS_MES.OQC
|
|
|
{
|
|
|
ob_maxngacceptqty.Text = dh.getFieldDataByCondition("QUA_Aql left join qua_aqldetail on ad_alid=al_id", "nvl(ad_maxngacceptqty,0)", "al_code='" + al_code.Text + "' and ad_minqty<='" + ob_nowcheckqty.Text + "' and ad_maxqty>='" + ob_nowcheckqty.Text + "'").ToString();
|
|
|
}
|
|
|
+ if (int.Parse(ob_maxngacceptqty.Text == "" ? "0" : ob_maxngacceptqty.Text) > int.Parse(ob_sampleqty.Text == "" ? "0" : ob_sampleqty.Text))
|
|
|
+ {
|
|
|
+ OperateResult.AppendText(">>最大不合格通过数不允许大于抽检数\n", Color.Red);
|
|
|
+ return false;
|
|
|
+ }
|
|
|
int result = (int)dh.ExecuteSql("update OQCBatch set ob_projectcode='" + pr_code.Text + "',ob_remark = '" + ob_remark.Text + "',ob_aqlcode='" + al_code.Text + "',ob_maxngacceptqty='" + ob_maxngacceptqty.Text + "',ob_actsampleqty='" + ob_sampleqty.Text + "' where ob_checkno='" + ob_checkno.Text + "' ", "update");
|
|
|
return result > 0;
|
|
|
}
|