2023-09-01

This commit is contained in:
李鹏飞 2023-09-01 15:29:53 +08:00
parent d9f8be1463
commit 773cd0e1b7
14 changed files with 473 additions and 99 deletions

Binary file not shown.

View File

@ -27,3 +27,4 @@ INSERT [Sys_Menu] ([MenuId],[MenuName],[Url],[SortIndex],[SuperMenu],[MenuType],
INSERT [Sys_ButtonToMenu] ([ButtonToMenuId],[MenuId],[ButtonName],[SortIndex])
VALUES ( N'C1708178-C52B-4D32-9849-C69622D96105',N'D9BAB30E-3255-4EA0-8631-EF15C9203EFD',N'Ôö¼Ó',1)
GO

View File

@ -106,9 +106,6 @@
<Reference Include="QRCoder, Version=1.4.3.0, Culture=neutral, PublicKeyToken=c4ed5b9ae8358a28, processorArchitecture=MSIL">
<HintPath>..\packages\QRCoder.1.4.3\lib\net40\QRCoder.dll</HintPath>
</Reference>
<Reference Include="Quartz, Version=3.7.0.0, Culture=neutral, PublicKeyToken=f6b8c98a402cc8a4, processorArchitecture=MSIL">
<HintPath>..\packages\Quartz.3.7.0\lib\netstandard2.0\Quartz.dll</HintPath>
</Reference>
<Reference Include="RestSharp, Version=106.15.0.0, Culture=neutral, PublicKeyToken=598062e77f915f75, processorArchitecture=MSIL">
<HintPath>..\packages\RestSharp.106.15.0\lib\net452\RestSharp.dll</HintPath>
</Reference>

View File

@ -24,17 +24,7 @@ namespace BLL
(string.IsNullOrEmpty(table.ContractTrackProgressId) ||
x.ContractTrackProgressId.Contains(table.ContractTrackProgressId)) &&
(string.IsNullOrEmpty(table.ContractTrackId) ||
x.ContractTrackId.Contains(table.ContractTrackId)) &&
(string.IsNullOrEmpty(table.BCWS_Quantity) || x.BCWS_Quantity.Contains(table.BCWS_Quantity)) &&
(string.IsNullOrEmpty(table.BCWS_OutputValue) ||
x.BCWS_OutputValue.Contains(table.BCWS_OutputValue)) &&
(string.IsNullOrEmpty(table.BCWS_Percentage) ||
x.BCWS_Percentage.Contains(table.BCWS_Percentage)) &&
(string.IsNullOrEmpty(table.ACWP_Quantity) || x.ACWP_Quantity.Contains(table.ACWP_Quantity)) &&
(string.IsNullOrEmpty(table.ACWP_OutputValue) ||
x.ACWP_OutputValue.Contains(table.ACWP_OutputValue)) &&
(string.IsNullOrEmpty(table.ACWP_Percentage) ||
x.ACWP_Percentage.Contains(table.ACWP_Percentage)) &&
x.ContractTrackId.Contains(table.ContractTrackId)) &&
(string.IsNullOrEmpty(table.Date) ||
x.Date.Contains(table.Date))
orderby x.Date

View File

@ -1,6 +1,12 @@
using System;
using NPOI.SS.Formula.Functions;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Web.UI.DataVisualization.Charting;
namespace Web.Controls
@ -367,5 +373,124 @@ namespace Web.Controls
Controls.Add(chart1);
}
public void CreateMaryChartHTGL(DataTable dt, int width, int height, string projectShortName)
{
Chart chart1 = new Chart();
chart1.ID = "chart1";
chart1.BackColor = Color.WhiteSmoke;
chart1.ImageLocation = "~/Images/ChartPic_#SEQ(300,3)";
chart1.BorderlineDashStyle = ChartDashStyle.Solid;
chart1.Palette = ChartColorPalette.BrightPastel;
chart1.BackSecondaryColor = Color.White;
chart1.BackGradientStyle = GradientStyle.TopBottom;
chart1.BorderWidth = 2;
chart1.BorderColor = Color.FromArgb(26, 59, 105);
chart1.ImageType = ChartImageType.Png;
chart1.Width = width;
chart1.Height = height;
Title title = new Title();
title.Text = "图表分析";
if (!string.IsNullOrEmpty(projectShortName))
{
title.Text = projectShortName + "图表分析";
}
title.Text = BLL.Funs.GetSubStr(title.Text, 30);
title.ToolTip = title.Text;
title.ShadowColor = Color.FromArgb(32, 0, 0, 0);
title.Font = new Font("Trebuchet MS", 10F, FontStyle.Bold);
title.ShadowOffset = 3;
title.ForeColor = Color.FromArgb(26, 59, 105);
chart1.Titles.Add(title);
Legend legend1 = new Legend();
legend1.TextWrapThreshold = 1;
legend1.Docking = Docking.Right;
legend1.Alignment = StringAlignment.Center;
legend1.BackColor = Color.Transparent;
legend1.Font = new Font(new FontFamily("Trebuchet MS"), 8);
legend1.LegendStyle = LegendStyle.Column;
legend1.IsEquallySpacedItems = true;
legend1.IsTextAutoFit = false;
chart1.Legends.Add(legend1);
ChartArea chartArea = new ChartArea();
chartArea.BackColor = Color.Transparent;
chartArea.AxisX.IsLabelAutoFit = false;
chartArea.AxisY.IsLabelAutoFit = false;
chartArea.AxisX.LabelStyle.Font = new Font("Verdana,Arial,Helvetica,sans-serif", 8F, FontStyle.Regular);
chartArea.AxisY.LabelStyle.Font = new Font("Verdana,Arial,Helvetica,sans-serif", 8F, FontStyle.Regular);
//chartArea.AxisY.LabelStyle.Format = "#(万元)";
chartArea.AxisY.LineColor = Color.FromArgb(64, 64, 64, 64);
chartArea.AxisX.LineColor = Color.FromArgb(64, 64, 64, 64);
chartArea.AxisY.MajorGrid.LineColor = Color.FromArgb(64, 64, 64, 64);
chartArea.AxisX.MajorGrid.LineColor = Color.FromArgb(64, 64, 64, 64);
chartArea.AxisX.Interval = 1;
chartArea.Area3DStyle.Enable3D = false;
chart1.ChartAreas.Add(chartArea);
chart1.Series.Add("BCWS工程量");
chart1.Series.Add("BCWS产值");
chart1.Series.Add("BCWS百分比");
chart1.Series.Add("ACWP工程量");
chart1.Series.Add("ACWP产值");
chart1.Series.Add("ACWP百分比");
DataView dv = dt.DefaultView;
chart1.Series["BCWS工程量"].Points.DataBindXY(dv, "月份", dv, "BCWS工程量");
chart1.Series["BCWS工程量"].ChartType = SeriesChartType.Column;
for (int i = 0; i < chart1.Series["BCWS工程量"].Points.Count; i++)
{
chart1.Series["BCWS工程量"].Points[i].ToolTip = "BCWS工程量\n#VALX\n#VALY";
}
chart1.Series["BCWS产值"].Points.DataBindXY(dv, "月份", dv, "BCWS产值");
chart1.Series["BCWS产值"].ChartType = SeriesChartType.Column;
for (int i = 0; i < chart1.Series["BCWS产值"].Points.Count; i++)
{
chart1.Series["BCWS产值"].Points[i].ToolTip = "BCWS产值\n#VALX\n#VALY";
}
chart1.Series["BCWS百分比"].Points.DataBindXY(dv, "月份", dv, "BCWS百分比");
chart1.Series["BCWS百分比"].Color = Color.MediumSeaGreen;
chart1.Series["BCWS百分比"].BorderWidth = 2;
chart1.Series["BCWS百分比"].ChartType =SeriesChartType.Spline;
for (int i = 0; i < chart1.Series["BCWS百分比"].Points.Count; i++)
{
chart1.Series["BCWS百分比"].Points[i].ToolTip = "BCWS百分比\n#VALX\n#VALY";
}
chart1.Series["ACWP工程量"].Points.DataBindXY(dv, "月份", dv, "ACWP工程量");
chart1.Series["ACWP工程量"].BorderWidth = 2;
for (int i = 0; i < chart1.Series["ACWP工程量"].Points.Count; i++)
{
chart1.Series["ACWP工程量"].Points[i].ToolTip = "ACWP工程量\n#VALX\n#VALY";
}
chart1.Series["ACWP产值"].Points.DataBindXY(dv, "月份", dv, "BCWS工程量");
chart1.Series["ACWP产值"].ChartType = SeriesChartType.Column;
for (int i = 0; i < chart1.Series["ACWP产值"].Points.Count; i++)
{
chart1.Series["ACWP产值"].Points[i].ToolTip = "ACWP产值\n#VALX\n#VALY";
}
chart1.Series["ACWP百分比"].Points.DataBindXY(dv, "月份", dv, "BCWS工程量");
chart1.Series["ACWP百分比"].ChartType = SeriesChartType.Spline;
// chart1.Series["ACWP百分比"].Color = Color.Red;
chart1.Series["ACWP百分比"].BorderWidth = 2;
for (int i = 0; i < chart1.Series["ACWP百分比"].Points.Count; i++)
{
chart1.Series["ACWP百分比"].Points[i].ToolTip = "ACWP百分比\n#VALX\n#VALY";
}
Controls.Add(chart1);
}
}
}

View File

@ -1259,6 +1259,7 @@
<Content Include="PHTGL\ContractCompile\ContractTrackIn.aspx" />
<Content Include="PHTGL\ContractCompile\ContractTrackList.aspx" />
<Content Include="PHTGL\ContractCompile\ContractTrackMatchWBS.aspx" />
<Content Include="PHTGL\ContractCompile\ContractTrackProgressChart.aspx" />
<Content Include="PHTGL\ContractCompile\GeneralTermsConditions.aspx" />
<Content Include="PHTGL\ContractCompile\SpecialTermsConditions.aspx" />
<Content Include="PHTGL\Filing\ActionPlanFile.aspx" />
@ -12375,6 +12376,13 @@
<Compile Include="PHTGL\ContractCompile\ContractTrackMatchWBS.aspx.designer.cs">
<DependentUpon>ContractTrackMatchWBS.aspx</DependentUpon>
</Compile>
<Compile Include="PHTGL\ContractCompile\ContractTrackProgressChart.aspx.cs">
<DependentUpon>ContractTrackProgressChart.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="PHTGL\ContractCompile\ContractTrackProgressChart.aspx.designer.cs">
<DependentUpon>ContractTrackProgressChart.aspx</DependentUpon>
</Compile>
<Compile Include="PHTGL\ContractCompile\GeneralTermsConditions.aspx.cs">
<DependentUpon>GeneralTermsConditions.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>

View File

@ -113,7 +113,7 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
private void SaveGrid1()
{
PhtglContracttrackprogressService.DeleteModleByContractTrackId(ID);
/*PhtglContracttrackprogressService.DeleteModleByContractTrackId(ID);
JArray EditorArr = Grid1.GetMergedData();
if (EditorArr.Count > 0)
{
@ -133,7 +133,7 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
model.Date = objects["values"]["Date"].ToString();
BLL.PhtglContracttrackprogressService.AddPHTGL_ContractTrackProgress(model);
}
}
}*/
}
private string GetDeleteScript()

View File

@ -36,7 +36,7 @@
runat="server" BoxFlex="1" DataKeyNames="Id" AllowCellEditing="true"
ClicksToEdit="1" DataIDField="Id" AllowSorting="true" SortField="Id"
SortDirection="DESC" OnSort="Grid1_Sort" EnableColumnLines="true"
AllowPaging="False" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
AllowPaging="False" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" OnRowClick="Grid1_OnRowClick" EnableRowClickEvent="True">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
@ -45,8 +45,8 @@
LabelWidth="140px" OnSelectedIndexChanged="DropMainContractCode_SelectedIndexChanged">
</f:DropDownList>
<f:Label ID="txtContractName" runat="server" Label="合同名称" LabelAlign="Right" LabelWidth="140px"></f:Label>
<f:ToolbarFill runat="server" />
<f:Button ID="btnNew" ToolTip="新增" Text="新增" Hidden="true" Icon="Add" runat="server"
OnClick="btnNew_Click">
</f:Button>
@ -58,6 +58,21 @@
</f:Button>
<f:Button ID="btnSave" ToolTip="保存" Icon="PageSave" EnablePostBack="true" Text="保存" runat="server" OnClick="btnSave_OnClick">
</f:Button>
</Items>
</f:Toolbar>
<f:Toolbar ID="Toolbar4" Position="Top" runat="server" ToolbarAlign="Right">
<Items>
<f:TextBox runat="server" ID="txtProjectCode" Label="项目编码" LabelWidth="90" Width="200px" />
<f:TextBox runat="server" ID="txtProjectName" Label="项目名称" LabelWidth="90" Width="200px" />
<f:ToolbarFill runat="server" />
<f:Button ID="btnQuery" ToolTip="查询" Text="查询" Icon="SystemSearch" runat="server" EnablePostBack="true"
OnClick="btnQuery_OnClick">
</f:Button>
<f:Button ID="btnGetChart" ToolTip="图表" Icon="ChartPie" Text="统计图表"
EnablePostBack="true" OnClick="btnGetChart_Click" runat="server">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
@ -193,7 +208,7 @@
</Editor>
</f:RenderField>
<f:RenderCheckField Width="100px" ColumnID="IsWithinGeneralContractScope" DataField="IsWithinGeneralContractScope" HeaderText="是否总包合同范围内" />
<f:RenderField Width="150px" ColumnID="EstimatedQuantity" DataField="EstimatedQuantity" SortField="EstimatedQuantity"
FieldType="String" HeaderText="概算工程量" TextAlign="Left" HeaderTextAlign="Center">
<Editor>
@ -262,7 +277,7 @@
</f:Button>
<f:Button ID="btnMatchWBS_Delete" ToolTip="删除" Icon="Delete" EnablePostBack="true" ConfirmText="是否删除?" runat="server" OnClick="btnMatchWBS_Delete_OnClick">
</f:Button>
<f:Button ID="btnMatchWBS_Save" ToolTip="保存" Icon="PageSave" EnablePostBack="true" runat="server" OnClick="btnMatchWBS_Save_OnClick">
<f:Button ID="btnMatchWBS_Save" ToolTip="保存" Icon="PageSave" EnablePostBack="true" runat="server" OnClick="btnMatchWBS_Save_OnClick">
</f:Button>
</Items>
</f:Toolbar>
@ -318,46 +333,50 @@
</f:RenderField>
<f:GroupField HeaderText="BCWS" TextAlign="Center">
<Columns>
<f:RenderField ColumnID="BCWS_Quantity" DataField="BCWS_Quantity" FieldType="String"
<f:RenderField ColumnID="BCWS_Quantity" DataField="BCWS_Quantity" FieldType="Double"
HeaderText="工程量" HeaderTextAlign="Center">
<Editor>
<f:TextBox ID="txtBCWS_Quantity" runat="server" Required="true"></f:TextBox>
<f:NumberBox ID="NumberBox4" runat="server" NoDecimal="false" NoNegative="false" DecimalPrecision="2" Increment="0.01">
</f:NumberBox>
</Editor>
</f:RenderField>
<f:RenderField ColumnID="BCWS_OutputValue" DataField="BCWS_OutputValue" FieldType="String"
<f:RenderField ColumnID="BCWS_OutputValue" DataField="BCWS_OutputValue" FieldType="Double"
HeaderText="产值" HeaderTextAlign="Center">
<Editor>
<f:TextBox ID="txtBCWS_OutputValue" runat="server" Required="true"></f:TextBox>
<f:NumberBox ID="NumberBox5" runat="server" NoDecimal="false" NoNegative="false" DecimalPrecision="2" Increment="0.01">
</f:NumberBox>
</Editor>
</f:RenderField>
<f:RenderField ColumnID="BCWS_Percentage" DataField="BCWS_Percentage" FieldType="String"
<f:RenderField ColumnID="BCWS_Percentage" DataField="BCWS_Percentage" FieldType="Double"
HeaderText="百分比" HeaderTextAlign="Center">
<Editor>
<f:TextBox ID="txtBCWS_Percentage" runat="server" Required="true">
</f:TextBox>
<f:NumberBox ID="NumberBox6" runat="server" NoDecimal="false" NoNegative="false" DecimalPrecision="2" Increment="0.01">
</f:NumberBox>
</Editor>
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="ACWP" TextAlign="Center">
<Columns>
<f:RenderField ColumnID="ACWP_Quantity" DataField="ACWP_Quantity" FieldType="String"
<f:RenderField ColumnID="ACWP_Quantity" DataField="ACWP_Quantity" FieldType="Double"
HeaderText="工程量" HeaderTextAlign="Center">
<Editor>
<f:TextBox ID="txtACWP_Quantity" runat="server" Required="true"></f:TextBox>
<f:NumberBox ID="NumberBox7" runat="server" NoDecimal="false" NoNegative="false" DecimalPrecision="2" Increment="0.01">
</f:NumberBox>
</Editor>
</f:RenderField>
<f:RenderField ColumnID="ACWP_OutputValue" DataField="ACWP_OutputValue" FieldType="String"
<f:RenderField ColumnID="ACWP_OutputValue" DataField="ACWP_OutputValue" FieldType="Double"
HeaderText="产值" HeaderTextAlign="Center">
<Editor>
<f:TextBox ID="txtACWP_OutputValue" runat="server" Required="true"></f:TextBox>
<f:NumberBox ID="NumberBox8" runat="server" NoDecimal="false" NoNegative="false" DecimalPrecision="2" Increment="0.01">
</f:NumberBox>
</Editor>
</f:RenderField>
<f:RenderField ColumnID="ACWP_Percentage" DataField="ACWP_Percentage" FieldType="String"
<f:RenderField ColumnID="ACWP_Percentage" DataField="ACWP_Percentage" FieldType="Double"
HeaderText="百分比" HeaderTextAlign="Center">
<Editor>
<f:TextBox ID="txtACWP_Percentage" runat="server" Required="true">
</f:TextBox>
<f:NumberBox ID="NumberBox9" runat="server" NoDecimal="false" NoNegative="false" DecimalPrecision="2" Increment="0.01">
</f:NumberBox>
</Editor>
</f:RenderField>
</Columns>
@ -378,12 +397,12 @@
</f:Window>
<f:Window ID="Window2" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Top" EnableResize="false" runat="server" OnClose="Window1_Close" IsModal="true"
Width="700px" Height="240px">
Width="1200px" Height="650px">
</f:Window>
<f:Window ID="Window3" runat="server" Hidden="true" ShowHeader="true"
IsModal="true" Target="Parent" EnableMaximize="true" EnableResize="true" OnClose="Window3_OnClose"
Title="匹配WBS" EnableIFrame="true" Height="650px"
Width="1200px">
IsModal="true" Target="Parent" EnableMaximize="true" EnableResize="true" OnClose="Window3_OnClose"
Title="匹配WBS" EnableIFrame="true" Height="650px"
Width="1200px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuEdit" OnClick="btnEdit_Click" EnablePostBack="true"

View File

@ -43,22 +43,18 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
/// </summary>
private void BindGrid()
{
if (!string.IsNullOrEmpty(ContractId))
Model.PHTGL_ContractTrack table = new Model.PHTGL_ContractTrack();
table.ProjectId = this.CurrUser.LoginProjectId;
table.ContractId = this.ContractId;
table.ProjectCode = this.txtProjectCode.Text.Trim();
table.ProjectName = this.txtProjectName.Text.Trim();
var tb = BLL.PhtglContractTrackService.GetListData(table, Grid1);
Grid1.RecordCount = PhtglContractTrackService.Count;
//tb = GetFilteredTable(Grid1.FilteredData, tb);
Grid1.DataSource = tb;
Grid1.DataBind();
if (string.IsNullOrEmpty(ContractId))
{
Model.PHTGL_ContractTrack table = new Model.PHTGL_ContractTrack();
table.ProjectId = this.CurrUser.LoginProjectId;
table.ContractId = this.ContractId;
var tb = BLL.PhtglContractTrackService.GetListData(table, Grid1);
Grid1.RecordCount = PhtglContractTrackService.Count;
//tb = GetFilteredTable(Grid1.FilteredData, tb);
Grid1.DataSource = tb;
Grid1.DataBind();
}
else
{
Grid1.DataSource = null;
Grid1.DataBind();
Grid2.DataSource = null;
Grid2.DataBind();
@ -300,12 +296,12 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
model = new Model.PHTGL_ContractTrackProgress();
model.ContractTrackProgressId = SQLHelper.GetNewID(typeof(Model.PHTGL_ContractTrackProgress));
model.ContractTrackId = Grid1.SelectedRowID;
model.BCWS_Quantity = objects["values"]["BCWS_Quantity"].ToString();
model.BCWS_OutputValue = objects["values"]["BCWS_OutputValue"].ToString();
model.BCWS_Percentage = objects["values"]["BCWS_Percentage"].ToString();
model.ACWP_Quantity = objects["values"]["ACWP_Quantity"].ToString();
model.ACWP_OutputValue = objects["values"]["ACWP_OutputValue"].ToString();
model.ACWP_Percentage = objects["values"]["ACWP_Percentage"].ToString();
model.BCWS_Quantity = Funs.GetNewDecimal(objects["values"]["BCWS_Quantity"].ToString());
model.BCWS_OutputValue = Funs.GetNewDecimal(objects["values"]["BCWS_OutputValue"].ToString());
model.BCWS_Percentage = Funs.GetNewDecimal(objects["values"]["BCWS_Percentage"].ToString());
model.ACWP_Quantity = Funs.GetNewDecimal(objects["values"]["ACWP_Quantity"].ToString());
model.ACWP_OutputValue = Funs.GetNewDecimal(objects["values"]["ACWP_OutputValue"].ToString());
model.ACWP_Percentage = Funs.GetNewDecimal(objects["values"]["ACWP_Percentage"].ToString());
model.Date = objects["values"]["Date"].ToString();
BLL.PhtglContracttrackprogressService.AddPHTGL_ContractTrackProgress(model);
}
@ -377,6 +373,28 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
}
BindGrid();
}
protected void btnQuery_OnClick(object sender, EventArgs e)
{
BindGrid();
}
protected void btnGetChart_Click(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(ContractId))
{
var model = ContractService.GetContractByContractNum(DropContractCode.SelectedValue);
if (model != null)
{
PageContext.RegisterStartupScript(
Window2.GetShowReference(string.Format("ContractTrackProgressChart.aspx?ContractId={0}", model.ContractId, "图表 - ")));
}
}
else
{
ShowNotify("请选择施工分包合同", MessageBoxIcon.Question);
}
}
#endregion
#region
@ -516,5 +534,7 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
{
BindGrid2();
}
}
}

View File

@ -122,6 +122,51 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// Toolbar4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar4;
/// <summary>
/// txtProjectCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtProjectCode;
/// <summary>
/// txtProjectName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtProjectName;
/// <summary>
/// btnQuery 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnQuery;
/// <summary>
/// btnGetChart 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnGetChart;
/// <summary>
/// lblNumber 控件。
/// </summary>
@ -519,58 +564,58 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
protected global::FineUIPro.TextBox TextBox1;
/// <summary>
/// txtBCWS_Quantity 控件。
/// NumberBox4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtBCWS_Quantity;
protected global::FineUIPro.NumberBox NumberBox4;
/// <summary>
/// txtBCWS_OutputValue 控件。
/// NumberBox5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtBCWS_OutputValue;
protected global::FineUIPro.NumberBox NumberBox5;
/// <summary>
/// txtBCWS_Percentage 控件。
/// NumberBox6 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtBCWS_Percentage;
protected global::FineUIPro.NumberBox NumberBox6;
/// <summary>
/// txtACWP_Quantity 控件。
/// NumberBox7 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtACWP_Quantity;
protected global::FineUIPro.NumberBox NumberBox7;
/// <summary>
/// txtACWP_OutputValue 控件。
/// NumberBox8 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtACWP_OutputValue;
protected global::FineUIPro.NumberBox NumberBox8;
/// <summary>
/// txtACWP_Percentage 控件。
/// NumberBox9 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtACWP_Percentage;
protected global::FineUIPro.NumberBox NumberBox9;
/// <summary>
/// Window1 控件。

View File

@ -0,0 +1,43 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ContractTrackProgressChart.aspx.cs" Inherits="FineUIPro.Web.PHTGL.ContractCompile.ContractTrackProgressChart" %>
<%@ Register Src="~/Controls/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>赢得值曲线</title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
<style>
.f-grid-row .f-grid-cell-inner {
white-space: normal;
word-break: break-all;
}
.f-grid-colheader-text {
white-space: normal;
word-break: break-all;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" AjaxAspnetControls="divEV" />
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="false"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle"
TitleToolTip="" AutoScroll="true">
<Items>
<f:ContentPanel ShowHeader="false" runat="server" ID="cpEV" Margin="0 0 0 0">
<div id="divEV">
<uc1:ChartControl ID="ChartEV" runat="server" />
</div>
</f:ContentPanel>
</Items>
</f:Panel>
</Items>
</f:Panel>
</form>
</body>
</html>

View File

@ -0,0 +1,55 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
namespace FineUIPro.Web.PHTGL.ContractCompile
{
public partial class ContractTrackProgressChart : PageBase
{
public string ContractId
{
get => (string)ViewState["ContractId"];
set => ViewState["ContractId"] = value;
}
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ContractId = Request.Params["ContractId"];
BindChart();
}
}
void BindChart()
{
if (!string.IsNullOrEmpty(ContractId))
{
var db = Funs.DB;
var result = (from x in db.PHTGL_ContractTrackProgress
join y in db.PHTGL_ContractTrack on x.ContractTrackId equals y.Id
where y.ContractId == ContractId
group x by x.Date into g
select new
{
= g.Key,
BCWS工程量 = g.Sum(x => x.BCWS_Quantity),
BCWS产值 = g.Sum(x => x.BCWS_OutputValue),
BCWS百分比 = g.Sum(x => x.BCWS_Percentage),
ACWP工程量 = g.Sum(x => x.ACWP_Quantity),
ACWP产值 = g.Sum(x => x.ACWP_OutputValue),
ACWP百分比 = g.Sum(x => x.ACWP_Percentage)
}).ToList();
this.ChartEV.CreateMaryChartHTGL(LINQToDataTable(result), 1020, 420, null);
}
}
}
}

View File

@ -0,0 +1,71 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.PHTGL.ContractCompile
{
public partial class ContractTrackProgressChart
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// panelCenterRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelCenterRegion;
/// <summary>
/// cpEV 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ContentPanel cpEV;
/// <summary>
/// ChartEV 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::Web.Controls.ChartControl ChartEV;
}
}

View File

@ -11539,7 +11539,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveIdea", DbType="NVarChar(2000)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveIdea", DbType="NVarChar(200)")]
public string ApproveIdea
{
get
@ -149756,7 +149756,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPerson", DbType="NVarChar(3000)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPerson", DbType="NVarChar(500)")]
public string AttentPerson
{
get
@ -181179,7 +181179,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkPackageEstimate", DbType="Decimal(18,3)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkPackageEstimate", DbType="Decimal(18,2)")]
public System.Nullable<decimal> WorkPackageEstimate
{
get
@ -181230,17 +181230,17 @@ namespace Model
private string _ContractTrackId;
private string _BCWS_Quantity;
private System.Nullable<decimal> _BCWS_Quantity;
private string _BCWS_OutputValue;
private System.Nullable<decimal> _BCWS_OutputValue;
private string _BCWS_Percentage;
private System.Nullable<decimal> _BCWS_Percentage;
private string _ACWP_Quantity;
private System.Nullable<decimal> _ACWP_Quantity;
private string _ACWP_OutputValue;
private System.Nullable<decimal> _ACWP_OutputValue;
private string _ACWP_Percentage;
private System.Nullable<decimal> _ACWP_Percentage;
private string _Date;
@ -181252,17 +181252,17 @@ namespace Model
partial void OnContractTrackProgressIdChanged();
partial void OnContractTrackIdChanging(string value);
partial void OnContractTrackIdChanged();
partial void OnBCWS_QuantityChanging(string value);
partial void OnBCWS_QuantityChanging(System.Nullable<decimal> value);
partial void OnBCWS_QuantityChanged();
partial void OnBCWS_OutputValueChanging(string value);
partial void OnBCWS_OutputValueChanging(System.Nullable<decimal> value);
partial void OnBCWS_OutputValueChanged();
partial void OnBCWS_PercentageChanging(string value);
partial void OnBCWS_PercentageChanging(System.Nullable<decimal> value);
partial void OnBCWS_PercentageChanged();
partial void OnACWP_QuantityChanging(string value);
partial void OnACWP_QuantityChanging(System.Nullable<decimal> value);
partial void OnACWP_QuantityChanged();
partial void OnACWP_OutputValueChanging(string value);
partial void OnACWP_OutputValueChanging(System.Nullable<decimal> value);
partial void OnACWP_OutputValueChanged();
partial void OnACWP_PercentageChanging(string value);
partial void OnACWP_PercentageChanging(System.Nullable<decimal> value);
partial void OnACWP_PercentageChanged();
partial void OnDateChanging(string value);
partial void OnDateChanged();
@ -181313,8 +181313,8 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BCWS_Quantity", DbType="NVarChar(50)")]
public string BCWS_Quantity
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BCWS_Quantity", DbType="Decimal(18,2)")]
public System.Nullable<decimal> BCWS_Quantity
{
get
{
@ -181333,8 +181333,8 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BCWS_OutputValue", DbType="NVarChar(50)")]
public string BCWS_OutputValue
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BCWS_OutputValue", DbType="Decimal(18,2)")]
public System.Nullable<decimal> BCWS_OutputValue
{
get
{
@ -181353,8 +181353,8 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BCWS_Percentage", DbType="NVarChar(50)")]
public string BCWS_Percentage
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BCWS_Percentage", DbType="Decimal(18,2)")]
public System.Nullable<decimal> BCWS_Percentage
{
get
{
@ -181373,8 +181373,8 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ACWP_Quantity", DbType="NVarChar(50)")]
public string ACWP_Quantity
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ACWP_Quantity", DbType="Decimal(18,2)")]
public System.Nullable<decimal> ACWP_Quantity
{
get
{
@ -181393,8 +181393,8 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ACWP_OutputValue", DbType="NVarChar(50)")]
public string ACWP_OutputValue
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ACWP_OutputValue", DbType="Decimal(18,2)")]
public System.Nullable<decimal> ACWP_OutputValue
{
get
{
@ -181413,8 +181413,8 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ACWP_Percentage", DbType="NVarChar(50)")]
public string ACWP_Percentage
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ACWP_Percentage", DbType="Decimal(18,2)")]
public System.Nullable<decimal> ACWP_Percentage
{
get
{