代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using BLL;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
@@ -32,7 +31,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
InitUnitGrid();
|
||||
}
|
||||
|
||||
protected static List<Model.Base_Unit> getUnit= new List<Model.Base_Unit>();
|
||||
protected static List<Model.Base_Unit> getUnit = new List<Model.Base_Unit>();
|
||||
protected static List<Model.Base_Unit> getSUnit = new List<Model.Base_Unit>();
|
||||
|
||||
#region 按年份
|
||||
@@ -46,7 +45,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
bf.DataFormatString = "{0}";
|
||||
bf.HeaderText = "编号";
|
||||
bf.Width = 60;
|
||||
bf.Hidden = true;
|
||||
bf.Hidden = true;
|
||||
Grid1.Columns.Add(bf);
|
||||
|
||||
bf = new FineUIPro.BoundField();
|
||||
@@ -68,9 +67,9 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
|
||||
this.ProjectId = this.ProjectId ?? this.CurrUser.LoginProjectId;
|
||||
getUnit = (from x in Funs.DB.Project_ProjectUnit
|
||||
join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||
where x.ProjectId == this.ProjectId && x.UnitType == Const.ProjectUnitType_1
|
||||
select y).ToList();
|
||||
join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||
where x.ProjectId == this.ProjectId && x.UnitType == Const.ProjectUnitType_1
|
||||
select y).ToList();
|
||||
foreach (var item in getUnit)
|
||||
{
|
||||
gr = new FineUIPro.GroupField();
|
||||
@@ -78,9 +77,9 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
gr.HeaderTextAlign = TextAlign.Center;
|
||||
|
||||
bf = new FineUIPro.BoundField();
|
||||
bf.DataField = item.UnitId+"a";
|
||||
bf.DataField = item.UnitId + "a";
|
||||
bf.DataFormatString = "{0}";
|
||||
bf.HeaderText = "计划";
|
||||
bf.HeaderText = "计划";
|
||||
bf.Width = 100;
|
||||
gr.Columns.Add(bf);
|
||||
|
||||
@@ -94,9 +93,9 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
Grid1.Columns.Add(gr);
|
||||
}
|
||||
getSUnit = (from x in Funs.DB.Project_ProjectUnit
|
||||
join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||
where x.ProjectId == this.ProjectId && x.UnitType == Const.ProjectUnitType_2
|
||||
select y).ToList();
|
||||
join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||
where x.ProjectId == this.ProjectId && x.UnitType == Const.ProjectUnitType_2
|
||||
select y).ToList();
|
||||
foreach (var item in getSUnit)
|
||||
{
|
||||
gr = new FineUIPro.GroupField();
|
||||
@@ -162,7 +161,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
{
|
||||
this.ProjectId = Request.Params["projectId"];
|
||||
}
|
||||
Funs.DropDownPageSize(this.ddlPageSize);
|
||||
Funs.DropDownPageSize(this.ddlPageSize);
|
||||
LoadData();
|
||||
}
|
||||
}
|
||||
@@ -191,9 +190,9 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
table.Columns.Add(new DataColumn("CostTypeName", typeof(string)));
|
||||
foreach (var item in getUnit)
|
||||
{
|
||||
table.Columns.Add(new DataColumn(item.UnitId+"a", typeof(string)));
|
||||
table.Columns.Add(new DataColumn(item.UnitId+"b", typeof(string)));
|
||||
}
|
||||
table.Columns.Add(new DataColumn(item.UnitId + "a", typeof(string)));
|
||||
table.Columns.Add(new DataColumn(item.UnitId + "b", typeof(string)));
|
||||
}
|
||||
foreach (var item in getSUnit)
|
||||
{
|
||||
table.Columns.Add(new DataColumn(item.UnitId + "a", typeof(string)));
|
||||
@@ -222,7 +221,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// <param name="table"></param>
|
||||
/// <param name="year"></param>
|
||||
private void SetTable(DataTable table, int? year)
|
||||
{
|
||||
{
|
||||
var getDetail = from x in Funs.DB.CostGoods_ExpenseDetail
|
||||
join y in Funs.DB.CostGoods_Expense on x.ExpenseId equals y.ExpenseId
|
||||
where y.ProjectId == this.ProjectId && (!year.HasValue || y.Year == year)
|
||||
@@ -312,7 +311,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
Response.ContentType = "application/excel";
|
||||
Response.ContentEncoding = System.Text.Encoding.UTF8;
|
||||
this.Grid1.PageSize = this.Grid1.RecordCount;
|
||||
|
||||
|
||||
Response.Write(GetGridTableHtml(this.Grid1));
|
||||
Response.End();
|
||||
}
|
||||
@@ -360,7 +359,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// <param name="e"></param>
|
||||
protected void drpUnit_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.LoadData();
|
||||
this.LoadData();
|
||||
}
|
||||
|
||||
protected void txtYear_ClearIconClick(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user