瀏覽代碼

拆箱时箱状态为未封箱

shim 8 年之前
父節點
當前提交
b1c5352b1a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      UAS-MES/FunctionCode/Packing/Packing_CartonSplit.cs

+ 1 - 1
UAS-MES/FunctionCode/Packing/Packing_CartonSplit.cs

@@ -116,7 +116,7 @@ namespace UAS_MES.Packing
                     //更新序列号
                     dh.ExecuteSql("update makeserial set ms_outboxcode='' , ms_nextstepcode=ms_stepcode where ms_id='" + ms_id + "'", "update");
                     //更新箱内当前数量
-                    dh.ExecuteSql("update package set pa_currentqty=pa_currentqty-1 where pa_outboxcode='" + pa_outboxcode.Text + "'", "update");
+                    dh.ExecuteSql("update package set pa_currentqty=pa_currentqty-1,pa_status=0 where pa_outboxcode='" + pa_outboxcode.Text + "'", "update");
                     //记录拆箱操作日志
                     LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, packtype.Text, User.UserLineCode, User.UserSourceCode, "卡通箱拆箱", "卡通箱拆箱成功,序列号:" + sncode.Text + ",箱号:" + pa_outboxcode.Text, sncode.Text, "");
                     //提示拆箱成功