Browse Source

箱号和在制表添加四舍五入后的净重

callm 3 weeks ago
parent
commit
97847413d8

+ 1 - 1
UAS_MES_YDCY/FunctionCode/Make/Make_SNLabelCheckMidBox.cs

@@ -268,7 +268,7 @@ namespace UAS_MES_NEW.Make
                                     OperateResult.AppendText(">>中箱" + sn_code.Text + "重量检测检测合格\n", Color.Green);
                                     LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, ma_code.Text, User.UserLineCode, User.UserSourceCode, "中箱称重:" + weight.Text, "称量合格", sn_code.Text, "");
                                     LogicHandler.RecordProdWeight(sn_code.Text, "SN", float.Parse(ActualWeight.ToString()), "kg", User.UserLineCode, ma_prodcode.Text, User.UserSourceCode, User.UserName);
-                                    dh.ExecuteSql("update makeserial set ms_grossw='" + ActualWeight + "' where ms_id='" + oMsid + "'", "update");
+                                    dh.ExecuteSql("update makeserial set ms_midboxweight='" + ActualWeight + "',ms_roundmidboxweight=round('" + ActualWeight + "') where ms_id='" + oMsid + "'", "update");
                                 }
                                 else
                                 {

+ 1 - 1
UAS_MES_YDCY/FunctionCode/Packing/Packing_PackageCollectionPallet.cs

@@ -491,7 +491,7 @@ namespace UAS_MES_NEW.Packing
                                                 OperateResult.AppendText(">>栈板" + pa_outboxcode.Text + "重量检测检测合格\n", Color.Green);
                                                 LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, ms_makecode, User.UserLineCode, User.UserSourceCode, "栈板称重:" + weight.Text, "称量合格", pa_outboxcode.Text, "");
                                                 LogicHandler.RecordProdWeight(pa_outboxcode.Text, "SN", float.Parse(ActualWeight.ToString()), "kg", User.UserLineCode, pr_code.Text, User.UserSourceCode, User.UserName);
-                                                dh.ExecuteSql("update makeserial set ms_grossw='" + ActualWeight + "' where ms_id='" + oMsID + "'", "update");
+                                                dh.ExecuteSql("update package set PA_WEIGHT='" + ActualWeight + "',pa_roundweight=round('" + ActualWeight + "') where pa_outboxcode='" + pa_outboxcode.Text + "'", "update");
                                             }
                                             else
                                             {