From f9a40c32f8fa030275f4076c6d44d21f2e39ca81 Mon Sep 17 00:00:00 2001 From: xiaju <1784803958@qq.com> Date: Wed, 12 Feb 2025 15:51:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E4=BA=A4=E7=AE=A1=E7=90=86=E8=B0=83?= =?UTF-8?q?=E4=BC=98=EF=BC=9A=201=E3=80=81=E5=B0=BE=E9=A1=B9=E7=AE=A1?= =?UTF-8?q?=E7=90=86=EF=BC=8C=E8=A1=A5=E5=85=85=E8=B4=A3=E4=BB=BB=E5=8D=95?= =?UTF-8?q?=E4=BD=8D=E4=B8=8B=E6=8B=89=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=EF=BC=9B=202=E3=80=81=E5=B0=BE=E9=A1=B9=E7=AE=A1=E7=90=86?= =?UTF-8?q?=EF=BC=8C=E8=A1=A5=E5=85=85=E5=AE=8C=E6=88=90=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=EF=BC=9B=203=E3=80=81?= =?UTF-8?q?=E7=A7=BB=E4=BA=A4=E5=9B=BE=E8=A1=A8-=E5=B0=BE=E9=A1=B9?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=BB=9F=E8=AE=A1=E8=A1=A8=EF=BC=8C=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E4=BC=98=E5=8C=96=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/BLL/BLL.csproj | 1 + SGGL/BLL/Transfer/PunchlistFromService.cs | 45 +++++++++ .../Transfer/Chart/PunchlistFromChartNew.aspx | 36 +++---- .../Chart/PunchlistFromChartNew.aspx.cs | 2 +- .../FineUIPro.Web/Transfer/PunchlistFrom.aspx | 49 ++++++---- .../Transfer/PunchlistFrom.aspx.cs | 20 ++-- .../Transfer/PunchlistFrom.aspx.designer.cs | 98 +++++++++++-------- SGGL/FineUIPro.Web/Web.config | 4 +- 8 files changed, 169 insertions(+), 86 deletions(-) create mode 100644 SGGL/BLL/Transfer/PunchlistFromService.cs diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index 399763c9..de45cb1e 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -804,6 +804,7 @@ + diff --git a/SGGL/BLL/Transfer/PunchlistFromService.cs b/SGGL/BLL/Transfer/PunchlistFromService.cs new file mode 100644 index 00000000..c4b4c34c --- /dev/null +++ b/SGGL/BLL/Transfer/PunchlistFromService.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + public class PunchlistFromService + { + + + /// + /// 责任单位下拉框 + /// + /// 项目id + /// 下拉框名字 + /// 是否显示请选择 + public static void InitActionByUnitDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease) + { + var sss = GetActionByUnitDropDownList(projectId); + dropName.DataValueField = "string"; + dropName.DataTextField = "string"; + dropName.DataSource = GetActionByUnitDropDownList(projectId); + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName); + } + } + + /// + /// 获取责任单位下拉选项 + /// + /// 项目id + /// + public static List GetActionByUnitDropDownList(string projectId) + { + var list = (from x in Funs.DB.Transfer_PunchlistFrom + where x.ProjectId == projectId + select x.Action_By).Distinct().OrderBy(x => x).ToList(); + return list; + } + } +} diff --git a/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFromChartNew.aspx b/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFromChartNew.aspx index 7931068b..13b16f7e 100644 --- a/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFromChartNew.aspx +++ b/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFromChartNew.aspx @@ -75,7 +75,7 @@ - + - + @@ -96,7 +96,7 @@ - + @@ -105,7 +105,7 @@ - + @@ -114,7 +114,7 @@ - + @@ -123,7 +123,7 @@ - + @@ -144,7 +144,7 @@ - + - + @@ -166,7 +166,7 @@ - + @@ -175,7 +175,7 @@ - + @@ -184,7 +184,7 @@ - + @@ -193,7 +193,7 @@ - + @@ -221,7 +221,7 @@ @@ -241,7 +241,7 @@ - + @@ -251,7 +251,7 @@ - + @@ -261,7 +261,7 @@ - + @@ -271,7 +271,7 @@ - + @@ -286,7 +286,7 @@ - + diff --git a/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFromChartNew.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFromChartNew.aspx.cs index 9210d4cc..0fe4eb69 100644 --- a/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFromChartNew.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFromChartNew.aspx.cs @@ -525,7 +525,7 @@ namespace FineUIPro.Web.Transfer.Chart SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql.ToString(), parameter); Grid2.RecordCount = tb.Rows.Count; - var table = this.GetPagedDataTable(Grid1, tb); + var table = this.GetPagedDataTable(Grid2, tb); Grid2.DataSource = table; Grid2.DataBind(); diff --git a/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx b/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx index be9f5ebe..58ffe0ba 100644 --- a/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx +++ b/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx @@ -23,25 +23,15 @@ - - - - - - - - - - - <%----%> - - + + + - + - + - - - + + + + + + + @@ -73,6 +67,12 @@ + + + + <%----%> + + @@ -85,6 +85,19 @@ + + + + + <%----%> + + + + + + + <%-- protected global::FineUIPro.TextBox txtSub_Sys_No; - /// - /// ddlCat 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList ddlCat; - /// /// txtRaised_By 控件。 /// @@ -104,15 +95,6 @@ namespace FineUIPro.Web.Transfer /// protected global::FineUIPro.TextBox txtDisc; - /// - /// ddlPunchType 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList ddlPunchType; - /// /// btnSearch 控件。 /// @@ -141,40 +123,22 @@ namespace FineUIPro.Web.Transfer protected global::FineUIPro.Button btnClear; /// - /// Toolbar2 控件。 + /// Toolbar1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Toolbar Toolbar2; + protected global::FineUIPro.Toolbar Toolbar1; /// - /// txtAction_By 控件。 + /// ddlCat 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtAction_By; - - /// - /// txtPIC 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtPIC; - - /// - /// txtPIC_WUH 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtPIC_WUH; + protected global::FineUIPro.DropDownList ddlCat; /// /// ddlStatus 控件。 @@ -203,6 +167,15 @@ namespace FineUIPro.Web.Transfer /// protected global::FineUIPro.DropDownList ddlMatI; + /// + /// ddlPunchType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPunchType; + /// /// rbOutType 控件。 /// @@ -230,6 +203,51 @@ namespace FineUIPro.Web.Transfer /// protected global::FineUIPro.Button btnImport; + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// ddlAction_By 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlAction_By; + + /// + /// txtPIC 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPIC; + + /// + /// txtPIC_WUH 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPIC_WUH; + + /// + /// txtEndRequired_Date 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndRequired_Date; + /// /// lbPhotoesImageUrl 控件。 /// diff --git a/SGGL/FineUIPro.Web/Web.config b/SGGL/FineUIPro.Web/Web.config index 58dd68d6..6c177656 100644 --- a/SGGL/FineUIPro.Web/Web.config +++ b/SGGL/FineUIPro.Web/Web.config @@ -11,7 +11,7 @@ - + @@ -77,7 +77,7 @@ - +