移交调整

This commit is contained in:
2024-12-03 19:00:05 +08:00
parent ce75af6899
commit ce83292f2a
3 changed files with 14 additions and 14 deletions
@@ -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;