|
|
@@ -166,7 +166,7 @@ namespace UAS_MES.Make
|
|
|
if (!Cancel.Checked)
|
|
|
{
|
|
|
pa_status.Text = dh.getFieldDataByCondition("package", "nvl(pa_status,0)pa_status", "pa_outboxcode='" + pa_outboxcode.Text + "'").ToString();
|
|
|
- if (pa_outboxcode.Text == "" && AutoOutBoxCode.Checked || pa_status.Text == "1")
|
|
|
+ if (pa_outboxcode.Text == "" && AutoOutBoxCode.Checked)
|
|
|
{
|
|
|
//箱已采集满并且未勾选自动生成
|
|
|
if (pa_standardqty.Text == pa_totalqty.Text && !AutoOutBoxCode.Checked)
|
|
|
@@ -179,6 +179,10 @@ namespace UAS_MES.Make
|
|
|
pa_outboxcode.Text = LogicHandler.GetOutBoxCode("PALLET", "", pa_prodcode.Text, User.UserCode);
|
|
|
}
|
|
|
}
|
|
|
+ else if (pa_outboxcode.Text == "" || pa_status.Text == "1")
|
|
|
+ {
|
|
|
+ pa_outboxcode.Text = LogicHandler.GetOutBoxCode("PALLET", "", pa_prodcode.Text, User.UserCode);
|
|
|
+ }
|
|
|
else if (pa_outboxcode.Text == "")
|
|
|
{
|
|
|
OperateResult.AppendText(">>栈板号不能为空\n", Color.Red);
|