Browse Source

彩盒称重,重量单位更换时的标志变量修改

Hcsy 8 years ago
parent
commit
18aca5a0bc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      UAS-MES/FunctionCode/Make/Make_ColorBoxWeigh.cs

+ 1 - 0
UAS-MES/FunctionCode/Make/Make_ColorBoxWeigh.cs

@@ -126,6 +126,7 @@ namespace UAS_MES.Make
                             if (pr_colorboxunit.Text == "kg" && !WeightChange)
                             {
                                 weight.Text = (float.Parse(weight.Text) / 1000).ToString();
+                                WeightChange = true;
                             }
                             double ActualWeight = double.Parse(weight.Text == "" ? "0" : weight.Text);
                             if ((ActualWeight >= MinWeight) && (ActualWeight <= MaxWeight))