代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -31,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 按年份
|
||||
@@ -44,7 +44,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();
|
||||
@@ -66,28 +66,28 @@ 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)
|
||||
{
|
||||
bf = new FineUIPro.BoundField();
|
||||
bf.DataField = item.UnitId;
|
||||
bf.DataFormatString = "{0}";
|
||||
bf.HeaderText = item.UnitName+ "(元)";
|
||||
bf.HeaderText = item.UnitName + "(元)";
|
||||
bf.Width = 200;
|
||||
Grid1.Columns.Add(bf);
|
||||
}
|
||||
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)
|
||||
{
|
||||
bf = new FineUIPro.BoundField();
|
||||
bf.DataField = item.UnitId;
|
||||
bf.DataFormatString = "{0}";
|
||||
bf.HeaderText = item.UnitName+ "(元)";
|
||||
bf.HeaderText = item.UnitName + "(元)";
|
||||
bf.Width = 220;
|
||||
Grid1.Columns.Add(bf);
|
||||
}
|
||||
@@ -122,7 +122,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
Funs.DropDownPageSize(this.ddlPageSize);
|
||||
////权限按钮方法
|
||||
this.GetButtonPower();
|
||||
this.btnNew.OnClientClick = Window1.GetShowReference("ExpenseEdit.aspx") + "return false;";
|
||||
this.btnNew.OnClientClick = Window1.GetShowReference("ExpenseEdit.aspx") + "return false;";
|
||||
LoadData();
|
||||
}
|
||||
}
|
||||
@@ -152,7 +152,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
foreach (var item in getUnit)
|
||||
{
|
||||
table.Columns.Add(new DataColumn(item.UnitId, typeof(string)));
|
||||
}
|
||||
}
|
||||
foreach (var item in getSUnit)
|
||||
{
|
||||
table.Columns.Add(new DataColumn(item.UnitId, typeof(string)));
|
||||
@@ -179,7 +179,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
{
|
||||
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)
|
||||
where y.ProjectId == this.ProjectId && (!year.HasValue || y.Year == year)
|
||||
orderby y.Year, x.SupSortIndex, x.SortIndex
|
||||
select new { x.ExpenseDetailId, x.ExpenseId, y.UnitId, y.Year, x.SupCostTypeId, x.SupCostTypeName, x.SupSortIndex, x.CostType, x.CostTypeName, x.SortIndex, x.CostMoney };
|
||||
var getType = (from x in getDetail select new { x.SupSortIndex, x.SortIndex, x.CostType }).Distinct();
|
||||
@@ -229,12 +229,12 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
}
|
||||
|
||||
|
||||
#region 导出按钮
|
||||
/// 导出按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnOut_Click(object sender, EventArgs e)
|
||||
#region 导出按钮
|
||||
/// 导出按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnOut_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.ClearContent();
|
||||
string filename = Funs.GetNewFileName();
|
||||
@@ -242,7 +242,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();
|
||||
}
|
||||
@@ -357,7 +357,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
var getEx = ExpenseService.GetExpenseById(rowID);
|
||||
if (getEx != null && !string.IsNullOrEmpty(getEx.UnitId))
|
||||
{
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, getEx.ExpenseCode, getEx.ExpenseId, BLL.Const.ProjectExpenseMenuId, BLL.Const.BtnDelete);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, getEx.ExpenseCode, getEx.ExpenseId, BLL.Const.ProjectExpenseMenuId, BLL.Const.BtnDelete);
|
||||
BLL.ExpenseService.DeleteExpenseById(rowID);
|
||||
}
|
||||
}
|
||||
@@ -375,7 +375,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// <param name="e"></param>
|
||||
protected void drpUnit_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.LoadData();
|
||||
this.LoadData();
|
||||
}
|
||||
|
||||
#region 获取按钮权限
|
||||
|
||||
Reference in New Issue
Block a user