|
|
@@ -164,8 +164,11 @@ namespace UAS_MES.Make
|
|
|
}
|
|
|
}
|
|
|
else OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red);
|
|
|
- //称量是否通过都记录重量
|
|
|
- dh.ExecuteSql("update makeserial set ms_grossw='" + ActualWeight + "' where ms_id='" + oMsID + "'", "update");
|
|
|
+ //称量是否通过都记录重量,重量大于0是更新重量字段数据
|
|
|
+ if (ActualWeight > 0)
|
|
|
+ {
|
|
|
+ dh.ExecuteSql("update makeserial set ms_grossw='" + ActualWeight + "' where ms_id='" + oMsID + "'", "update");
|
|
|
+ }
|
|
|
LoadCollectedNum();
|
|
|
sncode.Clear();
|
|
|
}
|