代码无效引用清理,试压包资料界面看板修改

This commit is contained in:
2025-10-10 14:33:21 +08:00
parent 87fb529521
commit 55b798135c
933 changed files with 5897 additions and 7541 deletions
@@ -1,10 +1,7 @@
using BLL;
using Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
namespace FineUIPro.Web.HSSE.CostGoods
{
@@ -86,23 +83,23 @@ namespace FineUIPro.Web.HSSE.CostGoods
sDate = getMinYear.Value;
}
}
for (int i = 0; sDate + i <= eDate; i++)
{
gr = new FineUIPro.GroupField();
gr.HeaderText = (sDate + i).ToString() + "年(元)";
gr.HeaderTextAlign= TextAlign.Center;
gr.HeaderTextAlign = TextAlign.Center;
bf = new FineUIPro.BoundField();
bf.DataField = (sDate + i).ToString() +"a";
bf.DataField = (sDate + i).ToString() + "a";
bf.DataFormatString = "{0}";
bf.HeaderText = "计划";
bf.Width = 100;
bf.HeaderTextAlign = TextAlign.Center;
bf.HeaderTextAlign = TextAlign.Center;
gr.Columns.Add(bf);
bf = new FineUIPro.BoundField();
bf.DataField = (sDate + i).ToString() +"b";
bf.DataField = (sDate + i).ToString() + "b";
bf.DataFormatString = "{0}";
bf.HeaderText = "申请";
bf.Width = 100;
@@ -112,7 +109,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
Grid1.Columns.Add(gr);
}
}
gr = new FineUIPro.GroupField();
gr.HeaderText = "合计(元)";
gr.HeaderTextAlign = TextAlign.Center;
@@ -135,7 +132,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
Grid1.Columns.Add(gr);
Grid1.DataKeyNames = new string[] { "Id", "CostTypeName" };
}
#endregion
@@ -180,10 +177,10 @@ namespace FineUIPro.Web.HSSE.CostGoods
DataTable table = new DataTable();
table.Columns.Add(new DataColumn("Id", typeof(string)));
table.Columns.Add(new DataColumn("SupCostTypeName", typeof(string)));
table.Columns.Add(new DataColumn("CostTypeName", typeof(string)));
table.Columns.Add(new DataColumn("CostTypeName", typeof(string)));
for (int i = 0; sDate + i <= eDate; i++)
{
table.Columns.Add(new DataColumn((sDate + i).ToString() +"a", typeof(string)));
table.Columns.Add(new DataColumn((sDate + i).ToString() + "a", typeof(string)));
table.Columns.Add(new DataColumn((sDate + i).ToString() + "b", typeof(string)));
}
@@ -219,7 +216,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
var getCostManageItem = from x in Funs.DB.CostGoods_CostManageItem
join y in Funs.DB.CostGoods_CostManage on x.CostManageId equals y.CostManageId
where y.ProjectId == this.ProjectId && (unitId == null || y.UnitId == unitId) && y.States==Const.State_2
where y.ProjectId == this.ProjectId && (unitId == null || y.UnitId == unitId) && y.States == Const.State_2
select new { x.CostManageId, x.CostManageItemId, Year = y.CostManageDate.Value.Year, x.SupCostTypeId, x.CostTypeId, x.PriceMoney };
foreach (var item in getType)
@@ -278,10 +275,10 @@ 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();
}
}
#endregion
#region
@@ -325,9 +322,9 @@ namespace FineUIPro.Web.HSSE.CostGoods
/// <param name="e"></param>
protected void drpUnit_SelectedIndexChanged(object sender, EventArgs e)
{
this.LoadData();
this.LoadData();
}
protected void Window1_Close(object sender, WindowCloseEventArgs e)
{