This commit is contained in:
高飞 2025-12-26 11:32:51 +08:00
commit d5d626d8d1
13 changed files with 2996 additions and 0 deletions

View File

@ -0,0 +1,149 @@
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
values('53B316E5-7152-47C3-B85D-B2D3630E969F','特种设备安装改造维修告知书','JGZL/SpecialEquipmentMaintenance.aspx',70,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
go
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('AFC0D59C-FEAC-4E26-916D-17C00120F3E4','53B316E5-7152-47C3-B85D-B2D3630E969F','增加',1)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('1F1F7B70-552A-487C-BCAA-F7A586EB12EB','53B316E5-7152-47C3-B85D-B2D3630E969F','修改',2)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('CE839EF8-57F5-4EA0-B7F6-7E3E7C57869F','53B316E5-7152-47C3-B85D-B2D3630E969F','删除',3)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('3DBC342E-5D28-4BE7-80C6-1EB58BA75475','53B316E5-7152-47C3-B85D-B2D3630E969F','保存',4)
go
CREATE TABLE [dbo].[JGZL_SpecialEquipmentMaintenance](
[MaintenanceId] [nvarchar](50) NOT NULL,
[ProjectId] [nvarchar](50) NULL,
[MaintenanceCode] [nvarchar](50) NULL,
[ConUnit] [nvarchar](50) NULL,
[EquipmentName] [nvarchar](50) NULL,
[EquipmentModel] [nvarchar](50) NULL,
[EquipmentCode] [nvarchar](50) NULL,
[ManufacturingNumber] [nvarchar](50) NULL,
[ManufacturingUnit] [nvarchar](50) NULL,
[ManufacturingLicenseNumber] [nvarchar](50) NULL,
[EquipmentLocation] [nvarchar](50) NULL,
[ConstructionDate] [datetime] NULL,
[ConstructionCategory] [nvarchar](50) NULL,
[LicenseNumber] [nvarchar](50) NULL,
[LicenseValidityDate] [datetime] NULL,
[ConContactMan] [nvarchar](50) NULL,
[ConTelephone] [nvarchar](50) NULL,
[ConFax] [nvarchar](50) NULL,
[ConAddress] [nvarchar](50) NULL,
[ConEmail] [nvarchar](50) NULL,
[UseUnit] [nvarchar](50) NULL,
[UseContactMan] [nvarchar](50) NULL,
[UseTelephone] [nvarchar](50) NULL,
[UseFax] [nvarchar](50) NULL,
[UseAddress] [nvarchar](50) NULL,
[UseEmail] [nvarchar](50) NULL,
[CompileMan] [nvarchar](50) NULL,
[CompileDate] [datetime] NULL,
CONSTRAINT [PK_JGZL_SpecialEquipmentMaintenance] PRIMARY KEY CLUSTERED
(
[MaintenanceId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[JGZL_SpecialEquipmentMaintenance] WITH CHECK ADD CONSTRAINT [FK_JGZL_SpecialEquipmentMaintenance_Base_Project] FOREIGN KEY([ProjectId])
REFERENCES [dbo].[Base_Project] ([ProjectId])
GO
ALTER TABLE [dbo].[JGZL_SpecialEquipmentMaintenance] CHECK CONSTRAINT [FK_JGZL_SpecialEquipmentMaintenance_Base_Project]
GO
ALTER TABLE [dbo].[JGZL_SpecialEquipmentMaintenance] WITH CHECK ADD CONSTRAINT [FK_JGZL_SpecialEquipmentMaintenance_Sys_User] FOREIGN KEY([CompileMan])
REFERENCES [dbo].[Sys_User] ([UserId])
GO
ALTER TABLE [dbo].[JGZL_SpecialEquipmentMaintenance] CHECK CONSTRAINT [FK_JGZL_SpecialEquipmentMaintenance_Sys_User]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'MaintenanceId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'ProjectId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'告知书编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'MaintenanceCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'施工单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'ConUnit'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设备名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'EquipmentName'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'型号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'EquipmentModel'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设备代号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'EquipmentCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'制造编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'ManufacturingNumber'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设备制造单位全称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'ManufacturingUnit'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'制造许可证编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'ManufacturingLicenseNumber'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设备地点' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'EquipmentLocation'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'施工日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'ConstructionDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'施工类别' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'ConstructionCategory'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'许可证编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'LicenseNumber'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'许可证有效期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'LicenseValidityDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'联系人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'ConContactMan'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'电话' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'ConTelephone'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'传真' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'ConFax'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'地址' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'ConAddress'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'邮编' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'ConEmail'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'使用单位全称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'UseUnit'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'使用单位联系人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'UseContactMan'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'使用单位电话' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'UseTelephone'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'使用单位传真' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'UseFax'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'使用单位地址' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'UseAddress'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'使用单位邮箱' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'UseEmail'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'CompileMan'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance', @level2type=N'COLUMN',@level2name=N'CompileDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'特种设备安装改造维修告知书' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_SpecialEquipmentMaintenance'
GO

View File

@ -251,6 +251,7 @@
<Compile Include="JGZL\ContactService.cs" />
<Compile Include="JGZL\HandoverCertificateService.cs" />
<Compile Include="JGZL\NDTPersonService.cs" />
<Compile Include="JGZL\SpecialEquipmentMaintenanceService.cs" />
<Compile Include="JsonHelper.cs" />
<Compile Include="libFace.cs" />
<Compile Include="libOpenCV.cs" />

View File

@ -1781,6 +1781,11 @@ namespace BLL
/// </summary>
public const string JGZL_NDTPersonMenuId = "7CB55890-081C-49C7-905C-F711459A6C9E";
/// <summary>
/// 特种设备安装改造维修告知书
/// </summary>
public const string JGZL_SpecialEquipmentMaintenanceMenuId = "53B316E5-7152-47C3-B85D-B2D3630E969F";
/// <summary>
/// 施工图核查记录
/// </summary>

View File

@ -0,0 +1,112 @@
using Model;
using System.Linq;
namespace BLL
{
/// <summary>
/// 特种设备安装改造维修告知书
/// </summary>
public class SpecialEquipmentMaintenanceService
{
/// <summary>
/// 根据主键获取设备安装改造维修告知书
/// </summary>
/// <param name="maintenanceId"></param>
/// <returns></returns>
public static Model.JGZL_SpecialEquipmentMaintenance GetSpecialEquipmentMaintenance(string maintenanceId)
{
return Funs.DB.JGZL_SpecialEquipmentMaintenance.FirstOrDefault(e => e.MaintenanceId == maintenanceId);
}
/// <summary>
/// 增加特种设备安装改造维修告知书
/// </summary>
/// <param name="maintenance"></param>
public static void AddSpecialEquipmentMaintenance(Model.JGZL_SpecialEquipmentMaintenance maintenance)
{
SGGLDB db = Funs.DB;
Model.JGZL_SpecialEquipmentMaintenance newMaintenance = new Model.JGZL_SpecialEquipmentMaintenance();
newMaintenance.MaintenanceId = maintenance.MaintenanceId;
newMaintenance.ProjectId = maintenance.ProjectId;
newMaintenance.MaintenanceCode = maintenance.MaintenanceCode;
newMaintenance.ConUnit = maintenance.ConUnit;
newMaintenance.EquipmentName = maintenance.EquipmentName;
newMaintenance.EquipmentModel = maintenance.EquipmentModel;
newMaintenance.EquipmentCode = maintenance.EquipmentCode;
newMaintenance.ManufacturingNumber = maintenance.ManufacturingNumber;
newMaintenance.ManufacturingUnit = maintenance.ManufacturingUnit;
newMaintenance.ManufacturingLicenseNumber = maintenance.ManufacturingLicenseNumber;
newMaintenance.EquipmentLocation = maintenance.EquipmentLocation;
newMaintenance.ConstructionDate = maintenance.ConstructionDate;
newMaintenance.ConstructionCategory = maintenance.ConstructionCategory;
newMaintenance.LicenseNumber = maintenance.LicenseNumber;
newMaintenance.LicenseValidityDate = maintenance.LicenseValidityDate;
newMaintenance.ConContactMan = maintenance.ConContactMan;
newMaintenance.ConTelephone = maintenance.ConTelephone;
newMaintenance.ConFax = maintenance.ConFax;
newMaintenance.ConAddress = maintenance.ConAddress;
newMaintenance.ConEmail = maintenance.ConEmail;
newMaintenance.UseUnit = maintenance.UseUnit;
newMaintenance.UseContactMan = maintenance.UseContactMan;
newMaintenance.UseTelephone = maintenance.UseTelephone;
newMaintenance.UseFax = maintenance.UseFax;
newMaintenance.UseAddress = maintenance.UseAddress;
newMaintenance.UseEmail = maintenance.UseEmail;
db.JGZL_SpecialEquipmentMaintenance.InsertOnSubmit(newMaintenance);
db.SubmitChanges();
}
/// <summary>
/// 修改特种设备安装改造维修告知书
/// </summary>
/// <param name="maintenance"></param>
public static void UpdateSpecialEquipmentMaintenance(Model.JGZL_SpecialEquipmentMaintenance maintenance)
{
SGGLDB db = Funs.DB;
Model.JGZL_SpecialEquipmentMaintenance newMaintenance = db.JGZL_SpecialEquipmentMaintenance.FirstOrDefault(e => e.MaintenanceId == maintenance.MaintenanceId);
if (newMaintenance != null)
{
newMaintenance.MaintenanceCode = maintenance.MaintenanceCode;
newMaintenance.ConUnit = maintenance.ConUnit;
newMaintenance.EquipmentName = maintenance.EquipmentName;
newMaintenance.EquipmentModel = maintenance.EquipmentModel;
newMaintenance.EquipmentCode = maintenance.EquipmentCode;
newMaintenance.ManufacturingNumber = maintenance.ManufacturingNumber;
newMaintenance.ManufacturingUnit = maintenance.ManufacturingUnit;
newMaintenance.ManufacturingLicenseNumber = maintenance.ManufacturingLicenseNumber;
newMaintenance.EquipmentLocation = maintenance.EquipmentLocation;
newMaintenance.ConstructionDate = maintenance.ConstructionDate;
newMaintenance.ConstructionCategory = maintenance.ConstructionCategory;
newMaintenance.LicenseNumber = maintenance.LicenseNumber;
newMaintenance.LicenseValidityDate = maintenance.LicenseValidityDate;
newMaintenance.ConContactMan = maintenance.ConContactMan;
newMaintenance.ConTelephone = maintenance.ConTelephone;
newMaintenance.ConFax = maintenance.ConFax;
newMaintenance.ConAddress = maintenance.ConAddress;
newMaintenance.ConEmail = maintenance.ConEmail;
newMaintenance.UseUnit = maintenance.UseUnit;
newMaintenance.UseContactMan = maintenance.UseContactMan;
newMaintenance.UseTelephone = maintenance.UseTelephone;
newMaintenance.UseFax = maintenance.UseFax;
newMaintenance.UseAddress = maintenance.UseAddress;
newMaintenance.UseEmail = maintenance.UseEmail;
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除特种设备安装改造维修告知书
/// </summary>
/// <param name="maintenanceId"></param>
public static void DeleteSpecialEquipmentMaintenanceById(string maintenanceId)
{
SGGLDB db = Funs.DB;
Model.JGZL_SpecialEquipmentMaintenance maintenance = db.JGZL_SpecialEquipmentMaintenance.FirstOrDefault(e => e.MaintenanceId == maintenanceId);
if (maintenance != null)
{
db.JGZL_SpecialEquipmentMaintenance.DeleteOnSubmit(maintenance);
db.SubmitChanges();
}
}
}
}

View File

@ -0,0 +1,159 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/22/2025 14:15:28" ReportInfo.Modified="12/22/2025 15:15:14" ReportInfo.CreatorVersion="2017.1.16.0">
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFZhz3ws8ERKv3fZ5ebfi6Nw==">
<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="ConUnit" DataType="System.String" PropName="image_series"/>
<Column Name="EquipmentName" DataType="System.String" PropName="file_name"/>
<Column Name="EquipmentModel" DataType="System.String" PropName="file_size"/>
<Column Name="EquipmentCode" DataType="System.String" PropName="file_type"/>
<Column Name="ManufacturingNumber" DataType="System.String" PropName="created_date"/>
<Column Name="ManufacturingUnit" DataType="System.String" PropName="created_by"/>
<Column Name="ManufacturingLicenseNumber" DataType="System.String" PropName="series_desc"/>
<Column Name="EquipmentLocation" DataType="System.String" PropName="file_path"/>
<Column Name="ConstructionDate" DataType="System.String" PropName="series_timestamp"/>
<Column Name="ConstructionCategory" DataType="System.String" PropName="Column"/>
<Column Name="LicenseNumber" DataType="System.String" PropName="Column"/>
<Column Name="LicenseValidityDate" DataType="System.String" PropName="Column"/>
<Column Name="ConContactMan" DataType="System.String" PropName="Column"/>
<Column Name="ConTelephone" DataType="System.String" PropName="Column"/>
<Column Name="ConFax" DataType="System.String" PropName="Column"/>
<Column Name="ConAddress" DataType="System.String" PropName="Column"/>
<Column Name="ConEmail" DataType="System.String" PropName="Column"/>
<Column Name="UseUnit" DataType="System.String" PropName="Column"/>
<Column Name="UseContactMan" DataType="System.String" PropName="Column"/>
<Column Name="UseTelephone" DataType="System.String" PropName="Column"/>
<Column Name="UseFax" DataType="System.String" PropName="Column"/>
<Column Name="UseAddress" DataType="System.String" PropName="Column"/>
<Column Name="UseEmail" DataType="System.String" PropName="Column"/>
</TableDataSource>
</MsSqlDataConnection>
</Dictionary>
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="25" TopMargin="20" RightMargin="20" BottomMargin="20" Guides="0,623.69,155.95,75.58,103.93,198.43,89.8,245.75,321.33,425.26,623.7,103.95,302.4,66.15,415.8,141.75,113.4,236.25,481.95,604.8">
<PageHeaderBand Name="PageHeader1" Width="623.7" Height="85.07" Guides="0,85.07,56.71">
<TableObject Name="Table1" Width="623.69" Height="85.07">
<TableColumn Name="Column1" Width="89.8"/>
<TableColumn Name="Column2" Width="155.95"/>
<TableColumn Name="Column5" Width="75.58"/>
<TableColumn Name="Column3" Width="103.93"/>
<TableColumn Name="Column4" Width="198.43"/>
<TableRow Name="Row1" Height="56.71">
<TableCell Name="Cell1" Text="特种设备安装改造维修告知书" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt, style=Bold" ColSpan="5"/>
<TableCell Name="Cell2"/>
<TableCell Name="Cell12"/>
<TableCell Name="Cell8"/>
<TableCell Name="Cell10"/>
</TableRow>
<TableRow Name="Row2" Height="28.36">
<TableCell Name="Cell6" Text="施工单位:" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell7" Border.Lines="Bottom" Text="[Data.ConUnit]" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell13" Text="(公章)" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell9" Text="告知书编号:" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell11" Border.Lines="Bottom" Text="[Data.MaintenanceCode]" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
</TableObject>
</PageHeaderBand>
<DataBand Name="Data1" Top="89.07" Width="623.7" Height="812.86" Guides="0,812.86,98.81,169.27,70.46,258.63,89.36,347.99,399.55,51.56,488.91,540.47,629.83,681.39,723.5">
<TableObject Name="Table2" Width="623.7" Height="812.86">
<TableColumn Name="Column6" Width="103.95"/>
<TableColumn Name="Column7" Width="132.3"/>
<TableColumn Name="Column8"/>
<TableColumn Name="Column9" Width="113.4"/>
<TableColumn Name="Column10"/>
<TableColumn Name="Column11" Width="141.75"/>
<TableRow Name="Row3" Height="98.81">
<TableCell Name="Cell14" Border.Lines="All" Text="设备名称" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell15" Border.Lines="All" Text="[Data.EquipmentName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell16" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell17" Border.Lines="All" Text="型号(参数)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell18" Border.Lines="All" Text="[Data.EquipmentModel]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell39" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row4" Height="70.46">
<TableCell Name="Cell19" Border.Lines="All" Text="设备代码" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell20" Border.Lines="All" Text="[Data.EquipmentCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell21" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell22" Border.Lines="All" Text="制造编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell23" Border.Lines="All" Text="[Data.ManufacturingNumber]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell40" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row5" Height="89.36">
<TableCell Name="Cell24" Border.Lines="All" Text="设备制造&#13;&#10;单位全称" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell25" Border.Lines="All" Text="[Data.ManufacturingUnit]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell26" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell27" Border.Lines="All" Text="制造许可证&#13;&#10;编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell28" Border.Lines="All" Text="[Data.ManufacturingLicenseNumber]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell41" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row6" Height="89.36">
<TableCell Name="Cell29" Border.Lines="All" Text="设备地点" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell30" Border.Lines="All" Text="[Data.EquipmentLocation]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell31" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell32" Border.Lines="All" Text="施工日期" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell33" Border.Lines="All" Text="[Data.ConstructionDate]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell42" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row7" Height="51.56">
<TableCell Name="Cell34" Border.Lines="All" Text="施工单位全称" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell35" Border.Lines="All" Text="[Data.ConUnit]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="5"/>
<TableCell Name="Cell36" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell37" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell38" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell43" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row8" Height="89.36">
<TableCell Name="Cell44" Border.Lines="All" Text="施工类别" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell45" Border.Lines="All" Text="[Data.ConstructionCategory]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell46" Border.Lines="All" Text="许可证&#13;&#10;编 号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell47" Border.Lines="All" Text="[Data.LicenseNumber]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell48" Border.Lines="All" Text="许可证&#13;&#10;有效期" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell49" Border.Lines="All" Text="[Data.LicenseValidityDate]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row9" Height="51.56">
<TableCell Name="Cell50" Border.Lines="All" Text="联系人" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell51" Border.Lines="All" Text="[Data.ConContactMan]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell52" Border.Lines="All" Text="电 话" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell53" Border.Lines="All" Text="[Data.ConTelephone]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell54" Border.Lines="All" Text="传 真" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell55" Border.Lines="All" Text="[Data.ConFax]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row10" Height="89.36">
<TableCell Name="Cell56" Border.Lines="All" Text="地 址" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell57" Border.Lines="All" Text="[Data.ConAddress]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell58" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell59" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell60" Border.Lines="All" Text="邮 编" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell61" Border.Lines="All" Text="[Data.ConEmail]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row11" Height="51.56">
<TableCell Name="Cell62" Border.Lines="All" Text="使用单位全称" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell63" Border.Lines="All" Text="[Data.UseUnit]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="5"/>
<TableCell Name="Cell64" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell65" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell66" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell67" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row12" Height="42.11">
<TableCell Name="Cell68" Border.Lines="All" Text="联系人" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell69" Border.Lines="All" Text="[Data.UseContactMan]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell70" Border.Lines="All" Text="电 话" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell71" Border.Lines="All" Text="[Data.UseTelephone]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell72" Border.Lines="All" Text="传 真" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell73" Border.Lines="All" Text="[Data.UseFax]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row13" Height="89.36">
<TableCell Name="Cell74" Border.Lines="All" Text="地 址" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell75" Border.Lines="All" Text="[Data.UseAddress]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell76" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell77" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell78" Border.Lines="All" Text="邮 编" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell79" Border.Lines="All" Text="[Data.UseEmail]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
</TableObject>
</DataBand>
<PageFooterBand Name="PageFooter1" Top="905.93" Width="623.7" Height="66.15" Guides="0,66.15">
<TextObject Name="Text1" Width="604.8" Height="66.15" Text="注意事项 1告知单按每台安装、改造、维修设备区分分别各填两份。&#13;&#10; 2告知单编号为制造单位设备编号+施工单位施工工号+年份4位。&#13;&#10; 3施工类别按安装、改造、维修分别填写。" VertAlign="Center" Font="宋体, 10.5pt"/>
</PageFooterBand>
</ReportPage>
</Report>

View File

@ -1254,6 +1254,8 @@
<Content Include="JGZL\NDTPerson.aspx" />
<Content Include="JGZL\NDTPersonEdit.aspx" />
<Content Include="JGZL\QualifiedWelder.aspx" />
<Content Include="JGZL\SpecialEquipmentMaintenance.aspx" />
<Content Include="JGZL\SpecialEquipmentMaintenanceEdit.aspx" />
<Content Include="Login.aspx" />
<Content Include="AttachFile\fileupload.ashx" />
<Content Include="Captcha\captcha.ashx" />
@ -6624,6 +6626,20 @@
<Compile Include="JGZL\QualifiedWelder.aspx.designer.cs">
<DependentUpon>QualifiedWelder.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\SpecialEquipmentMaintenance.aspx.cs">
<DependentUpon>SpecialEquipmentMaintenance.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="JGZL\SpecialEquipmentMaintenance.aspx.designer.cs">
<DependentUpon>SpecialEquipmentMaintenance.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\SpecialEquipmentMaintenanceEdit.aspx.cs">
<DependentUpon>SpecialEquipmentMaintenanceEdit.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="JGZL\SpecialEquipmentMaintenanceEdit.aspx.designer.cs">
<DependentUpon>SpecialEquipmentMaintenanceEdit.aspx</DependentUpon>
</Compile>
<Compile Include="Login.aspx.cs">
<DependentUpon>Login.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>

View File

@ -0,0 +1,136 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SpecialEquipmentMaintenance.aspx.cs" Inherits="FineUIPro.Web.JGZL.SpecialEquipmentMaintenance" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>特种设备安装改造维修告知书</title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="220px" Title="特种设备安装改造维修告知书" ShowBorder="true" Layout="VBox"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelAlign="Right" AutoPostBack="true" EnableEdit="true"
OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged" LabelWidth="50px">
</f:DropDownList>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Tree ID="tvControlItem" ShowHeader="false" Title="特种设备安装改造维修告知书" OnNodeCommand="tvControlItem_NodeCommand"
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
AutoLeafIdentification="true" EnableSingleExpand="true" EnableTextSelection="true">
</f:Tree>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="特种设备安装改造维修告知书"
TitleToolTip="特种设备安装改造维修告知书" AutoScroll="true">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
<Items>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<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>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="特种设备安装改造维修告知书" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="MaintenanceId" AllowCellEditing="true"
EnableColumnLines="true" ClicksToEdit="1" DataIDField="MaintenanceId" AllowSorting="true"
SortField="MaintenanceCode" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true"
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableTextSelection="True" AutoScroll="true" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField HeaderText="告知书编号" ColumnID="MaintenanceCode" DataField="MaintenanceCode" SortField="MaintenanceCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="110px">
</f:RenderField>
<f:RenderField HeaderText="施工单位" ColumnID="ConUnit" DataField="ConUnit" SortField="ConUnit"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
</f:RenderField>
<f:RenderField HeaderText="设备名称" ColumnID="EquipmentName" DataField="EquipmentName" SortField="EquipmentName"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
</f:RenderField>
<f:RenderField HeaderText="型号" ColumnID="EquipmentModel" DataField="EquipmentModel" SortField="EquipmentModel"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
<f:RenderField HeaderText="设备代码" ColumnID="EquipmentCode" DataField="EquipmentCode" SortField="EquipmentCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
<f:RenderField HeaderText="制造编号" ColumnID="ManufacturingNumber" DataField="ManufacturingNumber" SortField="ManufacturingNumber"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
<f:RenderField HeaderText="设备制造单位全称" ColumnID="ManufacturingUnit" DataField="ManufacturingUnit" SortField="ManufacturingUnit"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="180px">
</f:RenderField>
<f:RenderField HeaderText="制造许可证编号" ColumnID="ManufacturingLicenseNumber" DataField="ManufacturingLicenseNumber" SortField="ManufacturingLicenseNumber"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
</f:RenderField>
<f:RenderField HeaderText="设备地点" ColumnID="EquipmentLocation" DataField="EquipmentLocation" SortField="EquipmentLocation"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
</f:RenderField>
<f:RenderField HeaderText="施工日期" ColumnID="ConstructionDate" DataField="ConstructionDate" SortField="ConstructionDate"
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
</Listeners>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
<f:ListItem Text="10" Value="10" />
<f:ListItem Text="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="特种设备安装改造维修告知书" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="1100px" Height="620px">
</f:Window>
<f:Window ID="WindowPrint" Title="打印特种设备安装改造维修告知书" Hidden="true" EnableIFrame="true" EnableMaximize="false"
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
Height="600px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
runat="server" Text="编辑" Icon="TableEdit">
</f:MenuButton>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
</f:MenuButton>
</f:Menu>
</form>
<script type="text/javascript">
var menuID = '<%= Menu1.ClientID %>';
// 返回false来阻止浏览器右键菜单
function onRowContextMenu(event, rowId) {
F(menuID).show(); //showAt(event.pageX, event.pageY);
return false;
}
</script>
</body>
</html>

View File

@ -0,0 +1,428 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
namespace FineUIPro.Web.JGZL
{
public partial class SpecialEquipmentMaintenance : PageBase
{
#region
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
this.drpProjectId.DataTextField = "ProjectCode";
this.drpProjectId.DataValueField = "ProjectId";
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
this.drpProjectId.DataBind();
Funs.FineUIPleaseSelect(this.drpProjectId);
this.InitTreeMenu();//加载树
}
}
#endregion
#region
/// <summary>
/// 加载树
/// </summary>
private void InitTreeMenu()
{
this.tvControlItem.Nodes.Clear();
TreeNode rootNode = new TreeNode();
rootNode.Text = "项目";
rootNode.ToolTip = "项目";
rootNode.NodeID = "0";
rootNode.Expanded = true;
this.tvControlItem.Nodes.Add(rootNode);
List<Model.Base_Project> projects = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
if (this.drpProjectId.SelectedValue != BLL.Const._Null)
{
projects = projects.Where(e => e.ProjectId == this.drpProjectId.SelectedValue).ToList();
}
foreach (var item in projects)
{
TreeNode rootProjectNode = new TreeNode();//定义根节点
rootProjectNode.Text = item.ProjectCode;
rootProjectNode.NodeID = item.ProjectId;
rootProjectNode.EnableClickEvent = true;
rootProjectNode.Expanded = true;
rootProjectNode.ToolTip = item.ProjectName;
rootProjectNode.CommandName = "项目名称";
rootNode.Nodes.Add(rootProjectNode);
}
}
#endregion
#region TreeView
/// <summary>
/// 点击TreeView
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
{
if (this.tvControlItem.SelectedNodeID != "0")
{
this.BindGrid();
}
}
#endregion
#region
/// <summary>
/// 数据绑定
/// </summary>
private void BindGrid()
{
//string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1");
string strSql = @"SELECT * from JGZL_SpecialEquipmentMaintenance where 1=1";
List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
{
strSql += " AND ProjectId = @ProjectId";
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
}
//else
//{
// strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 ";
// listStr.Add(new SqlParameter("@ProjectId", projectIds));
//}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
// 2.获取当前分页数据
Grid1.RecordCount = tb.Rows.Count;
//tb = GetFilteredTable(Grid1.FilteredData, tb);
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
}
#endregion
#region
#region
/// <summary>
/// 页索引改变事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{
BindGrid();
}
#endregion
#region
/// <summary>
/// 排序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_Sort(object sender, GridSortEventArgs e)
{
BindGrid();
}
#endregion
#region
/// <summary>
/// 分页选择下拉改变事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
BindGrid();
}
#endregion
#endregion
#region
///<summary>
///查询
///</summary>
///<param name="sender"></param>
///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{
this.InitTreeMenu();
}
/// <summary>
/// 查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void TextBox_TextChanged(object sender, EventArgs e)
{
this.BindGrid();
}
#endregion
#region
/// <summary>
/// 打印
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnPrint_Click(object sender, EventArgs e)
{
string id = this.Grid1.SelectedRowID;
if (!string.IsNullOrEmpty(id))
{
string initTemplatePath = "";
string rootPath = Server.MapPath("~/");
BLL.Common.FastReportService.ResetData();
var specialEquipmentMaintenance = BLL.SpecialEquipmentMaintenanceService.GetSpecialEquipmentMaintenance(id);
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"] = 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
{
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return;
}
}
#endregion
#region
/// <summary>
/// 增加
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnAdd_Click(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SpecialEquipmentMaintenanceEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
}
else
{
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return;
}
}
/// <summary>
/// 双击编辑
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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 (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
{
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SpecialEquipmentMaintenanceEdit.aspx?maintenanceId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
}
else
{
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return;
}
}
else
{
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return;
}
}
else
{
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
}
}
/// <summary>
/// 右键编辑
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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 (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return;
}
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SpecialEquipmentMaintenanceEdit.aspx?maintenanceId={0}", Grid1.SelectedRowID, "维护 - ")));
}
else
{
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
}
}
/// <summary>
/// 右键删除
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnMenuDelete_Click(object sender, EventArgs e)
{
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_SpecialEquipmentMaintenanceMenuId, Const.BtnDelete))
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return;
}
bool isShow = true;
if (Grid1.SelectedRowIndexArray.Length > 1)
{
isShow = false;
}
bool isDelete = false;
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
{
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
if (judgementDelete(rowID, isShow))
{
isDelete = true;
BLL.SpecialEquipmentMaintenanceService.DeleteSpecialEquipmentMaintenanceById(rowID);
BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除特种设备安装改造维修告知书");
}
}
if (isDelete)
{
ShowNotify("删除成功!", MessageBoxIcon.Success);
}
this.BindGrid();
}
else
{
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
}
}
#region
/// <summary>
/// 判断是否可以删除
/// </summary>
/// <returns></returns>
private bool judgementDelete(string id, bool isShow)
{
string content = string.Empty;
if (string.IsNullOrEmpty(content))
{
return true;
}
else
{
if (isShow)
{
Alert.ShowInTop(content, MessageBoxIcon.Error);
}
return false;
}
}
#endregion
#endregion
#region
/// <summary>
/// 关闭弹出窗口
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Window1_Close(object sender, WindowCloseEventArgs e)
{
this.InitTreeMenu();//加载树
this.BindGrid();
}
#endregion
}
}

View File

@ -0,0 +1,206 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.JGZL
{
public partial class SpecialEquipmentMaintenance
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// panelLeftRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelLeftRegion;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// drpProjectId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpProjectId;
/// <summary>
/// tvControlItem 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Tree tvControlItem;
/// <summary>
/// panelCenterRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelCenterRegion;
/// <summary>
/// Toolbar2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// btnAdd 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnAdd;
/// <summary>
/// btnPrint 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnPrint;
/// <summary>
/// Grid1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// Window1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// WindowPrint 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
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

@ -0,0 +1,108 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SpecialEquipmentMaintenanceEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.SpecialEquipmentMaintenanceEdit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑特种设备安装改造维修告知书</title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true" BodyPadding="10px"
runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" runat="server" ToolbarAlign="Right">
<Items>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtMaintenanceCode" runat="server" Label="告知书编号" LabelAlign="Right" LabelWidth="130px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
<f:TextBox ID="txtConUnit" 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>
</form>
</body>
</html>

View File

@ -0,0 +1,153 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FineUIPro.Web.JGZL
{
public partial class SpecialEquipmentMaintenanceEdit : PageBase
{
#region
/// <summary>
/// 主键
/// </summary>
private string MaintenanceId
{
get
{
return (string)ViewState["MaintenanceId"];
}
set
{
ViewState["MaintenanceId"] = value;
}
}
/// <summary>
/// 项目Id
/// </summary>
private string ProjectId
{
get
{
return (string)ViewState["ProjectId"];
}
set
{
ViewState["ProjectId"] = value;
}
}
#endregion
#region
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.ProjectId = Request.Params["projectId"];
this.MaintenanceId = Request.Params["maintenanceId"];
if (!string.IsNullOrEmpty(this.MaintenanceId))
{
var report = BLL.SpecialEquipmentMaintenanceService.GetSpecialEquipmentMaintenance(this.MaintenanceId);
if (report != null)
{
this.txtMaintenanceCode.Text = report.MaintenanceCode;
this.txtConUnit.Text = report.ConUnit;
this.txtEquipmentName.Text = report.EquipmentName;
this.txtEquipmentModel.Text = report.EquipmentModel;
this.txtEquipmentCode.Text = report.EquipmentCode;
this.txtManufacturingNumber.Text = report.ManufacturingNumber;
this.txtManufacturingUnit.Text = report.ManufacturingUnit;
this.txtManufacturingLicenseNumber.Text = report.ManufacturingLicenseNumber;
this.txtEquipmentLocation.Text = report.EquipmentLocation;
this.txtConstructionDate.Text = report.ConstructionDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.ConstructionDate) : "";
this.drpConstructionCategory.SelectedValue = report.ConstructionCategory;
this.txtLicenseNumber.Text = report.LicenseNumber;
this.txtLicenseValidityDate.Text = report.LicenseValidityDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.LicenseValidityDate) : "";
this.txtConContactMan.Text = report.ConContactMan;
this.txtConTelephone.Text = report.ConTelephone;
this.txtConFax.Text = report.ConFax;
this.txtConAddress.Text = report.ConAddress;
this.txtConEmail.Text = report.ConEmail;
this.txtUseUnit.Text = report.UseUnit;
this.txtUseContactMan.Text = report.UseContactMan;
this.txtUseTelephone.Text = report.UseTelephone;
this.txtUseFax.Text = report.UseFax;
this.txtUseAddress.Text = report.UseAddress;
this.txtUseEmail.Text = report.UseEmail;
}
}
}
}
#endregion
#region
/// <summary>
/// 提交按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
{
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_SpecialEquipmentMaintenanceMenuId, Const.BtnSave))
{
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 = this.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;
}
}
#endregion
}
}

View File

@ -0,0 +1,287 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.JGZL
{
public partial class SpecialEquipmentMaintenanceEdit
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// SimpleForm1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form SimpleForm1;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// btnSave 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// txtMaintenanceCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtMaintenanceCode;
/// <summary>
/// txtConUnit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtConUnit;
/// <summary>
/// txtEquipmentName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtEquipmentName;
/// <summary>
/// txtEquipmentModel 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
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;
}
}

File diff suppressed because it is too large Load Diff