20250619 修改报表

This commit is contained in:
2025-06-19 11:45:21 +08:00
parent 1390e63fe2
commit a4b1a94dd9
17 changed files with 322 additions and 272 deletions
@@ -740,6 +740,18 @@
<f:RenderField Width="120px" ColumnID="PM_Pre_Approval" DataField="PM_Pre_Approval"
FieldType="Date" Renderer="Date" HeaderText="Pre-Approval" HeaderTextAlign="Center" TextAlign="Left" >
</f:RenderField>
<%--<f:RenderField Width="120px" ColumnID="CM_KickOffMetting" DataField="CM_KickOffMetting"
FieldType="Date" Renderer="Date" HeaderText="Construction Kick Off Meeting" HeaderTextAlign="Center" TextAlign="Left" >
</f:RenderField>--%>
<f:RenderField Width="120px" ColumnID="PM_Remarks_Engineering" DataField="PM_Remarks_Engineering"
FieldType="String" HeaderText="Engineering Remark" HeaderTextAlign="Center" TextAlign="Left" >
</f:RenderField>
<f:RenderField Width="120px" ColumnID="PM_Remarks_Procurement" DataField="PM_Remarks_Procurement"
FieldType="String" HeaderText="Procurement Remark" HeaderTextAlign="Center" TextAlign="Left" >
</f:RenderField>
<f:RenderField Width="120px" ColumnID="CM_Remarks_Construction" DataField="CM_Remarks_Construction"
FieldType="String" HeaderText="Construction Remark" HeaderTextAlign="Center" TextAlign="Left" >
</f:RenderField>
</Columns>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
@@ -1403,6 +1403,20 @@ namespace FineUIPro.Web.Report
projectList.GetRow(rowIndex).GetCell(74).SetCellValue(itemOver.ProjectControl_ProjectType);
projectList.GetRow(rowIndex).GetCell(74).CellStyle.SetFont(cs_content_Font);
//Engineering Remark
if (projectList.GetRow(rowIndex).GetCell(75) == null) projectList.GetRow(rowIndex).CreateCell(75);
projectList.GetRow(rowIndex).GetCell(75).SetCellValue(itemOver.PM_Remarks_Engineering);
projectList.GetRow(rowIndex).GetCell(75).CellStyle.SetFont(cs_content_Font);
//Procurement Remark
if (projectList.GetRow(rowIndex).GetCell(76) == null) projectList.GetRow(rowIndex).CreateCell(76);
projectList.GetRow(rowIndex).GetCell(76).SetCellValue(itemOver.PM_Remarks_Procurement);
projectList.GetRow(rowIndex).GetCell(76).CellStyle.SetFont(cs_content_Font);
//Construction Remark
if (projectList.GetRow(rowIndex).GetCell(77) == null) projectList.GetRow(rowIndex).CreateCell(77);
projectList.GetRow(rowIndex).GetCell(77).SetCellValue(itemOver.CM_Remarks_Construction);
projectList.GetRow(rowIndex).GetCell(77).CellStyle.SetFont(cs_content_Font);
#endregion
rowIndex++;
@@ -20,13 +20,15 @@
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server">
<Items>
<f:DropDownList ID="drpJobStatus" runat="server" Label="Job Status" EnableEdit="true" EnableCheckBoxSelect="true" EnableMultiSelect="true" LabelAlign="Right" NextFocusControl="btnSearch">
<f:DropDownList ID="drpJobStatus" runat="server" Label="Job Status" EnableEdit="true" EnableCheckBoxSelect="true" EnableMultiSelect="true" LabelAlign="Right" NextFocusControl="btnSearch" Width="270px">
</f:DropDownList>
<f:TextBox ID="txtJobNo" runat="server" Label="Job NO." LabelAlign="Right" NextFocusControl="btnSearch" Width="270px"></f:TextBox>
<f:TextBox ID="txtAccount" runat="server" Label="Account" LabelAlign="Right" NextFocusControl="btnSearch" Width="270px"></f:TextBox>
<f:DropDownList ID="drpName" runat="server" Label="Name" LabelAlign="Right" EnableEdit="true" EnableCheckBoxSelect="true" EnableMultiSelect="true" NextFocusControl="btnSearch" Width="270px"></f:DropDownList>
<f:Button ID="btnSearch" runat="server" Icon="SystemSearch" Text="Search" OnClick="btnSearch_Click"></f:Button>
<%--<f:TextBox ID="txtJobNo" runat="server" Label="Job No." LabelAlign="Right" EmptyText="query conditions" AutoPostBack="true" OnTextChanged="DropDownList_SelectedIndexChanged"></f:TextBox>--%>
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
<f:Button ID="btnExport" OnClick="btnExport_Click" runat="server" Text="Export" ToolTip="Export"
Icon="DoorOut" EnableAjax="false" DisableControlBeforePostBack="true" EnablePress="true" Pressed="false" Hidden="true" >
<f:Button ID="btnExport" OnClick="btnExport_Click" runat="server" Text="Export" ToolTip="Export"
Icon="DoorOut" EnableAjax="false" DisableControlBeforePostBack="true" EnablePress="true" Pressed="false" Hidden="true">
</f:Button>
</Items>
</f:Toolbar>
@@ -87,7 +89,7 @@
</Operator>
</Filter>
</f:RenderField>
<f:RenderField Width="110px" ColumnID="Phase" DataField="Phase"
<f:RenderField Width="110px" ColumnID="Phase" DataField="Phase"
FieldType="String" HeaderText="Phase" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="110px" ColumnID="PM_MA_JobReveive" DataField="PM_MA_JobReveive"
@@ -157,7 +159,7 @@
</Filter>
</f:RenderField>
<f:RenderField Width="150px" ColumnID="Account" DataField="Account"
FieldType="String" HeaderText="Account" HeaderTextAlign="Center" TextAlign="Left" >
FieldType="String" HeaderText="Account" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="EngineerName" DataField="EngineerName"
FieldType="String" HeaderText="Name" HeaderTextAlign="Center" TextAlign="Left" EnableFilter="true">
@@ -236,7 +238,7 @@
<f:BoundField Width="110px" DataField="IFC_All" HeaderText="IFC_All">
</f:BoundField>
<f:RenderField Width="110px" ColumnID="Detail_Eng_Civil_Sch_Start" DataField="Detail_Eng_Civil_Sch_Start"
<f:RenderField Width="110px" ColumnID="Detail_Eng_Civil_Sch_Start" DataField="Detail_Eng_Civil_Sch_Start"
FieldType="Date" Renderer="Date" HeaderText="PROJ_DE_CIVIL_SCH_START_DATE" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="110px" ColumnID="Detail_Eng_Civil_Sch_End" DataField="Detail_Eng_Civil_Sch_End"
@@ -260,7 +262,7 @@
<f:RenderField Width="110px" ColumnID="PROJ_DE_ME_ACU_END_DATE" DataField="PROJ_DE_ME_ACU_END_DATE"
FieldType="Date" Renderer="Date" HeaderText="PROJ_DE_ME_ACU_END_DATE" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="110px" ColumnID="ProjectControl_LeadByName" DataField="ProjectControl_LeadByName"
<f:RenderField Width="110px" ColumnID="ProjectControl_LeadByName" DataField="ProjectControl_LeadByName"
FieldType="String" HeaderText="Lead By" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
</Columns>
@@ -7,6 +7,8 @@ using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
using System.Xml.Linq;
using Org.BouncyCastle.Bcpg.OpenPgp;
namespace FineUIPro.Web.Report
{
public partial class ProjectManhourReport : PageBase
@@ -27,6 +29,7 @@ namespace FineUIPro.Web.Report
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
BLL.ConstService.InitConstValueDropDownList(this.drpJobStatus, BLL.Const.ProjectPlanner_JobStatus, true);
BLL.Sys_UserService.InitCTEUserDropDownList(this.drpName, true);
// 绑定表格
BindGrid();
@@ -49,6 +52,19 @@ namespace FineUIPro.Web.Report
string status = String.Join(",", drpJobStatus.SelectedItemArray.Select(e => e.Text));
listStr.Add(new SqlParameter("@JobStatus", status));
}
if (!string.IsNullOrEmpty(this.txtJobNo.Text.Trim()))
{
listStr.Add(new SqlParameter("@JobNo", "%" + this.txtJobNo.Text.Trim() + "%"));
}
if (!string.IsNullOrEmpty(this.txtAccount.Text.Trim()))
{
listStr.Add(new SqlParameter("@Account", "%" + this.txtAccount.Text.Trim() + "%"));
}
if (this.drpName.SelectedValue != BLL.Const._Null && this.drpName.SelectedValue != null)
{
string name = String.Join(",", drpName.SelectedItemArray.Select(e => e.Text));
listStr.Add(new SqlParameter("@Name", name));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunProc("Proc_ProjectManhourReport", parameter);
Grid1.RecordCount = tb.Rows.Count;
@@ -289,8 +305,7 @@ namespace FineUIPro.Web.Report
{
BindGrid();
}
#endregion
#endregion
#region
/// <summary>
@@ -375,6 +390,31 @@ namespace FineUIPro.Web.Report
{
listStr.Add(new SqlParameter("@JobStatus", null));
}
if (!string.IsNullOrEmpty(this.txtJobNo.Text.Trim()))
{
listStr.Add(new SqlParameter("@JobNo", "%" + this.txtJobNo.Text.Trim() + "%"));
}
else
{
listStr.Add(new SqlParameter("@JobNo", null));
}
if (!string.IsNullOrEmpty(this.txtAccount.Text.Trim()))
{
listStr.Add(new SqlParameter("@Account", "%" + this.txtAccount.Text.Trim() + "%"));
}
else
{
listStr.Add(new SqlParameter("@Account", null));
}
if (drpName.SelectedValue != BLL.Const._Null && drpName.SelectedValue != null)
{
string status = String.Join(",", drpName.SelectedItemArray.Select(x => x.Text));
listStr.Add(new SqlParameter("@Name", status));
}
else
{
listStr.Add(new SqlParameter("@Name", null));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable table = SQLHelper.GetDataTableRunProc("Proc_ProjectManhourReport", parameter);
if (table.Rows.Count > 0)
@@ -7,11 +7,13 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.Report {
public partial class ProjectManhourReport {
namespace FineUIPro.Web.Report
{
public partial class ProjectManhourReport
{
/// <summary>
/// form1 控件。
/// </summary>
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// Grid1 控件。
/// </summary>
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// Toolbar1 控件。
/// </summary>
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// drpJobStatus 控件。
/// </summary>
@@ -65,7 +67,34 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpJobStatus;
/// <summary>
/// txtJobNo 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtJobNo;
/// <summary>
/// txtAccount 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtAccount;
/// <summary>
/// drpName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpName;
/// <summary>
/// btnSearch 控件。
/// </summary>
@@ -74,7 +103,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSearch;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
@@ -83,7 +112,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// btnExport 控件。
/// </summary>
@@ -92,7 +121,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnExport;
/// <summary>
/// DropDowsnList1 控件。
/// </summary>
@@ -101,7 +130,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList DropDowsnList1;
/// <summary>
/// DropDownList1 控件。
/// </summary>
@@ -110,7 +139,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList DropDownList1;
/// <summary>
/// DropDownList2 控件。
/// </summary>
@@ -119,7 +148,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList DropDownList2;
/// <summary>
/// DropDownList3 控件。
/// </summary>
@@ -128,7 +157,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList DropDownList3;
/// <summary>
/// DropDownList4 控件。
/// </summary>
@@ -137,7 +166,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList DropDownList4;
/// <summary>
/// DropDownList5 控件。
/// </summary>
@@ -146,7 +175,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList DropDownList5;
/// <summary>
/// DropDownList6 控件。
/// </summary>
@@ -155,7 +184,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList DropDownList6;
/// <summary>
/// DropDownList7 控件。
/// </summary>
@@ -164,7 +193,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList DropDownList7;
/// <summary>
/// DropDownList8 控件。
/// </summary>
@@ -173,7 +202,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList DropDownList8;
/// <summary>
/// DropDownList9 控件。
/// </summary>
@@ -182,7 +211,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList DropDownList9;
/// <summary>
/// DropDownList10 控件。
/// </summary>
@@ -191,7 +220,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList DropDownList10;
/// <summary>
/// DropDownList11 控件。
/// </summary>
@@ -200,7 +229,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList DropDownList11;
/// <summary>
/// DropDownList12 控件。
/// </summary>
@@ -209,7 +238,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList DropDownList12;
/// <summary>
/// DropDownList13 控件。
/// </summary>
@@ -218,7 +247,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList DropDownList13;
/// <summary>
/// DropDownList14 控件。
/// </summary>
@@ -227,7 +256,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList DropDownList14;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
@@ -236,7 +265,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
@@ -245,7 +274,7 @@ namespace FineUIPro.Web.Report {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>