From bd78867d9f7e2a1a9fc7c82d549400d72012cf77 Mon Sep 17 00:00:00 2001 From: Marvin Date: Wed, 20 Dec 2023 23:13:04 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E7=94=9F=E4=BA=A7=E8=BF=9B?= =?UTF-8?q?=E5=BA=A6=E6=9F=A5=E8=AF=A2=EF=BC=8C=E5=A2=9E=E5=8A=A0Excel?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/QRSController.cs | 8 +-- AMESCoreStudio.Web/Views/QRS/QRS011A.cshtml | 54 ++++++++++++++++++- 2 files changed, 57 insertions(+), 5 deletions(-) diff --git a/AMESCoreStudio.Web/Controllers/QRSController.cs b/AMESCoreStudio.Web/Controllers/QRSController.cs index 87a69228..5841fcd2 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 + "
"; diff --git a/AMESCoreStudio.Web/Views/QRS/QRS011A.cshtml b/AMESCoreStudio.Web/Views/QRS/QRS011A.cshtml index 42ec4686..b1ca9f94 100644 --- a/AMESCoreStudio.Web/Views/QRS/QRS011A.cshtml +++ b/AMESCoreStudio.Web/Views/QRS/QRS011A.cshtml @@ -12,6 +12,58 @@
- @Html.Raw(ViewData["WipDataList"]) + +
+ + + + +
@Html.Raw(ViewData["WipDataList"])
+ +