修改进度报表
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:DatePicker runat="server" ID="txtMonths" Required="true" Label="月份" DateFormatString="yyyy-MM" LabelWidth="70px" LabelAlign="Right" Width="200px"
|
||||
<f:DatePicker runat="server" ID="txtMonths" Required="true" Label="月份" DisplayType="Month" DateFormatString="yyyy-MM" LabelWidth="70px" LabelAlign="Right" Width="200px"
|
||||
ShowRedStar="true">
|
||||
</f:DatePicker>
|
||||
<f:Button ID="btnSearch" Text="查询" MarginLeft="40px" EnablePostBack="true" runat="server" Icon="SystemSearch"
|
||||
@@ -62,7 +62,7 @@
|
||||
<f:Grid ID="Grid2" ShowBorder="true" EnableAjax="false" ShowHeader="false" Title="工程量清单设置" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="Id" AllowCellEditing="true" ForceFit="true"
|
||||
ClicksToEdit="1" DataIDField="Id" AllowSorting="true" SortField="Id"
|
||||
SortDirection="ASC" EnableColumnLines="true"
|
||||
SortDirection="ASC" EnableColumnLines="true"
|
||||
AllowPaging="false" IsDatabasePaging="false" PageSize="1000"
|
||||
AllowFilters="true" EnableTextSelection="True">
|
||||
<Columns>
|
||||
@@ -72,7 +72,7 @@
|
||||
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>--%>
|
||||
<f:GroupField HeaderText="赢得值参数" TextAlign="Center">
|
||||
<f:GroupField HeaderText="赢得值参数(单位:万元)" TextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField Width="70px" ColumnID="BCWP" DataField="BCWP" FieldType="String"
|
||||
HeaderText="BCWP" HeaderTextAlign="Center" TextAlign="Center" EnableColumnEdit="true">
|
||||
@@ -122,7 +122,7 @@
|
||||
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>--%>
|
||||
<f:GroupField HeaderText="赢得值参数" TextAlign="Center">
|
||||
<f:GroupField HeaderText="赢得值参数(单位:万元)" TextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField Width="70px" ColumnID="BCWP" DataField="BCWP" FieldType="String"
|
||||
HeaderText="BCWP" HeaderTextAlign="Center" TextAlign="Center" EnableColumnEdit="true">
|
||||
@@ -162,23 +162,17 @@
|
||||
<f:Grid ID="Grid4" ShowBorder="true" EnableAjax="false" ShowHeader="false" Title="工程量清单设置" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="Id" AllowCellEditing="true" ForceFit="true"
|
||||
ClicksToEdit="1" DataIDField="Id" AllowSorting="true" SortField="Id"
|
||||
SortDirection="ASC" EnableColumnLines="true"
|
||||
SortDirection="ASC" EnableColumnLines="true" TreeColumn="Name" DataParentIDField="SupId" EnableTree="true"
|
||||
AllowPaging="false" IsDatabasePaging="false" PageSize="10000"
|
||||
AllowFilters="true" EnableTextSelection="True">
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfPageIndex" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid4.PageIndex * Grid4.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="100px" ColumnID="Name1" DataField="Name1" FieldType="String"
|
||||
HeaderText="专业" HeaderTextAlign="Center" TextAlign="Center" EnableColumnEdit="true">
|
||||
<f:RenderField Width="60px" ColumnID="Id" DataField="Id" FieldType="String"
|
||||
HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center" EnableColumnEdit="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="130px" ColumnID="Name2" DataField="Name2" FieldType="String"
|
||||
HeaderText="分部工程" HeaderTextAlign="Center" TextAlign="Center" EnableColumnEdit="true">
|
||||
<f:RenderField Width="180px" ColumnID="Name" DataField="Name" FieldType="String"
|
||||
HeaderText="专业和分部工程" HeaderTextAlign="Center" TextAlign="Left" EnableColumnEdit="true">
|
||||
</f:RenderField>
|
||||
<f:GroupField HeaderText="本月赢得值参数" TextAlign="Center">
|
||||
<f:GroupField HeaderText="本月赢得值参数(单位:万元)" TextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField Width="90px" ColumnID="mBCWP" DataField="mBCWP" FieldType="String"
|
||||
HeaderText="BCWP" HeaderTextAlign="Center" TextAlign="Center" EnableColumnEdit="true">
|
||||
@@ -208,7 +202,7 @@
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:GroupField HeaderText="累计赢得值参数" TextAlign="Center">
|
||||
<f:GroupField HeaderText="累计赢得值参数(单位:万元)" TextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField Width="90px" ColumnID="BCWP" DataField="BCWP" FieldType="String"
|
||||
HeaderText="BCWP" HeaderTextAlign="Center" TextAlign="Center" EnableColumnEdit="true">
|
||||
|
||||
@@ -179,8 +179,8 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
//按专业统计
|
||||
DataTable table4 = new DataTable();
|
||||
table4.Columns.Add(new DataColumn("Id", typeof(String)));
|
||||
table4.Columns.Add(new DataColumn("Name1", typeof(String)));
|
||||
table4.Columns.Add(new DataColumn("Name2", typeof(String)));
|
||||
table4.Columns.Add(new DataColumn("SupId", typeof(String)));
|
||||
table4.Columns.Add(new DataColumn("Name", typeof(String)));
|
||||
table4.Columns.Add(new DataColumn("mBCWP", typeof(String)));
|
||||
table4.Columns.Add(new DataColumn("mBCWS", typeof(String)));
|
||||
table4.Columns.Add(new DataColumn("mACWP", typeof(String)));
|
||||
@@ -206,6 +206,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
DataRow row4;
|
||||
decimal cnACWP, cnBCWP, cnBCWS, cnmACWP, cnmBCWP, cnmBCWS, cnCV, cnSV, cnCPI, cnSPI, cnmCV, cnmSV, cnmCPI, cnmSPI,
|
||||
unACWP, unBCWP, unBCWS, unmACWP, unmBCWP, unmBCWS, unCV, unSV, unCPI, unSPI, unmCV, unmSV, unmCPI, unmSPI;
|
||||
int a = 1, b = 1;
|
||||
foreach (var cn in cnProfessionInits)
|
||||
{
|
||||
cnACWP = 0;
|
||||
@@ -223,8 +224,9 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
cnmCPI = 0;
|
||||
cnmSPI = 0;
|
||||
row4 = table4.NewRow();
|
||||
row4[0] = SQLHelper.GetNewID();
|
||||
row4[1] = cn.CnProfessionName;
|
||||
row4[0] = a;
|
||||
row4[1] = "0";
|
||||
row4[2] = cn.CnProfessionName;
|
||||
var cnDetails = (from x in details
|
||||
join y in cnProfessions on x.ParentId equals y.CnProfessionId
|
||||
where y.OldId == cn.CnProfessionId
|
||||
@@ -270,6 +272,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
row4[15] = cnCPI.ToString("0.####");
|
||||
row4[16] = cnSPI.ToString("0.####");
|
||||
table4.Rows.Add(row4);
|
||||
b = 1;
|
||||
var unLists = (from x in unitProjectInits where x.CnProfessionId == cn.CnProfessionId orderby x.SortIndex select x).ToList();
|
||||
foreach (var un in unLists)
|
||||
{
|
||||
@@ -288,7 +291,8 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
unmCPI = 0;
|
||||
unmSPI = 0;
|
||||
row4 = table4.NewRow();
|
||||
row4[0] = SQLHelper.GetNewID();
|
||||
row4[0] = a.ToString() + "." + b.ToString();
|
||||
row4[1] = a;
|
||||
row4[2] = un.UnitProjectName;
|
||||
var unDetails = from x in details
|
||||
join y in unitProjects on x.ParentId equals y.UnitProjectId
|
||||
@@ -335,7 +339,9 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
row4[15] = unCPI.ToString("0.####");
|
||||
row4[16] = unSPI.ToString("0.####");
|
||||
table4.Rows.Add(row4);
|
||||
b++;
|
||||
}
|
||||
a++;
|
||||
}
|
||||
this.Grid4.DataSource = table4;
|
||||
this.Grid4.DataBind();
|
||||
@@ -503,14 +509,14 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
//builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
|
||||
//builder.CellFormat.Width = 30;
|
||||
//builder.Write("序号");
|
||||
//赢得值参数
|
||||
//赢得值参数(单位:万元)
|
||||
builder.InsertCell();
|
||||
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
|
||||
builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
|
||||
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
|
||||
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
|
||||
builder.CellFormat.Width = 240;
|
||||
builder.Write("赢得值参数");
|
||||
builder.Write("赢得值参数(单位:万元)");
|
||||
//赢得值评价指标
|
||||
builder.InsertCell();
|
||||
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
|
||||
@@ -662,14 +668,14 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
//builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
|
||||
//builder.CellFormat.Width = 30;
|
||||
//builder.Write("序号");
|
||||
//赢得值参数
|
||||
//赢得值参数(单位:万元)
|
||||
builder.InsertCell();
|
||||
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
|
||||
builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
|
||||
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
|
||||
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
|
||||
builder.CellFormat.Width = 240;
|
||||
builder.Write("赢得值参数");
|
||||
builder.Write("赢得值参数(单位:万元)");
|
||||
//赢得值评价指标
|
||||
builder.InsertCell();
|
||||
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
|
||||
@@ -829,14 +835,14 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
|
||||
builder.CellFormat.Width = 60;
|
||||
builder.Write("分部工程");
|
||||
//本月赢得值参数
|
||||
//本月赢得值参数(单位:万元)
|
||||
builder.InsertCell();
|
||||
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
|
||||
builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
|
||||
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
|
||||
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
|
||||
builder.CellFormat.Width = 150;
|
||||
builder.Write("本月赢得值参数");
|
||||
builder.Write("本月赢得值参数(单位:万元)");
|
||||
//本月赢得值评价指标
|
||||
builder.InsertCell();
|
||||
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
|
||||
@@ -936,7 +942,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
select x;
|
||||
decimal cnACWP, cnBCWP, cnBCWS, cnmACWP, cnmBCWP, cnmBCWS, cnCV, cnSV, cnCPI, cnSPI, cnmCV, cnmSV, cnmCPI, cnmSPI,
|
||||
unACWP, unBCWP, unBCWS, unmACWP, unmBCWP, unmBCWS, unCV, unSV, unCPI, unSPI, unmCV, unmSV, unmCPI, unmSPI;
|
||||
int h = 1;
|
||||
int a = 1, b = 1;
|
||||
foreach (var cn in cnProfessionInits)
|
||||
{
|
||||
cnmACWP = 0;
|
||||
@@ -954,7 +960,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
|
||||
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
|
||||
builder.CellFormat.Width = 30;
|
||||
builder.Write(h.ToString());
|
||||
builder.Write(a.ToString());
|
||||
//专业
|
||||
builder.InsertCell();
|
||||
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
|
||||
@@ -1045,7 +1051,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
builder.CellFormat.Width = 50;
|
||||
builder.Write(cnmSPI.ToString("0.####"));
|
||||
builder.EndRow();
|
||||
h++;
|
||||
b = 1;
|
||||
var unLists = (from x in unitProjectInits where x.CnProfessionId == cn.CnProfessionId orderby x.SortIndex select x).ToList();
|
||||
foreach (var un in unLists)
|
||||
{
|
||||
@@ -1064,7 +1070,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
|
||||
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
|
||||
builder.CellFormat.Width = 30;
|
||||
builder.Write(h.ToString());
|
||||
builder.Write(a.ToString() + "." + b.ToString());
|
||||
//专业
|
||||
builder.InsertCell();
|
||||
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
|
||||
@@ -1155,8 +1161,9 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
builder.CellFormat.Width = 50;
|
||||
builder.Write(unmSPI.ToString("0.####"));
|
||||
builder.EndRow();
|
||||
h++;
|
||||
b++;
|
||||
}
|
||||
a++;
|
||||
}
|
||||
|
||||
|
||||
@@ -1192,7 +1199,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
|
||||
builder.CellFormat.Width = 60;
|
||||
builder.Write("分部工程");
|
||||
//累计赢得值参数
|
||||
//累计赢得值参数(单位:万元)
|
||||
builder.InsertCell();
|
||||
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
|
||||
builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
|
||||
@@ -1200,7 +1207,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
builder.CellFormat.VerticalMerge = CellMerge.None;
|
||||
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
|
||||
builder.CellFormat.Width = 150;
|
||||
builder.Write("累计赢得值参数");
|
||||
builder.Write("累计赢得值参数(单位:万元)");
|
||||
//累计赢得值评价指标
|
||||
builder.InsertCell();
|
||||
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
|
||||
@@ -1292,7 +1299,8 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
builder.CellFormat.Width = 50;
|
||||
builder.Write("SPI");
|
||||
builder.EndRow();
|
||||
h = 1;
|
||||
a = 1;
|
||||
b = 1;
|
||||
foreach (var cn in cnProfessionInits)
|
||||
{
|
||||
cnACWP = 0;
|
||||
@@ -1309,7 +1317,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
|
||||
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
|
||||
builder.CellFormat.Width = 30;
|
||||
builder.Write(h.ToString());
|
||||
builder.Write(a.ToString());
|
||||
//专业
|
||||
builder.InsertCell();
|
||||
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
|
||||
@@ -1413,7 +1421,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
builder.CellFormat.Width = 50;
|
||||
builder.Write(cnSPI.ToString("0.####"));
|
||||
builder.EndRow();
|
||||
h++;
|
||||
b = 1;
|
||||
var unLists = (from x in unitProjectInits where x.CnProfessionId == cn.CnProfessionId orderby x.SortIndex select x).ToList();
|
||||
foreach (var un in unLists)
|
||||
{
|
||||
@@ -1431,7 +1439,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
|
||||
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
|
||||
builder.CellFormat.Width = 30;
|
||||
builder.Write(h.ToString());
|
||||
builder.Write(a.ToString() + "." + b.ToString());
|
||||
//专业
|
||||
builder.InsertCell();
|
||||
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
|
||||
@@ -1522,8 +1530,9 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
|
||||
builder.CellFormat.Width = 50;
|
||||
builder.Write(unSPI.ToString("0.####"));
|
||||
builder.EndRow();
|
||||
h++;
|
||||
b++;
|
||||
}
|
||||
a++;
|
||||
}
|
||||
#endregion
|
||||
doc.Save(newUrl);
|
||||
|
||||
@@ -192,15 +192,6 @@ namespace FineUIPro.Web.JDGL.CostAnalysis {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid4;
|
||||
|
||||
/// <summary>
|
||||
/// lblPageIndex 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblPageIndex;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel5 控件。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user