章政 8 жил өмнө
parent
commit
a0253769a5

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_PackageCollection.cs

@@ -537,7 +537,7 @@ namespace UAS_MES.Make
                             }
                             List<string> SQLS2 = new List<string>();
                             ////置空原箱
-                            SQLS2.Add("update package set pa_packageqty=0,pa_totalqty=0,pa_currentqty=0,pa_status=0 where pa_outboxcode='" + pa_outboxcode.Text + "'");
+                            SQLS2.Add("update package set pa_checkno='',pa_packageqty=0,pa_totalqty=0,pa_currentqty=0,pa_status=0 where pa_outboxcode='" + pa_outboxcode.Text + "'");
                             pa_status.Text = "0";
                             //删除箱的明细
                             SQLS2.Add("delete from packagedetail where pd_outboxcode='" + pa_outboxcode.Text + "'");

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_PackageCollectionWeigh.cs

@@ -620,7 +620,7 @@ namespace UAS_MES.Make
                             }
                             List<string> SQLS2 = new List<string>();
                             ////置空原箱
-                            SQLS2.Add("update package set pa_packageqty=0,pa_totalqty=0,pa_currentqty=0,pa_status=0 where pa_outboxcode='" + pa_outboxcode.Text + "'");
+                            SQLS2.Add("update package pa_checkno='',set pa_packageqty=0,pa_totalqty=0,pa_currentqty=0,pa_status=0 where pa_outboxcode='" + pa_outboxcode.Text + "'");
                             pa_status.Text = "0";
                             //删除箱的明细
                             SQLS2.Add("delete from packagedetail where pd_outboxcode='" + pa_outboxcode.Text + "'");

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_SpecialCartonPack.cs

@@ -564,7 +564,7 @@ namespace UAS_MES.Make
                             }
                             List<string> SQLS2 = new List<string>();
                             ////置空原箱
-                            SQLS2.Add("update package set pa_packageqty=0,pa_totalqty=0,pa_currentqty=0,pa_status=0 where pa_outboxcode='" + pa_outboxcode.Text + "'");
+                            SQLS2.Add("update package pa_checkno='',set pa_packageqty=0,pa_totalqty=0,pa_currentqty=0,pa_status=0 where pa_outboxcode='" + pa_outboxcode.Text + "'");
                             pa_status.Text = "0";
                             //删除箱的明细
                             SQLS2.Add("delete from packagedetail where pd_outboxcode='" + pa_outboxcode.Text + "'");