瀏覽代碼

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

Hcsy 8 年之前
父節點
當前提交
18aca5a0bc
共有 1 個文件被更改,包括 1 次插入0 次删除
  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))