移交调整
This commit is contained in:
@@ -16,13 +16,13 @@ namespace FineUIPro.Web.Transfer.Chart
|
||||
if (!IsPostBack) {
|
||||
var systemCode = Funs.DB.Transfer_LHCSystemList
|
||||
.Where(x => x.ProjectId == CurrUser.LoginProjectId)
|
||||
.GroupBy(p => new { p.Commissioningsystemcode })
|
||||
.Select(p => new { Commissioningsystemcode = p.Key.Commissioningsystemcode }).ToList();
|
||||
.GroupBy(p => new { p.SubCommissioningsystem })
|
||||
.Select(p => new { SubCommissioningsystem = p.Key.SubCommissioningsystem }).ToList();
|
||||
int indexRow = 1;
|
||||
ddlSystemNo.Items.Insert(0, new FineUIPro.ListItem("ALL", ""));
|
||||
foreach (var t in systemCode)
|
||||
{
|
||||
ddlSystemNo.Items.Insert(indexRow, new FineUIPro.ListItem(t.Commissioningsystemcode, t.Commissioningsystemcode));
|
||||
ddlSystemNo.Items.Insert(indexRow, new FineUIPro.ListItem(t.SubCommissioningsystem, t.SubCommissioningsystem));
|
||||
indexRow++;
|
||||
}
|
||||
|
||||
@@ -40,15 +40,15 @@ namespace FineUIPro.Web.Transfer.Chart
|
||||
#region 统计所有
|
||||
var systemCode = Funs.DB.Transfer_LHCSystemList
|
||||
.Where(x => x.ProjectId == CurrUser.LoginProjectId)
|
||||
.GroupBy(p => new { p.Commissioningsystemcode })
|
||||
.Select(p => new { Commissioningsystemcode = p.Key.Commissioningsystemcode }).ToList();
|
||||
.GroupBy(p => new { p.SubCommissioningsystem })
|
||||
.Select(p => new { SubCommissioningsystem = p.Key.SubCommissioningsystem }).ToList();
|
||||
|
||||
if (!string.IsNullOrEmpty(ddlSystemNo.SelectedValue))
|
||||
{
|
||||
systemCode= Funs.DB.Transfer_LHCSystemList
|
||||
.Where(x => x.ProjectId == CurrUser.LoginProjectId && x.Commissioningsystemcode == ddlSystemNo.SelectedValue)
|
||||
.GroupBy(p => new { p.Commissioningsystemcode })
|
||||
.Select(p => new { Commissioningsystemcode = p.Key.Commissioningsystemcode }).ToList();
|
||||
.Where(x => x.ProjectId == CurrUser.LoginProjectId && x.SubCommissioningsystem == ddlSystemNo.SelectedValue)
|
||||
.GroupBy(p => new { p.SubCommissioningsystem })
|
||||
.Select(p => new { SubCommissioningsystem = p.Key.SubCommissioningsystem }).ToList();
|
||||
}
|
||||
#region 九个表的数据
|
||||
var list1 = Funs.DB.Transfer_Piping.Where(x => x.ProjectId == pid).ToList();
|
||||
@@ -67,7 +67,7 @@ namespace FineUIPro.Web.Transfer.Chart
|
||||
dt.Columns.Add("进行中数量", typeof(string));
|
||||
dt.Columns.Add("未完成数量", typeof(string));
|
||||
foreach (var t in systemCode) {
|
||||
var scode = t.Commissioningsystemcode;
|
||||
var scode = t.SubCommissioningsystem;
|
||||
AllSystemNo += "'" + scode + "',";
|
||||
DataRow dr = dt.NewRow();
|
||||
dr["系统编号"] = scode;
|
||||
|
||||
Reference in New Issue
Block a user