浏览代码

返工拆解栈板备注功能

章政 8 年之前
父节点
当前提交
41e641acc4
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      UAS-MES/FunctionCode/Special/Special_BoxSplit.cs

+ 6 - 0
UAS-MES/FunctionCode/Special/Special_BoxSplit.cs

@@ -69,6 +69,8 @@ namespace UAS_MES.Special
                             {
                                 outboxcode2.Add(dt3.Rows[i]["pa_mothercode"].ToString());
                             }
+                            dh.BatchInsert("insert into PACKAGEBACKUP select * from package where pa_outboxcode=:outboxcode2", new string[] { "outboxcode2" }, outboxcode2.ToArray());
+                            dh.BatchInsert("insert into PACKAGEBACKUPDETAIL select * from packagedetail where pd_outboxcode=:outboxcode2", new string[] { "outboxcode2" }, outboxcode2.ToArray());
                             dh.BatchInsert("delete from packagedetail where pd_outboxcode=:outboxcode2", new string[] { "outboxcode2" }, outboxcode2.ToArray());
                             dh.BatchInsert("delete from package where pa_outboxcode=:outboxcode2", new string[] { "outboxcode2" }, outboxcode2.ToArray());
                         }
@@ -78,6 +80,8 @@ namespace UAS_MES.Special
                         {
                             outboxcode1.Add(dt2.Rows[i]["pa_mothercode"].ToString());
                         }
+                        dh.BatchInsert("insert into PACKAGEBACKUP select * from package where pa_outboxcode=:outboxcode1", new string[] { "outboxcode1" }, outboxcode1.ToArray());
+                        dh.BatchInsert("insert into PACKAGEBACKUPDETAIL select * from packagedetail where pd_outboxcode=:outboxcode1", new string[] { "outboxcode1" }, outboxcode1.ToArray());
                         dh.BatchInsert("delete from packagedetail where pd_outboxcode=:outboxcode1", new string[] { "outboxcode1" }, outboxcode1.ToArray());
                         dh.BatchInsert("delete from package where pa_outboxcode=:outboxcode1", new string[] { "outboxcode1" }, outboxcode1.ToArray());
                     }
@@ -87,6 +91,8 @@ namespace UAS_MES.Special
                     {
                         outboxcode.Add(dt1.Rows[i]["ms_outboxcode"].ToString());
                     }
+                    dh.BatchInsert("insert into PACKAGEBACKUP select * from package where pa_outboxcode=:outboxcode", new string[] { "outboxcode" }, outboxcode.ToArray());
+                    dh.BatchInsert("insert into PACKAGEBACKUPDETAIL select * from packagedetail where pd_outboxcode=:outboxcode", new string[] { "outboxcode" }, outboxcode.ToArray());
                     dh.BatchInsert("delete from packagedetail where pd_outboxcode=:outboxcode", new string[] { "outboxcode" }, outboxcode.ToArray());
                     dh.BatchInsert("delete from package where pa_outboxcode=:outboxcode", new string[] { "outboxcode" }, outboxcode.ToArray());
                     dh.BatchInsert("update makeserial set ms_outboxcode='' where ms_sncode=:ms_sncode and ms_makecode='" + ms_makecode + "' ", new string[] { "ms_sncode" }, ms_sncode.ToArray());