|
|
@@ -202,7 +202,7 @@ namespace UAS_MES_NEW.Packing
|
|
|
OperateResult.AppendText(">>箱号" + outboxcode.Text + "称重完成\n", Color.Green);
|
|
|
if (LogicHandler.CartonBoxStepPass(ma_code.Text, User.UserSourceCode, outboxcode.Text, User.UserCode, "卡通箱:" + outboxcode.Text + "整箱过站", out ErrorMessage))
|
|
|
{
|
|
|
- dh.UpdateByCondition("package", "pa_printcount= nvl(pa_printcount,0)+1,pa_weight='" + ActualWeight + "',pa_status=1,pa_packageqty=pa_currentqty,pa_totalqty=pa_currentqty", "pa_outboxcode='" + outboxcode.Text + "'");
|
|
|
+ dh.UpdateByCondition("package", "pa_printcount= nvl(pa_printcount,0)+1,pa_status=1,pa_packageqty=pa_currentqty,pa_totalqty=pa_currentqty", "pa_outboxcode='" + outboxcode.Text + "'");
|
|
|
dh.UpdateByCondition("package", "pa_nextstep='" + dh.getFieldDataByCondition("packagedetail left join makeserial on ms_sncode=pd_barcode and ms_makecode=pd_makecode", "max(ms_nextstepcode)", "pd_outboxcode='" + outboxcode.Text + "'").ToString() + "' ,PA_CURRENTSTEP = '' ", "pa_outboxcode='" + outboxcode.Text + "'");
|
|
|
}
|
|
|
else
|
|
|
@@ -386,7 +386,7 @@ namespace UAS_MES_NEW.Packing
|
|
|
palletcode_KeyDown(sender, e);
|
|
|
if (pa_standardqty.Text == pa_totalqty.Text)
|
|
|
{
|
|
|
- dh.ExecuteSql("update package set pa_status=1 where pa_outboxcode='" + pa_outboxcode.Text + "'", "update");
|
|
|
+ dh.ExecuteSql("update package set pa_status=1,PA_WEIGHT='" + weight.Text + "' where pa_outboxcode='" + pa_outboxcode.Text + "'", "update");
|
|
|
OperateResult.AppendText("栈板" + pa_outboxcode.Text + "已装满,封栈板成功\n");
|
|
|
pa_outboxcode.Focus();
|
|
|
pa_outboxcode.SelectAll();
|