浏览代码

添加单位

章政 8 年之前
父节点
当前提交
aaed32fa59
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      UAS-MES/FunctionCode/Make/Make_CartonBoxWeigh.cs
  2. 2 2
      UAS-MES/FunctionCode/Make/Make_ColorBoxWeigh.cs

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

@@ -127,9 +127,9 @@ namespace UAS_MES.Make
                     MinWeight = double.Parse(_minweight == "" ? "0" : _minweight);
                     pa_totalqty = int.Parse(dt.Rows[0]["pa_totalqty"].ToString());
                     if (Weight - MinWeight == MaxWeight - Weight)
-                        pr_cartongw.Text = Weight + "±" + (MaxWeight - Weight);
+                        pr_cartongw.Text = Weight + "±" + (MaxWeight - Weight) + dt.Rows[0]["pr_cartonunit"].ToString();
                     else
-                        pr_cartongw.Text = MinWeight + "-" + MaxWeight;
+                        pr_cartongw.Text = MinWeight + "-" + MaxWeight + dt.Rows[0]["pr_cartonunit"].ToString();
                     //if (pr_cartonunit.Text == "kg")
                     //{
                     //    weight.Text = (float.Parse(weight.Text) / 1000).ToString();

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

@@ -102,9 +102,9 @@ namespace UAS_MES.Make
                         MinWeight = double.Parse(_minweight == "" ? "0" : _minweight);
                         BaseUtil.SetFormValue(this.Controls, dt);
                         if (Weight - MinWeight == MaxWeight - Weight)
-                            pr_colorboxgw.Text = Weight + "±" + (MaxWeight - Weight);
+                            pr_colorboxgw.Text = Weight + "±" + (MaxWeight - Weight) + dt.Rows[0]["pr_colorboxunit"].ToString();
                         else
-                            pr_colorboxgw.Text = MinWeight + "-" + MaxWeight;
+                            pr_colorboxgw.Text = MinWeight + "-" + MaxWeight + dt.Rows[0]["pr_colorboxunit"].ToString();
                         string oMakeCode = "";
                         string oMsID = "";
                         if (LogicHandler.CheckStepSNAndMacode(ms_makecode.Text, User.UserSourceCode, sncode.Text, User.UserCode, out oMakeCode, out oMsID, out ErrorMessage))