Browse Source

优化不良品过站

yhluo 3 months ago
parent
commit
1752edc009
1 changed files with 2 additions and 1 deletions
  1. 2 1
      UAS_MES_BG/FunctionCode/Make/Make_ParseLog.cs

+ 2 - 1
UAS_MES_BG/FunctionCode/Make/Make_ParseLog.cs

@@ -1040,7 +1040,8 @@ namespace UAS_MES_NEW.Make
                     {
                         if (LogicHandler.CheckStepSNAndMacode(ma_code.Text, User.UserSourceCode, item.SN, User.UserCode, out omakeCode, out oMsid, out oErrorMessage))
                         {
-                            if (LogicHandler.SetStepResult(omakeCode, User.UserSourceCode, item.SN, "日志解析", "OK", User.UserCode, out oErrorMessage))
+                            string passStationRes = item.Result == "PASS" ? "OK" : "NG";
+                            if (LogicHandler.SetStepResult(omakeCode, User.UserSourceCode, item.SN, "日志解析", passStationRes, User.UserCode, out oErrorMessage))
                             {
                                 string sqlStr = $@"select ma_code,nvl(mcd_okqty,0) mcd_okqty,ma_prodcode,pr_detail,ma_qty - nvl(mcd_okqty, 0) remain_qty 
                                         from make left join makecraftdetail on mcd_maid=ma_id left join product on pr_code = ma_prodcode