|
|
@@ -39,7 +39,7 @@ namespace UAS_MES.Special
|
|
|
string ms_id = dt.Rows[0]["ms_id"].ToString();
|
|
|
sql.Clear();
|
|
|
sql.Append("select cd_stepcode from craft left join craftdetail on cr_id=cd_crid where ");
|
|
|
- sql.Append("cr_prodcode='" + pr_code + "' and cr_code='" + cr_code + "' and rownum=1 order by cd_detno ");
|
|
|
+ sql.Append("cr_prodcode='" + pr_code + "' and cr_code='" + cr_code + "' order by cd_detno ");
|
|
|
dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
|
|
|
if (ms_stepcode == dt.Rows[0]["cd_stepcode"].ToString())
|
|
|
{
|