|
|
@@ -168,6 +168,11 @@ namespace UAS_MES.Packing
|
|
|
//验证mothercode是否为空,有没有装大箱
|
|
|
if (dh.getFieldDataByCondition("package", "pa_mothercode", "pa_outboxcode='" + pa_outboxcode.Text + "'").ToString() != "")
|
|
|
{
|
|
|
+ if (flag)
|
|
|
+ {
|
|
|
+ MessageBox.Show("<<卡通箱:" + pa_outboxcode.Text + "已装箱,不允许拆箱\n");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
OperateResult.AppendText("<<卡通箱:" + pa_outboxcode.Text + "已装箱,不允许拆箱\n", Color.Red, sncode);
|
|
|
return false;
|
|
|
}
|
|
|
@@ -241,5 +246,13 @@ namespace UAS_MES.Packing
|
|
|
sncode.Focus();
|
|
|
return true;
|
|
|
}
|
|
|
+
|
|
|
+ private void pa_outboxcode_Leave(object sender, EventArgs e)
|
|
|
+ {
|
|
|
+ if (pa_outboxcode.Text != "")
|
|
|
+ {
|
|
|
+ lKeyDown(true);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|