From d5d15e9421e3074756a8343042d7a0b55f127564 Mon Sep 17 00:00:00 2001 From: Marvin Date: Wed, 1 Jun 2022 10:26:42 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E5=9C=A8=E5=88=B6=E5=93=81?= =?UTF-8?q?=E5=88=86=E5=B8=83=E5=9B=BE=E7=AD=89=E8=89=AF=E7=8E=87=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=9D=9E=E6=95=B0=E5=80=BC=E6=94=B9=E4=B8=BA100%=202.?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=B4=E4=BF=AE=E8=BF=9B=E5=87=BA=E6=9D=A1?= =?UTF-8?q?=E7=A0=81=E6=9F=A5=E8=AF=A2=E7=9A=84UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AMESCoreStudio.Web/Controllers/QRSController.cs | 10 ++++++++++ AMESCoreStudio.Web/Views/REP/REP005.cshtml | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/AMESCoreStudio.Web/Controllers/QRSController.cs b/AMESCoreStudio.Web/Controllers/QRSController.cs index 8feb02e0..dfc64413 100644 --- a/AMESCoreStudio.Web/Controllers/QRSController.cs +++ b/AMESCoreStudio.Web/Controllers/QRSController.cs @@ -115,6 +115,11 @@ namespace AMESCoreStudio.Web.Controllers double rate = ((okQty * 1.0) / (okQty + ngQty)) * 100; + if (okQty + ngQty == 0) + { + rate = 100; + } + if (j == rule_sation.Count - 2) { if (rate <= 90) @@ -412,6 +417,11 @@ namespace AMESCoreStudio.Web.Controllers double rate = ((okQty * 1.0) / (okQty + ngQty)) * 100; + if (okQty + ngQty == 0) + { + rate = 100; + } + if (j == rule_sation.Count - 2) { if (rate <= 90) diff --git a/AMESCoreStudio.Web/Views/REP/REP005.cshtml b/AMESCoreStudio.Web/Views/REP/REP005.cshtml index d13f3468..4ea990c0 100644 --- a/AMESCoreStudio.Web/Views/REP/REP005.cshtml +++ b/AMESCoreStudio.Web/Views/REP/REP005.cshtml @@ -38,7 +38,7 @@
-
+
@@ -66,7 +66,7 @@
-
+