Explorar o código

调整aoi推入维修站

yhluo hai 3 meses
pai
achega
1f140b3ea9
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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