From 499aa7c54c014df99ebdd4039b2cbe80a7bf3bb0 Mon Sep 17 00:00:00 2001 From: fly-l <1420031550@qq.com> Date: Fri, 27 Oct 2023 18:07:01 +0800 Subject: [PATCH] 2023-10-27 --- .../WeldingManage/SelectTaskWeldJoint.aspx | 17 +++++++++++++--- .../WeldingManage/SelectTaskWeldJoint.aspx.cs | 20 +++++++++++++++++++ .../SelectTaskWeldJoint.aspx.designer.cs | 18 +++++++++++++++++ 3 files changed, 52 insertions(+), 3 deletions(-) diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/SelectTaskWeldJoint.aspx b/SGGL/FineUIPro.Web/HJGL/WeldingManage/SelectTaskWeldJoint.aspx index eecf129c..cf566ee8 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/SelectTaskWeldJoint.aspx +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/SelectTaskWeldJoint.aspx @@ -18,21 +18,32 @@ + LabelAlign="Left"> + + EnablePostBack="true" OnClick="btnQuery_Click" runat="server" > + + + + + + + + (); //this.NoSelectedList = new List(); + string strList = Request.Params["strList"]; List list = Funs.GetStrListByStr(strList, '|'); if (list.Count() == 2) @@ -127,6 +128,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage this.UnitWorkId = list[0]; TaskDate = list[1]; + InitDropList(); Model.WBS_UnitWork UnitWork = BLL.UnitWorkService.getUnitWorkByUnitWorkId(this.UnitWorkId); BLL.UnitService.InitUnitDropDownListByUnitIds(this.drpUnit, UnitWork.UnitId, false);//单位 @@ -208,6 +210,11 @@ namespace FineUIPro.Web.HJGL.WeldingManage && x.PipeArea == PipeArea && x.PipelineCode.Contains(this.txtPipelineCode.Text.Trim()) orderby x.PipelineCode select x).ToList(); + if (!string .IsNullOrEmpty( drpFlowingSection.SelectedValue)) + { + pipeline = pipeline.Where(x => x.FlowingSection == drpFlowingSection.SelectedValue).ToList(); + } + var joints = (from x in Funs.DB.HJGL_WeldJoint where x.ProjectId == this.CurrUser.LoginProjectId select x).ToList(); int pageindex = int.Parse(node.CommandName.Split('|')[0]); int pageCount = int.Parse(node.CommandName.Split('|')[1]); @@ -352,6 +359,19 @@ namespace FineUIPro.Web.HJGL.WeldingManage //} //Grid1.SelectedRowIDArray = arr; } + + private void InitDropList() + { + var pipeline = (from x in Funs.DB.HJGL_Pipeline + where x.ProjectId == this.CurrUser.LoginProjectId + && x.UnitWorkId == this.UnitWorkId + select x.FlowingSection).Distinct().ToList(); + this.drpFlowingSection.DataTextField = "Value"; + this.drpFlowingSection.DataValueField = "Value"; + this.drpFlowingSection.DataSource = pipeline; + this.drpFlowingSection.DataBind(); + } + #endregion #region 管线查询 diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/SelectTaskWeldJoint.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/SelectTaskWeldJoint.aspx.designer.cs index 64d43cb0..711c9172 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/SelectTaskWeldJoint.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/SelectTaskWeldJoint.aspx.designer.cs @@ -77,6 +77,24 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// protected global::FineUIPro.Button btnQuery; + /// + /// Toolbar4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar4; + + /// + /// drpFlowingSection 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpFlowingSection; + /// /// tvControlItem 控件。 ///