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 @@ - +