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) { ////总人数