Browse Source

1. 修正FQC過站處理

master
Sai 1 year ago
parent
commit
8ec60bf680
  1. 25
      AMESCoreStudio.WebApi/Controllers/BLL/BarCodeCheckNewController.cs

25
AMESCoreStudio.WebApi/Controllers/BLL/BarCodeCheckNewController.cs

@ -496,19 +496,20 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES
// 有序號開入庫單 // 有序號開入庫單
if (InhouseDetail.Count != 0) if (InhouseDetail.Count != 0)
{ {
foreach (var item in InhouseDetail) foreach (var item in InhouseDetail.Select(s => s.SerialNo).Distinct())
{
// 用箱號抽驗
if (item.SerialType == "B")
{
BarcodeNo = _context.BarcodeInfoes.Where(w => w.BoxNo == item.SerialNo).ToList();
}
// 條碼
else
{ {
BarcodeNo = await _context.BarcodeInfoes.Where(w => w.BarcodeNo == item.SerialNo && BarcodeNo = _context.BarcodeInfoes.Where(w => w.BoxNo == item).ToList();
w.WipID == WipInfo.WipID).ToListAsync(); //// 用箱號抽驗
} //if (item.SerialType == "B")
//{
// BarcodeNo = _context.BarcodeInfoes.Where(w => w.BoxNo == item.SerialNo).ToList();
//}
//// 條碼
//else
//{
// BarcodeNo = await _context.BarcodeInfoes.Where(w => w.BarcodeNo == item.SerialNo &&
// w.WipID == WipInfo.WipID).ToListAsync();
//}
foreach (var barcode in BarcodeNo) foreach (var barcode in BarcodeNo)
{ {

Loading…
Cancel
Save