瀏覽代碼

自动封箱时更新Packageqty

章政 8 年之前
父節點
當前提交
ab36e6e84d

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

@@ -254,7 +254,7 @@ namespace UAS_MES.Make
                                         LoadData();
                                         if (int.Parse(pa_currentqty.Text == "" ? "0" : pa_currentqty.Text) == pr_outboxinnerqty.Value)
                                         {
-                                            dh.UpdateByCondition("package", "pa_status=1", "pa_outboxcode='" + pa_outboxcode.Text + "'");
+                                            dh.UpdateByCondition("package", "pa_status=1,pa_packageqty=pa_currentqty", "pa_outboxcode='" + pa_outboxcode.Text + "'");
                                             pa_status.Text = "1";
                                             pa_standardqty.Text = "";
                                             if (AutoPrint.Checked)

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

@@ -328,7 +328,7 @@ namespace UAS_MES.Make
                                             //检查重量合格
                                             if (float.Parse(weight.Text) > MinWeight && float.Parse(weight.Text) < MaxWeight)
                                             {
-                                                dh.UpdateByCondition("package", "pa_status=1,pa_weight='" + weight.Text + "'", "pa_outboxcode='" + pa_outboxcode.Text + "'");
+                                                dh.UpdateByCondition("package", "pa_status=1,pa_packageqty=pa_currentqty,pa_weight='" + weight.Text + "'", "pa_outboxcode='" + pa_outboxcode.Text + "'");
                                                 pa_standardqty.Text = "";
                                                 pa_status.Text = "1";
                                                 OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "称量合格\n", Color.Green);

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

@@ -277,7 +277,7 @@ namespace UAS_MES.Make
                                         //满箱更新状态为1
                                         if (int.Parse(pa_currentqty.Text == "" ? "0" : pa_currentqty.Text) + 1 == int.Parse(pr_outboxinnerqty.Text))
                                         {
-                                            dh.UpdateByCondition("package", "pa_status=1,pa_weight='" + weight.Text + "'", "pa_outboxcode='" + pa_outboxcode.Text + "'");
+                                            dh.UpdateByCondition("package", "pa_status=1,pa_packageqty=pa_currentqty,pa_weight='" + weight.Text + "'", "pa_outboxcode='" + pa_outboxcode.Text + "'");
                                             if (AutoPrint.Checked)
                                                 Print_Click(new object(), new EventArgs());
                                         }