fix:项目级

This commit is contained in:
geh
2025-03-27 18:14:38 +08:00
parent d3022cef86
commit b928a597c4
7 changed files with 72 additions and 32 deletions
+6 -6
View File
@@ -847,17 +847,17 @@ namespace FineUIPro.Web.common
{
if (pids == null)
{
var znum = (from x in Funs.DB.GJSX select x).Count();
var znum = (from x in Funs.DB.GJSX where x.State != "1" select x).Count();
divGjsxzj.InnerHtml = znum.ToString();
var dqnum = (from x in Funs.DB.GJSX
where x.CompleteDate <= DateTime.Now
where x.CompleteDate <= DateTime.Now && x.State != "1"
select x).Count().ToString();
divGjsxdq.InnerHtml = dqnum;
var wzdnum = (from x in Funs.DB.GJSX
where x.CompleteDate <= DateTime.Now
&& x.State != "0"
&& x.State != "0" && x.State != "1"
select x).Count().ToString();
divGjsxwzd.InnerHtml = wzdnum;
@@ -870,18 +870,18 @@ namespace FineUIPro.Web.common
else
{
var znum = (from x in Funs.DB.GJSX
where pids.Contains(x.ProjectId)
where pids.Contains(x.ProjectId) && x.State != "1"
select x).Count();
divGjsxzj.InnerHtml = znum.ToString();
var dqnum = (from x in Funs.DB.GJSX
where x.CompleteDate <= DateTime.Now && pids.Contains(x.ProjectId)
where x.CompleteDate <= DateTime.Now && pids.Contains(x.ProjectId) && x.State != "1"
select x).Count().ToString();
divGjsxdq.InnerHtml = dqnum;
var wzdnum = (from x in Funs.DB.GJSX
where x.CompleteDate <= DateTime.Now
&& x.State != "0" && pids.Contains(x.ProjectId)
&& x.State != "0" && pids.Contains(x.ProjectId) && x.State != "1"
select x).Count().ToString();
divGjsxwzd.InnerHtml = wzdnum;