|
|
@@ -346,8 +346,9 @@ 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);
|
|
|
- if (dh.CheckExist("package", "pa_outboxcode='" + pa_outboxcode.Text + "'")) {
|
|
|
- OperateResult.AppendText(">>箱号"+ pa_outboxcode.Text + "已生成,不允许重复使用\n", Color.Red, sn_code);
|
|
|
+ if (dh.CheckExist("package", "pa_outboxcode='" + pa_outboxcode.Text + "'"))
|
|
|
+ {
|
|
|
+ OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "已生成,不允许重复使用\n", Color.Red, sn_code);
|
|
|
pa_outboxcode.Text = "";
|
|
|
return;
|
|
|
}
|
|
|
@@ -493,6 +494,7 @@ namespace UAS_MES_NEW.Packing
|
|
|
{
|
|
|
dh.UpdateByCondition("package", "pa_status=1,pa_packageqty=pa_currentqty,pa_totalqty=pa_currentqty", "pa_outboxcode='" + pa_outboxcode.Text + "'");
|
|
|
OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "满箱采集完成,封箱成功\n", Color.Green);
|
|
|
+ HttpServer.GetOutBoxInfo(pa_outboxcode.Text);
|
|
|
pa_status.Text = "1";
|
|
|
pa_standardqty.Text = "";
|
|
|
if (AutoPrint.Checked)
|
|
|
@@ -898,7 +900,7 @@ namespace UAS_MES_NEW.Packing
|
|
|
dh.ExecuteSql("update package set pa_checkno='',pa_prodcode='',pa_packtype='',pa_salecode='',pa_packageqty=0,pa_totalqty=0,pa_currentqty=0,pa_status=0 where pa_outboxcode='" + pa_outboxcode.Text + "'", "update");
|
|
|
pa_status.Text = "0";
|
|
|
//删除箱的明细
|
|
|
- dh.ExecuteSql("delete from labelprintlog where lpl_value='"+pa_outboxcode.Text+"'","delete");
|
|
|
+ dh.ExecuteSql("delete from labelprintlog where lpl_value='" + pa_outboxcode.Text + "'", "delete");
|
|
|
dh.ExecuteSql("delete from packagedetail where pd_outboxcode='" + pa_outboxcode.Text + "'", "delete");
|
|
|
LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, pa_makecode.Text, User.UserLineCode, User.UserSourceCode, "卡通箱拆解", "成功", pa_outboxcode.Text, ob_checkno.Text);
|
|
|
OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "成功拆解!\n", Color.Green);
|