From 625f1860efc0781ffb8b5b0b60631cc24634d5dc Mon Sep 17 00:00:00 2001 From: "754998852@qq.com" <754998852@qq.com> Date: Fri, 1 Nov 2024 09:52:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE=E7=9C=8B?= =?UTF-8?q?=E6=9D=BF=E5=9C=A8=E7=BA=BF=E4=BA=BA=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/FineUIPro.Web/common/mainProject2.aspx.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/SGGL/FineUIPro.Web/common/mainProject2.aspx.cs b/SGGL/FineUIPro.Web/common/mainProject2.aspx.cs index 1bd00c04..f2606cd6 100644 --- a/SGGL/FineUIPro.Web/common/mainProject2.aspx.cs +++ b/SGGL/FineUIPro.Web/common/mainProject2.aspx.cs @@ -140,8 +140,16 @@ namespace FineUIPro.Web.common { int AllCount = 0; int MCount = 0; - var getallin = APIPageDataService.getPersonNum(ProjectId, DateTime.Now); - AllCount = getallin.Count(); + //修改日期2024-10-30 16:53:50 为了和另一个看板相同 + //Funs.DB.T_d_EmployInOutRecord.Where(x => x.ProjectId == this.CurrUser.LoginProjectId && x.RecordDate.Value == DateTime.Now.Date) + //var getallin = APIPageDataService.getPersonNum(ProjectId, DateTime.Now); + + var getallin = from x in Funs.DB.T_d_EmployInOutRecord + join z in Funs.DB.Base_WorkPost on x.PostId equals z.WorkPostId + where x.ProjectId == this.CurrUser.LoginProjectId && x.RecordDate.Value == DateTime.Now.Date + select new { z.PostType }; + + AllCount = getallin.Count(); if (AllCount > 0) { MCount = getallin.Where(x => x.PostType == Const.PostType_1).Count();