2023-10-27

This commit is contained in:
2023-10-27 17:46:32 +08:00
parent e46a7ad179
commit 65a5fdae3e
16 changed files with 268 additions and 50 deletions
@@ -363,7 +363,7 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
{
Response.ClearContent();
string filename = Funs.GetNewFileName();
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("合同执行跟踪表" + filename, System.Text.Encoding.UTF8) + ".xls");
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("费用对比统计表" + filename, System.Text.Encoding.UTF8) + ".xls");
Response.ContentType = "application/excel";
Response.ContentEncoding = System.Text.Encoding.UTF8;
this.Grid1.PageSize = 500;
@@ -22,6 +22,10 @@
.f-grid-row.red {
background-color: Yellow;
}
.customlabel span {
color: red;
font-weight: bold;
}
</style>
</head>
<body>
@@ -45,6 +49,7 @@
LabelWidth="140px" OnSelectedIndexChanged="DropMainContractCode_SelectedIndexChanged">
</f:DropDownList>
<f:Label ID="txtContractName" runat="server" Label="合同名称" LabelAlign="Right" LabelWidth="140px"></f:Label>
<f:Label ID="lbTotalPrice" CssClass="customlabel" runat="server" Label="合价" LabelWidth="70px"></f:Label>
<f:ToolbarFill runat="server" />
<f:Button ID="btnNew" ToolTip="新增" Text="新增" Hidden="true" Icon="Add" runat="server"
@@ -53,7 +53,8 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
//tb = GetFilteredTable(Grid1.FilteredData, tb);
Grid1.DataSource = tb;
Grid1.DataBind();
var sumTotalPricea = tb.Select(x =>Funs.GetNewDecimalOrZero(x.TotalPrice) ).ToList().Sum();
lbTotalPrice.Text = sumTotalPricea.ToString();
}
#endregion
@@ -545,7 +546,7 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
{
Response.ClearContent();
string filename = Funs.GetNewFileName();
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("合同执行跟踪表" + filename, System.Text.Encoding.UTF8) + ".xls");
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("合同价格信息表" + filename, System.Text.Encoding.UTF8) + ".xls");
Response.ContentType = "application/excel";
Response.ContentEncoding = System.Text.Encoding.UTF8;
this.Grid1.PageSize = 500;
@@ -86,6 +86,15 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
/// </remarks>
protected global::FineUIPro.Label txtContractName;
/// <summary>
/// lbTotalPrice 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label lbTotalPrice;
/// <summary>
/// btnNew 控件。
/// </summary>