From 2e68d7b7d249991a3337dbcd8e9b441ec87df825 Mon Sep 17 00:00:00 2001 From: 10191 <506754232@qq.com> Date: Wed, 21 Jun 2023 16:11:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E6=A0=87=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx.cs b/SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx.cs index b47823a4..95997aee 100644 --- a/SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx.cs +++ b/SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx.cs @@ -250,8 +250,7 @@ namespace FineUIPro.Web group by b.RegisterTypesName"; DataTable tb = SQLHelper.GetDataTableRunText(strSql, null); - var getTypes = HSSE_Hazard_HazardRegisterTypesService.GetHazardRegisterTypesList("1"); - if (tb!=null && tb.Rows.Count>0) + if (tb!=null && tb.Rows.Count>0) { foreach (DataRow item in tb.Rows) { @@ -261,8 +260,7 @@ namespace FineUIPro.Web listTAll.Add(int.Parse(item["allr"].ToString())); listTNo.Add(int.Parse(item["allr"].ToString()) - int.Parse(item["finish"].ToString())); } - CheckTypeALLCount = JsonConvert.SerializeObject(listTAll); - CheckTypeNoCount = JsonConvert.SerializeObject(listTNo); + } else { @@ -271,8 +269,8 @@ namespace FineUIPro.Web listTNo.Add(0); } CheckType = JsonConvert.SerializeObject(listType); - CheckTypeALLCount = JsonConvert.SerializeObject(CheckTypeALLCount); - CheckTypeNoCount = JsonConvert.SerializeObject(CheckTypeNoCount); + CheckTypeALLCount = JsonConvert.SerializeObject(listTAll); + CheckTypeNoCount = JsonConvert.SerializeObject(listTNo); } #endregion