From bd78867d9f7e2a1a9fc7c82d549400d72012cf77 Mon Sep 17 00:00:00 2001 From: Marvin Date: Wed, 20 Dec 2023 23:13:04 +0800 Subject: [PATCH 1/3] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E8=BF=9B=E5=BA=A6=E6=9F=A5=E8=AF=A2=EF=BC=8C=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?Excel=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"])
+ + From b9455dd67e1a4b4f7b5880d7ef884e353ce97be3 Mon Sep 17 00:00:00 2001 From: Marvin Date: Thu, 21 Dec 2023 12:10:09 +0800 Subject: [PATCH 2/3] =?UTF-8?q?1.=E9=87=8D=E6=96=B0=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AMESCoreStudio.Web/Controllers/QRSController.cs | 1 - AMESCoreStudio.Web/Views/QRS/QRS011A.cshtml | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/AMESCoreStudio.Web/Controllers/QRSController.cs b/AMESCoreStudio.Web/Controllers/QRSController.cs index 5841fcd2..cfee432e 100644 --- a/AMESCoreStudio.Web/Controllers/QRSController.cs +++ b/AMESCoreStudio.Web/Controllers/QRSController.cs @@ -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 b1ca9f94..d7ffe500 100644 --- a/AMESCoreStudio.Web/Views/QRS/QRS011A.cshtml +++ b/AMESCoreStudio.Web/Views/QRS/QRS011A.cshtml @@ -22,6 +22,7 @@ +