|
@ -337,12 +337,9 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES |
|
|
data.barcodeType = "M"; |
|
|
data.barcodeType = "M"; |
|
|
// 生產單位_簡碼
|
|
|
// 生產單位_簡碼
|
|
|
data.factoryUnit_UnitCode = _context.FactoryUnits.Where(w => w.UnitNo == WipInfo.UnitNO).FirstOrDefault().UnitCode ?? ""; |
|
|
data.factoryUnit_UnitCode = _context.FactoryUnits.Where(w => w.UnitNo == WipInfo.UnitNO).FirstOrDefault().UnitCode ?? ""; |
|
|
foreach (var item in InhouseDetail) |
|
|
foreach (var item in InhouseDetail.Select(s => s.SerialNo).Distinct()) |
|
|
{ |
|
|
{ |
|
|
// 用箱號抽驗
|
|
|
var BarcodeNo = await _context.BarcodeInfoes.Where(w => w.BoxNo == item).ToListAsync(); |
|
|
if (item.SerialType == "B") |
|
|
|
|
|
{ |
|
|
|
|
|
var BarcodeNo = await _context.BarcodeInfoes.Where(w => w.BoxNo == item.SerialNo).ToListAsync(); |
|
|
|
|
|
foreach (var barcode in BarcodeNo) |
|
|
foreach (var barcode in BarcodeNo) |
|
|
{ |
|
|
{ |
|
|
data.unitNo = WipInfo.UnitNO; |
|
|
data.unitNo = WipInfo.UnitNO; |
|
@ -366,7 +363,6 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
resultModel.Msg = $"該筆工單號碼【{InhouseMaster.WipNo}】,無設定FQC站別"; |
|
|
resultModel.Msg = $"該筆工單號碼【{InhouseMaster.WipNo}】,無設定FQC站別"; |
|
|