|
|
@@ -496,9 +496,15 @@ namespace UAS_MES.Make
|
|
|
}
|
|
|
}
|
|
|
//如果之前是良品的
|
|
|
- dt = dh.getFieldsDataByCondition("makeserial", new string[] { "ms_status", "ms_checkno" }, "ms_id='" + oMSID + "' and ms_stepcode='" + User.CurrentStepCode + "'");
|
|
|
+ dt = dh.getFieldsDataByCondition("makeserial", new string[] { "ms_status", "ms_checkno","ms_outboxcode" }, "ms_id='" + oMSID + "' and ms_stepcode='" + User.CurrentStepCode + "'");
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
+ string ms_outboxcode = dt.Rows[0]["ms_outboxcode"].ToString();
|
|
|
+ if (ms_outboxcode != "")
|
|
|
+ {
|
|
|
+ OperateResult.AppendText(">>SN已装箱"+ms_outboxcode+",采集不良请先解除装箱\n",Color.Red);
|
|
|
+ return;
|
|
|
+ }
|
|
|
string status = dt.Rows[0]["ms_status"].ToString();
|
|
|
if (status == "1" || status == "2")
|
|
|
{
|