|
@ -1725,8 +1725,8 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES |
|
|
// 判斷是否符合區間
|
|
|
// 判斷是否符合區間
|
|
|
if (barcodeItemKPDto.inputKP[i].Length == 12) |
|
|
if (barcodeItemKPDto.inputKP[i].Length == 12) |
|
|
{ |
|
|
{ |
|
|
if (!(Convert.ToInt32(wipMAC.Value.StartNO, 16) <= Convert.ToInt32(barcodeItemKPDto.inputKP[i].Substring(7, 6), 16) |
|
|
if (!(Convert.ToInt32(wipMAC.Value.StartNO, 16) <= Convert.ToInt32(barcodeItemKPDto.inputKP[i].Substring(6, 6), 16) |
|
|
&& Convert.ToInt32(barcodeItemKPDto.inputKP[i].Substring(7, 6), 16) <= Convert.ToInt32(wipMAC.Value.EndNO, 16))) |
|
|
&& Convert.ToInt32(barcodeItemKPDto.inputKP[i].Substring(6, 6), 16) <= Convert.ToInt32(wipMAC.Value.EndNO, 16))) |
|
|
{ |
|
|
{ |
|
|
CheckMsg += "組件序號【" + barcodeItemKPDto.inputKP[i] + "】 與工單設定MAC區間不符合 </br>"; |
|
|
CheckMsg += "組件序號【" + barcodeItemKPDto.inputKP[i] + "】 與工單設定MAC區間不符合 </br>"; |
|
|
} |
|
|
} |
|
|