From 416366935c166873a9665112f3793751b50423bb Mon Sep 17 00:00:00 2001 From: fly-l <1420031550@qq.com> Date: Tue, 14 Nov 2023 11:53:38 +0800 Subject: [PATCH] 2023-11-14 --- SGGL/FineUIPro.Web/common/main_new0.aspx.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SGGL/FineUIPro.Web/common/main_new0.aspx.cs b/SGGL/FineUIPro.Web/common/main_new0.aspx.cs index 602f5250..e89c0e3c 100644 --- a/SGGL/FineUIPro.Web/common/main_new0.aspx.cs +++ b/SGGL/FineUIPro.Web/common/main_new0.aspx.cs @@ -346,6 +346,9 @@ namespace FineUIPro.Web.common public static string GetMajorZgl() { var num1 = Math.Round(100.0 * GetMajorClosedNum() / (GetMajorClosedNum() + GetMajorNotClosedNum()), 0).ToString(); + if (num1 == "NaN") num1 = "0"; + + return num1; }