|
|
@@ -196,7 +196,7 @@ namespace UAS_MES.Make
|
|
|
dt = (DataTable)dh.ExecuteSql("select ms_status,ms_id,ms_makecode,ms_nextstepcode,ms_craftcode,ms_prodcode,nvl(ms_checkpack,0) ms_checkpack from makeserial where ms_sncode ='" + sn_code.Text + "' order by ms_id desc", "select");
|
|
|
if (LogicHandler.CheckStepSNAndMacode("", User.UserSourceCode, sn_code.Text, User.UserCode, out oMakeCode, out oMsID, out ErrorMessage) || (dt.Rows.Count > 0 && dt.Rows[0]["ms_status"].ToString() == "2"))
|
|
|
{
|
|
|
- if (oMsID == "" || oMsID == "null" || oMsID == "0")
|
|
|
+ if (oMsID == "" || oMsID == "null" || oMsID == "0"|| (dt.Rows.Count > 0 && dt.Rows[0]["ms_status"].ToString() == "2"))
|
|
|
{
|
|
|
oMsID = dt.Rows[0]["ms_id"].ToString();
|
|
|
oMsStatus = dt.Rows[0]["ms_status"].ToString();
|