Browse Source

修改排序BUG

章政 8 years ago
parent
commit
54a6b5f524
1 changed files with 1 additions and 1 deletions
  1. 1 1
      UAS-MES/FunctionCode/Special/Special_CancelCollection.cs

+ 1 - 1
UAS-MES/FunctionCode/Special/Special_CancelCollection.cs

@@ -39,7 +39,7 @@ namespace UAS_MES.Special
                 string ms_id = dt.Rows[0]["ms_id"].ToString();
                 string ms_id = dt.Rows[0]["ms_id"].ToString();
                 sql.Clear();
                 sql.Clear();
                 sql.Append("select cd_stepcode from craft left join craftdetail on cr_id=cd_crid where ");
                 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");
                 dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
                 if (ms_stepcode == dt.Rows[0]["cd_stepcode"].ToString())
                 if (ms_stepcode == dt.Rows[0]["cd_stepcode"].ToString())
                 {
                 {