From f778c5df4812d96416e93cc0b1739f8261620802 Mon Sep 17 00:00:00 2001 From: xiaju <1784803958@qq.com> Date: Wed, 28 May 2025 11:21:57 +0800 Subject: [PATCH] 1 --- SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx.cs | 7 +++++-- SGGL/FineUIPro.Web/common/mainProject2.aspx.cs | 4 +--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx.cs b/SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx.cs index bed3d86f..fd948750 100644 --- a/SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx.cs +++ b/SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx.cs @@ -52,9 +52,12 @@ namespace FineUIPro.Web /// private void getSitePerson() { + //var getEmployInOutRecords = Funs.DB.T_d_EmployInOutRecord.Where(x => x.ProjectId == this.ProjectId && x.RecordDate.Value == DateTime.Now.Date).ToList(); + // int AllCount = getEmployInOutRecords.Count(); + + var getallin = APIPageDataService.getPersonNum(ProjectId, DateTime.Now); + int AllCount = getallin.Count(); - var getEmployInOutRecords = Funs.DB.T_d_EmployInOutRecord.Where(x => x.ProjectId == this.ProjectId && x.RecordDate.Value == DateTime.Now.Date).ToList(); - int AllCount = getEmployInOutRecords.Count(); if (AllCount > 0) { ////总人数 diff --git a/SGGL/FineUIPro.Web/common/mainProject2.aspx.cs b/SGGL/FineUIPro.Web/common/mainProject2.aspx.cs index 0f2d656c..fb16822d 100644 --- a/SGGL/FineUIPro.Web/common/mainProject2.aspx.cs +++ b/SGGL/FineUIPro.Web/common/mainProject2.aspx.cs @@ -263,9 +263,7 @@ namespace FineUIPro.Web.common { int AllCount = 0; int MCount = 0; - List pids = new List(); - pids.Add(this.CurrUser.LoginProjectId); - var getallin = APIPageDataService.getPersonNum(pids, DateTime.Now); + var getallin = APIPageDataService.getPersonNum(ProjectId, DateTime.Now); //int AllCount = 0; //int MCount = 0;