Browse Source

接口中不良品加设置状态为3

shim 8 years ago
parent
commit
e08a72c0f4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      MES接口/LogicHandler.cs

+ 2 - 0
MES接口/LogicHandler.cs

@@ -369,6 +369,8 @@ namespace MES_Interface
                         sql.Append("sp_soncode,'0' from make left join makeSerial on ms_makecode=ma_code left join stepProduct on ");
                         sql.Append("sp_mothercode=ma_prodcode and sp_stepcode=ms_nextstepcode where ms_sncode='" + iSN + "'");
                         dh.BatchInsert(sql.ToString(), new string[] { "bc_code"}, BadCode);
+                        //将不良的序列号的状态码设为3
+                        dh.ExecuteSql("update makeserial set ms_status='3' where ms_sncode=:sncode","update",iSN);
                     }
                     break;
                 default: