瀏覽代碼

修改获取返工状态为0的SN

callm 1 月之前
父節點
當前提交
4d7472f55e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      UAS-MES/PublicMethod/LogicHandler.cs

+ 1 - 1
UAS-MES/PublicMethod/LogicHandler.cs

@@ -441,7 +441,7 @@ namespace UAS_MES.PublicMethod
             oMakeCode = "";
             oMakeCode = "";
             oErrorMessage = "";
             oErrorMessage = "";
             oStatus = "";
             oStatus = "";
-            DataTable dt = dh.getFieldsDataByCondition("MakeSerial", new string[] { "ms_makecode", "ms_status" }, "ms_id=(select max(ms_id) from makeserial where ms_sncode='" + iSnCode + "' and ms_status in (1,3) and nvl(ms_nextmacode,' ')=' ' )");
+            DataTable dt = dh.getFieldsDataByCondition("MakeSerial", new string[] { "ms_makecode", "ms_status" }, "ms_id=(select max(ms_id) from makeserial where ms_sncode='" + iSnCode + "' and ms_status in (0,1,3) and nvl(ms_nextmacode,' ')=' ' )");
             if (dt.Rows.Count > 0)
             if (dt.Rows.Count > 0)
             {
             {
                 oMakeCode = dt.Rows[0]["ms_makecode"].ToString();
                 oMakeCode = dt.Rows[0]["ms_makecode"].ToString();