Browse Source

调整aoi推入维修站

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

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

@@ -1040,7 +1040,11 @@ namespace UAS_MES_NEW.Make
                     {
                         if (LogicHandler.CheckStepSNAndMacode(ma_code.Text, User.UserSourceCode, item.SN, User.UserCode, out omakeCode, out oMsid, out oErrorMessage))
                         {
-                            string passStationRes = item.Result == "PASS" ? "OK" : "NG";
+                            string passStationRes = "OK";
+                            if (equiType == "AOI")
+                            {
+                                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