Przeglądaj źródła

称重单位异常修改

callm 4 dni temu
rodzic
commit
33e9f99cf2

+ 1 - 1
UAS_MES_JH/FunctionCode/Make/Make_ColorBoxWeigh.cs

@@ -200,7 +200,7 @@ namespace UAS_MES_NEW.Make
                             //    WeightChange = true;
                             //}
                             //重量信息若需要检测则必须符合检测要求才更新
-                            double ActualWeight = double.Parse(weight.Text == "" ? "0" : weight.Text.Replace("kg", "").Trim());
+                            double ActualWeight = double.Parse(weight.Text == "" ? "0" : weight.Text.ToLower().Replace("kg", "").Trim());
                             if (PR_CHECKCOLORBOXW != "0")
                             {
                                 if (MinWeight == 0 || MaxWeight == 0)