diff --git a/AMESCoreStudio.Web/Controllers/QRSController.cs b/AMESCoreStudio.Web/Controllers/QRSController.cs index 87a69228..cfee432e 100644 --- a/AMESCoreStudio.Web/Controllers/QRSController.cs +++ b/AMESCoreStudio.Web/Controllers/QRSController.cs @@ -473,7 +473,7 @@ namespace AMESCoreStudio.Web.Controllers { stationList = stationList + rule_sation[j].StationID + ","; - wipDataList = wipDataList + "" + rule_sation[j].Station.StationName + ""; + wipDataList = wipDataList + "" + rule_sation[j].Station.StationName + ""; var wip_station = await _pcsApi.GetWipStation4QRS009Group(wip_id, rule_sation[j].StationID); @@ -512,7 +512,7 @@ namespace AMESCoreStudio.Web.Controllers } //stationQty = stationQty + "" + okQty + "/" + ngQty + ""; - stationQty = stationQty + "" + okQty + "/" + ngQty + ""; + stationQty = stationQty + "" + okQty + "/" + ngQty + ""; double rate = ((okQty * 1.0) / (okQty + ngQty)) * 100; @@ -521,7 +521,7 @@ namespace AMESCoreStudio.Web.Controllers rate = 100; } - if (j == rule_sation.Count - 2) + if (j == rule_sation.Count - 1) { if (rate <= 90) { @@ -638,7 +638,7 @@ namespace AMESCoreStudio.Web.Controllers { wip_qty = 0; } - stationWip = stationWip + "" + wip_qty + ""; + stationWip = stationWip + "" + wip_qty + ""; } stationWip = stationWip + "
"; @@ -648,7 +648,6 @@ namespace AMESCoreStudio.Web.Controllers wipDataList = wipDataList + stationQty; wipDataList = wipDataList + stationRate; wipDataList = wipDataList + stationWip; - } } else diff --git a/AMESCoreStudio.Web/Views/QRS/QRS011A.cshtml b/AMESCoreStudio.Web/Views/QRS/QRS011A.cshtml index 42ec4686..d7ffe500 100644 --- a/AMESCoreStudio.Web/Views/QRS/QRS011A.cshtml +++ b/AMESCoreStudio.Web/Views/QRS/QRS011A.cshtml @@ -12,6 +12,59 @@
- @Html.Raw(ViewData["WipDataList"]) + +
+ + + + +
@Html.Raw(ViewData["WipDataList"])
+ + + diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/BarcodeInfoesController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/BarcodeInfoesController.cs index f08a4ca6..394cb32b 100644 --- a/AMESCoreStudio.WebApi/Controllers/AMES/BarcodeInfoesController.cs +++ b/AMESCoreStudio.WebApi/Controllers/AMES/BarcodeInfoesController.cs @@ -384,8 +384,12 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES { for (int i = 0; i < oldBarcodeItem.Count; i++) { - _context.BarcodeItems.Remove(oldBarcodeItem[i]); - await _context.SaveChangesAsync(); + try + { + _context.BarcodeItems.Remove(oldBarcodeItem[i]); + await _context.SaveChangesAsync(); + } + catch { } } }