Эх сурвалжийг харах

卡通箱采集称重语句顺序调整

Hcsy 8 жил өмнө
parent
commit
80e38e7930

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

@@ -353,11 +353,11 @@ namespace UAS_MES.Make
                                     sn_code.Clear();
                                     if (int.Parse(pa_currentqty.Text == "" ? "0" : pa_currentqty.Text) == int.Parse(pr_outboxinnerqty.Text))
                                     {
-                                        dh.UpdateByCondition("package", "pa_status=1,pa_totalqty=pa_currentqty,pa_packageqty=pa_currentqty,pa_weight='" + weight + "'", "pa_outboxcode='" + pa_outboxcode.Text + "'");
+                                        float weigh = float.Parse(weight.Text.Replace("kg", "").Trim());
+                                        dh.UpdateByCondition("package", "pa_status=1,pa_totalqty=pa_currentqty,pa_packageqty=pa_currentqty,pa_weight=" + weight + "", "pa_outboxcode='" + pa_outboxcode.Text + "'");
                                         pa_standardqty.Text = "";
                                         pa_status.Text = "1";
                                         OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "满箱封箱成功\n", Color.Green);
-                                        float weigh = float.Parse(weight.Text.Replace("kg", "").Trim());
                                         if (PR_CHECKCARTONW != "0")
                                         {
                                             if (!(weigh >= MinWeight && weigh <= MaxWeight))