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 @@
-
+