From 4de6e7cad0e79427e8afb84608f67c47d994d070 Mon Sep 17 00:00:00 2001 From: 10191 <506754232@qq.com> Date: Sat, 25 Apr 2026 11:58:13 +0800 Subject: [PATCH] =?UTF-8?q?hsse=E7=95=8C=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx.cs b/SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx.cs index b4b730a0..a5345346 100644 --- a/SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx.cs +++ b/SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx.cs @@ -56,8 +56,11 @@ namespace FineUIPro.Web // int AllCount = getEmployInOutRecords.Count(); var getallin = APIPageDataService.getPersonNum(ProjectId, DateTime.Now); - int AllCount = getallin.Count(); - + //int AllCount = getallin.Count(); + var AllCount = (from x in Funs.DB.T_d_EmployInOutRecord + join y in Funs.DB.SitePerson_Person on new { ss1 = x.ProjectId, ss = x.IDCardNo } equals new { ss1 = y.ProjectId, ss = y.IdentityCard } + where y.ProjectId == this.CurrUser.LoginProjectId && y.IsUsed == true && x.ProjectId == this.CurrUser.LoginProjectId && x.RecordDate.Value == DateTime.Now.Date + select x.IDCardNo).Distinct().Count(); if (AllCount > 0) { ////总人数