|
|
@ -423,7 +423,6 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES |
|
|
|
else |
|
|
|
barCodeCheckDto.ruleStatus = "P"; |
|
|
|
|
|
|
|
|
|
|
|
var result_CUTableMsg = await CU_Tables(barCodeCheckDto, burnIn); |
|
|
|
if (!string.IsNullOrWhiteSpace(result_CUTableMsg)) |
|
|
|
{ |
|
|
@ -669,16 +668,17 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 判斷下一站為完工站
|
|
|
|
if (CheckNextStopCloseStation(barCodeCheckDto.wipNo, barCodeCheckDto.unitNo, barCodeCheckDto.stationID).Result.Success) |
|
|
|
if (barCodeCheckDto.ruleStatus == "P") |
|
|
|
{ |
|
|
|
var result_wipInfoAllClost = await CheckWipNoBarCodeAllClost(barCodeCheckDto.wipNo, barCodeCheckDto.unitNo, barCodeCheckDto.stationID); |
|
|
|
if (!result_wipInfoAllClost.Success) |
|
|
|
// 判斷下一站為完工站
|
|
|
|
if (CheckNextStopCloseStation(barCodeCheckDto.wipNo, barCodeCheckDto.unitNo, barCodeCheckDto.stationID).Result.Success) |
|
|
|
{ |
|
|
|
Msg += "wipInfosAllClost_Error:" + result_wipInfoAllClost.Msg + "<br/>"; |
|
|
|
|
|
|
|
var result_wipInfoAllClost = await CheckWipNoBarCodeAllClost(barCodeCheckDto.wipNo, barCodeCheckDto.unitNo, barCodeCheckDto.stationID); |
|
|
|
if (!result_wipInfoAllClost.Success) |
|
|
|
{ |
|
|
|
Msg += "wipInfosAllClost_Error:" + result_wipInfoAllClost.Msg + "<br/>"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -741,6 +741,15 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES |
|
|
|
StatusNo = StatusNo, |
|
|
|
CreateUserID = barCodeCheckDto.userID |
|
|
|
}; |
|
|
|
|
|
|
|
if (barCodeCheckDto.ruleStatus == "P") |
|
|
|
{ |
|
|
|
if (CheckNextStopCloseStation(barCodeCheckDto.wipNo, barCodeCheckDto.unitNo, barCodeCheckDto.stationID).Result.Success) |
|
|
|
{ |
|
|
|
barcodeInfo.StatusID = -1; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return await barcodeInfoesController.PostBarcodeInfoes(barcodeInfo); |
|
|
|
} |
|
|
|
// 更新
|
|
|
@ -753,9 +762,13 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES |
|
|
|
barcodeInfo.StatusID = 1; |
|
|
|
if (!string.IsNullOrWhiteSpace(barCodeCheckDto.extNo)) |
|
|
|
barcodeInfo.ExtraBarcodeNo = barCodeCheckDto.extNo; |
|
|
|
if (CheckNextStopCloseStation(barCodeCheckDto.wipNo, barCodeCheckDto.unitNo, barCodeCheckDto.stationID).Result.Success) |
|
|
|
|
|
|
|
if (barCodeCheckDto.ruleStatus == "P") |
|
|
|
{ |
|
|
|
barcodeInfo.StatusID = -1; |
|
|
|
if (CheckNextStopCloseStation(barCodeCheckDto.wipNo, barCodeCheckDto.unitNo, barCodeCheckDto.stationID).Result.Success) |
|
|
|
{ |
|
|
|
barcodeInfo.StatusID = -1; |
|
|
|
} |
|
|
|
} |
|
|
|
return await barcodeInfoesController.PutBarcodeInfoes(barcodeInfo); |
|
|
|
} |
|
|
|