This commit is contained in:
毕文静 2025-06-27 15:40:24 +08:00
parent df66193a9d
commit 429b8f6215
3 changed files with 49 additions and 26 deletions

View File

@ -79,6 +79,7 @@
<f:Toolbar ID="Toolbar3" Position="Top" runat="server"> <f:Toolbar ID="Toolbar3" Position="Top" runat="server">
<Items> <Items>
<f:Button ID="btnPrint" BoxConfigAlign="Center" Icon="Printer" runat="server" EnableAjax="false" DisableControlBeforePostBack="false" Text="项目管理管线单线图附页" ToolTip="项目管理管线单线图附页" OnClick="btnPrint_Click"></f:Button> <f:Button ID="btnPrint" BoxConfigAlign="Center" Icon="Printer" runat="server" EnableAjax="false" DisableControlBeforePostBack="false" Text="项目管理管线单线图附页" ToolTip="项目管理管线单线图附页" OnClick="btnPrint_Click"></f:Button>
<f:DropDownList ID="drpIsoId" runat="server" Label="管线号" LabelAlign="Right" EnableEdit="true" AutoSelectFirstItem="false" AutoPostBack="true" OnSelectedIndexChanged="drpIsoId_SelectedIndexChanged"></f:DropDownList>
</Items> </Items>
</f:Toolbar> </f:Toolbar>
</Toolbars> </Toolbars>

View File

@ -56,6 +56,11 @@ namespace FineUIPro.Web.ContinuousPrint
FROM HJGL_View_IsoInfo WHERE ProjectId= @ProjectId"; FROM HJGL_View_IsoInfo WHERE ProjectId= @ProjectId";
List<SqlParameter> listStr = new List<SqlParameter>(); List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", ProjectId)); listStr.Add(new SqlParameter("@ProjectId", ProjectId));
if (this.drpIsoId.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpIsoId.SelectedValue))
{
strSql += " AND ISO_ID=@isoId";
listStr.Add(new SqlParameter("@isoId", this.drpIsoId.SelectedValue));
}
SqlParameter[] parameter = listStr.ToArray(); SqlParameter[] parameter = listStr.ToArray();
Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter); Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter);
Grid2.DataBind(); Grid2.DataBind();
@ -111,6 +116,11 @@ namespace FineUIPro.Web.ContinuousPrint
{ {
this.hidProjectName.Text = BLL.Base_ProjectService.GetProjectByProjectId(this.Grid1.SelectedRowID).ProjectName; this.hidProjectName.Text = BLL.Base_ProjectService.GetProjectByProjectId(this.Grid1.SelectedRowID).ProjectName;
BindGrid1(this.Grid1.SelectedRowID); BindGrid1(this.Grid1.SelectedRowID);
this.drpIsoId.DataTextField = "ISO_IsoNo";
this.drpIsoId.DataValueField = "ISO_ID";
this.drpIsoId.DataSource = (from x in Funs.DB.HJGL_PW_IsoInfo where x.ProjectId == this.Grid1.SelectedRowID orderby x.ISO_IsoNo select x).ToList();
this.drpIsoId.DataBind();
} }
} }
#endregion #endregion
@ -821,5 +831,10 @@ namespace FineUIPro.Web.ContinuousPrint
return newdt; return newdt;
} }
#endregion #endregion
protected void drpIsoId_SelectedIndexChanged(object sender, EventArgs e)
{
BindGrid1(this.Grid1.SelectedRowID);
}
} }
} }

View File

@ -7,12 +7,10 @@
// </自动生成> // </自动生成>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace FineUIPro.Web.ContinuousPrint namespace FineUIPro.Web.ContinuousPrint {
{
public partial class PipingSingleDiagramPrint public partial class PipingSingleDiagramPrint {
{
/// <summary> /// <summary>
/// form1 控件。 /// form1 控件。
@ -167,6 +165,15 @@ namespace FineUIPro.Web.ContinuousPrint
/// </remarks> /// </remarks>
protected global::FineUIPro.Button btnPrint; protected global::FineUIPro.Button btnPrint;
/// <summary>
/// drpIsoId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpIsoId;
/// <summary> /// <summary>
/// lblContractor 控件。 /// lblContractor 控件。
/// </summary> /// </summary>