Browse Source

去除重量的限制

章政 8 years ago
parent
commit
642ab706c8
1 changed files with 3 additions and 8 deletions
  1. 3 8
      UAS-MES/FunctionCode/Make/Make_SpecialCartonPack.cs

+ 3 - 8
UAS-MES/FunctionCode/Make/Make_SpecialCartonPack.cs

@@ -206,14 +206,9 @@ namespace UAS_MES.Make
                         //满箱更新状态为1
                         //满箱更新状态为1
                         if (int.Parse(pa_currentqty.Text == "" ? "0" : pa_currentqty.Text) + 1 == int.Parse(pr_outboxinnerqty.Text))
                         if (int.Parse(pa_currentqty.Text == "" ? "0" : pa_currentqty.Text) + 1 == int.Parse(pr_outboxinnerqty.Text))
                         {
                         {
-                            //检查重量合格
-                            if (float.Parse(weight.Text) > MinWeight && float.Parse(weight.Text) < MaxWeight)
-                            {
-                                dh.UpdateByCondition("package", "pa_status=1", "pa_outboxcode='" + pa_outboxcode.Text + "'");
-                                if (AutoPrint.Checked)
-                                    Print_Click(new object(), new EventArgs());
-                            }
-                            else OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "重量不符合标准重量\n", Color.Red);
+                            dh.UpdateByCondition("package", "pa_status=1,pa_weight='" + weight.Text + "'", "pa_outboxcode='" + pa_outboxcode.Text + "'");
+                            if (AutoPrint.Checked)
+                                Print_Click(new object(), new EventArgs());
                         }
                         }
                         LoadGridData();
                         LoadGridData();
                         sn_code.Clear();
                         sn_code.Clear();