20260911 工业管道安装质量证明书(改造、修理)

This commit is contained in:
2026-09-11 14:52:05 +08:00
parent 80d80b7d31
commit 6bb6f5da0d
14 changed files with 2728 additions and 4 deletions
@@ -0,0 +1,134 @@
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
values('087420E0-A459-4CD7-A1B6-A7A5E001ABF8','工业管道安装质量证明书(改造、修理)','JGZL/ModRepairQualityCertificate.aspx',51,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
go
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('A353742E-6493-406E-9B64-79EE7017FD2B','087420E0-A459-4CD7-A1B6-A7A5E001ABF8','增加',1)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('E8B0D71E-D59E-4245-B8F9-5364AC4F157A','087420E0-A459-4CD7-A1B6-A7A5E001ABF8','修改',2)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('4716B9AF-E7A3-44EF-95AA-E16257D7FF3B','087420E0-A459-4CD7-A1B6-A7A5E001ABF8','删除',3)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('2F03A48C-4F5C-409D-BADD-8B2EC8346C0D','087420E0-A459-4CD7-A1B6-A7A5E001ABF8','保存',4)
go
CREATE TABLE [dbo].[JGZL_ModRepairQualityCertificate](
[QualityCertificateId] [nvarchar](50) NOT NULL,
[ProjectId] [nvarchar](50) NOT NULL,
[QualityCertificateCode] [nvarchar](50) NULL,
[ConUnit] [nvarchar](50) NULL,
[ConUnitUSCC] [nvarchar](50) NULL,
[LicenseCode] [nvarchar](100) NULL,
[LicenseScope] [nvarchar](100) NULL,
[NotificationCode] [nvarchar](50) NULL,
[ISO_ID] [nvarchar](2000) NULL,
[PipelineCode] [nvarchar](2000) NULL,
[PipeLength] [nvarchar](50) NULL,
[PipeCategory] [nvarchar](50) NULL,
[ConCategory] [nvarchar](50) NULL,
[UseUnit] [nvarchar](50) NULL,
[UseUSCC] [nvarchar](50) NULL,
[UseAddress] [nvarchar](100) NULL,
[DesignUnit] [nvarchar](50) NULL,
[DesignDate] [datetime] NULL,
[DesignLicenseCode] [nvarchar](50) NULL,
[ModRepairProject] [nvarchar](500) NULL,
[Remark] [nvarchar](500) NULL,
[CompletionDate] [datetime] NULL,
[QC_Inspector] [nvarchar](50) NULL,
[QA_Engineer] [nvarchar](50) NULL,
[CompileMan] [nvarchar](50) NULL,
[CompileDate] [datetime] NULL,
CONSTRAINT [PK_JGZL_ModRepairQualityCertificate] PRIMARY KEY CLUSTERED
(
[QualityCertificateId] 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_ModRepairQualityCertificate] WITH CHECK ADD CONSTRAINT [FK_JGZL_ModRepairQualityCertificate_Base_Project] FOREIGN KEY([ProjectId])
REFERENCES [dbo].[Base_Project] ([ProjectId])
GO
ALTER TABLE [dbo].[JGZL_ModRepairQualityCertificate] CHECK CONSTRAINT [FK_JGZL_ModRepairQualityCertificate_Base_Project]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ModRepairQualityCertificate', @level2type=N'COLUMN',@level2name=N'QualityCertificateId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ModRepairQualityCertificate', @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_ModRepairQualityCertificate', @level2type=N'COLUMN',@level2name=N'QualityCertificateCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'施工单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ModRepairQualityCertificate', @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_ModRepairQualityCertificate', @level2type=N'COLUMN',@level2name=N'ConUnitUSCC'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'压力管道安装许可证编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ModRepairQualityCertificate', @level2type=N'COLUMN',@level2name=N'LicenseCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'许可范围' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ModRepairQualityCertificate', @level2type=N'COLUMN',@level2name=N'LicenseScope'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'告知单编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ModRepairQualityCertificate', @level2type=N'COLUMN',@level2name=N'NotificationCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管线号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ModRepairQualityCertificate', @level2type=N'COLUMN',@level2name=N'PipelineCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管道长度' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ModRepairQualityCertificate', @level2type=N'COLUMN',@level2name=N'PipeLength'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管道类别' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ModRepairQualityCertificate', @level2type=N'COLUMN',@level2name=N'PipeCategory'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'施工类别(□改造 □重大维修 □维修)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ModRepairQualityCertificate', @level2type=N'COLUMN',@level2name=N'ConCategory'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'使用单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ModRepairQualityCertificate', @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_ModRepairQualityCertificate', @level2type=N'COLUMN',@level2name=N'UseUSCC'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'使用地点' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ModRepairQualityCertificate', @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_ModRepairQualityCertificate', @level2type=N'COLUMN',@level2name=N'DesignUnit'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ModRepairQualityCertificate', @level2type=N'COLUMN',@level2name=N'DesignDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计许可证编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ModRepairQualityCertificate', @level2type=N'COLUMN',@level2name=N'DesignLicenseCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'改造与重大维修项目' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ModRepairQualityCertificate', @level2type=N'COLUMN',@level2name=N'ModRepairProject'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'说明' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ModRepairQualityCertificate', @level2type=N'COLUMN',@level2name=N'Remark'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'竣工日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ModRepairQualityCertificate', @level2type=N'COLUMN',@level2name=N'CompletionDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'质检员' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ModRepairQualityCertificate', @level2type=N'COLUMN',@level2name=N'QC_Inspector'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'质量保证工程师' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ModRepairQualityCertificate', @level2type=N'COLUMN',@level2name=N'QA_Engineer'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ModRepairQualityCertificate', @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_ModRepairQualityCertificate', @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_ModRepairQualityCertificate'
GO
+2 -1
View File
@@ -267,6 +267,7 @@
<Compile Include="JGZL\InsulationAcceptanceRecordItemService.cs" />
<Compile Include="JGZL\InsulationAcceptanceRecordService.cs" />
<Compile Include="JGZL\LeakTestOfPipelineSystemRecordItemService.cs" />
<Compile Include="JGZL\ModRepairQualityCertificateService.cs" />
<Compile Include="JGZL\PressureTestOfPipelineSystemRecordItemService.cs" />
<Compile Include="JGZL\AnticorrosionEngineeringInspectionRecordItemService.cs" />
<Compile Include="JGZL\LeakTestOfPipelineSystemRecordService.cs" />
@@ -359,4 +360,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
</Project>
+10
View File
@@ -1890,6 +1890,11 @@ namespace BLL
/// </summary>
public const string JGZL_IndustrialPipelineInstallationQualityCertificateMenuId = "F5833B38-65DF-4236-A676-EE75F9487061";
/// <summary>
/// 工业管道安装质量证明书(改造、修理)
/// </summary>
public const string JGZL_ModRepairQualityCertificateMenuId = "087420E0-A459-4CD7-A1B6-A7A5E001ABF8";
/// <summary>
/// 工业管道安装汇总表
/// </summary>
@@ -2524,6 +2529,11 @@ namespace BLL
/// </summary>
public const string JGZL_IndustrialPipelineInstallationQualityCertificateUrl = "File\\Word\\JGZL\\工业管道安装质量证明书导出模板.docx";
/// <summary>
/// 工业管道安装质量证明书(改造、修理)导出模板
/// </summary>
public const string JGZL_ModRepairQualityCertificateUrl = "File\\Word\\JGZL\\工业管道安装质量证明书(改造、修理)导出模板.docx";
/// <summary>
/// 压力管道安装质量证明2020导出模板
/// </summary>
@@ -0,0 +1,121 @@
using FastReport.DevComponents.DotNetBar;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
/// <summary>
/// 压力管道改造维修质量证明书
/// </summary>
public class ModRepairQualityCertificateService
{
/// <summary>
/// 根据项目Id、编号获取压力管道改造维修质量证明书
/// </summary>
/// <param name="projectId">项目Id</param>
/// <param name="qualityCertificateCode">编号</param>
/// <returns></returns>
public static Model.JGZL_ModRepairQualityCertificate GetModRepairQualityCertificateByProjectId(string projectId,string qualityCertificateId)
{
return Funs.DB.JGZL_ModRepairQualityCertificate.FirstOrDefault(e => e.ProjectId == projectId && e.QualityCertificateId == qualityCertificateId);
}
/// <summary>
/// 添加压力管道改造维修质量证明书
/// </summary>
/// <param name="modRepairQualityCertificate"></param>
public static void AddModRepairQualityCertificate(Model.JGZL_ModRepairQualityCertificate modRepairQualityCertificate)
{
SGGLDB db = Funs.DB;
Model.JGZL_ModRepairQualityCertificate newModRepairQualityCertificate = new JGZL_ModRepairQualityCertificate();
newModRepairQualityCertificate.QualityCertificateId = modRepairQualityCertificate.QualityCertificateId;
newModRepairQualityCertificate.ProjectId = modRepairQualityCertificate.ProjectId;
newModRepairQualityCertificate.QualityCertificateCode = modRepairQualityCertificate.QualityCertificateCode;
newModRepairQualityCertificate.ConUnit = modRepairQualityCertificate.ConUnit;
newModRepairQualityCertificate.ConUnitUSCC = modRepairQualityCertificate.ConUnitUSCC;
newModRepairQualityCertificate.LicenseCode = modRepairQualityCertificate.LicenseCode;
newModRepairQualityCertificate.LicenseScope = modRepairQualityCertificate.LicenseScope;
newModRepairQualityCertificate.NotificationCode = modRepairQualityCertificate.NotificationCode;
newModRepairQualityCertificate.ISO_ID= modRepairQualityCertificate.ISO_ID;
newModRepairQualityCertificate.PipelineCode = modRepairQualityCertificate.PipelineCode;
newModRepairQualityCertificate.PipeLength = modRepairQualityCertificate.PipeLength;
newModRepairQualityCertificate.PipeCategory = modRepairQualityCertificate.PipeCategory;
newModRepairQualityCertificate.ConCategory = modRepairQualityCertificate.ConCategory;
newModRepairQualityCertificate.UseUnit = modRepairQualityCertificate.UseUnit;
newModRepairQualityCertificate.UseUSCC = modRepairQualityCertificate.UseUSCC;
newModRepairQualityCertificate.UseAddress = modRepairQualityCertificate.UseAddress;
newModRepairQualityCertificate.DesignUnit = modRepairQualityCertificate.DesignUnit;
newModRepairQualityCertificate.DesignDate = modRepairQualityCertificate.DesignDate;
newModRepairQualityCertificate.DesignLicenseCode = modRepairQualityCertificate.DesignLicenseCode;
newModRepairQualityCertificate.ModRepairProject = modRepairQualityCertificate.ModRepairProject;
newModRepairQualityCertificate.Remark = modRepairQualityCertificate.Remark;
newModRepairQualityCertificate.CompletionDate = modRepairQualityCertificate.CompletionDate;
newModRepairQualityCertificate.QC_Inspector = modRepairQualityCertificate.QC_Inspector;
newModRepairQualityCertificate.QA_Engineer = modRepairQualityCertificate.QA_Engineer;
newModRepairQualityCertificate.CompileMan = modRepairQualityCertificate.CompileMan;
newModRepairQualityCertificate.CompileDate = modRepairQualityCertificate.CompileDate;
db.JGZL_ModRepairQualityCertificate.InsertOnSubmit(newModRepairQualityCertificate);
db.SubmitChanges();
}
/// <summary>
/// 修改压力管道改造维修质量证明书
/// </summary>
/// <param name="modRepairQualityCertificate"></param>
public static void UpdateModRepairQualityCertificate(Model.JGZL_ModRepairQualityCertificate modRepairQualityCertificate)
{
SGGLDB db = Funs.DB;
Model.JGZL_ModRepairQualityCertificate newModRepairQualityCertificate = db.JGZL_ModRepairQualityCertificate.FirstOrDefault(e => e.QualityCertificateId == modRepairQualityCertificate.QualityCertificateId);
if (newModRepairQualityCertificate != null)
{
newModRepairQualityCertificate.QualityCertificateCode = modRepairQualityCertificate.QualityCertificateCode;
newModRepairQualityCertificate.ConUnit = modRepairQualityCertificate.ConUnit;
newModRepairQualityCertificate.ConUnitUSCC = modRepairQualityCertificate.ConUnitUSCC;
newModRepairQualityCertificate.LicenseCode = modRepairQualityCertificate.LicenseCode;
newModRepairQualityCertificate.LicenseScope = modRepairQualityCertificate.LicenseScope;
newModRepairQualityCertificate.NotificationCode = modRepairQualityCertificate.NotificationCode;
newModRepairQualityCertificate.ISO_ID = modRepairQualityCertificate.ISO_ID;
newModRepairQualityCertificate.PipelineCode = modRepairQualityCertificate.PipelineCode;
newModRepairQualityCertificate.PipeLength = modRepairQualityCertificate.PipeLength;
newModRepairQualityCertificate.PipeCategory = modRepairQualityCertificate.PipeCategory;
newModRepairQualityCertificate.ConCategory = modRepairQualityCertificate.ConCategory;
newModRepairQualityCertificate.UseUnit = modRepairQualityCertificate.UseUnit;
newModRepairQualityCertificate.UseUSCC = modRepairQualityCertificate.UseUSCC;
newModRepairQualityCertificate.UseAddress = modRepairQualityCertificate.UseAddress;
newModRepairQualityCertificate.DesignUnit = modRepairQualityCertificate.DesignUnit;
newModRepairQualityCertificate.DesignDate = modRepairQualityCertificate.DesignDate;
newModRepairQualityCertificate.DesignLicenseCode = modRepairQualityCertificate.DesignLicenseCode;
newModRepairQualityCertificate.ModRepairProject = modRepairQualityCertificate.ModRepairProject;
newModRepairQualityCertificate.Remark = modRepairQualityCertificate.Remark;
newModRepairQualityCertificate.CompletionDate = modRepairQualityCertificate.CompletionDate;
newModRepairQualityCertificate.QC_Inspector = modRepairQualityCertificate.QC_Inspector;
newModRepairQualityCertificate.QA_Engineer = modRepairQualityCertificate.QA_Engineer;
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除压力管道改造维修质量证明书
/// </summary>
/// <param name="qualityCertificateId"></param>
public static void DeleteModRepairQualityCertificateById(string qualityCertificateId)
{
SGGLDB db = Funs.DB;
Model.JGZL_ModRepairQualityCertificate qualityCertificate = db.JGZL_ModRepairQualityCertificate.FirstOrDefault(e => e.QualityCertificateId == qualityCertificateId);
if (qualityCertificate != null)
{
db.JGZL_ModRepairQualityCertificate.DeleteOnSubmit(qualityCertificate);
db.SubmitChanges();
}
}
public static List<Model.JGZL_ModRepairQualityCertificate> GetLists(string projectId)
{
return (from x in Funs.DB.JGZL_ModRepairQualityCertificate where x.ProjectId == projectId orderby x.QualityCertificateCode select x).ToList();
}
}
}
@@ -0,0 +1,173 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="09/11/2026 14:43:51" ReportInfo.CreatorVersion="2017.1.16.0">
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFaSQGGfp0C04d0yi9F5iJBg==">
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
<Column Name="QualityCertificateCode" DataType="System.String" PropName="attach_image_id"/>
<Column Name="ConUnit" DataType="System.String" PropName="image_series"/>
<Column Name="ConUnitUSCC" DataType="System.String" PropName="file_name"/>
<Column Name="LicenseCode" DataType="System.String" PropName="file_size"/>
<Column Name="LicenseScope" DataType="System.String" PropName="file_type"/>
<Column Name="NotificationCode" DataType="System.String" PropName="created_date"/>
<Column Name="PipelineCode" DataType="System.String" PropName="created_by"/>
<Column Name="PipeLength" DataType="System.String" PropName="series_desc"/>
<Column Name="PipeCategory" DataType="System.String" PropName="file_path"/>
<Column Name="UseUnit" DataType="System.String" PropName="Column"/>
<Column Name="UseUSCC" DataType="System.String" PropName="Column"/>
<Column Name="UseAddress" DataType="System.String" PropName="Column"/>
<Column Name="DesignUnit" DataType="System.String" PropName="Column"/>
<Column Name="DesignDate" DataType="System.String" PropName="Column"/>
<Column Name="DesignLicenseCode" DataType="System.String" PropName="Column"/>
<Column Name="ModRepairProject" DataType="System.String" PropName="Column"/>
<Column Name="Remark" DataType="System.String" PropName="Column"/>
<Column Name="Remark" Enabled="false" DataType="System.String" PropName="Column"/>
<Column Name="CompletionDate" DataType="System.String" PropName="Column"/>
<Column Name="QC_Inspector" DataType="System.String" PropName="Column"/>
<Column Name="QA_Engineer" DataType="System.String" PropName="Column1"/>
</TableDataSource>
</MsSqlDataConnection>
<Parameter Name="chkGaiZao" DataType="System.String"/>
<Parameter Name="chkZhongDaWeiXiu" DataType="System.String"/>
<Parameter Name="chkWeiXiu" DataType="System.String"/>
</Dictionary>
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="368.55,642.6,9.45,0,311.85,646.4,112.27,337.94,431.31,140.62,93.37,74.47,440.76,452.1,497.46,508.8,582.51,593.85,506.91,591.96,639.21,450.21,225.67,505.78,508.04">
<PageHeaderBand Name="PageHeader1" Width="646.38" Height="122.85" Guides="9.45,37.8,66.15,94.5,122.85">
<TextObject Name="Text1" Left="368.55" Top="9.45" Width="274.05" Height="28.35" Text="ZDS-T6.38.048.A/0.2020" HorzAlign="Right" VertAlign="Center" Font="Calibri, 15pt, style=Bold"/>
<TextObject Name="Text2" Left="9.45" Top="66.15" Width="633.15" Height="28.35" Text="压力管道改造维修质量证明书" HorzAlign="Center" VertAlign="Center" Font="思源宋体 CN, 22pt, style=Bold"/>
<TextObject Name="Text4" Top="94.5" Width="311.85" Height="28.35" Text=" 编号:[Data.QualityCertificateCode]" VertAlign="Center"/>
<TextObject Name="Text11" Left="9.45" Top="37.8" Width="633.15" Height="28.35" Text="浙 江 鼎 盛 石 化 工 程 有 限 公 司" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt"/>
</PageHeaderBand>
<DataBand Name="Data1" Top="126.85" Width="646.38" Height="886.23" Guides="0,886.23,52.91,105.82,149.28,43.46,192.74,236.2,18.9,30.24,9.45,37.8,279.66,323.12,366.58,413.83,47.25,517.78,103.95,617.9401,100.16,688.7,70.76,760.51,71.81,813.42,885.23,1">
<TableObject Name="Table1" Width="646.4" Height="886.23">
<TableColumn Name="Column1" Width="112.27"/>
<TableColumn Name="Column2" Width="225.67"/>
<TableColumn Name="Column3" Width="93.37"/>
<TableColumn Name="Column4" Width="74.47"/>
<TableColumn Name="Column5" Width="140.62"/>
<TableRow Name="Row1" Height="52.91">
<TableCell Name="Cell1" Border.Lines="All" Text="施工单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell2" Border.Lines="All" Text="[Data.ConUnit]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell3" Border.Lines="All" Text="统一社会信用代码" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell4" Border.Lines="All" Text="[Data.ConUnitUSCC]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell5" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row2" Height="52.91">
<TableCell Name="Cell6" Border.Lines="All" Text="压力管道安装许可证编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell7" Border.Lines="All" Text="[Data.LicenseCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell8" Border.Lines="All" Text="许可范围" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell9" Border.Lines="All" Text="[Data.LicenseScope]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell10" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row3" Height="43.46">
<TableCell Name="Cell11" Border.Lines="All" Text="告知单编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell12" Border.Lines="All" Text="[Data.NotificationCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="4"/>
<TableCell Name="Cell13" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell14" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell15" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row4" Height="43.46">
<TableCell Name="Cell16" Border.Lines="All" Text="管线号" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell17" Border.Lines="All" Text="[Data.PipelineCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell18" Border.Lines="All" Text="管道长度" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell19" Border.Lines="All" Text="[Data.PipeLength]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell20" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row5" Height="43.46">
<TableCell Name="Cell21" Border.Lines="All" Text="管道类别" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell22" Border.Lines="All" Text="[Data.PipeCategory]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell23" Border.Lines="All" Text="施工类别" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell24" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 12pt" ColSpan="2">
<CheckBoxObject Name="chkGaiZao" Left="9.45" Top="18.9" Width="11.34" Height="11.34" Border.Lines="All" Checked="false" Expression="[chkGaiZao] == &quot;True&quot;"/>
<CheckBoxObject Name="chkZhongDaWeiXiu" Left="66.15" Top="18.9" Width="11.34" Height="11.34" Border.Lines="All" Checked="false" Expression="[chkZhongDaWeiXiu] == &quot;True&quot;"/>
<CheckBoxObject Name="chkWeiXiu" Left="151.2" Top="18.9" Width="11.34" Height="11.34" Border.Lines="All" Checked="false" Expression="[chkWeiXiu]== &quot;True&quot;"/>
<TextObject Name="Text12" Left="75.6" Top="9.45" Width="75.6" Height="28.35" Text="重大维修" Padding="5, 2, 0, 2" VertAlign="Center" Font="楷体, 10.5pt"/>
<TextObject Name="Text13" Left="160.65" Top="9.45" Width="47.25" Height="28.35" Text="维修" Padding="5, 2, 0, 2" VertAlign="Center" Font="楷体, 10.5pt"/>
<TextObject Name="Text14" Left="18.9" Top="9.45" Width="47.25" Height="28.35" Text="改造" Padding="5, 2, 0, 2" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableCell>
<TableCell Name="Cell25" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row7" Height="43.46">
<TableCell Name="Cell31" Border.Lines="All" Text="使用单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell32" Border.Lines="All" Text="[Data.UseUnit]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell33" Border.Lines="All" Text="统一社会信用代码" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell34" Border.Lines="All" Text="[Data.UseUSCC]" HorzAlign="Center" VertAlign="Center" Font="楷体, 12pt" ColSpan="2"/>
<TableCell Name="Cell35" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row8" Height="43.46">
<TableCell Name="Cell36" Border.Lines="All" Text="使用地点" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell37" Border.Lines="All" Text="[Data.UseAddress]" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="4"/>
<TableCell Name="Cell38" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell39" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell40" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row9" Height="43.46">
<TableCell Name="Cell41" Border.Lines="All" Text="设计单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell42" Border.Lines="All" Text="[Data.DesignUnit]" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="4"/>
<TableCell Name="Cell43" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell44" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell45" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row17" Height="47.25">
<TableCell Name="Cell81" Border.Lines="All" Text="设计日期" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell82" Border.Lines="All" Text="[Data.DesignDate]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell83" Border.Lines="All" Text="设计许可证编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell84" Border.Lines="All" Text="[Data.DesignLicenseCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell85" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
</TableRow>
<TableRow Name="Row18" Height="103.95">
<TableCell Name="Cell86" Border.Lines="Left, Right" Text="改造与重大维修项目:[Data.ModRepairProject]" Font="宋体, 12pt" ColSpan="5"/>
<TableCell Name="Cell87"/>
<TableCell Name="Cell88"/>
<TableCell Name="Cell89"/>
<TableCell Name="Cell90"/>
</TableRow>
<TableRow Name="Row10" Height="100.16">
<TableCell Name="Cell46" Border.Lines="Left, Right, Top" Text=" 该压力管道由本单位负责改造/维修,特此证明改造/维修质量符合相关特种设备安全技术规范的规定。" Padding="10, 10, 10, 10" Font="宋体, 12pt" ColSpan="5"/>
<TableCell Name="Cell47" Border.Lines="Left, Right, Top" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell48" Border.Lines="Left, Right, Top" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell49" Border.Lines="Left, Right, Top" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell50" Border.Lines="Left, Right, Top" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row11" Height="70.76">
<TableCell Name="Cell51" Border.Lines="Left" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell52" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell53" Text="(单位公章)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell54" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell55" Border.Lines="Right" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row12" Height="71.81">
<TableCell Name="Cell56" Border.Lines="Left" Padding="50, 1, 2, 1" VertAlign="Center" Font="宋体, 12pt" ColSpan="2"/>
<TableCell Name="Cell57" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell58" Border.Lines="Right" Text="竣工日期:[Data.CompletionDate]" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell59" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell60" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row13" Height="52.91">
<TableCell Name="Cell61" Border.Lines="Left" Text="质检员(签章):" Padding="50, 1, 2, 1" HorzAlign="Right" VertAlign="Center" Font="黑体, 12pt" ColSpan="2"/>
<TableCell Name="Cell62" HorzAlign="Right" VertAlign="Center" Font="黑体, 10.5pt"/>
<TableCell Name="Cell63" Border.Lines="Right" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="3">
<TextObject Name="Text3" Top="9.45" Width="170.1" Height="28.35" Border.Lines="Bottom" Text="[Data.QC_Inspector]" VertAlign="Center" Font="黑体, 12pt"/>
</TableCell>
<TableCell Name="Cell64" Border.Lines="Right" HorzAlign="Right" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell65" Border.Lines="Right" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row14" Height="71.81">
<TableCell Name="Cell66" Border.Lines="Left" Padding="2, 1, 50, 1" HorzAlign="Right" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell67" Text="质量保证工程师(签章):" HorzAlign="Right" VertAlign="Center" Font="黑体, 12pt"/>
<TableCell Name="Cell68" Border.Lines="Right" VertAlign="Center" Font="楷体, 12pt" ColSpan="3">
<TextObject Name="Text5" Top="18.9" Width="170.1" Height="28.35" Border.Lines="Bottom" Text="[Data.QA_Engineer]" VertAlign="Center" Font="黑体, 12pt"/>
</TableCell>
<TableCell Name="Cell69" Border.Lines="Right" HorzAlign="Center" VertAlign="Center" Font="楷体, 12pt"/>
<TableCell Name="Cell70" Border.Lines="Right" HorzAlign="Center" VertAlign="Center" Font="楷体, 12pt"/>
</TableRow>
<TableRow Name="Row19" Height="1">
<TableCell Name="Cell91" Border.Lines="Left, Right, Bottom" ColSpan="5"/>
<TableCell Name="Cell92" Border.Lines="Left, Right, Bottom"/>
<TableCell Name="Cell93" Border.Lines="Left, Right, Bottom"/>
<TableCell Name="Cell94" Border.Lines="Left, Right, Bottom"/>
<TableCell Name="Cell95" Border.Lines="Left, Right, Bottom"/>
</TableRow>
</TableObject>
</DataBand>
</ReportPage>
</Report>
@@ -1408,6 +1408,7 @@
<Content Include="JGZL\IndustrialPipelineQualityCertificate2020.aspx" />
<Content Include="JGZL\InsulationAcceptanceRecord.aspx" />
<Content Include="JGZL\InsulationAcceptanceRecordEdit.aspx" />
<Content Include="JGZL\ModRepairQualityCertificate.aspx" />
<Content Include="JGZL\PressureTestOfPipelineSystemConfirmationRecord.aspx" />
<Content Include="JGZL\LeakTestOfPipelineSystemRecord.aspx" />
<Content Include="JGZL\PressureTestOfPipelineSystemConfirmationRecordEdit.aspx" />
@@ -7089,6 +7090,13 @@
<Compile Include="JGZL\InsulationAcceptanceRecordEdit.aspx.designer.cs">
<DependentUpon>InsulationAcceptanceRecordEdit.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\ModRepairQualityCertificate.aspx.cs">
<DependentUpon>ModRepairQualityCertificate.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="JGZL\ModRepairQualityCertificate.aspx.designer.cs">
<DependentUpon>ModRepairQualityCertificate.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\PressureTestOfPipelineSystemConfirmationRecord.aspx.cs">
<DependentUpon>PressureTestOfPipelineSystemConfirmationRecord.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -2,7 +2,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<UseIISExpress>true</UseIISExpress>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<Use64BitIISExpress />
<IISExpressSSLPort />
<IISExpressAnonymousAuthentication />
@@ -0,0 +1,260 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ModRepairQualityCertificate.aspx.cs" Inherits="FineUIPro.Web.JGZL.ModRepairQualityCertificate" %>
<!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:DropDownList ID="drpQualityCertificateCode" runat="server" Label="编号" LabelAlign="Right" LabelWidth="60px" AutoPostBack="true" OnSelectedIndexChanged="drpQualityCertificateCode_SelectedIndexChanged"></f:DropDownList>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<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>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出Word" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<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="txtQualityCertificateCode" runat="server" Label="编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
<f:Label ID="Label4" runat="server"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtConUnit" runat="server" Label="施工单位" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtConUnitUSCC" runat="server" Label="统一社会信用代码" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtLicenseCode" runat="server" Label="压力管道安装许可证编号" LabelAlign="Right" LabelWidth="170px" MaxLength="100"></f:TextBox>
<f:TextBox ID="txtLicenseScope" runat="server" Label="许可范围" LabelAlign="Right" LabelWidth="170px" MaxLength="100"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtNotificationCode" runat="server" Label="告知单编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpIsoId" runat="server" Label="管线号" LabelAlign="Right" LabelWidth="170px" EnableEdit="true" EnableMultiSelect="true" Required="true" ShowRedStar="true" AutoPostBack="true" OnSelectedIndexChanged="drpIsoId_SelectedIndexChanged"></f:DropDownList>
<f:TextBox ID="txtPipeLength" runat="server" Label="管道长度" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtPipeCategory" runat="server" Label="管道类别" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:CheckBoxList ID="cblConCategory" Label="施工类别" runat="server" LabelWidth="170px" LabelAlign="Right">
<Items>
<f:CheckItem Text="改造" Value="改造" />
<f:CheckItem Text="重大维修" Value="重大维修" />
<f:CheckItem Text="维修" Value="维修" />
</Items>
<Listeners>
<f:Listener Event="change" Handler="onCheckBoxListChange" />
</Listeners>
</f:CheckBoxList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtUseUnit" runat="server" Label="使用单位" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtUseUSCC" runat="server" Label="统一社会信用代码" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtUseAddress" runat="server" Label="使用地点" LabelAlign="Right" LabelWidth="170px" MaxLength="100"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtDesignUnit" runat="server" Label="设计单位" LabelAlign="Right" LabelWidth="170px" MaxLength="100"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DatePicker ID="txtDesignDate" runat="server" Label="设计日期" LabelAlign="Right" LabelWidth="170px" DateFormatString="yyyy.MM.dd"></f:DatePicker>
<f:TextBox ID="txtDesignLicenseCode" runat="server" Label="设计许可证编号" LabelAlign="Right" LabelWidth="170px" MaxLength="100"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtModRepairProject" runat="server" Label="改造与重大维修项目" LabelAlign="Right" LabelWidth="170px" MaxLength="500"></f:TextArea>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Label ID="lblRemark" runat="server" Label="" LabelWidth="170px" Text="该压力管道由本单位负责改造/维修,特此证明改造/维修质量符合相关特种设备安全技术规范的规定。"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Label ID="Label1" runat="server"></f:Label>
<f:DatePicker ID="txtCompletionDate" runat="server" Label="竣工日期" LabelAlign="Right" LabelWidth="170px" DateFormatString="yyyy年MM月dd日"></f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Label ID="Label2" runat="server"></f:Label>
<f:TextBox ID="txtQC_Inspector" runat="server" Label="质检员" LabelAlign="Right" LabelWidth="170px"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Label ID="Label3" runat="server"></f:Label>
<f:TextBox ID="txtQA_Engineer" runat="server" Label="质量保证工程师" LabelAlign="Right" LabelWidth="170px"></f:TextBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
<%--<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="工业管道安装质量证明书 (改造、修理)" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="QualityCertificateId" AllowCellEditing="true"
EnableColumnLines="true" ClicksToEdit="1" DataIDField="QualityCertificateId" AllowSorting="true"
SortField="QualityCertificateCode" 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="QualityCertificateCode" DataField="QualityCertificateCode" SortField="QualityCertificateCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="140px">
</f:RenderField>
<f:RenderField HeaderText="交工单元名称" ColumnID="DeliveryUnit" DataField="DeliveryUnit" SortField="DeliveryUnit"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="220px">
</f:RenderField>
<f:RenderField HeaderText="交工单元编号" ColumnID="DeliveryUnitCode" DataField="DeliveryUnitCode" SortField="DeliveryUnitCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="120px">
</f:RenderField>
<f:RenderField HeaderText="安装开工日期" ColumnID="InstallStartDate" DataField="InstallStartDate" SortField="InstallStartDate"
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
<f:RenderField HeaderText="安装竣工日期" ColumnID="InstallEndDate" DataField="InstallEndDate" SortField="InstallEndDate"
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
<f:RenderField HeaderText="管道级别" ColumnID="PipelineLevel" DataField="PipelineLevel" SortField="PipelineLevel"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="120px">
</f:RenderField>
<f:RenderField HeaderText="管道长度" ColumnID="PipelineLength" DataField="PipelineLength" SortField="PipelineLength"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="150px">
</f:RenderField>
<f:RenderField HeaderText="设计单位" ColumnID="DesignUnit" DataField="DesignUnit" SortField="DesignUnit"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="150px">
</f:RenderField>
<f:RenderField HeaderText="无损检测机构" ColumnID="LosslessTestingAgency" DataField="LosslessTestingAgency" SortField="LosslessTestingAgency"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="150px">
</f:RenderField>
<f:RenderField HeaderText="监检机构" ColumnID="InstallationInspection" DataField="InstallationInspection" SortField="InstallationInspection"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="150px">
</f:RenderField>
<f:RenderField HeaderText="建设单位(使用单位)" ColumnID="ConstructionUnit" DataField="ConstructionUnit" SortField="ConstructionUnit"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="150px">
</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="900px" Height="600px">
</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>--%>
<script type="text/javascript">
// 同时只能选中一项
function onCheckBoxListChange(event, checkbox, isChecked) {
var me = this;
// 当前操作是:选中
if (isChecked) {
// 仅选中这一项
me.setValue(checkbox.getInputValue());
}
// 触发后台事件
__doPostBack('', 'CheckBoxList1Change');
}
</script>
</body>
</html>
@@ -0,0 +1,880 @@
using Aspose.Words;
using BLL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FineUIPro.Web.JGZL
{
public partial class ModRepairQualityCertificate : PageBase
{
#region
/// <summary>
/// 主键
/// </summary>
private string QualityCertificateId
{
get
{
return (string)ViewState["QualityCertificateId"];
}
set
{
ViewState["QualityCertificateId"] = value;
}
}
#endregion
#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.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
this.InitTreeMenu();//加载树
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.drpQualityCertificateCode.DataTextField = "QualityCertificateCode";
this.drpQualityCertificateCode.DataValueField = "QualityCertificateId";
this.drpQualityCertificateCode.DataSource = BLL.ModRepairQualityCertificateService.GetLists(this.tvControlItem.SelectedNodeID);
this.drpQualityCertificateCode.DataBind();
this.drpIsoId.DataTextField = "ISO_IsoNo";
this.drpIsoId.DataValueField = "ISO_ID";
this.drpIsoId.DataSource = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.tvControlItem.SelectedNodeID);
this.drpIsoId.DataBind();
//Funs.FineUIPleaseSelect(this.drpIsoId);
//管道类别
//this.drpPipelineLevel.DataTextField = "ISC_IsoName";
//this.drpPipelineLevel.DataValueField = "ISC_IsoName";
//this.drpPipelineLevel.DataSource = BLL.HJGL_PW_IsoInfoService.GetPipelineLevelList(this.drpProjectId.SelectedValue);
//this.drpPipelineLevel.DataBind();
PageData();
//BindGrid();
}
}
#endregion
private void EmptyText()
{
this.QualityCertificateId = string.Empty;
txtQualityCertificateCode.Text = string.Empty;
txtConUnit.Text = string.Empty;
txtConUnitUSCC.Text = string.Empty;
txtLicenseCode.Text = string.Empty;
txtLicenseScope.Text = string.Empty;
txtNotificationCode.Text = string.Empty;
drpIsoId.SelectedValue = string.Empty;
txtPipeLength.Text = string.Empty;
txtPipeCategory.Text = string.Empty;
cblConCategory.SelectedValueArray = null;
txtUseUnit.Text = string.Empty;
txtUseUSCC.Text = string.Empty;
txtUseAddress.Text = string.Empty;
txtDesignUnit.Text = string.Empty;
txtDesignDate.Text = string.Empty;
txtDesignLicenseCode.Text = string.Empty;
txtModRepairProject.Text = string.Empty;
txtCompletionDate.Text = string.Empty;
txtQC_Inspector.Text = string.Empty;
txtQA_Engineer.Text = string.Empty;
}
private void PageData()
{
EmptyText();
string projectId = this.tvControlItem.SelectedNodeID;
if (!string.IsNullOrEmpty(projectId))
{
var pro = BLL.Base_ProjectService.GetProjectByProjectId(projectId);
if (pro != null)
{
var report = BLL.ModRepairQualityCertificateService.GetModRepairQualityCertificateByProjectId(projectId, drpQualityCertificateCode.SelectedValue);
if (report != null)
{
this.QualityCertificateId = report.QualityCertificateId;
this.txtQualityCertificateCode.Text = report.QualityCertificateCode;
this.txtConUnit.Text = report.ConUnit;
this.txtConUnitUSCC.Text = report.ConUnitUSCC;
this.txtLicenseCode.Text = report.LicenseCode;
this.txtLicenseScope.Text = report.LicenseScope;
this.txtNotificationCode.Text = report.NotificationCode;
if (!string.IsNullOrEmpty(report.ISO_ID))
{
this.drpIsoId.SelectedValueArray = report.ISO_ID.Split(',');
}
this.txtPipeLength.Text = report.PipeLength;
this.txtPipeCategory.Text = report.PipeCategory;
this.cblConCategory.SelectedValueArray = report.ConCategory.Split(',');
this.txtUseUnit.Text = report.UseUnit;
this.txtUseUSCC.Text = report.UseUSCC;
this.txtUseAddress.Text = report.UseAddress;
this.txtDesignUnit.Text = report.DesignUnit;
this.txtDesignDate.Text = report.DesignDate.HasValue ? string.Format("{0:yyyy.MM.dd}", report.DesignDate) : "";
this.txtDesignLicenseCode.Text = report.DesignLicenseCode;
this.txtModRepairProject.Text = report.ModRepairProject;
this.txtCompletionDate.Text = report.CompletionDate.HasValue ? string.Format("{0:yyyy年MM月dd日}", report.CompletionDate) : "";
this.txtQC_Inspector.Text = report.QC_Inspector;
this.txtQA_Engineer.Text = report.QA_Engineer;
}
else
{
this.QualityCertificateId = string.Empty;
//this.txtInstallationInspection.Text = "浙江省特种设备研究院";
//this.txtConstructionUnit.Text = "浙江石油化工有限公司";
//this.txtSpecialEquipmentProductionLicenseCode.Text = "TS3833339-2028";
////this.txtRemark.Text = "GB50517-2023";
//this.txtPipelineLength.Text = BLL.HJGL_PW_IsoInfoService.GetPipeLineLengthList(this.tvControlItem.SelectedNodeID).Value.ToString(".##");
}
}
}
}
#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();
PageData();
}
}
#endregion
#region
/// <summary>
/// 数据绑定
/// </summary>
//private void BindGrid()
//{
// //string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1");
// string strSql = @"SELECT * from JGZL_ModRepairQualityCertificate 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.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu();
PageData();
//BindGrid();
}
/// <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 projectId = this.tvControlItem.SelectedNodeID;
if (projectId != null)
{
string initTemplatePath = "";
string rootPath = Server.MapPath("~/");
BLL.Common.FastReportService.ResetData();
var report = BLL.ModRepairQualityCertificateService.GetModRepairQualityCertificateByProjectId(projectId, this.drpQualityCertificateCode.SelectedValue);
if (report != null)
{
DataTable dt = new DataTable();
dt.TableName = "Data";
dt.Columns.Add("QualityCertificateCode");
dt.Columns.Add("ConUnit");
dt.Columns.Add("ConUnitUSCC");
dt.Columns.Add("LicenseCode");
dt.Columns.Add("LicenseScope");
dt.Columns.Add("NotificationCode");
dt.Columns.Add("PipelineCode");
dt.Columns.Add("PipeLength");
dt.Columns.Add("PipeCategory");
//dt.Columns.Add("ConCategory");
dt.Columns.Add("UseUnit");
dt.Columns.Add("UseUSCC");
dt.Columns.Add("UseAddress");
dt.Columns.Add("DesignUnit");
dt.Columns.Add("DesignDate");
dt.Columns.Add("DesignLicenseCode");
dt.Columns.Add("ModRepairProject");
dt.Columns.Add("Remark");
dt.Columns.Add("CompletionDate");
dt.Columns.Add("QC_Inspector");
dt.Columns.Add("QA_Engineer");
var newRow = dt.NewRow();
newRow["QualityCertificateCode"] = report.QualityCertificateCode;
newRow["ConUnit"] = report.ConUnit;
newRow["ConUnitUSCC"] = report.ConUnitUSCC;
newRow["LicenseCode"] = report.LicenseCode;
newRow["LicenseScope"] = report.LicenseScope;
newRow["NotificationCode"] = report.NotificationCode;
newRow["PipelineCode"] = report.PipelineCode;
newRow["PipeLength"] = report.PipeLength;
newRow["PipeCategory"] = report.PipeCategory;
//string conCategory = string.Empty;
//if (report.ConCategory == "改造")
//{
// conCategory = "☒改造 ☐重大维修 ☐维修";
//}
//else if (report.ConCategory == "重大维修")
//{
// conCategory = "☐改造 ☒重大维修 ☐维修";
//}
//else if (report.ConCategory == "维修")
//{
// conCategory = "☐改造 ☐重大维修 ☒维修";
//}
//else
//{
// conCategory = "☐改造 ☐重大维修 ☐维修";
//}
//newRow["ConCategory"] = conCategory;
newRow["UseUnit"] = report.UseUnit;
newRow["UseUSCC"] = report.UseUSCC;
newRow["UseAddress"] = report.UseAddress;
newRow["DesignUnit"] = report.DesignUnit;
string designDate = report.DesignDate.HasValue ? string.Format("{0:yyyy.MM.dd}", report.DesignDate) : "";
newRow["DesignDate"] = designDate;
newRow["DesignLicenseCode"] = report.DesignLicenseCode;
newRow["ModRepairProject"] = report.ModRepairProject;
newRow["Remark"] = report.Remark;
string completionDate = report.CompletionDate.HasValue ? string.Format("{0:yyyy年MM月dd日}", report.CompletionDate) : "";
newRow["CompletionDate"] = completionDate;
newRow["QC_Inspector"] = report.QC_Inspector;
newRow["QA_Engineer"] = report.QA_Engineer;
dt.Rows.Add(newRow);
BLL.Common.FastReportService.AddFastreportTable(dt);
bool chkGaiZao = report.ConCategory == "改造";
bool chkZhongDaWeiXiu = report.ConCategory == "重大维修";
bool chkWeiXiu = report.ConCategory == "维修";
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
keyValuePairs.Add("chkGaiZao", chkGaiZao.ToString());
keyValuePairs.Add("chkZhongDaWeiXiu", chkZhongDaWeiXiu.ToString());
keyValuePairs.Add("chkWeiXiu", chkWeiXiu.ToString());
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)
{
EmptyText();
//if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
//{
// PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ModRepairQualityCertificateEdit.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_ModRepairQualityCertificateMenuId, BLL.Const.BtnModify))
// {
// if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
// {
// if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
// {
// PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ModRepairQualityCertificateEdit.aspx?qualityCertificateId={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_ModRepairQualityCertificateMenuId, BLL.Const.BtnModify))
// {
// if (Grid1.SelectedRowIndexArray.Length == 0)
// {
// Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
// return;
// }
// PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ModRepairQualityCertificateEdit.aspx?qualityCertificateId={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_ModRepairQualityCertificateMenuId, 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.ModRepairQualityCertificateService.DeleteModRepairQualityCertificateById(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
#region
protected void btnSave_Click(object sender, EventArgs e)
{
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_ModRepairQualityCertificateMenuId, Const.BtnSave))
{
string projectId = this.tvControlItem.SelectedNodeID;
if (!string.IsNullOrEmpty(projectId))
{
if (string.IsNullOrEmpty(this.drpIsoId.SelectedValue))
{
Alert.ShowInTop("请选择管线号!", MessageBoxIcon.Warning);
return;
}
Model.JGZL_ModRepairQualityCertificate newReport = new Model.JGZL_ModRepairQualityCertificate();
newReport.QualityCertificateCode = this.txtQualityCertificateCode.Text.Trim();
newReport.ConUnit = this.txtConUnit.Text.Trim();
newReport.ConUnitUSCC = this.txtConUnitUSCC.Text.Trim();
newReport.LicenseCode = this.txtLicenseCode.Text.Trim();
newReport.LicenseScope = this.txtLicenseScope.Text.Trim();
newReport.NotificationCode = this.txtNotificationCode.Text.Trim();
List<string> isoLists = this.drpIsoId.SelectedValueArray.ToList();
string ids = string.Empty;
string names = string.Empty;
foreach (var isoId in isoLists)
{
ids += isoId + ",";
names += BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoInfoId(isoId).ISO_IsoNo + ",";
}
if (!string.IsNullOrEmpty(ids))
{
ids = ids.Substring(0, ids.LastIndexOf(","));
}
if (!string.IsNullOrEmpty(names))
{
names = names.Substring(0, names.LastIndexOf(","));
}
newReport.ISO_ID = ids;
newReport.PipelineCode = names;
newReport.PipeLength = this.txtPipeLength.Text.Trim();
newReport.PipeCategory = this.txtPipeCategory.Text.Trim();
newReport.ConCategory = this.cblConCategory.SelectedValueArray[0];
newReport.UseUnit = this.txtUseUnit.Text.Trim();
newReport.UseUSCC = this.txtUseUSCC.Text.Trim();
newReport.UseAddress = this.txtUseAddress.Text.Trim();
newReport.DesignUnit = this.txtDesignUnit.Text.Trim();
newReport.DesignDate = Funs.GetNewDateTime(this.txtDesignDate.Text.Trim());
newReport.DesignLicenseCode = this.txtDesignLicenseCode.Text.Trim();
newReport.ModRepairProject = this.txtModRepairProject.Text.Trim();
newReport.Remark = this.lblRemark.Text.Trim();
newReport.CompletionDate = Funs.GetNewDateTime(this.txtCompletionDate.Text.Trim());
newReport.QC_Inspector = this.txtQC_Inspector.Text.Trim();
newReport.QA_Engineer = this.txtQA_Engineer.Text.Trim();
if (!string.IsNullOrEmpty(this.QualityCertificateId))
{
newReport.QualityCertificateId = this.QualityCertificateId;
BLL.ModRepairQualityCertificateService.UpdateModRepairQualityCertificate(newReport);
}
else
{
newReport.ProjectId = projectId;
newReport.CompileMan = this.CurrUser.UserId;
newReport.CompileDate = DateTime.Now;
newReport.QualityCertificateId = SQLHelper.GetNewID(typeof(Model.JGZL_ModRepairQualityCertificate));
this.QualityCertificateId = newReport.QualityCertificateId;
BLL.ModRepairQualityCertificateService.AddModRepairQualityCertificate(newReport);
}
ShowNotify("保存成功!", MessageBoxIcon.Success);
this.drpQualityCertificateCode.Items.Clear();
this.drpQualityCertificateCode.DataTextField = "QualityCertificateCode";
this.drpQualityCertificateCode.DataValueField = "QualityCertificateId";
this.drpQualityCertificateCode.DataSource = BLL.ModRepairQualityCertificateService.GetLists(this.tvControlItem.SelectedNodeID);
this.drpQualityCertificateCode.DataBind();
this.drpQualityCertificateCode.SelectedValue = this.QualityCertificateId;
PageData();
}
else
{
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return;
}
}
else
{
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
return;
}
}
#endregion
#region
/// 导出按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnOut_Click(object sender, EventArgs e)
{
string rootPath = Server.MapPath("~/");
string initTemplatePath = string.Empty;
string uploadfilepath = string.Empty;
string newUrl = string.Empty;
string filePath = string.Empty;
string projectId = this.tvControlItem.SelectedNodeID;
if (!string.IsNullOrEmpty(projectId))
{
var report = BLL.ModRepairQualityCertificateService.GetModRepairQualityCertificateByProjectId(projectId, this.drpQualityCertificateCode.SelectedValue);
if (report != null)
{
initTemplatePath = Const.JGZL_ModRepairQualityCertificateUrl;
uploadfilepath = rootPath + initTemplatePath;
newUrl = uploadfilepath.Replace("工业管道安装质量证明书(改造、修理)导出模板", "工业管道安装质量证明书(改造、修理)");
if (File.Exists(newUrl))
{
File.Delete(newUrl);
}
File.Copy(uploadfilepath, newUrl);
Document doc = new Aspose.Words.Document(uploadfilepath);
Bookmark certificateCode = doc.Range.Bookmarks["CertificateCode"];
if (certificateCode != null)
{
certificateCode.Text = report.QualityCertificateCode;
}
Bookmark conUnit = doc.Range.Bookmarks["ConUnit"];
if (conUnit != null)
{
conUnit.Text = report.ConUnit;
}
Bookmark conUnitUSCC = doc.Range.Bookmarks["ConUnitUSCC"];
if (conUnitUSCC != null)
{
conUnitUSCC.Text = report.ConUnitUSCC;
}
Bookmark licenseCode = doc.Range.Bookmarks["LicenseCode"];
if (licenseCode != null)
{
licenseCode.Text = report.LicenseCode;
}
Bookmark licenseScope = doc.Range.Bookmarks["LicenseScope"];
if (licenseScope != null)
{
licenseScope.Text = report.LicenseScope;
}
Bookmark notificationCode = doc.Range.Bookmarks["NotificationCode"];
if (notificationCode != null)
{
notificationCode.Text = report.NotificationCode;
}
Bookmark pipelineCode = doc.Range.Bookmarks["PipelineCode"];
if (pipelineCode != null)
{
pipelineCode.Text = report.PipelineCode;
}
Bookmark pipeLength = doc.Range.Bookmarks["PipeLength"];
if (pipeLength != null)
{
pipeLength.Text = report.PipeLength;
}
Bookmark pipeCategory = doc.Range.Bookmarks["PipeCategory"];
if (pipeCategory != null)
{
pipeCategory.Text = report.PipeCategory;
}
Bookmark conCategory = doc.Range.Bookmarks["ConCategory"];
if (conCategory != null)
{
string category = string.Empty;
if (report.ConCategory == "改造")
{
category = "☑改造 □重大维修 □维修";
}
else if (report.ConCategory == "重大维修")
{
category = "□改造 ☑重大维修 □维修";
}
else if (report.ConCategory == "维修")
{
category = "□改造 □重大维修 ☑维修";
}
else
{
category = "□改造 □重大维修 □维修";
}
conCategory.Text = category;
}
Bookmark useUnit = doc.Range.Bookmarks["UseUnit"];
if (useUnit != null)
{
useUnit.Text = report.UseUnit;
}
Bookmark useUSCC = doc.Range.Bookmarks["UseUSCC"];
if (useUSCC != null)
{
useUSCC.Text = report.UseUSCC;
}
Bookmark useAddress = doc.Range.Bookmarks["UseAddress"];
if (useAddress != null)
{
useAddress.Text = report.UseAddress;
}
Bookmark designUnit = doc.Range.Bookmarks["DesignUnit"];
if (designUnit != null)
{
designUnit.Text = report.DesignUnit;
}
Bookmark designDate = doc.Range.Bookmarks["DesignDate"];
if (designDate != null)
{
designDate.Text = report.DesignDate.HasValue ? string.Format("{0:yyyy.MM.dd}", report.DesignDate) : "";
}
Bookmark designLicenseCode = doc.Range.Bookmarks["DesignLicenseCode"];
if (designLicenseCode != null)
{
designLicenseCode.Text = report.DesignLicenseCode;
}
Bookmark modRepairProject = doc.Range.Bookmarks["ModRepairProject"];
if (modRepairProject != null)
{
modRepairProject.Text = report.ModRepairProject;
}
Bookmark remark = doc.Range.Bookmarks["Remark"];
if (remark != null)
{
remark.Text = report.Remark;
}
Bookmark completionDate = doc.Range.Bookmarks["CompletionDate"];
if (completionDate != null)
{
completionDate.Text = report.CompletionDate.HasValue ? string.Format("{0:yyyy年MM月dd日}", report.CompletionDate) : "";
}
Bookmark inspector = doc.Range.Bookmarks["QC_Inspector"];
if (inspector != null)
{
inspector.Text = report.QC_Inspector;
}
Bookmark engineer = doc.Range.Bookmarks["QA_Engineer"];
if (engineer != null)
{
engineer.Text = report.QA_Engineer;
}
doc.Save(newUrl);
string fileName = Path.GetFileName(newUrl);
FileInfo info = new FileInfo(newUrl);
long fileSize = info.Length;
Response.Clear();
Response.ContentType = "application/x-zip-compressed";
Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
Response.AddHeader("Content-Length", fileSize.ToString());
Response.TransmitFile(newUrl, 0, fileSize);
Response.Flush();
Response.Close();
File.Delete(newUrl);
}
else
{
Alert.ShowInTop("请先保存数据!", MessageBoxIcon.Warning);
return;
}
}
else
{
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return;
}
}
#endregion
#region DropDonwList下拉选择事件
/// <summary>
/// 管线下拉选择事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void drpIsoId_SelectedIndexChanged(object sender, EventArgs e)
{
this.txtPipeLength.Text = string.Empty;
decimal? lineLength = 0;
List<string> isoLists = this.drpIsoId.SelectedValueArray.ToList();
if (isoLists.Count > 0)
{
foreach (var isoId in isoLists)
{
var iso = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoInfoId(isoId);
if (iso != null)
{
if (iso.PipeLineLength.HasValue)
{
lineLength += iso.PipeLineLength;
}
}
}
this.txtPipeLength.Text = lineLength.Value.ToString("#.00");
}
}
/// <summary>
/// 编号下拉选择
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void drpQualityCertificateCode_SelectedIndexChanged(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(this.drpQualityCertificateCode.SelectedValue))
{
PageData();
}
}
#endregion
}
}
@@ -0,0 +1,395 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.JGZL
{
public partial class ModRepairQualityCertificate
{
/// <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>
/// drpQualityCertificateCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpQualityCertificateCode;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// btnSave 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// btnAdd 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnAdd;
/// <summary>
/// btnPrint 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnPrint;
/// <summary>
/// btnOut 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnOut;
/// <summary>
/// SimpleForm1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form SimpleForm1;
/// <summary>
/// txtQualityCertificateCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtQualityCertificateCode;
/// <summary>
/// Label4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label4;
/// <summary>
/// txtConUnit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtConUnit;
/// <summary>
/// txtConUnitUSCC 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtConUnitUSCC;
/// <summary>
/// txtLicenseCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtLicenseCode;
/// <summary>
/// txtLicenseScope 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtLicenseScope;
/// <summary>
/// txtNotificationCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtNotificationCode;
/// <summary>
/// drpIsoId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpIsoId;
/// <summary>
/// txtPipeLength 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtPipeLength;
/// <summary>
/// txtPipeCategory 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtPipeCategory;
/// <summary>
/// cblConCategory 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.CheckBoxList cblConCategory;
/// <summary>
/// txtUseUnit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtUseUnit;
/// <summary>
/// txtUseUSCC 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtUseUSCC;
/// <summary>
/// txtUseAddress 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtUseAddress;
/// <summary>
/// txtDesignUnit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtDesignUnit;
/// <summary>
/// txtDesignDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtDesignDate;
/// <summary>
/// txtDesignLicenseCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtDesignLicenseCode;
/// <summary>
/// txtModRepairProject 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtModRepairProject;
/// <summary>
/// lblRemark 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label lblRemark;
/// <summary>
/// Label1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label1;
/// <summary>
/// txtCompletionDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtCompletionDate;
/// <summary>
/// Label2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label2;
/// <summary>
/// txtQC_Inspector 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtQC_Inspector;
/// <summary>
/// Label3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label3;
/// <summary>
/// txtQA_Engineer 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtQA_Engineer;
/// <summary>
/// WindowPrint 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window WindowPrint;
}
}
+1 -1
View File
@@ -67,7 +67,7 @@
<add path="ChartImg.axd" verb="GET,POST,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
<add path="FastReport.Export.axd" verb="*" type="FastReport.Web.Handlers.WebExport"/>
</httpHandlers>
<compilation debug="false" targetFramework="4.6.1">
<compilation debug="true" targetFramework="4.6.1">
<assemblies>
<add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
+742
View File
@@ -446,6 +446,9 @@ namespace Model
partial void InsertJGZL_MeasuringInstruments(JGZL_MeasuringInstruments instance);
partial void UpdateJGZL_MeasuringInstruments(JGZL_MeasuringInstruments instance);
partial void DeleteJGZL_MeasuringInstruments(JGZL_MeasuringInstruments instance);
partial void InsertJGZL_ModRepairQualityCertificate(JGZL_ModRepairQualityCertificate instance);
partial void UpdateJGZL_ModRepairQualityCertificate(JGZL_ModRepairQualityCertificate instance);
partial void DeleteJGZL_ModRepairQualityCertificate(JGZL_ModRepairQualityCertificate instance);
partial void InsertJGZL_NDTPerson(JGZL_NDTPerson instance);
partial void UpdateJGZL_NDTPerson(JGZL_NDTPerson instance);
partial void DeleteJGZL_NDTPerson(JGZL_NDTPerson instance);
@@ -2121,6 +2124,14 @@ namespace Model
}
}
public System.Data.Linq.Table<JGZL_ModRepairQualityCertificate> JGZL_ModRepairQualityCertificate
{
get
{
return this.GetTable<JGZL_ModRepairQualityCertificate>();
}
}
public System.Data.Linq.Table<JGZL_NDTPerson> JGZL_NDTPerson
{
get
@@ -5008,6 +5019,8 @@ namespace Model
private EntitySet<JGZL_MeasuringInstruments> _JGZL_MeasuringInstruments;
private EntitySet<JGZL_ModRepairQualityCertificate> _JGZL_ModRepairQualityCertificate;
private EntitySet<JGZL_NDTPerson> _JGZL_NDTPerson;
private EntitySet<JGZL_PipeFittingInspectionRecord> _JGZL_PipeFittingInspectionRecord;
@@ -5201,6 +5214,7 @@ namespace Model
this._JGZL_MaterialIdentificationInspectionRecord = new EntitySet<JGZL_MaterialIdentificationInspectionRecord>(new Action<JGZL_MaterialIdentificationInspectionRecord>(this.attach_JGZL_MaterialIdentificationInspectionRecord), new Action<JGZL_MaterialIdentificationInspectionRecord>(this.detach_JGZL_MaterialIdentificationInspectionRecord));
this._JGZL_MaterialQualityCertificateDoc = new EntitySet<JGZL_MaterialQualityCertificateDoc>(new Action<JGZL_MaterialQualityCertificateDoc>(this.attach_JGZL_MaterialQualityCertificateDoc), new Action<JGZL_MaterialQualityCertificateDoc>(this.detach_JGZL_MaterialQualityCertificateDoc));
this._JGZL_MeasuringInstruments = new EntitySet<JGZL_MeasuringInstruments>(new Action<JGZL_MeasuringInstruments>(this.attach_JGZL_MeasuringInstruments), new Action<JGZL_MeasuringInstruments>(this.detach_JGZL_MeasuringInstruments));
this._JGZL_ModRepairQualityCertificate = new EntitySet<JGZL_ModRepairQualityCertificate>(new Action<JGZL_ModRepairQualityCertificate>(this.attach_JGZL_ModRepairQualityCertificate), new Action<JGZL_ModRepairQualityCertificate>(this.detach_JGZL_ModRepairQualityCertificate));
this._JGZL_NDTPerson = new EntitySet<JGZL_NDTPerson>(new Action<JGZL_NDTPerson>(this.attach_JGZL_NDTPerson), new Action<JGZL_NDTPerson>(this.detach_JGZL_NDTPerson));
this._JGZL_PipeFittingInspectionRecord = new EntitySet<JGZL_PipeFittingInspectionRecord>(new Action<JGZL_PipeFittingInspectionRecord>(this.attach_JGZL_PipeFittingInspectionRecord), new Action<JGZL_PipeFittingInspectionRecord>(this.detach_JGZL_PipeFittingInspectionRecord));
this._JGZL_PipelineInstallationInspectionRecord = new EntitySet<JGZL_PipelineInstallationInspectionRecord>(new Action<JGZL_PipelineInstallationInspectionRecord>(this.attach_JGZL_PipelineInstallationInspectionRecord), new Action<JGZL_PipelineInstallationInspectionRecord>(this.detach_JGZL_PipelineInstallationInspectionRecord));
@@ -6578,6 +6592,19 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_ModRepairQualityCertificate_Base_Project", Storage="_JGZL_ModRepairQualityCertificate", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet<JGZL_ModRepairQualityCertificate> JGZL_ModRepairQualityCertificate
{
get
{
return this._JGZL_ModRepairQualityCertificate;
}
set
{
this._JGZL_ModRepairQualityCertificate.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_NDTPerson_Base_Project", Storage="_JGZL_NDTPerson", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet<JGZL_NDTPerson> JGZL_NDTPerson
{
@@ -7763,6 +7790,18 @@ namespace Model
entity.Base_Project = null;
}
private void attach_JGZL_ModRepairQualityCertificate(JGZL_ModRepairQualityCertificate entity)
{
this.SendPropertyChanging();
entity.Base_Project = this;
}
private void detach_JGZL_ModRepairQualityCertificate(JGZL_ModRepairQualityCertificate entity)
{
this.SendPropertyChanging();
entity.Base_Project = null;
}
private void attach_JGZL_NDTPerson(JGZL_NDTPerson entity)
{
this.SendPropertyChanging();
@@ -92900,6 +92939,709 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_ModRepairQualityCertificate")]
public partial class JGZL_ModRepairQualityCertificate : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _QualityCertificateId;
private string _ProjectId;
private string _QualityCertificateCode;
private string _ConUnit;
private string _ConUnitUSCC;
private string _LicenseCode;
private string _LicenseScope;
private string _NotificationCode;
private string _ISO_ID;
private string _PipelineCode;
private string _PipeLength;
private string _PipeCategory;
private string _ConCategory;
private string _UseUnit;
private string _UseUSCC;
private string _UseAddress;
private string _DesignUnit;
private System.Nullable<System.DateTime> _DesignDate;
private string _DesignLicenseCode;
private string _ModRepairProject;
private string _Remark;
private System.Nullable<System.DateTime> _CompletionDate;
private string _QC_Inspector;
private string _QA_Engineer;
private string _CompileMan;
private System.Nullable<System.DateTime> _CompileDate;
private EntityRef<Base_Project> _Base_Project;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnQualityCertificateIdChanging(string value);
partial void OnQualityCertificateIdChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
partial void OnQualityCertificateCodeChanging(string value);
partial void OnQualityCertificateCodeChanged();
partial void OnConUnitChanging(string value);
partial void OnConUnitChanged();
partial void OnConUnitUSCCChanging(string value);
partial void OnConUnitUSCCChanged();
partial void OnLicenseCodeChanging(string value);
partial void OnLicenseCodeChanged();
partial void OnLicenseScopeChanging(string value);
partial void OnLicenseScopeChanged();
partial void OnNotificationCodeChanging(string value);
partial void OnNotificationCodeChanged();
partial void OnISO_IDChanging(string value);
partial void OnISO_IDChanged();
partial void OnPipelineCodeChanging(string value);
partial void OnPipelineCodeChanged();
partial void OnPipeLengthChanging(string value);
partial void OnPipeLengthChanged();
partial void OnPipeCategoryChanging(string value);
partial void OnPipeCategoryChanged();
partial void OnConCategoryChanging(string value);
partial void OnConCategoryChanged();
partial void OnUseUnitChanging(string value);
partial void OnUseUnitChanged();
partial void OnUseUSCCChanging(string value);
partial void OnUseUSCCChanged();
partial void OnUseAddressChanging(string value);
partial void OnUseAddressChanged();
partial void OnDesignUnitChanging(string value);
partial void OnDesignUnitChanged();
partial void OnDesignDateChanging(System.Nullable<System.DateTime> value);
partial void OnDesignDateChanged();
partial void OnDesignLicenseCodeChanging(string value);
partial void OnDesignLicenseCodeChanged();
partial void OnModRepairProjectChanging(string value);
partial void OnModRepairProjectChanged();
partial void OnRemarkChanging(string value);
partial void OnRemarkChanged();
partial void OnCompletionDateChanging(System.Nullable<System.DateTime> value);
partial void OnCompletionDateChanged();
partial void OnQC_InspectorChanging(string value);
partial void OnQC_InspectorChanged();
partial void OnQA_EngineerChanging(string value);
partial void OnQA_EngineerChanged();
partial void OnCompileManChanging(string value);
partial void OnCompileManChanged();
partial void OnCompileDateChanging(System.Nullable<System.DateTime> value);
partial void OnCompileDateChanged();
#endregion
public JGZL_ModRepairQualityCertificate()
{
this._Base_Project = default(EntityRef<Base_Project>);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QualityCertificateId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string QualityCertificateId
{
get
{
return this._QualityCertificateId;
}
set
{
if ((this._QualityCertificateId != value))
{
this.OnQualityCertificateIdChanging(value);
this.SendPropertyChanging();
this._QualityCertificateId = value;
this.SendPropertyChanged("QualityCertificateId");
this.OnQualityCertificateIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
public string ProjectId
{
get
{
return this._ProjectId;
}
set
{
if ((this._ProjectId != value))
{
if (this._Base_Project.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnProjectIdChanging(value);
this.SendPropertyChanging();
this._ProjectId = value;
this.SendPropertyChanged("ProjectId");
this.OnProjectIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QualityCertificateCode", DbType="NVarChar(50)")]
public string QualityCertificateCode
{
get
{
return this._QualityCertificateCode;
}
set
{
if ((this._QualityCertificateCode != value))
{
this.OnQualityCertificateCodeChanging(value);
this.SendPropertyChanging();
this._QualityCertificateCode = value;
this.SendPropertyChanged("QualityCertificateCode");
this.OnQualityCertificateCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConUnit", DbType="NVarChar(50)")]
public string ConUnit
{
get
{
return this._ConUnit;
}
set
{
if ((this._ConUnit != value))
{
this.OnConUnitChanging(value);
this.SendPropertyChanging();
this._ConUnit = value;
this.SendPropertyChanged("ConUnit");
this.OnConUnitChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConUnitUSCC", DbType="NVarChar(50)")]
public string ConUnitUSCC
{
get
{
return this._ConUnitUSCC;
}
set
{
if ((this._ConUnitUSCC != value))
{
this.OnConUnitUSCCChanging(value);
this.SendPropertyChanging();
this._ConUnitUSCC = value;
this.SendPropertyChanged("ConUnitUSCC");
this.OnConUnitUSCCChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LicenseCode", DbType="NVarChar(100)")]
public string LicenseCode
{
get
{
return this._LicenseCode;
}
set
{
if ((this._LicenseCode != value))
{
this.OnLicenseCodeChanging(value);
this.SendPropertyChanging();
this._LicenseCode = value;
this.SendPropertyChanged("LicenseCode");
this.OnLicenseCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LicenseScope", DbType="NVarChar(100)")]
public string LicenseScope
{
get
{
return this._LicenseScope;
}
set
{
if ((this._LicenseScope != value))
{
this.OnLicenseScopeChanging(value);
this.SendPropertyChanging();
this._LicenseScope = value;
this.SendPropertyChanged("LicenseScope");
this.OnLicenseScopeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NotificationCode", DbType="NVarChar(50)")]
public string NotificationCode
{
get
{
return this._NotificationCode;
}
set
{
if ((this._NotificationCode != value))
{
this.OnNotificationCodeChanging(value);
this.SendPropertyChanging();
this._NotificationCode = value;
this.SendPropertyChanged("NotificationCode");
this.OnNotificationCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISO_ID", DbType="NVarChar(2000)")]
public string ISO_ID
{
get
{
return this._ISO_ID;
}
set
{
if ((this._ISO_ID != value))
{
this.OnISO_IDChanging(value);
this.SendPropertyChanging();
this._ISO_ID = value;
this.SendPropertyChanged("ISO_ID");
this.OnISO_IDChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(2000)")]
public string PipelineCode
{
get
{
return this._PipelineCode;
}
set
{
if ((this._PipelineCode != value))
{
this.OnPipelineCodeChanging(value);
this.SendPropertyChanging();
this._PipelineCode = value;
this.SendPropertyChanged("PipelineCode");
this.OnPipelineCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipeLength", DbType="NVarChar(50)")]
public string PipeLength
{
get
{
return this._PipeLength;
}
set
{
if ((this._PipeLength != value))
{
this.OnPipeLengthChanging(value);
this.SendPropertyChanging();
this._PipeLength = value;
this.SendPropertyChanged("PipeLength");
this.OnPipeLengthChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipeCategory", DbType="NVarChar(50)")]
public string PipeCategory
{
get
{
return this._PipeCategory;
}
set
{
if ((this._PipeCategory != value))
{
this.OnPipeCategoryChanging(value);
this.SendPropertyChanging();
this._PipeCategory = value;
this.SendPropertyChanged("PipeCategory");
this.OnPipeCategoryChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConCategory", DbType="NVarChar(50)")]
public string ConCategory
{
get
{
return this._ConCategory;
}
set
{
if ((this._ConCategory != value))
{
this.OnConCategoryChanging(value);
this.SendPropertyChanging();
this._ConCategory = value;
this.SendPropertyChanged("ConCategory");
this.OnConCategoryChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UseUnit", DbType="NVarChar(50)")]
public string UseUnit
{
get
{
return this._UseUnit;
}
set
{
if ((this._UseUnit != value))
{
this.OnUseUnitChanging(value);
this.SendPropertyChanging();
this._UseUnit = value;
this.SendPropertyChanged("UseUnit");
this.OnUseUnitChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UseUSCC", DbType="NVarChar(50)")]
public string UseUSCC
{
get
{
return this._UseUSCC;
}
set
{
if ((this._UseUSCC != value))
{
this.OnUseUSCCChanging(value);
this.SendPropertyChanging();
this._UseUSCC = value;
this.SendPropertyChanged("UseUSCC");
this.OnUseUSCCChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UseAddress", DbType="NVarChar(100)")]
public string UseAddress
{
get
{
return this._UseAddress;
}
set
{
if ((this._UseAddress != value))
{
this.OnUseAddressChanging(value);
this.SendPropertyChanging();
this._UseAddress = value;
this.SendPropertyChanged("UseAddress");
this.OnUseAddressChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignUnit", DbType="NVarChar(50)")]
public string DesignUnit
{
get
{
return this._DesignUnit;
}
set
{
if ((this._DesignUnit != value))
{
this.OnDesignUnitChanging(value);
this.SendPropertyChanging();
this._DesignUnit = value;
this.SendPropertyChanged("DesignUnit");
this.OnDesignUnitChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignDate", DbType="DateTime")]
public System.Nullable<System.DateTime> DesignDate
{
get
{
return this._DesignDate;
}
set
{
if ((this._DesignDate != value))
{
this.OnDesignDateChanging(value);
this.SendPropertyChanging();
this._DesignDate = value;
this.SendPropertyChanged("DesignDate");
this.OnDesignDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignLicenseCode", DbType="NVarChar(50)")]
public string DesignLicenseCode
{
get
{
return this._DesignLicenseCode;
}
set
{
if ((this._DesignLicenseCode != value))
{
this.OnDesignLicenseCodeChanging(value);
this.SendPropertyChanging();
this._DesignLicenseCode = value;
this.SendPropertyChanged("DesignLicenseCode");
this.OnDesignLicenseCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ModRepairProject", DbType="NVarChar(500)")]
public string ModRepairProject
{
get
{
return this._ModRepairProject;
}
set
{
if ((this._ModRepairProject != value))
{
this.OnModRepairProjectChanging(value);
this.SendPropertyChanging();
this._ModRepairProject = value;
this.SendPropertyChanged("ModRepairProject");
this.OnModRepairProjectChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(500)")]
public string Remark
{
get
{
return this._Remark;
}
set
{
if ((this._Remark != value))
{
this.OnRemarkChanging(value);
this.SendPropertyChanging();
this._Remark = value;
this.SendPropertyChanged("Remark");
this.OnRemarkChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompletionDate", DbType="DateTime")]
public System.Nullable<System.DateTime> CompletionDate
{
get
{
return this._CompletionDate;
}
set
{
if ((this._CompletionDate != value))
{
this.OnCompletionDateChanging(value);
this.SendPropertyChanging();
this._CompletionDate = value;
this.SendPropertyChanged("CompletionDate");
this.OnCompletionDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QC_Inspector", DbType="NVarChar(50)")]
public string QC_Inspector
{
get
{
return this._QC_Inspector;
}
set
{
if ((this._QC_Inspector != value))
{
this.OnQC_InspectorChanging(value);
this.SendPropertyChanging();
this._QC_Inspector = value;
this.SendPropertyChanged("QC_Inspector");
this.OnQC_InspectorChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QA_Engineer", DbType="NVarChar(50)")]
public string QA_Engineer
{
get
{
return this._QA_Engineer;
}
set
{
if ((this._QA_Engineer != value))
{
this.OnQA_EngineerChanging(value);
this.SendPropertyChanging();
this._QA_Engineer = value;
this.SendPropertyChanged("QA_Engineer");
this.OnQA_EngineerChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
public string CompileMan
{
get
{
return this._CompileMan;
}
set
{
if ((this._CompileMan != value))
{
this.OnCompileManChanging(value);
this.SendPropertyChanging();
this._CompileMan = value;
this.SendPropertyChanged("CompileMan");
this.OnCompileManChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
public System.Nullable<System.DateTime> CompileDate
{
get
{
return this._CompileDate;
}
set
{
if ((this._CompileDate != value))
{
this.OnCompileDateChanging(value);
this.SendPropertyChanging();
this._CompileDate = value;
this.SendPropertyChanged("CompileDate");
this.OnCompileDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_ModRepairQualityCertificate_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
public Base_Project Base_Project
{
get
{
return this._Base_Project.Entity;
}
set
{
Base_Project previousValue = this._Base_Project.Entity;
if (((previousValue != value)
|| (this._Base_Project.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Base_Project.Entity = null;
previousValue.JGZL_ModRepairQualityCertificate.Remove(this);
}
this._Base_Project.Entity = value;
if ((value != null))
{
value.JGZL_ModRepairQualityCertificate.Add(this);
this._ProjectId = value.ProjectId;
}
else
{
this._ProjectId = default(string);
}
this.SendPropertyChanged("Base_Project");
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, emptyChangingEventArgs);
}
}
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_NDTPerson")]
public partial class JGZL_NDTPerson : INotifyPropertyChanging, INotifyPropertyChanged
{
+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
<UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress />