事项看板展示优化

This commit is contained in:
2025-03-24 16:57:46 +08:00
parent e863a39cde
commit 2c74bec311
7 changed files with 149 additions and 58 deletions
@@ -67,7 +67,7 @@ namespace FineUIPro.Web
businessColumn.title = "关键事项关闭率";
var allItems = from x in db.GJSX
where x.ProjectId == this.CurrUser.LoginProjectId
where x.ProjectId == this.CurrUser.LoginProjectId && x.State != "1"
orderby x.GJSXID
select x;
int closeNum = allItems.Where(x => x.State == "0").Count();
@@ -104,7 +104,7 @@ namespace FineUIPro.Web
businessColumn.xFontNum = 8;
var gjsxTypes = BLL.GJSXTypeService.GetGJSXTypeList();
var allItems = from x in Funs.DB.GJSX
where x.ProjectId == this.ProjectId
where x.ProjectId == this.ProjectId && x.State != "1"
select x;
Model.SingleSerie s = new Model.SingleSerie();
Model.SingleSerie s2 = new Model.SingleSerie();
@@ -143,11 +143,11 @@ namespace FineUIPro.Web
businessColumn.xFontNum = 5;
//var userIds = BLL.GJSXService.GetGJSXUserList(this.ProjectId);
var allItems = from x in Funs.DB.GJSX
where x.ProjectId == this.ProjectId
where x.ProjectId == this.ProjectId && x.State != "1"
select x;
//按照未关闭数取前10
var groupedUser = (from x in Funs.DB.GJSX
where x.ProjectId == this.ProjectId && x.State != "0"
where x.ProjectId == this.ProjectId && x.State != "0" && x.State != "1"
select x).GroupBy(p => p.User_Acceptance)
.Select(g => new
{
@@ -193,7 +193,7 @@ namespace FineUIPro.Web
Model.SGGLDB db = Funs.DB;
var gjsxTypes = BLL.GJSXTypeService.GetGJSXTypeList();
var allItems = from x in Funs.DB.GJSX
where x.ProjectId == this.ProjectId && (x.CloseDate ?? DateTime.Now) > Convert.ToDateTime(x.CompleteDate)
where x.ProjectId == this.ProjectId && x.State != "1" && (x.CloseDate ?? DateTime.Now) > Convert.ToDateTime(x.CompleteDate)
select x;
StringBuilder sb = new StringBuilder();
sb.Append("<table id=\"myTable\" class=\"myTableClass\" > ");
@@ -264,7 +264,7 @@ namespace FineUIPro.Web
Model.SGGLDB db = Funs.DB;
var gjsxTypes = BLL.GJSXTypeService.GetGJSXTypeList();
var allItems = from x in Funs.DB.GJSX
where x.ProjectId == this.ProjectId
where x.ProjectId == this.ProjectId && x.State != "1"
&& (x.CloseDate ?? DateTime.Now) > Convert.ToDateTime(x.CompleteDate)
&& (x.CloseDate ?? DateTime.Now) < Convert.ToDateTime(x.CompleteDate).AddDays(7)
select x;
@@ -300,7 +300,7 @@ namespace FineUIPro.Web
Model.SGGLDB db = Funs.DB;
var gjsxTypes = BLL.GJSXTypeService.GetGJSXTypeList();
var allItems = from x in Funs.DB.GJSX
where x.ProjectId == this.ProjectId
where x.ProjectId == this.ProjectId && x.State != "1"
&& (x.CloseDate ?? DateTime.Now) > Convert.ToDateTime(x.CompleteDate).AddDays(7)
&& (x.CloseDate ?? DateTime.Now) < Convert.ToDateTime(x.CompleteDate).AddDays(14)
select x;
@@ -336,7 +336,7 @@ namespace FineUIPro.Web
Model.SGGLDB db = Funs.DB;
var gjsxTypes = BLL.GJSXTypeService.GetGJSXTypeList();
var allItems = from x in Funs.DB.GJSX
where x.ProjectId == this.ProjectId
where x.ProjectId == this.ProjectId && x.State != "1"
&& (x.CloseDate ?? DateTime.Now) > Convert.ToDateTime(x.CompleteDate).AddDays(14)
&& (x.CloseDate ?? DateTime.Now) < Convert.ToDateTime(x.CompleteDate).AddDays(21)
select x;
@@ -372,7 +372,7 @@ namespace FineUIPro.Web
Model.SGGLDB db = Funs.DB;
var gjsxTypes = BLL.GJSXTypeService.GetGJSXTypeList();
var allItems = from x in Funs.DB.GJSX
where x.ProjectId == this.ProjectId
where x.ProjectId == this.ProjectId && x.State != "1"
&& (x.CloseDate ?? DateTime.Now) > Convert.ToDateTime(x.CompleteDate).AddDays(21)
&& (x.CloseDate ?? DateTime.Now) < Convert.ToDateTime(x.CompleteDate).AddDays(30)
select x;
@@ -408,7 +408,7 @@ namespace FineUIPro.Web
Model.SGGLDB db = Funs.DB;
var gjsxTypes = BLL.GJSXTypeService.GetGJSXTypeList();
var allItems = from x in Funs.DB.GJSX
where x.ProjectId == this.ProjectId
where x.ProjectId == this.ProjectId && x.State != "1"
&& (x.CloseDate ?? DateTime.Now) > Convert.ToDateTime(x.CompleteDate).AddDays(30)
select x;
Model.SingleSerie s = new Model.SingleSerie();
@@ -455,7 +455,7 @@ namespace FineUIPro.Web
var gjsxTypes = BLL.GJSXTypeService.GetGJSXTypeList();
//全平台
var overallItems = from x in Funs.DB.GJSX
where (x.CloseDate ?? DateTime.Now) > Convert.ToDateTime(x.CompleteDate)
where (x.CloseDate ?? DateTime.Now) > Convert.ToDateTime(x.CompleteDate) && x.State != "1"
select new
{
x.GJSXTypeId,
@@ -463,7 +463,7 @@ namespace FineUIPro.Web
};
//本项目
var allItems = from x in Funs.DB.GJSX
where x.ProjectId == this.ProjectId
where x.ProjectId == this.ProjectId && x.State != "1"
&& (x.CloseDate ?? DateTime.Now) > Convert.ToDateTime(x.CompleteDate)
select new
{