|
|
@@ -288,7 +288,10 @@ namespace UAS_MES_NEW.Packing
|
|
|
{
|
|
|
//如果勾选了自动生成箱号,在封箱或者首次
|
|
|
if (AutoGenBoxCode.Checked && (pa_status.Text == "1" || pa_status.Text == "" || pa_status.Text == "0"))
|
|
|
+ {
|
|
|
pa_outboxcode.Text = LogicHandler.GetOutBoxCode("PACKAGE", ms_makecode, pr_code.Text, User.UserCode);
|
|
|
+ LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, oMakeCode, User.UserLineCode, User.UserSourceCode, "卡通箱采集", "卡通箱" + pa_outboxcode.Text + "自动生成", sn_code.Text, PreFix.Text + ":" + OutBoxLength.Text);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (pa_outboxcode.Text == "")
|
|
|
@@ -366,6 +369,7 @@ namespace UAS_MES_NEW.Packing
|
|
|
pa_status.Text = "0";
|
|
|
BaseUtil.CleanDGVData(PackageDetail);
|
|
|
pa_outboxcode.Text = LogicHandler.GetOutBoxCode("PACKAGE", ms_makecode, pr_code.Text, User.UserCode);
|
|
|
+ LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, oMakeCode, User.UserLineCode, User.UserSourceCode, "卡通箱采集", "卡通箱" + pa_outboxcode.Text + "自动生成", sn_code.Text, PreFix.Text + ":" + OutBoxLength.Text);
|
|
|
}
|
|
|
if (!CheckOutBoxLength(ms_salecode_text))
|
|
|
{
|