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;