20260209 特种设备安装改造维修告知书

This commit is contained in:
毕文静 2026-02-09 09:37:27 +08:00
parent c724eb117e
commit cb84240b73
35 changed files with 840 additions and 293 deletions

View File

@ -18,11 +18,21 @@ namespace BLL
return Funs.DB.JGZL_SpecialEquipmentMaintenance.FirstOrDefault(e => e.MaintenanceId == maintenanceId); return Funs.DB.JGZL_SpecialEquipmentMaintenance.FirstOrDefault(e => e.MaintenanceId == maintenanceId);
} }
/// <summary> /// <summary>
/// 增加特种设备安装改造维修告知书 /// 根据项目Id获取设备安装改造维修告知书
/// </summary> /// </summary>
/// <param name="maintenance"></param> /// <param name="projectId"></param>
public static void AddSpecialEquipmentMaintenance(Model.JGZL_SpecialEquipmentMaintenance maintenance) /// <returns></returns>
public static Model.JGZL_SpecialEquipmentMaintenance GetSpecialEquipmentMaintenanceByProjectId(string projectId)
{
return Funs.DB.JGZL_SpecialEquipmentMaintenance.FirstOrDefault(e => e.MaintenanceId == projectId);
}
/// <summary>
/// 增加特种设备安装改造维修告知书
/// </summary>
/// <param name="maintenance"></param>
public static void AddSpecialEquipmentMaintenance(Model.JGZL_SpecialEquipmentMaintenance maintenance)
{ {
SGGLDB db = Funs.DB; SGGLDB db = Funs.DB;
Model.JGZL_SpecialEquipmentMaintenance newMaintenance = new Model.JGZL_SpecialEquipmentMaintenance(); Model.JGZL_SpecialEquipmentMaintenance newMaintenance = new Model.JGZL_SpecialEquipmentMaintenance();

View File

@ -1,5 +1,27 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/29/2026 16:26:38" ReportInfo.Modified="02/07/2026 16:41:04" ReportInfo.CreatorVersion="2017.1.16.0"> <Report ScriptLanguage="CSharp" ReportInfo.Created="01/29/2026 16:26:38" ReportInfo.Modified="02/08/2026 11:00:00" ReportInfo.CreatorVersion="2017.1.16.0">
<ScriptText>using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Windows.Forms;
using System.Drawing;
using System.Data;
using FastReport;
using FastReport.Data;
using FastReport.Dialog;
using FastReport.Barcode;
using FastReport.Table;
using FastReport.Utils;
namespace FastReport
{
public class ReportScript
{
}
}
</ScriptText>
<Dictionary> <Dictionary>
<Parameter Name="ProjectName" DataType="System.String"/> <Parameter Name="ProjectName" DataType="System.String"/>
<Parameter Name="ProjectOverview" DataType="System.String"/> <Parameter Name="ProjectOverview" DataType="System.String"/>
@ -26,7 +48,7 @@
</TableRow> </TableRow>
</TableObject> </TableObject>
</PageHeaderBand> </PageHeaderBand>
<DataBand Name="Data1" Top="98.5" Width="646.38" Height="830.2" Guides="0,830.2,194.11,227.57,33.46,327.95,261.03,294.49,361.41,394.87,428.33,461.79,495.25,528.71,642.88,562.17,605.08,42.91,37.8,676.34,709.8,749.49"> <DataBand Name="Data1" Top="98.5" Width="646.38" Height="830.2" Guides="0,830.2,194.11,227.57,33.46,327.95,361.41,394.87,428.33,461.79,495.25,528.71,642.88,42.91,37.8,676.34,709.8,749.49">
<TableObject Name="Table2" Width="646.38" Height="830.2" Border.Lines="Left, Right, Bottom"> <TableObject Name="Table2" Width="646.38" Height="830.2" Border.Lines="Left, Right, Bottom">
<TableColumn Name="Column4" Width="228.15"/> <TableColumn Name="Column4" Width="228.15"/>
<TableColumn Name="Column5" Width="418.23"/> <TableColumn Name="Column5" Width="418.23"/>
@ -55,20 +77,20 @@
<TableCell Name="Cell27" VertAlign="Center" Font="楷体, 10.5pt"/> <TableCell Name="Cell27" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow> </TableRow>
<TableRow Name="Row8" Height="33.46"> <TableRow Name="Row8" Height="33.46">
<TableCell Name="Cell28" Text="建设单位:" HorzAlign="Right" VertAlign="Center" Font="楷体, 10.5pt"/> <TableCell Name="Cell28" Text="建设单位:[ConstructionUnit]" Padding="50, 1, 2, 1" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell29" Text="[ConstructionUnit]" VertAlign="Center" Font="楷体, 10.5pt"/> <TableCell Name="Cell29" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow> </TableRow>
<TableRow Name="Row9" Height="33.46"> <TableRow Name="Row9" Height="33.46">
<TableCell Name="Cell30" Text="设计单位:" HorzAlign="Right" VertAlign="Center" Font="楷体, 10.5pt"/> <TableCell Name="Cell30" Text="设计单位:[DesigningUnit]" Padding="50, 1, 2, 1" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell31" Text="[DesigningUnit]" VertAlign="Center" Font="楷体, 10.5pt"/> <TableCell Name="Cell31" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow> </TableRow>
<TableRow Name="Row10" Height="33.46"> <TableRow Name="Row10" Height="33.46">
<TableCell Name="Cell32" Text="检测单位:" HorzAlign="Right" VertAlign="Center" Font="楷体, 10.5pt"/> <TableCell Name="Cell32" Text="检测单位:[TestingUnit]" Padding="50, 1, 2, 1" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell33" Text="[TestingUnit]" VertAlign="Center" Font="楷体, 10.5pt"/> <TableCell Name="Cell33" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow> </TableRow>
<TableRow Name="Row11" Height="33.46"> <TableRow Name="Row11" Height="33.46">
<TableCell Name="Cell34" Text="施工单位:" HorzAlign="Right" VertAlign="Center" Font="楷体, 10.5pt"/> <TableCell Name="Cell34" Text="施工单位:[ConstructionCompany]" Padding="50, 1, 2, 1" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell35" Text="[ConstructionCompany]" VertAlign="Center" Font="楷体, 10.5pt"/> <TableCell Name="Cell35" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow> </TableRow>
<TableRow Name="Row12" Height="33.46"> <TableRow Name="Row12" Height="33.46">
<TableCell Name="Cell36" Text="四、案卷构成及本卷册主要内容" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/> <TableCell Name="Cell36" Text="四、案卷构成及本卷册主要内容" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="02/06/2026 16:23:06" ReportInfo.CreatorVersion="2017.1.16.0"> <Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="02/08/2026 11:11:39" ReportInfo.CreatorVersion="2017.1.16.0">
<Dictionary> <Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QF9Yu2tPE4XnZAHvGq5Vj6Kw=="> <MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFPYfzwMV5u+uo6P+ngcIbpQ==">
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data"> <TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
<Column Name="CertificateCode" DataType="System.String" PropName="attach_image_id"/> <Column Name="CertificateCode" DataType="System.String" PropName="attach_image_id"/>
<Column Name="EngineeringName" DataType="System.String" PropName="image_series"/> <Column Name="EngineeringName" DataType="System.String" PropName="image_series"/>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/22/2025 14:15:28" ReportInfo.Modified="02/06/2026 16:12:03" ReportInfo.CreatorVersion="2017.1.16.0"> <Report ScriptLanguage="CSharp" ReportInfo.Created="12/22/2025 14:15:28" ReportInfo.Modified="02/08/2026 11:01:59" ReportInfo.CreatorVersion="2017.1.16.0">
<Dictionary> <Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFhOYRTSh3GPJRF/zyf7XpDg=="> <MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFTMfW2RuqdVwibFML3uCXMA==">
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data"> <TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
<Column Name="MaintenanceCode" DataType="System.String" PropName="attach_image_id"/> <Column Name="MaintenanceCode" DataType="System.String" PropName="attach_image_id"/>
<Column Name="ConUnit" DataType="System.String" PropName="image_series"/> <Column Name="ConUnit" DataType="System.String" PropName="image_series"/>

View File

@ -164,7 +164,9 @@ namespace FineUIPro.Web.JGZL
///<param name="e"></param> ///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu(); this.InitTreeMenu();
BindGrid();
} }
/// <summary> /// <summary>

View File

@ -175,7 +175,9 @@ namespace FineUIPro.Web.JGZL
///<param name="e"></param> ///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu(); this.InitTreeMenu();
BindGrid();
} }
/// <summary> /// <summary>

View File

@ -164,7 +164,9 @@ namespace FineUIPro.Web.JGZL
///<param name="e"></param> ///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu(); this.InitTreeMenu();
BindGrid();
} }
/// <summary> /// <summary>

View File

@ -166,7 +166,9 @@ namespace FineUIPro.Web.JGZL
///<param name="e"></param> ///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu(); this.InitTreeMenu();
BindGrid();
} }
/// <summary> /// <summary>

View File

@ -164,7 +164,9 @@ namespace FineUIPro.Web.JGZL
///<param name="e"></param> ///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu(); this.InitTreeMenu();
BindGrid();
} }
/// <summary> /// <summary>

View File

@ -164,8 +164,9 @@ namespace FineUIPro.Web.JGZL
///<param name="e"></param> ///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu(); this.InitTreeMenu();
this.BindGrid(); BindGrid();
} }
/// <summary> /// <summary>

View File

@ -164,7 +164,9 @@ namespace FineUIPro.Web.JGZL
///<param name="e"></param> ///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu(); this.InitTreeMenu();
BindGrid();
} }
/// <summary> /// <summary>

View File

@ -118,7 +118,9 @@ namespace FineUIPro.Web.JGZL
///<param name="e"></param> ///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu(); this.InitTreeMenu();
BindGrid();
} }
#endregion #endregion

View File

@ -112,7 +112,9 @@ namespace FineUIPro.Web.JGZL
///<param name="e"></param> ///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu(); this.InitTreeMenu();
PageData();
} }
#endregion #endregion

View File

@ -188,7 +188,9 @@ namespace FineUIPro.Web.JGZL
///<param name="e"></param> ///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu(); this.InitTreeMenu();
BindGrid();
} }
/// <summary> /// <summary>

View File

@ -157,7 +157,9 @@ namespace FineUIPro.Web.JGZL
///<param name="e"></param> ///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu(); this.InitTreeMenu();
BindGrid();
} }
#endregion #endregion

View File

@ -164,7 +164,9 @@ namespace FineUIPro.Web.JGZL
///<param name="e"></param> ///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu(); this.InitTreeMenu();
BindGrid();
} }
/// <summary> /// <summary>

View File

@ -164,8 +164,9 @@ namespace FineUIPro.Web.JGZL
///<param name="e"></param> ///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu(); this.InitTreeMenu();
this.BindGrid(); BindGrid();
} }
/// <summary> /// <summary>

View File

@ -167,8 +167,9 @@ namespace FineUIPro.Web.JGZL
///<param name="e"></param> ///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu(); this.InitTreeMenu();
this.BindGrid(); BindGrid();
} }
/// <summary> /// <summary>

View File

@ -175,7 +175,9 @@ namespace FineUIPro.Web.JGZL
///<param name="e"></param> ///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu(); this.InitTreeMenu();
BindGrid();
} }
/// <summary> /// <summary>

View File

@ -179,7 +179,9 @@ namespace FineUIPro.Web.JGZL
///<param name="e"></param> ///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu(); this.InitTreeMenu();
BindGrid();
} }
/// <summary> /// <summary>

View File

@ -164,7 +164,9 @@ namespace FineUIPro.Web.JGZL
///<param name="e"></param> ///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu(); this.InitTreeMenu();
BindGrid();
} }
/// <summary> /// <summary>

View File

@ -164,7 +164,9 @@ namespace FineUIPro.Web.JGZL
///<param name="e"></param> ///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu(); this.InitTreeMenu();
BindGrid();
} }
/// <summary> /// <summary>

View File

@ -176,6 +176,7 @@ namespace FineUIPro.Web.JGZL
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.InitTreeMenu(); this.InitTreeMenu();
this.BindGrid();
} }
/// <summary> /// <summary>

View File

@ -174,6 +174,7 @@ namespace FineUIPro.Web.JGZL
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.InitTreeMenu(); this.InitTreeMenu();
this.BindGrid();
} }
/// <summary> /// <summary>

View File

@ -176,6 +176,7 @@ namespace FineUIPro.Web.JGZL
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.InitTreeMenu(); this.InitTreeMenu();
this.BindGrid();
} }
/// <summary> /// <summary>

View File

@ -176,6 +176,7 @@ namespace FineUIPro.Web.JGZL
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.InitTreeMenu(); this.InitTreeMenu();
this.BindGrid();
} }
/// <summary> /// <summary>

View File

@ -91,6 +91,7 @@ namespace FineUIPro.Web.JGZL
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.InitTreeMenu(); this.InitTreeMenu();
this.BindGrid();
} }
#endregion #endregion

View File

@ -39,14 +39,99 @@
<Items> <Items>
<f:ToolbarFill ID="ToolbarFill1" runat="server"> <f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill> </f:ToolbarFill>
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button> <f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
<%--<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>--%>
<f:Button ID="btnPrint" Text="特种设备安装改造维修告知书打印" Icon="Printer" runat="server" OnClick="btnPrint_Click"> <f:Button ID="btnPrint" Text="特种设备安装改造维修告知书打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
</f:Button> </f:Button>
</Items> </Items>
</f:Toolbar> </f:Toolbar>
</Toolbars> </Toolbars>
<Items> <Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="特种设备安装改造维修告知书" EnableCollapse="true" <f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true" BodyPadding="10px"
runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtConUnit" runat="server" Label="施工单位" LabelAlign="Right" LabelWidth="130px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
<f:TextBox ID="txtMaintenanceCode" runat="server" Label="告知书编号" LabelAlign="Right" LabelWidth="130px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtEquipmentName" runat="server" Label="设备名称" LabelAlign="Right" LabelWidth="130px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
<f:TextBox ID="txtEquipmentModel" runat="server" Label="型号(参数)" LabelAlign="Right" LabelWidth="130px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtEquipmentCode" runat="server" Label="设备代码" LabelAlign="Right" LabelWidth="130px"></f:TextBox>
<f:TextBox ID="txtManufacturingNumber" runat="server" Label="制造编号" LabelAlign="Right" LabelWidth="130px"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtManufacturingUnit" runat="server" Label="设备制造单位全称" LabelAlign="Right" LabelWidth="130px"></f:TextBox>
<f:TextBox ID="txtManufacturingLicenseNumber" runat="server" Label="制造许可证编号" LabelAlign="Right" LabelWidth="130px"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtEquipmentLocation" runat="server" Label="设备地点" LabelAlign="Right" LabelWidth="130px"></f:TextBox>
<f:DatePicker ID="txtConstructionDate" runat="server" Label="施工日期" LabelAlign="Right" LabelWidth="130px"></f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpConstructionCategory" runat="server" Label="施工类别" LabelAlign="Right" LabelWidth="130px" ShowRedStar="true" Required="true">
<f:ListItem Value="改造" Text="改造" Selected="true" />
<f:ListItem Value="安装" Text="安装" />
<f:ListItem Value="维修" Text="维修" />
</f:DropDownList>
<f:TextBox ID="txtLicenseNumber" runat="server" Label="许可证编号" LabelAlign="Right" LabelWidth="130px"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DatePicker ID="txtLicenseValidityDate" runat="server" Label="许可证有效期" LabelAlign="Right" LabelWidth="130px"></f:DatePicker>
<f:TextBox ID="txtConContactMan" runat="server" Label="联系人" LabelAlign="Right" LabelWidth="130px"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtConTelephone" runat="server" Label="电话" LabelAlign="Right" LabelWidth="130px"></f:TextBox>
<f:TextBox ID="txtConFax" runat="server" Label="传真" LabelAlign="Right" LabelWidth="130px"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtConAddress" runat="server" Label="地址" LabelAlign="Right" LabelWidth="130px"></f:TextBox>
<f:TextBox ID="txtConEmail" runat="server" Label="邮编" LabelAlign="Right" LabelWidth="130px"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtUseUnit" runat="server" Label="使用单位全称" LabelAlign="Right" LabelWidth="130px"></f:TextBox>
<f:TextBox ID="txtUseContactMan" runat="server" Label="联系人" LabelAlign="Right" LabelWidth="130px"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtUseTelephone" runat="server" Label="电话" LabelAlign="Right" LabelWidth="130px"></f:TextBox>
<f:TextBox ID="txtUseFax" runat="server" Label="传真" LabelAlign="Right" LabelWidth="130px"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtUseAddress" runat="server" Label="地址" LabelAlign="Right" LabelWidth="130px"></f:TextBox>
<f:TextBox ID="txtUseEmail" runat="server" Label="邮编" LabelAlign="Right" LabelWidth="130px"></f:TextBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
<%--<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="特种设备安装改造维修告知书" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="MaintenanceId" AllowCellEditing="true" runat="server" BoxFlex="1" DataKeyNames="MaintenanceId" AllowCellEditing="true"
EnableColumnLines="true" ClicksToEdit="1" DataIDField="MaintenanceId" AllowSorting="true" EnableColumnLines="true" ClicksToEdit="1" DataIDField="MaintenanceId" AllowSorting="true"
SortField="MaintenanceCode" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true" SortField="MaintenanceCode" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true"
@ -102,35 +187,35 @@
<f:ListItem Text="25" Value="25" /> <f:ListItem Text="25" Value="25" />
</f:DropDownList> </f:DropDownList>
</PageItems> </PageItems>
</f:Grid> </f:Grid>--%>
</Items> </Items>
</f:Panel> </f:Panel>
</Items> </Items>
</f:Panel> </f:Panel>
<f:Window ID="Window1" Title="特种设备安装改造维修告知书" Hidden="true" EnableIFrame="true" EnableMaximize="true" <%--<f:Window ID="Window1" Title="特种设备安装改造维修告知书" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true" Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="1100px" Height="620px"> Width="1100px" Height="620px">
</f:Window> </f:Window>--%>
<f:Window ID="WindowPrint" Title="打印特种设备安装改造维修告知书" Hidden="true" EnableIFrame="true" EnableMaximize="false" <f:Window ID="WindowPrint" Title="打印特种设备安装改造维修告知书" Hidden="true" EnableIFrame="true" EnableMaximize="false"
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px" Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
Height="600px"> Height="600px">
</f:Window> </f:Window>
<f:Menu ID="Menu1" runat="server"> <%--<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true" <f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
runat="server" Text="编辑" Icon="TableEdit"> runat="server" Text="编辑" Icon="TableEdit">
</f:MenuButton> </f:MenuButton>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true" <f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete"> ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
</f:MenuButton> </f:MenuButton>
</f:Menu> </f:Menu>--%>
</form> </form>
<script type="text/javascript"> <%--<script type="text/javascript">
var menuID = '<%= Menu1.ClientID %>'; var menuID = '<%= Menu1.ClientID %>';
// 返回false来阻止浏览器右键菜单 // 返回false来阻止浏览器右键菜单
function onRowContextMenu(event, rowId) { function onRowContextMenu(event, rowId) {
F(menuID).show(); //showAt(event.pageX, event.pageY); F(menuID).show(); //showAt(event.pageX, event.pageY);
return false; return false;
} }
</script> </script>--%>
</body> </body>
</html> </html>

View File

@ -8,11 +8,29 @@ using System.Web;
using System.Web.UI; using System.Web.UI;
using System.Web.UI.WebControls; using System.Web.UI.WebControls;
using System.IO; using System.IO;
using FineUIPro.Web.common.BaseInfo;
namespace FineUIPro.Web.JGZL namespace FineUIPro.Web.JGZL
{ {
public partial class SpecialEquipmentMaintenance : PageBase public partial class SpecialEquipmentMaintenance : PageBase
{ {
#region
/// <summary>
/// 主键
/// </summary>
private string MaintenanceId
{
get
{
return (string)ViewState["MaintenanceId"];
}
set
{
ViewState["MaintenanceId"] = value;
}
}
#endregion
#region #region
/// <summary> /// <summary>
/// 加载页面 /// 加载页面
@ -23,7 +41,7 @@ namespace FineUIPro.Web.JGZL
{ {
if (!IsPostBack) if (!IsPostBack)
{ {
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); //this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
this.drpProjectId.DataTextField = "ProjectCode"; this.drpProjectId.DataTextField = "ProjectCode";
this.drpProjectId.DataValueField = "ProjectId"; this.drpProjectId.DataValueField = "ProjectId";
@ -34,11 +52,154 @@ namespace FineUIPro.Web.JGZL
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId; this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
this.InitTreeMenu();//加载树 this.InitTreeMenu();//加载树
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue; this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.BindGrid(); //this.BindGrid();
PageData();
} }
} }
#endregion #endregion
private void PageData()
{
string projectId = this.tvControlItem.SelectedNodeID;
if (!string.IsNullOrEmpty(projectId))
{
var pro = BLL.Base_ProjectService.GetProjectByProjectId(projectId);
if (pro != null)
{
var report = BLL.SpecialEquipmentMaintenanceService.GetSpecialEquipmentMaintenanceByProjectId(projectId);
if (report != null)
{
this.MaintenanceId = report.MaintenanceId;
if (!string.IsNullOrEmpty(report.MaintenanceCode))
{
this.txtMaintenanceCode.Text = report.MaintenanceCode;
}
else
{
this.txtMaintenanceCode.Text = "0XXX-91330921MA2A2R3F6G-2026";
}
if (!string.IsNullOrEmpty(report.ConUnit))
{
this.txtConUnit.Text = report.ConUnit;
}
else
{
this.txtConUnit.Text = "浙江鼎盛石化工程有限公司";
}
if (!string.IsNullOrEmpty(report.EquipmentName))
{
this.txtEquipmentName.Text = report.EquipmentName;
}
else
{
this.txtEquipmentName.Text = "压力管道(" + pro.ProjectName + "";
}
this.txtEquipmentModel.Text = report.EquipmentModel;
if (!string.IsNullOrEmpty(report.EquipmentCode))
{
this.txtEquipmentCode.Text = report.EquipmentCode;
}
else
{
this.txtEquipmentCode.Text = "/";
}
if (!string.IsNullOrEmpty(report.ManufacturingNumber))
{
this.txtManufacturingNumber.Text = report.ManufacturingNumber;
}
else
{
this.txtManufacturingNumber.Text = "/";
}
if (!string.IsNullOrEmpty(report.ManufacturingUnit))
{
this.txtManufacturingUnit.Text = report.ManufacturingUnit;
}
else
{
this.txtManufacturingUnit.Text = "/";
}
if (!string.IsNullOrEmpty(report.ManufacturingLicenseNumber))
{
this.txtManufacturingLicenseNumber.Text = report.ManufacturingLicenseNumber;
}
else
{
this.txtManufacturingLicenseNumber.Text = "/";
}
if (!string.IsNullOrEmpty(report.EquipmentLocation))
{
this.txtEquipmentLocation.Text = report.EquipmentLocation;
}
else
{
this.txtEquipmentLocation.Text = pro.ProjectName;
}
this.txtConstructionDate.Text = report.ConstructionDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.ConstructionDate) : string.Format("{0:yyyy-MM-dd}", pro.StartDate);
this.drpConstructionCategory.SelectedValue = report.ConstructionCategory;
if (!string.IsNullOrEmpty(report.LicenseNumber))
{
this.txtLicenseNumber.Text = report.LicenseNumber;
}
else
{
this.txtLicenseNumber.Text = "TS3833339-2028";
}
this.txtLicenseValidityDate.Text = report.LicenseValidityDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.LicenseValidityDate) : string.Format("{0:yyyy-MM-dd}", "2028-8-20");
this.txtConContactMan.Text = report.ConContactMan;
this.txtConTelephone.Text = report.ConTelephone;
this.txtConFax.Text = report.ConFax;
if (!string.IsNullOrEmpty(report.ConAddress))
{
this.txtConAddress.Text = report.ConAddress;
}
else
{
this.txtConAddress.Text = "浙江省舟山市岱山县经济技术开发区徐福大道988号810室岱西片区";
}
this.txtConEmail.Text = report.ConEmail;
if (!string.IsNullOrEmpty(report.UseUnit))
{
this.txtUseUnit.Text = report.UseUnit;
}
else
{
this.txtUseUnit.Text = "浙江石油化工有限公司";
}
this.txtUseContactMan.Text = report.UseContactMan;
this.txtUseTelephone.Text = report.UseTelephone;
this.txtUseFax.Text = report.UseFax;
if (!string.IsNullOrEmpty(report.UseAddress))
{
this.txtUseAddress.Text = report.UseAddress;
}
else
{
this.txtUseAddress.Text = "浙江省舟山市定海区临城街道翁山路555号大宗商品交易中心5201室自贸试验区内";
}
this.txtUseEmail.Text = report.UseEmail;
}
else
{
this.txtMaintenanceCode.Text = "0XXX-91330921MA2A2R3F6G-2026";
this.txtConUnit.Text = "浙江鼎盛石化工程有限公司";
this.txtEquipmentCode.Text = "/";
this.txtManufacturingNumber.Text = "/";
this.txtManufacturingUnit.Text = "/";
this.txtManufacturingLicenseNumber.Text = "/";
this.txtEquipmentName.Text = "压力管道(" + pro.ProjectName + "";
this.txtEquipmentLocation.Text = pro.ProjectName;
this.txtConstructionDate.Text = pro.StartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", pro.StartDate) : "";
this.txtLicenseNumber.Text = "TS3833339-2028";
this.txtLicenseValidityDate.Text = string.Format("{0:yyyy-MM-dd}", "2028-8-20");
this.txtConAddress.Text = "浙江省舟山市岱山县经济技术开发区徐福大道988号810室岱西片区";
this.txtUseUnit.Text = "浙江石油化工有限公司";
this.txtUseAddress.Text = "浙江省舟山市定海区临城街道翁山路555号大宗商品交易中心5201室自贸试验区内";
}
}
}
}
#region #region
/// <summary> /// <summary>
/// 加载树 /// 加载树
@ -82,7 +243,8 @@ namespace FineUIPro.Web.JGZL
{ {
if (this.tvControlItem.SelectedNodeID != "0") if (this.tvControlItem.SelectedNodeID != "0")
{ {
this.BindGrid(); this.PageData();
//this.BindGrid();
} }
} }
#endregion #endregion
@ -91,30 +253,30 @@ namespace FineUIPro.Web.JGZL
/// <summary> /// <summary>
/// 数据绑定 /// 数据绑定
/// </summary> /// </summary>
private void BindGrid() //private void BindGrid()
{ //{
//string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1"); // //string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1");
string strSql = @"SELECT * from JGZL_SpecialEquipmentMaintenance where 1=1"; // string strSql = @"SELECT * from JGZL_SpecialEquipmentMaintenance where 1=1";
List<SqlParameter> listStr = new List<SqlParameter>(); // List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) // if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
{ // {
strSql += " AND ProjectId = @ProjectId"; // strSql += " AND ProjectId = @ProjectId";
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID)); // listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
} // }
//else // //else
//{ // //{
// strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 "; // // strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 ";
// listStr.Add(new SqlParameter("@ProjectId", projectIds)); // // listStr.Add(new SqlParameter("@ProjectId", projectIds));
//} // //}
SqlParameter[] parameter = listStr.ToArray(); // SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); // DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
// 2.获取当前分页数据 // // 2.获取当前分页数据
Grid1.RecordCount = tb.Rows.Count; // Grid1.RecordCount = tb.Rows.Count;
//tb = GetFilteredTable(Grid1.FilteredData, tb); // //tb = GetFilteredTable(Grid1.FilteredData, tb);
var table = this.GetPagedDataTable(Grid1, tb); // var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table; // Grid1.DataSource = table;
Grid1.DataBind(); // Grid1.DataBind();
} //}
#endregion #endregion
#region #region
@ -124,10 +286,10 @@ namespace FineUIPro.Web.JGZL
/// </summary> /// </summary>
/// <param name="sender"></param> /// <param name="sender"></param>
/// <param name="e"></param> /// <param name="e"></param>
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) //protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{ //{
BindGrid(); // BindGrid();
} //}
#endregion #endregion
#region #region
@ -136,10 +298,10 @@ namespace FineUIPro.Web.JGZL
/// </summary> /// </summary>
/// <param name="sender"></param> /// <param name="sender"></param>
/// <param name="e"></param> /// <param name="e"></param>
protected void Grid1_Sort(object sender, GridSortEventArgs e) //protected void Grid1_Sort(object sender, GridSortEventArgs e)
{ //{
BindGrid(); // BindGrid();
} //}
#endregion #endregion
#region #region
@ -148,11 +310,11 @@ namespace FineUIPro.Web.JGZL
/// </summary> /// </summary>
/// <param name="sender"></param> /// <param name="sender"></param>
/// <param name="e"></param> /// <param name="e"></param>
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) //protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{ //{
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); // Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
BindGrid(); // BindGrid();
} //}
#endregion #endregion
#endregion #endregion
@ -164,7 +326,9 @@ namespace FineUIPro.Web.JGZL
///<param name="e"></param> ///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu(); this.InitTreeMenu();
PageData();
} }
/// <summary> /// <summary>
@ -174,7 +338,7 @@ namespace FineUIPro.Web.JGZL
/// <param name="e"></param> /// <param name="e"></param>
protected void TextBox_TextChanged(object sender, EventArgs e) protected void TextBox_TextChanged(object sender, EventArgs e)
{ {
this.BindGrid(); //this.BindGrid();
} }
#endregion #endregion
@ -186,88 +350,88 @@ namespace FineUIPro.Web.JGZL
/// <param name="e"></param> /// <param name="e"></param>
protected void btnPrint_Click(object sender, EventArgs e) protected void btnPrint_Click(object sender, EventArgs e)
{ {
string id = this.Grid1.SelectedRowID; string projectId = this.tvControlItem.SelectedNodeID;
if (!string.IsNullOrEmpty(id)) if (!string.IsNullOrEmpty(projectId))
{ {
string initTemplatePath = ""; string initTemplatePath = "";
string rootPath = Server.MapPath("~/"); string rootPath = Server.MapPath("~/");
BLL.Common.FastReportService.ResetData(); BLL.Common.FastReportService.ResetData();
var specialEquipmentMaintenance = BLL.SpecialEquipmentMaintenanceService.GetSpecialEquipmentMaintenance(id); //var specialEquipmentMaintenance = BLL.SpecialEquipmentMaintenanceService.GetSpecialEquipmentMaintenanceByProjectId(projectId);
if (specialEquipmentMaintenance != null) //if (specialEquipmentMaintenance != null)
//{
DataTable dt = new DataTable();
dt.TableName = "Data";
dt.Columns.Add("MaintenanceCode");
dt.Columns.Add("ConUnit");
dt.Columns.Add("EquipmentName");
dt.Columns.Add("EquipmentModel");
dt.Columns.Add("EquipmentCode");
dt.Columns.Add("ManufacturingNumber");
dt.Columns.Add("ManufacturingUnit");
dt.Columns.Add("ManufacturingLicenseNumber");
dt.Columns.Add("EquipmentLocation");
dt.Columns.Add("ConstructionDate");
dt.Columns.Add("ConstructionCategory");
dt.Columns.Add("LicenseNumber");
dt.Columns.Add("LicenseValidityDate");
dt.Columns.Add("ConContactMan");
dt.Columns.Add("ConTelephone");
dt.Columns.Add("ConFax");
dt.Columns.Add("ConAddress");
dt.Columns.Add("ConEmail");
dt.Columns.Add("UseUnit");
dt.Columns.Add("UseContactMan");
dt.Columns.Add("UseTelephone");
dt.Columns.Add("UseFax");
dt.Columns.Add("UseAddress");
dt.Columns.Add("UseEmail");
var newRow = dt.NewRow();
newRow["MaintenanceCode"] = this.txtMaintenanceCode.Text;
newRow["ConUnit"] = this.txtConUnit.Text;
newRow["EquipmentName"] = this.txtEquipmentName.Text;
newRow["EquipmentModel"] = this.txtEquipmentModel.Text;
newRow["EquipmentCode"] = this.txtEquipmentCode.Text;
newRow["ManufacturingNumber"] = this.txtManufacturingNumber.Text;
newRow["ManufacturingUnit"] = this.txtManufacturingUnit.Text;
newRow["ManufacturingLicenseNumber"] = this.txtManufacturingLicenseNumber.Text;
newRow["EquipmentLocation"] = this.txtEquipmentLocation.Text;
string constructionDate = string.Format("{0:yyyy年MM月dd}", this.txtConstructionDate.Text);
newRow["ConstructionDate"] = constructionDate;
newRow["ConstructionCategory"] = this.drpConstructionCategory.SelectedText;
newRow["LicenseNumber"] = this.txtLicenseNumber.Text;
string licenseValidityDate = string.Format("{0:yyyy年MM月dd}", this.txtLicenseValidityDate.Text);
newRow["LicenseValidityDate"] = licenseValidityDate;
newRow["ConContactMan"] = this.txtConContactMan.Text;
newRow["ConTelephone"] = this.txtConTelephone.Text;
newRow["ConFax"] = this.txtConFax.Text;
newRow["ConAddress"] = this.txtConAddress.Text;
newRow["ConEmail"] = this.txtConEmail.Text;
newRow["UseUnit"] = this.txtUseUnit.Text;
newRow["UseContactMan"] = this.txtUseContactMan.Text;
newRow["UseTelephone"] = this.txtUseTelephone.Text;
newRow["UseFax"] = this.txtUseFax.Text;
newRow["UseAddress"] = this.txtUseAddress.Text;
newRow["UseEmail"] = this.txtUseEmail.Text;
dt.Rows.Add(newRow);
BLL.Common.FastReportService.AddFastreportTable(dt);
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
//keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
initTemplatePath = "File\\Fastreport\\JGZL\\特种设备安装改造维修告知书.frx";
if (File.Exists(rootPath + initTemplatePath))
{ {
DataTable dt = new DataTable(); PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
dt.TableName = "Data";
dt.Columns.Add("MaintenanceCode");
dt.Columns.Add("ConUnit");
dt.Columns.Add("EquipmentName");
dt.Columns.Add("EquipmentModel");
dt.Columns.Add("EquipmentCode");
dt.Columns.Add("ManufacturingNumber");
dt.Columns.Add("ManufacturingUnit");
dt.Columns.Add("ManufacturingLicenseNumber");
dt.Columns.Add("EquipmentLocation");
dt.Columns.Add("ConstructionDate");
dt.Columns.Add("ConstructionCategory");
dt.Columns.Add("LicenseNumber");
dt.Columns.Add("LicenseValidityDate");
dt.Columns.Add("ConContactMan");
dt.Columns.Add("ConTelephone");
dt.Columns.Add("ConFax");
dt.Columns.Add("ConAddress");
dt.Columns.Add("ConEmail");
dt.Columns.Add("UseUnit");
dt.Columns.Add("UseContactMan");
dt.Columns.Add("UseTelephone");
dt.Columns.Add("UseFax");
dt.Columns.Add("UseAddress");
dt.Columns.Add("UseEmail");
var newRow = dt.NewRow();
newRow["MaintenanceCode"] = specialEquipmentMaintenance.MaintenanceCode;
newRow["ConUnit"] = specialEquipmentMaintenance.ConUnit;
newRow["EquipmentName"] = specialEquipmentMaintenance.EquipmentName;
newRow["EquipmentModel"] = specialEquipmentMaintenance.EquipmentModel;
newRow["EquipmentCode"] = specialEquipmentMaintenance.EquipmentCode;
newRow["ManufacturingNumber"] = specialEquipmentMaintenance.ManufacturingNumber;
newRow["ManufacturingUnit"] = specialEquipmentMaintenance.ManufacturingUnit;
newRow["ManufacturingLicenseNumber"] = specialEquipmentMaintenance.ManufacturingLicenseNumber;
newRow["EquipmentLocation"] = specialEquipmentMaintenance.EquipmentLocation;
string constructionDate = string.Format("{0:yyyy年MM月dd}", specialEquipmentMaintenance.ConstructionDate);
newRow["ConstructionDate"] = constructionDate;
newRow["ConstructionCategory"] = specialEquipmentMaintenance.ConstructionCategory;
newRow["LicenseNumber"] = specialEquipmentMaintenance.LicenseNumber;
string licenseValidityDate = string.Format("{0:yyyy年MM月dd}", specialEquipmentMaintenance.LicenseValidityDate);
newRow["LicenseValidityDate"] = licenseValidityDate;
newRow["ConContactMan"] = specialEquipmentMaintenance.ConContactMan;
newRow["ConTelephone"] = specialEquipmentMaintenance.ConTelephone;
newRow["ConFax"] = specialEquipmentMaintenance.ConFax;
newRow["ConAddress"] = specialEquipmentMaintenance.ConAddress;
newRow["ConEmail"] = specialEquipmentMaintenance.ConEmail;
newRow["UseUnit"] = specialEquipmentMaintenance.UseUnit;
newRow["UseContactMan"] = specialEquipmentMaintenance.UseContactMan;
newRow["UseTelephone"] = specialEquipmentMaintenance.UseTelephone;
newRow["UseFax"] = specialEquipmentMaintenance.UseFax;
newRow["UseAddress"] = specialEquipmentMaintenance.UseAddress;
newRow["UseEmail"] = specialEquipmentMaintenance.UseEmail;
dt.Rows.Add(newRow);
BLL.Common.FastReportService.AddFastreportTable(dt);
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
//keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
initTemplatePath = "File\\Fastreport\\JGZL\\特种设备安装改造维修告知书.frx";
if (File.Exists(rootPath + initTemplatePath))
{
PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
}
} }
//}
} }
else else
{ {
Alert.ShowInTop("请选择一条记录", MessageBoxIcon.Warning); Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return; return;
} }
} }
@ -279,139 +443,139 @@ namespace FineUIPro.Web.JGZL
/// </summary> /// </summary>
/// <param name="sender"></param> /// <param name="sender"></param>
/// <param name="e"></param> /// <param name="e"></param>
protected void btnAdd_Click(object sender, EventArgs e) //protected void btnAdd_Click(object sender, EventArgs e)
{ //{
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) // if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
{ // {
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SpecialEquipmentMaintenanceEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - "))); // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SpecialEquipmentMaintenanceEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
} // }
else // else
{ // {
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); // Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return; // return;
} // }
} //}
/// <summary> /// <summary>
/// 双击编辑 /// 双击编辑
/// </summary> /// </summary>
/// <param name="sender"></param> /// <param name="sender"></param>
/// <param name="e"></param> /// <param name="e"></param>
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) //protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
{ //{
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_SpecialEquipmentMaintenanceMenuId, BLL.Const.BtnModify)) // if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_SpecialEquipmentMaintenanceMenuId, BLL.Const.BtnModify))
{ // {
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) // if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
{ // {
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) // if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
{ // {
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SpecialEquipmentMaintenanceEdit.aspx?maintenanceId={0}", this.Grid1.SelectedRowID, "编辑 - "))); // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SpecialEquipmentMaintenanceEdit.aspx?maintenanceId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
} // }
else // else
{ // {
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); // Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return; // return;
} // }
} // }
else // else
{ // {
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); // Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return; // return;
} // }
} // }
else // else
{ // {
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); // ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
} // }
} //}
/// <summary> /// <summary>
/// 右键编辑 /// 右键编辑
/// </summary> /// </summary>
/// <param name="sender"></param> /// <param name="sender"></param>
/// <param name="e"></param> /// <param name="e"></param>
protected void btnMenuEdit_Click(object sender, EventArgs e) //protected void btnMenuEdit_Click(object sender, EventArgs e)
{ //{
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_SpecialEquipmentMaintenanceMenuId, BLL.Const.BtnModify)) // if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_SpecialEquipmentMaintenanceMenuId, BLL.Const.BtnModify))
{ // {
if (Grid1.SelectedRowIndexArray.Length == 0) // if (Grid1.SelectedRowIndexArray.Length == 0)
{ // {
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); // Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return; // return;
} // }
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SpecialEquipmentMaintenanceEdit.aspx?maintenanceId={0}", Grid1.SelectedRowID, "维护 - "))); // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SpecialEquipmentMaintenanceEdit.aspx?maintenanceId={0}", Grid1.SelectedRowID, "维护 - ")));
} // }
else // else
{ // {
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); // Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
} // }
} //}
/// <summary> /// <summary>
/// 右键删除 /// 右键删除
/// </summary> /// </summary>
/// <param name="sender"></param> /// <param name="sender"></param>
/// <param name="e"></param> /// <param name="e"></param>
protected void btnMenuDelete_Click(object sender, EventArgs e) //protected void btnMenuDelete_Click(object sender, EventArgs e)
{ //{
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_SpecialEquipmentMaintenanceMenuId, Const.BtnDelete)) // if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_SpecialEquipmentMaintenanceMenuId, Const.BtnDelete))
{ // {
if (Grid1.SelectedRowIndexArray.Length == 0) // if (Grid1.SelectedRowIndexArray.Length == 0)
{ // {
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); // Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return; // return;
} // }
bool isShow = true; // bool isShow = true;
if (Grid1.SelectedRowIndexArray.Length > 1) // if (Grid1.SelectedRowIndexArray.Length > 1)
{ // {
isShow = false; // isShow = false;
} // }
bool isDelete = false; // bool isDelete = false;
foreach (int rowIndex in Grid1.SelectedRowIndexArray) // foreach (int rowIndex in Grid1.SelectedRowIndexArray)
{ // {
string rowID = Grid1.DataKeys[rowIndex][0].ToString(); // string rowID = Grid1.DataKeys[rowIndex][0].ToString();
if (judgementDelete(rowID, isShow)) // if (judgementDelete(rowID, isShow))
{ // {
isDelete = true; // isDelete = true;
BLL.SpecialEquipmentMaintenanceService.DeleteSpecialEquipmentMaintenanceById(rowID); // BLL.SpecialEquipmentMaintenanceService.DeleteSpecialEquipmentMaintenanceById(rowID);
BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除特种设备安装改造维修告知书"); // BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除特种设备安装改造维修告知书");
} // }
} // }
if (isDelete) // if (isDelete)
{ // {
ShowNotify("删除成功!", MessageBoxIcon.Success); // ShowNotify("删除成功!", MessageBoxIcon.Success);
} // }
this.BindGrid(); // this.BindGrid();
} // }
else // else
{ // {
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); // Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
} // }
} //}
#region #region
/// <summary> /// <summary>
/// 判断是否可以删除 /// 判断是否可以删除
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
private bool judgementDelete(string id, bool isShow) //private bool judgementDelete(string id, bool isShow)
{ //{
string content = string.Empty; // string content = string.Empty;
if (string.IsNullOrEmpty(content)) // if (string.IsNullOrEmpty(content))
{ // {
return true; // return true;
} // }
else // else
{ // {
if (isShow) // if (isShow)
{ // {
Alert.ShowInTop(content, MessageBoxIcon.Error); // Alert.ShowInTop(content, MessageBoxIcon.Error);
} // }
return false; // return false;
} // }
} //}
#endregion #endregion
#endregion #endregion
@ -421,10 +585,80 @@ namespace FineUIPro.Web.JGZL
/// </summary> /// </summary>
/// <param name="sender"></param> /// <param name="sender"></param>
/// <param name="e"></param> /// <param name="e"></param>
protected void Window1_Close(object sender, WindowCloseEventArgs e) //protected void Window1_Close(object sender, WindowCloseEventArgs e)
//{
// this.InitTreeMenu();//加载树
// this.BindGrid();
//}
#endregion
#region
/// <summary>
/// 提交按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
{ {
this.InitTreeMenu();//加载树 if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_SpecialEquipmentMaintenanceMenuId, Const.BtnSave))
this.BindGrid(); {
string projectId = this.tvControlItem.SelectedNodeID;
if (!string.IsNullOrEmpty(projectId))
{
Model.JGZL_SpecialEquipmentMaintenance newReport = new Model.JGZL_SpecialEquipmentMaintenance();
newReport.MaintenanceCode = this.txtMaintenanceCode.Text.Trim();
newReport.ConUnit = this.txtConUnit.Text.Trim();
newReport.EquipmentName = this.txtEquipmentName.Text.Trim();
newReport.EquipmentModel = this.txtEquipmentModel.Text.Trim();
newReport.EquipmentCode = this.txtEquipmentCode.Text.Trim();
newReport.ManufacturingNumber = this.txtManufacturingNumber.Text.Trim();
newReport.ManufacturingUnit = this.txtManufacturingUnit.Text.Trim();
newReport.ManufacturingLicenseNumber = this.txtManufacturingLicenseNumber.Text.Trim();
newReport.EquipmentLocation = this.txtEquipmentLocation.Text.Trim();
newReport.ConstructionDate = Funs.GetNewDateTime(this.txtConstructionDate.Text.Trim());
newReport.ConstructionCategory = this.drpConstructionCategory.SelectedValue;
newReport.LicenseNumber = this.txtLicenseNumber.Text.Trim();
newReport.LicenseValidityDate = Funs.GetNewDateTime(this.txtLicenseValidityDate.Text);
newReport.ConContactMan = this.txtConContactMan.Text.Trim();
newReport.ConTelephone = this.txtConTelephone.Text.Trim();
newReport.ConFax = this.txtConFax.Text.Trim();
newReport.ConAddress = this.txtConAddress.Text.Trim();
newReport.ConEmail = this.txtConEmail.Text.Trim();
newReport.UseUnit = this.txtUseUnit.Text.Trim();
newReport.UseContactMan = this.txtUseContactMan.Text.Trim();
newReport.UseTelephone = this.txtUseTelephone.Text.Trim();
newReport.UseFax = this.txtUseFax.Text.Trim();
newReport.UseAddress = this.txtUseAddress.Text.Trim();
newReport.UseEmail = this.txtUseEmail.Text.Trim();
if (!string.IsNullOrEmpty(this.MaintenanceId))
{
newReport.MaintenanceId = this.MaintenanceId;
BLL.SpecialEquipmentMaintenanceService.UpdateSpecialEquipmentMaintenance(newReport);
}
else
{
newReport.ProjectId = projectId;
newReport.CompileMan = this.CurrUser.UserId;
newReport.CompileDate = DateTime.Now;
newReport.MaintenanceId = SQLHelper.GetNewID(typeof(Model.JGZL_SpecialEquipmentMaintenance));
this.MaintenanceId = newReport.MaintenanceId;
BLL.SpecialEquipmentMaintenanceService.AddSpecialEquipmentMaintenance(newReport);
}
ShowNotify("保存成功!", MessageBoxIcon.Success);
//PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
else
{
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return;
}
}
else
{
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
return;
}
} }
#endregion #endregion
} }

View File

@ -105,13 +105,13 @@ namespace FineUIPro.Web.JGZL
protected global::FineUIPro.ToolbarFill ToolbarFill1; protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary> /// <summary>
/// btnAdd 控件。 /// btnSave 控件。
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Button btnAdd; protected global::FineUIPro.Button btnSave;
/// <summary> /// <summary>
/// btnPrint 控件。 /// btnPrint 控件。
@ -123,49 +123,229 @@ namespace FineUIPro.Web.JGZL
protected global::FineUIPro.Button btnPrint; protected global::FineUIPro.Button btnPrint;
/// <summary> /// <summary>
/// Grid1 控件。 /// SimpleForm1 控件。
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Grid Grid1; protected global::FineUIPro.Form SimpleForm1;
/// <summary> /// <summary>
/// ToolbarSeparator1 控件。 /// txtConUnit 控件。
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; protected global::FineUIPro.TextBox txtConUnit;
/// <summary> /// <summary>
/// ToolbarText1 控件。 /// txtMaintenanceCode 控件。
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1; protected global::FineUIPro.TextBox txtMaintenanceCode;
/// <summary> /// <summary>
/// ddlPageSize 控件。 /// txtEquipmentName 控件。
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize; protected global::FineUIPro.TextBox txtEquipmentName;
/// <summary> /// <summary>
/// Window1 控件。 /// txtEquipmentModel 控件。
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Window Window1; protected global::FineUIPro.TextBox txtEquipmentModel;
/// <summary>
/// txtEquipmentCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtEquipmentCode;
/// <summary>
/// txtManufacturingNumber 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtManufacturingNumber;
/// <summary>
/// txtManufacturingUnit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtManufacturingUnit;
/// <summary>
/// txtManufacturingLicenseNumber 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtManufacturingLicenseNumber;
/// <summary>
/// txtEquipmentLocation 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtEquipmentLocation;
/// <summary>
/// txtConstructionDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtConstructionDate;
/// <summary>
/// drpConstructionCategory 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpConstructionCategory;
/// <summary>
/// txtLicenseNumber 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtLicenseNumber;
/// <summary>
/// txtLicenseValidityDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtLicenseValidityDate;
/// <summary>
/// txtConContactMan 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtConContactMan;
/// <summary>
/// txtConTelephone 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtConTelephone;
/// <summary>
/// txtConFax 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtConFax;
/// <summary>
/// txtConAddress 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtConAddress;
/// <summary>
/// txtConEmail 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtConEmail;
/// <summary>
/// txtUseUnit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtUseUnit;
/// <summary>
/// txtUseContactMan 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtUseContactMan;
/// <summary>
/// txtUseTelephone 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtUseTelephone;
/// <summary>
/// txtUseFax 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtUseFax;
/// <summary>
/// txtUseAddress 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtUseAddress;
/// <summary>
/// txtUseEmail 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtUseEmail;
/// <summary> /// <summary>
/// WindowPrint 控件。 /// WindowPrint 控件。
@ -175,32 +355,5 @@ namespace FineUIPro.Web.JGZL
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Window WindowPrint; protected global::FineUIPro.Window WindowPrint;
/// <summary>
/// Menu1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Menu Menu1;
/// <summary>
/// btnMenuEdit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuEdit;
/// <summary>
/// btnMenuDelete 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuDelete;
} }
} }

View File

@ -175,6 +175,7 @@ namespace FineUIPro.Web.JGZL
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.InitTreeMenu(); this.InitTreeMenu();
this.BindGrid();
} }
/// <summary> /// <summary>

View File

@ -215,6 +215,7 @@ namespace FineUIPro.Web.JGZL
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.InitTreeMenu(); this.InitTreeMenu();
this.BindGrid();
} }
/// <summary> /// <summary>

View File

@ -225,6 +225,7 @@ namespace FineUIPro.Web.JGZL
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.InitTreeMenu(); this.InitTreeMenu();
this.BindGrid();
} }
#endregion #endregion

View File

@ -171,6 +171,7 @@ namespace FineUIPro.Web.JGZL
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.InitTreeMenu(); this.InitTreeMenu();
this.BindGrid();
} }
/// <summary> /// <summary>

View File

@ -194,6 +194,7 @@ namespace FineUIPro.Web.JGZL
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.InitTreeMenu(); this.InitTreeMenu();
this.BindGrid();
} }
/// <summary> /// <summary>