20251213 工程交工验收证书

This commit is contained in:
毕文静 2025-12-13 15:10:59 +08:00
parent e365ff41c2
commit ac7fd18387
16 changed files with 1850 additions and 10 deletions

View File

@ -0,0 +1,83 @@
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
values('13172551-E58A-4F87-A090-3B8476FAA517','工程交工验收证书','JGZL/AcceptanceCertificate.aspx',30,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
go
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('9892C865-8D7B-4868-9A1D-ACC7B14F42FA','13172551-E58A-4F87-A090-3B8476FAA517','增加',1)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('EB5BE4D5-C0D6-4BF4-A588-54E379C43972','13172551-E58A-4F87-A090-3B8476FAA517','修改',2)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('3151FAB3-CBA8-40F9-9A28-6E109516FE11','13172551-E58A-4F87-A090-3B8476FAA517','删除',3)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('A9EC1E01-525B-49CB-8EC0-C62DDF483A51','13172551-E58A-4F87-A090-3B8476FAA517','保存',4)
go
CREATE TABLE [dbo].[JGZL_AcceptanceCertificate](
[CertificateId] [nvarchar](50) NOT NULL,
[ProjectId] [nvarchar](50) NULL,
[ContractNumber] [nvarchar](100) NULL,
[StartDate] [datetime] NULL,
[EndDate] [datetime] NULL,
[ProjectContent] [nvarchar](2000) NULL,
[AcceptanceOpinion] [nvarchar](1000) NULL,
[HeaderMan] [nvarchar](50) NULL,
[SupervisoryOpinion] [nvarchar](1000) NULL,
[CompileMan] [nvarchar](50) NULL,
[CompileDate] [datetime] NULL,
CONSTRAINT [PK_JGZL_AcceptanceCertificate] PRIMARY KEY CLUSTERED
(
[CertificateId] 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_AcceptanceCertificate] WITH CHECK ADD CONSTRAINT [FK_JGZL_AcceptanceCertificate_Base_Project] FOREIGN KEY([ProjectId])
REFERENCES [dbo].[Base_Project] ([ProjectId])
GO
ALTER TABLE [dbo].[JGZL_AcceptanceCertificate] CHECK CONSTRAINT [FK_JGZL_AcceptanceCertificate_Base_Project]
GO
ALTER TABLE [dbo].[JGZL_AcceptanceCertificate] WITH CHECK ADD CONSTRAINT [FK_JGZL_AcceptanceCertificate_Sys_User] FOREIGN KEY([CompileMan])
REFERENCES [dbo].[Sys_User] ([UserId])
GO
ALTER TABLE [dbo].[JGZL_AcceptanceCertificate] CHECK CONSTRAINT [FK_JGZL_AcceptanceCertificate_Sys_User]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AcceptanceCertificate', @level2type=N'COLUMN',@level2name=N'CertificateId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AcceptanceCertificate', @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_AcceptanceCertificate', @level2type=N'COLUMN',@level2name=N'ContractNumber'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'实际开工日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AcceptanceCertificate', @level2type=N'COLUMN',@level2name=N'StartDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'交工日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AcceptanceCertificate', @level2type=N'COLUMN',@level2name=N'EndDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工程内容' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AcceptanceCertificate', @level2type=N'COLUMN',@level2name=N'ProjectContent'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工程验收意见' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AcceptanceCertificate', @level2type=N'COLUMN',@level2name=N'AcceptanceOpinion'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'使用单位负责(代表)人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AcceptanceCertificate', @level2type=N'COLUMN',@level2name=N'HeaderMan'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工程质量监督意见' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AcceptanceCertificate', @level2type=N'COLUMN',@level2name=N'SupervisoryOpinion'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AcceptanceCertificate', @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_AcceptanceCertificate', @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_AcceptanceCertificate'
GO

View File

@ -245,6 +245,7 @@
<Compile Include="HJGL\WeldingManage\WelderOKRateService.cs" />
<Compile Include="HJGL\WeldingManage\WelderOKRateStatisticsService.cs" />
<Compile Include="HJGL\WeldingManage\WeldRecordInService.cs" />
<Compile Include="JGZL\AcceptanceCertificateService.cs" />
<Compile Include="JGZL\CommencementReportService.cs" />
<Compile Include="JGZL\HandoverCertificateService.cs" />
<Compile Include="JsonHelper.cs" />

View File

@ -1764,6 +1764,11 @@ namespace BLL
/// 工程中间交接证书
/// </summary>
public const string JGZL_HandoverCertificateMenuId = "7BB74C3E-52E6-49C2-91FA-FF73128FF8E6";
/// <summary>
/// 工程交工验收证书
/// </summary>
public const string JGZL_AcceptanceCertificateMenuId = "13172551-E58A-4F87-A090-3B8476FAA517";
#endregion
#region ID

View File

@ -0,0 +1,84 @@
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
/// <summary>
/// 工程交工验收证书
/// </summary>
public class AcceptanceCertificateService
{
/// <summary>
/// 根据主键获取工程交工验收证书
/// </summary>
/// <param name="certificateId"></param>
/// <returns></returns>
public static Model.JGZL_AcceptanceCertificate GetAcceptanceCertificateById(string certificateId)
{
return Funs.DB.JGZL_AcceptanceCertificate.FirstOrDefault(e => e.CertificateId == certificateId);
}
/// <summary>
/// 增加工程交工验收证书
/// </summary>
/// <param name="acceptanceCertificate"></param>
public static void AddAcceptanceCertificate(Model.JGZL_AcceptanceCertificate acceptanceCertificate)
{
SGGLDB db = Funs.DB;
Model.JGZL_AcceptanceCertificate newAcceptanceCertificate = new JGZL_AcceptanceCertificate();
newAcceptanceCertificate.CertificateId = acceptanceCertificate.CertificateId;
newAcceptanceCertificate.ProjectId = acceptanceCertificate.ProjectId;
newAcceptanceCertificate.ContractNumber = acceptanceCertificate.ContractNumber;
newAcceptanceCertificate.StartDate = acceptanceCertificate.StartDate;
newAcceptanceCertificate.EndDate = acceptanceCertificate.EndDate;
newAcceptanceCertificate.ProjectContent = acceptanceCertificate.ProjectContent;
newAcceptanceCertificate.AcceptanceOpinion = acceptanceCertificate.AcceptanceOpinion;
newAcceptanceCertificate.HeaderMan = acceptanceCertificate.HeaderMan;
newAcceptanceCertificate.SupervisoryOpinion = acceptanceCertificate.SupervisoryOpinion;
newAcceptanceCertificate.CompileMan = acceptanceCertificate.CompileMan;
newAcceptanceCertificate.CompileDate = acceptanceCertificate.CompileDate;
db.JGZL_AcceptanceCertificate.InsertOnSubmit(newAcceptanceCertificate);
db.SubmitChanges();
}
/// <summary>
/// 修改工程交工验收证书
/// </summary>
/// <param name="acceptanceCertificate"></param>
public static void UpdateAcceptanceCertificate(Model.JGZL_AcceptanceCertificate acceptanceCertificate)
{
SGGLDB db = Funs.DB;
Model.JGZL_AcceptanceCertificate newAcceptanceCertificate = db.JGZL_AcceptanceCertificate.FirstOrDefault(e => e.CertificateId == acceptanceCertificate.CertificateId);
if (newAcceptanceCertificate != null)
{
newAcceptanceCertificate.ContractNumber = acceptanceCertificate.ContractNumber;
newAcceptanceCertificate.StartDate = acceptanceCertificate.StartDate;
newAcceptanceCertificate.EndDate = acceptanceCertificate.EndDate;
newAcceptanceCertificate.ProjectContent = acceptanceCertificate.ProjectContent;
newAcceptanceCertificate.AcceptanceOpinion = acceptanceCertificate.AcceptanceOpinion;
newAcceptanceCertificate.HeaderMan = acceptanceCertificate.HeaderMan;
newAcceptanceCertificate.SupervisoryOpinion = acceptanceCertificate.SupervisoryOpinion;
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除工程交工验收证书
/// </summary>
/// <param name="certificateId"></param>
public static void DeleteAcceptanceCertificateById(string certificateId)
{
SGGLDB db = Funs.DB;
Model.JGZL_AcceptanceCertificate acceptanceCertificate = db.JGZL_AcceptanceCertificate.FirstOrDefault(e => e.CertificateId == certificateId);
if (acceptanceCertificate != null)
{
db.JGZL_AcceptanceCertificate.DeleteOnSubmit(acceptanceCertificate);
db.SubmitChanges();
}
}
}
}

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/10/2025 16:28:15" ReportInfo.Modified="12/11/2025 15:15:54" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/10/2025 16:28:15" ReportInfo.Modified="12/13/2025 15:00:43" ReportInfo.CreatorVersion="2017.1.16.0">
<Dictionary>
<Parameter Name="ProjectName" DataType="System.String"/>
<Parameter Name="ContractNumber" DataType="System.String"/>
@ -48,7 +48,7 @@
</TableRow>
<TableRow Name="Row4" Height="264.6">
<TableCell Name="Cell16" Border.Lines="All" Text="工&#13;&#10;程&#13;&#10;内&#13;&#10;容&#13;&#10;" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell17" Border.Lines="All" Text="[ProjectContent]" Font="楷体, 10.5pt" ColSpan="6"/>
<TableCell Name="Cell17" Border.Lines="All" Text="[ProjectContent]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="6"/>
<TableCell Name="Cell18" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell19" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell20" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
@ -57,7 +57,7 @@
</TableRow>
<TableRow Name="Row5" Height="189">
<TableCell Name="Cell21" Border.Lines="All" Text="接&#13;&#10;收&#13;&#10;意&#13;&#10;见" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell22" Border.Lines="Left, Right, Top" Text="[ReceiveOpinions]" Font="楷体, 10.5pt" ColSpan="6"/>
<TableCell Name="Cell22" Border.Lines="Left, Right, Top" Text="[ReceiveOpinions]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="6"/>
<TableCell Name="Cell23" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell24" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell25" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
@ -75,7 +75,7 @@
</TableRow>
<TableRow Name="Row7" Height="174.81">
<TableCell Name="Cell43" Border.Lines="All" Text="质&#13;&#10;量&#13;&#10;监&#13;&#10;督&#13;&#10;意&#13;&#10;见" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell44" Border.Lines="Left, Right, Top" Text="[SupervisionOpinion]" Font="楷体, 10.5pt" ColSpan="6"/>
<TableCell Name="Cell44" Border.Lines="Left, Right, Top" Text="[SupervisionOpinion]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="6"/>
<TableCell Name="Cell45" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell46" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell47" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>

View File

@ -0,0 +1,140 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/12/2025 11:03:02" ReportInfo.Modified="12/13/2025 15:01:02" ReportInfo.CreatorVersion="2017.1.16.0">
<Dictionary>
<Parameter Name="ProjectName" DataType="System.String"/>
<Parameter Name="ContractNumber" DataType="System.String"/>
<Parameter Name="StartDate" DataType="System.String"/>
<Parameter Name="EndDate" DataType="System.String"/>
<Parameter Name="ProjectContent" DataType="System.String"/>
<Parameter Name="AcceptanceOpinion" DataType="System.String"/>
<Parameter Name="HeaderMan" DataType="System.String"/>
<Parameter Name="SupervisoryOpinion" DataType="System.String"/>
</Dictionary>
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="25" TopMargin="20" RightMargin="20" BottomMargin="20" Guides="0,623.7,151.2,47.25,396.9,122.85,103.95,226.8,274.05,623.72,155.93,311.86,467.79">
<PageHeaderBand Name="PageHeader1" Width="623.7" Height="838.63" Guides="0,838.63,82.54,22.68,59.86,114.05,31.51,145.56,167.62,22.06,394.42,226.8,416.48,589.74,173.26,621.25,643.31,807.12,163.81">
<TableObject Name="Table1" Width="623.7" Height="838.63">
<TableColumn Name="Column1" Width="103.95"/>
<TableColumn Name="Column2" Width="47.25"/>
<TableColumn Name="Column3" Width="122.85"/>
<TableColumn Name="Column4" Width="122.85"/>
<TableColumn Name="Column5" Width="226.8"/>
<TableRow Name="Row1" Height="22.68">
<TableCell Name="Cell1" Border.Lines="All" Text="SH/T 3503—J107B" HorzAlign="Center" VertAlign="Center" Font="黑体, 10.5pt" ColSpan="2" RowSpan="2"/>
<TableCell Name="Cell2" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell3" Border.Lines="All" Text="工程交工验收证书" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt, style=Bold" ColSpan="2" RowSpan="2"/>
<TableCell Name="Cell4" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell5" Border.Lines="Left, Right, Top" Text="工程名称:" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row2" Height="59.86">
<TableCell Name="Cell6" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell7" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell8" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell9" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell10" Border.Lines="Left, Right, Bottom" Text="[ProjectName]" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row3" Height="31.51">
<TableCell Name="Cell11" Border.Lines="All" Text="施工合同编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell12" Border.Lines="All" Text="[ContractNumber]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="4"/>
<TableCell Name="Cell13" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<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="31.51">
<TableCell Name="Cell16" Border.Lines="All" Text="实际开工日期" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell17" Border.Lines="All" Text="[StartDate]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell18" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell19" Border.Lines="All" Text="交工日期" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell20" Border.Lines="All" Text="[EndDate]" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row5" Height="22.06">
<TableCell Name="Cell21" Border.Lines="Left, Right, Top" Text="工程内容:" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="5"/>
<TableCell Name="Cell22" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell23" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell24" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell25" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row6" Height="226.8">
<TableCell Name="Cell26" Border.Lines="Left, Right, Bottom" Text="[ProjectContent]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="5"/>
<TableCell Name="Cell27" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell28" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell29" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell30" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row7" Height="22.06">
<TableCell Name="Cell31" Border.Lines="Left, Right, Top" Text="工程验收意见:" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="5"/>
<TableCell Name="Cell32" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell33" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell34" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell35" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row8" Height="173.26">
<TableCell Name="Cell36" Border.Lines="Left, Right" Text="[AcceptanceOpinion]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="5"/>
<TableCell Name="Cell37" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell38" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell39" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell40" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row9" Height="31.51">
<TableCell Name="Cell41" Border.Lines="Left, Bottom" Text="使用单位负责(代表)人:" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell42" Border.Lines="Bottom" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell43" Border.Lines="Bottom" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell44" Border.Lines="Bottom" Text="[HeaderMan]" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell45" Border.Lines="Right, Bottom" Text="年 月 日" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row10" Height="22.06">
<TableCell Name="Cell46" Border.Lines="Left, Right, Top" Text="工程质量监督意见:" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="5"/>
<TableCell Name="Cell47" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell48" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell49" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell50" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row11" Height="163.81">
<TableCell Name="Cell51" Border.Lines="Left, Right" Text="[SupervisoryOpinion]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="5"/>
<TableCell Name="Cell52" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell53" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell54" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell55" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row12" Height="31.51">
<TableCell Name="Cell56" Border.Lines="Left, Right, Bottom" Text=" 工程质量监督站长/组长:(监督站/组章) 年 月 日" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="5"/>
<TableCell Name="Cell57" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell58" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell59" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell60" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
</PageHeaderBand>
<PageFooterBand Name="PageFooter1" Top="842.63" Width="623.7" Height="132.24" Guides="0,132.24,33.06,66.12,99.18001">
<TableObject Name="Table2" Width="623.72" Height="132.24" Border.Lines="Left, Right, Bottom">
<TableColumn Name="Column6" Width="155.93"/>
<TableColumn Name="Column7" Width="155.93"/>
<TableColumn Name="Column8" Width="155.93"/>
<TableColumn Name="Column9" Width="155.93"/>
<TableRow Name="Row13" Height="33.06">
<TableCell Name="Cell61" Border.Lines="All" Text="建设单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell62" Border.Lines="All" Text="设计单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell63" Border.Lines="All" Text="监理单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell64" Border.Lines="All" Text="施工单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row14" Height="33.06">
<TableCell Name="Cell66" Border.Lines="Left, Right, Top" Text="(项目部章)" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell67" Border.Lines="Left, Right, Top" Text="(项目部章)" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell68" Border.Lines="Left, Right, Top" Text="(项目部章)" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell69" Border.Lines="Left, Right, Top" Text="(项目部章)" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row15" Height="33.06">
<TableCell Name="Cell71" Border.Lines="Left, Right" Text="项目经理:" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell72" Border.Lines="Left, Right" Text="项目经理:" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell73" Border.Lines="Left, Right" Text="项目总监:" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell74" Border.Lines="Left, Right" Text="项目经理:" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row16" Height="33.06">
<TableCell Name="Cell76" Border.Lines="Left, Right, Bottom" Text="年 月 日" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell77" Border.Lines="Left, Right, Bottom" Text="年 月 日" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell78" Border.Lines="Left, Right, Bottom" Text="年 月 日" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell79" Border.Lines="Left, Right, Bottom" Text="年 月 日" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
</PageFooterBand>
</ReportPage>
</Report>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/09/2025 11:39:20" ReportInfo.Modified="12/11/2025 15:13:32" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/09/2025 11:39:20" ReportInfo.Modified="12/13/2025 15:01:15" ReportInfo.CreatorVersion="2017.1.16.0">
<Dictionary>
<Parameter Name="ProjectName" DataType="System.String"/>
<Parameter Name="ContractNumber" DataType="System.String"/>
@ -54,7 +54,7 @@
</TableRow>
<TableRow Name="Row4" Height="198.66">
<TableCell Name="Cell16" Border.Lines="All" Text="工&#13;&#10;程&#13;&#10;内&#13;&#10;容" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell17" Border.Lines="All" Text="[ProjectContent]" Font="楷体, 10.5pt" ColSpan="5"/>
<TableCell Name="Cell17" Border.Lines="All" Text="[ProjectContent]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="5"/>
<TableCell Name="Cell18" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell19" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell20" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
@ -62,7 +62,7 @@
</TableRow>
<TableRow Name="Row5" Height="146.29">
<TableCell Name="Cell21" Border.Lines="All" Text="开&#13;&#10;工&#13;&#10;条&#13;&#10;件" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell22" Border.Lines="All" Text="[Conditions]" Font="楷体, 10.5pt" ColSpan="5"/>
<TableCell Name="Cell22" Border.Lines="All" Text="[Conditions]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="5"/>
<TableCell Name="Cell23" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell24" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell25" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
@ -70,7 +70,7 @@
</TableRow>
<TableRow Name="Row6" Height="134.4">
<TableCell Name="Cell36" Border.Lines="All" Text="审&#13;&#10;查&#13;&#10;意&#13;&#10;见" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell37" Border.Lines="All" Text="[ReviewOpinion]" Font="楷体, 10.5pt" ColSpan="5"/>
<TableCell Name="Cell37" Border.Lines="All" Text="[ReviewOpinion]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="5"/>
<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"/>
@ -78,7 +78,7 @@
</TableRow>
<TableRow Name="Row7" Height="113.4">
<TableCell Name="Cell43" Border.Lines="All" Text="质&#13;&#10;量&#13;&#10;监&#13;&#10;督&#13;&#10;意&#13;&#10;见" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell44" Border.Lines="Left, Right, Top" Text="[QualitySupervisionOpinion]" Font="楷体, 10.5pt" ColSpan="5"/>
<TableCell Name="Cell44" Border.Lines="Left, Right, Top" Text="[QualitySupervisionOpinion]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="5"/>
<TableCell Name="Cell45" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell46" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell47" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>

View File

@ -1241,6 +1241,8 @@
<Content Include="Images\SINOPEC.gif" />
<Content Include="Images\UnitLogo.jpg" />
<Content Include="Images\wrong.jpg" />
<Content Include="JGZL\AcceptanceCertificate.aspx" />
<Content Include="JGZL\AcceptanceCertificateEdit.aspx" />
<Content Include="JGZL\CommencementReport.aspx" />
<Content Include="JGZL\CommencementReportEdit.aspx" />
<Content Include="JGZL\HandoverCertificate.aspx" />
@ -6524,6 +6526,20 @@
<Compile Include="HJGL\WeldingReport\WeldInspectionCheckRecordItem.aspx.designer.cs">
<DependentUpon>WeldInspectionCheckRecordItem.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\AcceptanceCertificate.aspx.cs">
<DependentUpon>AcceptanceCertificate.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="JGZL\AcceptanceCertificate.aspx.designer.cs">
<DependentUpon>AcceptanceCertificate.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\AcceptanceCertificateEdit.aspx.cs">
<DependentUpon>AcceptanceCertificateEdit.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="JGZL\AcceptanceCertificateEdit.aspx.designer.cs">
<DependentUpon>AcceptanceCertificateEdit.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\CommencementReport.aspx.cs">
<DependentUpon>CommencementReport.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>

View File

@ -0,0 +1,118 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AcceptanceCertificate.aspx.cs" Inherits="FineUIPro.Web.JGZL.AcceptanceCertificate" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>工程交工验收证书</title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="220px" Title="工程交工验收证书" ShowBorder="true" Layout="VBox"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelAlign="Right" AutoPostBack="true" EnableEdit="true"
OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged" LabelWidth="50px">
</f:DropDownList>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Tree ID="tvControlItem" ShowHeader="false" Title="工程交工验收证书" OnNodeCommand="tvControlItem_NodeCommand"
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
AutoLeafIdentification="true" EnableSingleExpand="true" EnableTextSelection="true">
</f:Tree>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="工程交工验收证书"
TitleToolTip="工程交工验收证书" AutoScroll="true">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
<Items>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>
<f:Button ID="btnPrint" Text="工程交工验收证书打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="工程交工验收证书" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="CertificateId" AllowCellEditing="true"
EnableColumnLines="true" ClicksToEdit="1" DataIDField="CertificateId" AllowSorting="true"
SortField="ContractNumber" 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="ContractNumber" DataField="ContractNumber" SortField="ContractNumber"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
</f:RenderField>
<f:RenderField HeaderText="实际开工日期" ColumnID="StartDate" DataField="StartDate" SortField="StartDate"
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
<f:RenderField HeaderText="交工日期" ColumnID="EndDate" DataField="EndDate" SortField="EndDate"
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
<f:RenderField HeaderText="工程内容" ColumnID="ProjectContent" DataField="ProjectContent" SortField="ProjectContent"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="180px" ExpandUnusedSpace="true">
</f:RenderField>
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
</Listeners>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
<f:ListItem Text="10" Value="10" />
<f:ListItem Text="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="工程交工验收证书" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="1100px" Height="620px">
</f:Window>
<f:Window ID="WindowPrint" Title="打印工程交工验收证书" Hidden="true" EnableIFrame="true" EnableMaximize="false"
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
Height="600px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
runat="server" Text="编辑" Icon="TableEdit">
</f:MenuButton>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
</f:MenuButton>
</f:Menu>
</form>
<script type="text/javascript">
var menuID = '<%= Menu1.ClientID %>';
// 返回false来阻止浏览器右键菜单
function onRowContextMenu(event, rowId) {
F(menuID).show(); //showAt(event.pageX, event.pageY);
return false;
}
</script>
</body>
</html>

View File

@ -0,0 +1,385 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
namespace FineUIPro.Web.JGZL
{
public partial class AcceptanceCertificate : PageBase
{
#region
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
this.drpProjectId.DataTextField = "ProjectCode";
this.drpProjectId.DataValueField = "ProjectId";
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
this.drpProjectId.DataBind();
Funs.FineUIPleaseSelect(this.drpProjectId);
this.InitTreeMenu();//加载树
}
}
#endregion
#region
/// <summary>
/// 加载树
/// </summary>
private void InitTreeMenu()
{
this.tvControlItem.Nodes.Clear();
TreeNode rootNode = new TreeNode();
rootNode.Text = "项目";
rootNode.ToolTip = "项目";
rootNode.NodeID = "0";
rootNode.Expanded = true;
this.tvControlItem.Nodes.Add(rootNode);
List<Model.Base_Project> projects = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
if (this.drpProjectId.SelectedValue != BLL.Const._Null)
{
projects = projects.Where(e => e.ProjectId == this.drpProjectId.SelectedValue).ToList();
}
foreach (var item in projects)
{
TreeNode rootProjectNode = new TreeNode();//定义根节点
rootProjectNode.Text = item.ProjectCode;
rootProjectNode.NodeID = item.ProjectId;
rootProjectNode.EnableClickEvent = true;
rootProjectNode.Expanded = true;
rootProjectNode.ToolTip = item.ProjectName;
rootProjectNode.CommandName = "项目名称";
rootNode.Nodes.Add(rootProjectNode);
}
}
#endregion
#region TreeView
/// <summary>
/// 点击TreeView
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
{
if (this.tvControlItem.SelectedNodeID != "0")
{
this.BindGrid();
}
}
#endregion
#region
/// <summary>
/// 数据绑定
/// </summary>
private void BindGrid()
{
//string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1");
string strSql = @"SELECT * from JGZL_AcceptanceCertificate where 1=1";
List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
{
strSql += " AND ProjectId = @ProjectId";
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
}
//else
//{
// strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 ";
// listStr.Add(new SqlParameter("@ProjectId", projectIds));
//}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
// 2.获取当前分页数据
Grid1.RecordCount = tb.Rows.Count;
//tb = GetFilteredTable(Grid1.FilteredData, tb);
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
}
#endregion
#region
#region
/// <summary>
/// 页索引改变事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{
BindGrid();
}
#endregion
#region
/// <summary>
/// 排序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_Sort(object sender, GridSortEventArgs e)
{
BindGrid();
}
#endregion
#region
/// <summary>
/// 分页选择下拉改变事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
BindGrid();
}
#endregion
#endregion
#region
///<summary>
///查询
///</summary>
///<param name="sender"></param>
///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{
this.InitTreeMenu();
}
/// <summary>
/// 查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void TextBox_TextChanged(object sender, EventArgs e)
{
this.BindGrid();
}
#endregion
#region
/// <summary>
/// 打印
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnPrint_Click(object sender, EventArgs e)
{
string projectId = this.tvControlItem.SelectedNodeID;
if (projectId != null)
{
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
{
string initTemplatePath = "";
string rootPath = Server.MapPath("~/");
BLL.Common.FastReportService.ResetData();
var report = BLL.AcceptanceCertificateService.GetAcceptanceCertificateById(this.Grid1.SelectedRowID);
if (report != null)
{
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
keyValuePairs.Add("ContractNumber", report.ContractNumber);
keyValuePairs.Add("StartDate", report.StartDate.HasValue ? string.Format("{0:yyyy年MM月dd日}", report.StartDate) : "");
keyValuePairs.Add("EndDate", report.EndDate.HasValue ? string.Format("{0:yyyy年MM月dd日}", report.EndDate) : "");
keyValuePairs.Add("ProjectContent", report.ProjectContent);
keyValuePairs.Add("AcceptanceOpinion", report.AcceptanceOpinion);
keyValuePairs.Add("HeaderMan", report.HeaderMan);
keyValuePairs.Add("SupervisoryOpinion", report.SupervisoryOpinion);
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;
}
}
else
{
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return;
}
}
#endregion
#region
/// <summary>
/// 增加
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnAdd_Click(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("AcceptanceCertificateEdit.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_AcceptanceCertificateMenuId, BLL.Const.BtnModify))
{
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
{
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("AcceptanceCertificateEdit.aspx?certificateId={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_AcceptanceCertificateMenuId, BLL.Const.BtnModify))
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return;
}
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("AcceptanceCertificateEdit.aspx?certificateId={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_AcceptanceCertificateMenuId, 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.AcceptanceCertificateService.DeleteAcceptanceCertificateById(rowID);
BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除工程交工验收证书");
}
}
if (isDelete)
{
ShowNotify("删除成功!", MessageBoxIcon.Success);
}
this.BindGrid();
}
else
{
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
}
}
#region
/// <summary>
/// 判断是否可以删除
/// </summary>
/// <returns></returns>
private bool judgementDelete(string id, bool isShow)
{
string content = string.Empty;
if (string.IsNullOrEmpty(content))
{
return true;
}
else
{
if (isShow)
{
Alert.ShowInTop(content, MessageBoxIcon.Error);
}
return false;
}
}
#endregion
#endregion
#region
/// <summary>
/// 关闭弹出窗口
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Window1_Close(object sender, WindowCloseEventArgs e)
{
this.InitTreeMenu();//加载树
this.BindGrid();
}
#endregion
}
}

View File

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

View File

@ -0,0 +1,63 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AcceptanceCertificateEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.AcceptanceCertificateEdit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑工程交工验收证书</title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true" BodyPadding="10px"
runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" runat="server" ToolbarAlign="Right">
<Items>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtContractNumber" runat="server" Label="施工合同编号" LabelAlign="Right" LabelWidth="110px" MaxLength="100" Required="true" ShowRedStar="true"></f:TextBox>
<f:Label ID="Label1" runat="server"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DatePicker ID="txtStartDate" runat="server" Label="实际开工日期" LabelAlign="Right" LabelWidth="110px"></f:DatePicker>
<f:DatePicker ID="txtEndDate" runat="server" Label="交工日期" LabelAlign="Right" LabelWidth="110px"></f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtProjectContent" runat="server" Label="工程内容" LabelAlign="Right" LabelWidth="110px" MaxLength="2000" Required="true" ShowRedStar="true"></f:TextArea>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtAcceptanceOpinion" runat="server" Label="工程验收意见" LabelAlign="Right" LabelWidth="110px" MaxLength="1000"></f:TextArea>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtHeaderMan" runat="server" Label="使用单位负责(代表)人" LabelAlign="Right" LabelWidth="110px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtSupervisoryOpinion" runat="server" Label="工程质量监督意见" LabelAlign="Right" LabelWidth="110px" MaxLength="1000"></f:TextArea>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</form>
</body>
</html>

View File

@ -0,0 +1,146 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FineUIPro.Web.JGZL
{
public partial class AcceptanceCertificateEdit : PageBase
{
#region
/// <summary>
/// 主键
/// </summary>
private string CertificateId
{
get
{
return (string)ViewState["CertificateId"];
}
set
{
ViewState["CertificateId"] = value;
}
}
/// <summary>
/// 项目Id
/// </summary>
private string ProjectId
{
get
{
return (string)ViewState["ProjectId"];
}
set
{
ViewState["ProjectId"] = value;
}
}
#endregion
#region
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.ProjectId = Request.Params["projectId"];
this.CertificateId = Request.Params["certificateId"];
if (!string.IsNullOrEmpty(this.CertificateId))
{
var report = BLL.AcceptanceCertificateService.GetAcceptanceCertificateById(this.CertificateId);
if (report != null)
{
this.txtContractNumber.Text = report.ContractNumber;
this.txtStartDate.Text = report.StartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.StartDate) : "";
this.txtEndDate.Text = report.EndDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.EndDate) : "";
this.txtProjectContent.Text = report.ProjectContent;
this.txtAcceptanceOpinion.Text = report.AcceptanceOpinion;
this.txtHeaderMan.Text = report.HeaderMan;
this.txtSupervisoryOpinion.Text = report.SupervisoryOpinion;
}
}
else
{
//string steNames = string.Empty;
//List<string> steelLists = new List<string>();
//var isoInfos = (from x in Funs.DB.HJGL_PW_IsoInfo where x.ProjectId == this.ProjectId select x).ToList();
//foreach (var item in isoInfos)
//{
// if (!string.IsNullOrEmpty(item.STE_ID))
// {
// steelLists.Add(item.STE_ID);
// }
//}
//foreach (var item in steelLists.Distinct())
//{
// var ste = BLL.HJGL_MaterialService.GetSteelBySteID(item);
// if (ste != null)
// {
// steNames += ste.STE_Code + "、";
// }
//}
//if (!string.IsNullOrEmpty(steNames))
//{
// steNames = steNames.Substring(0, steNames.LastIndexOf('、'));
//}
//double SumSize = Convert.ToDouble((from x in Funs.DB.HJGL_PW_JointInfo where x.ProjectId == this.ProjectId select x.JOT_Size).Sum());
this.txtContractNumber.Text = BLL.Base_ProjectService.GetProjectCode(this.ProjectId);
//this.txtProjectContent.Text = "本次" + BLL.Base_ProjectService.GetProjectByProjectId(this.ProjectId).ProjectName + "已完成100米" + steNames + "材质管道的预制与安装工作。项目配套的支架、阀门、三通等各类管道组成件,安装质量均符合设计及规范要求。共完成管道焊缝" + isoInfos.Count + "道其中20%焊缝经射线或超声波检测,合格等级全部满足设计标准。目前,管道系统已顺利完成水压试验及压缩空气吹扫工序,试验压力降与管道洁净度指标均达到设计规定。";
}
}
}
#endregion
#region
/// <summary>
/// 提交按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
{
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_AcceptanceCertificateMenuId, Const.BtnSave))
{
Model.JGZL_AcceptanceCertificate newReport = new Model.JGZL_AcceptanceCertificate();
newReport.ContractNumber = this.txtContractNumber.Text.Trim();
newReport.StartDate = Funs.GetNewDateTime(this.txtStartDate.Text);
newReport.EndDate = Funs.GetNewDateTime(this.txtEndDate.Text);
newReport.ProjectContent = this.txtProjectContent.Text;
newReport.AcceptanceOpinion = this.txtAcceptanceOpinion.Text;
newReport.HeaderMan = this.txtHeaderMan.Text;
newReport.SupervisoryOpinion = this.txtSupervisoryOpinion.Text;
if (!string.IsNullOrEmpty(this.CertificateId))
{
newReport.CertificateId = this.CertificateId;
BLL.AcceptanceCertificateService.UpdateAcceptanceCertificate(newReport);
}
else
{
newReport.ProjectId = this.ProjectId;
newReport.CompileMan = this.CurrUser.UserId;
newReport.CompileDate = DateTime.Now;
newReport.CertificateId = SQLHelper.GetNewID(typeof(Model.JGZL_AcceptanceCertificate));
this.CertificateId = newReport.CertificateId;
BLL.AcceptanceCertificateService.AddAcceptanceCertificate(newReport);
}
ShowNotify("保存成功!", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
else
{
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
return;
}
}
#endregion
}
}

View File

@ -0,0 +1,143 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.JGZL
{
public partial class AcceptanceCertificateEdit
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// SimpleForm1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form SimpleForm1;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// btnSave 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// txtContractNumber 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtContractNumber;
/// <summary>
/// Label1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label1;
/// <summary>
/// txtStartDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtStartDate;
/// <summary>
/// txtEndDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtEndDate;
/// <summary>
/// txtProjectContent 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtProjectContent;
/// <summary>
/// txtAcceptanceOpinion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtAcceptanceOpinion;
/// <summary>
/// txtHeaderMan 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtHeaderMan;
/// <summary>
/// txtSupervisoryOpinion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtSupervisoryOpinion;
}
}

View File

@ -91,7 +91,6 @@ namespace FineUIPro.Web.JGZL
{
steNames = steNames.Substring(0, steNames.LastIndexOf('、'));
}
double SumSize = Convert.ToDouble((from x in Funs.DB.HJGL_PW_JointInfo where x.ProjectId == this.ProjectId select x.JOT_Size).Sum());
this.txtContractNumber.Text = BLL.Base_ProjectService.GetProjectCode(this.ProjectId);
this.txtProjectContent.Text = "本次" + BLL.Base_ProjectService.GetProjectByProjectId(this.ProjectId).ProjectName + "已完成100米" + steNames + "材质管道的预制与安装工作。项目配套的支架、阀门、三通等各类管道组成件,安装质量均符合设计及规范要求。共完成管道焊缝" + isoInfos.Count + "道其中20%焊缝经射线或超声波检测,合格等级全部满足设计标准。目前,管道系统已顺利完成水压试验及压缩空气吹扫工序,试验压力降与管道洁净度指标均达到设计规定。";
}

View File

@ -371,6 +371,9 @@ namespace Model
partial void InsertHJGL_WeldingProcedure_WeldRepairCard(HJGL_WeldingProcedure_WeldRepairCard instance);
partial void UpdateHJGL_WeldingProcedure_WeldRepairCard(HJGL_WeldingProcedure_WeldRepairCard instance);
partial void DeleteHJGL_WeldingProcedure_WeldRepairCard(HJGL_WeldingProcedure_WeldRepairCard instance);
partial void InsertJGZL_AcceptanceCertificate(JGZL_AcceptanceCertificate instance);
partial void UpdateJGZL_AcceptanceCertificate(JGZL_AcceptanceCertificate instance);
partial void DeleteJGZL_AcceptanceCertificate(JGZL_AcceptanceCertificate instance);
partial void InsertJGZL_CommencementReport(JGZL_CommencementReport instance);
partial void UpdateJGZL_CommencementReport(JGZL_CommencementReport instance);
partial void DeleteJGZL_CommencementReport(JGZL_CommencementReport instance);
@ -1733,6 +1736,14 @@ namespace Model
}
}
public System.Data.Linq.Table<JGZL_AcceptanceCertificate> JGZL_AcceptanceCertificate
{
get
{
return this.GetTable<JGZL_AcceptanceCertificate>();
}
}
public System.Data.Linq.Table<JGZL_CommencementReport> JGZL_CommencementReport
{
get
@ -4330,6 +4341,8 @@ namespace Model
private EntitySet<HJGL_WeldingProcedure_WeldHotProcessCard> _HJGL_WeldingProcedure_WeldHotProcessCard;
private EntitySet<JGZL_AcceptanceCertificate> _JGZL_AcceptanceCertificate;
private EntitySet<JGZL_CommencementReport> _JGZL_CommencementReport;
private EntitySet<JGZL_HandoverCertificate> _JGZL_HandoverCertificate;
@ -4458,6 +4471,7 @@ namespace Model
this._HJGL_WeldingProcedure_WeldingProcessCard = new EntitySet<HJGL_WeldingProcedure_WeldingProcessCard>(new Action<HJGL_WeldingProcedure_WeldingProcessCard>(this.attach_HJGL_WeldingProcedure_WeldingProcessCard), new Action<HJGL_WeldingProcedure_WeldingProcessCard>(this.detach_HJGL_WeldingProcedure_WeldingProcessCard));
this._HJGL_WeldingProcedure_WeldRepairCard = new EntitySet<HJGL_WeldingProcedure_WeldRepairCard>(new Action<HJGL_WeldingProcedure_WeldRepairCard>(this.attach_HJGL_WeldingProcedure_WeldRepairCard), new Action<HJGL_WeldingProcedure_WeldRepairCard>(this.detach_HJGL_WeldingProcedure_WeldRepairCard));
this._HJGL_WeldingProcedure_WeldHotProcessCard = new EntitySet<HJGL_WeldingProcedure_WeldHotProcessCard>(new Action<HJGL_WeldingProcedure_WeldHotProcessCard>(this.attach_HJGL_WeldingProcedure_WeldHotProcessCard), new Action<HJGL_WeldingProcedure_WeldHotProcessCard>(this.detach_HJGL_WeldingProcedure_WeldHotProcessCard));
this._JGZL_AcceptanceCertificate = new EntitySet<JGZL_AcceptanceCertificate>(new Action<JGZL_AcceptanceCertificate>(this.attach_JGZL_AcceptanceCertificate), new Action<JGZL_AcceptanceCertificate>(this.detach_JGZL_AcceptanceCertificate));
this._JGZL_CommencementReport = new EntitySet<JGZL_CommencementReport>(new Action<JGZL_CommencementReport>(this.attach_JGZL_CommencementReport), new Action<JGZL_CommencementReport>(this.detach_JGZL_CommencementReport));
this._JGZL_HandoverCertificate = new EntitySet<JGZL_HandoverCertificate>(new Action<JGZL_HandoverCertificate>(this.attach_JGZL_HandoverCertificate), new Action<JGZL_HandoverCertificate>(this.detach_JGZL_HandoverCertificate));
this._Project_Installation = new EntitySet<Project_Installation>(new Action<Project_Installation>(this.attach_Project_Installation), new Action<Project_Installation>(this.detach_Project_Installation));
@ -5527,6 +5541,19 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_AcceptanceCertificate_Base_Project", Storage="_JGZL_AcceptanceCertificate", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet<JGZL_AcceptanceCertificate> JGZL_AcceptanceCertificate
{
get
{
return this._JGZL_AcceptanceCertificate;
}
set
{
this._JGZL_AcceptanceCertificate.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_CommencementReport_Base_Project", Storage="_JGZL_CommencementReport", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet<JGZL_CommencementReport> JGZL_CommencementReport
{
@ -6211,6 +6238,18 @@ namespace Model
entity.Base_Project = null;
}
private void attach_JGZL_AcceptanceCertificate(JGZL_AcceptanceCertificate entity)
{
this.SendPropertyChanging();
entity.Base_Project = this;
}
private void detach_JGZL_AcceptanceCertificate(JGZL_AcceptanceCertificate entity)
{
this.SendPropertyChanging();
entity.Base_Project = null;
}
private void attach_JGZL_CommencementReport(JGZL_CommencementReport entity)
{
this.SendPropertyChanging();
@ -79223,6 +79262,390 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_AcceptanceCertificate")]
public partial class JGZL_AcceptanceCertificate : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _CertificateId;
private string _ProjectId;
private string _ContractNumber;
private System.Nullable<System.DateTime> _StartDate;
private System.Nullable<System.DateTime> _EndDate;
private string _ProjectContent;
private string _AcceptanceOpinion;
private string _HeaderMan;
private string _SupervisoryOpinion;
private string _CompileMan;
private System.Nullable<System.DateTime> _CompileDate;
private EntityRef<Base_Project> _Base_Project;
private EntityRef<Sys_User> _Sys_User;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnCertificateIdChanging(string value);
partial void OnCertificateIdChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
partial void OnContractNumberChanging(string value);
partial void OnContractNumberChanged();
partial void OnStartDateChanging(System.Nullable<System.DateTime> value);
partial void OnStartDateChanged();
partial void OnEndDateChanging(System.Nullable<System.DateTime> value);
partial void OnEndDateChanged();
partial void OnProjectContentChanging(string value);
partial void OnProjectContentChanged();
partial void OnAcceptanceOpinionChanging(string value);
partial void OnAcceptanceOpinionChanged();
partial void OnHeaderManChanging(string value);
partial void OnHeaderManChanged();
partial void OnSupervisoryOpinionChanging(string value);
partial void OnSupervisoryOpinionChanged();
partial void OnCompileManChanging(string value);
partial void OnCompileManChanged();
partial void OnCompileDateChanging(System.Nullable<System.DateTime> value);
partial void OnCompileDateChanged();
#endregion
public JGZL_AcceptanceCertificate()
{
this._Base_Project = default(EntityRef<Base_Project>);
this._Sys_User = default(EntityRef<Sys_User>);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CertificateId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string CertificateId
{
get
{
return this._CertificateId;
}
set
{
if ((this._CertificateId != value))
{
this.OnCertificateIdChanging(value);
this.SendPropertyChanging();
this._CertificateId = value;
this.SendPropertyChanged("CertificateId");
this.OnCertificateIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
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="_ContractNumber", DbType="NVarChar(100)")]
public string ContractNumber
{
get
{
return this._ContractNumber;
}
set
{
if ((this._ContractNumber != value))
{
this.OnContractNumberChanging(value);
this.SendPropertyChanging();
this._ContractNumber = value;
this.SendPropertyChanged("ContractNumber");
this.OnContractNumberChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StartDate", DbType="DateTime")]
public System.Nullable<System.DateTime> StartDate
{
get
{
return this._StartDate;
}
set
{
if ((this._StartDate != value))
{
this.OnStartDateChanging(value);
this.SendPropertyChanging();
this._StartDate = value;
this.SendPropertyChanged("StartDate");
this.OnStartDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EndDate", DbType="DateTime")]
public System.Nullable<System.DateTime> EndDate
{
get
{
return this._EndDate;
}
set
{
if ((this._EndDate != value))
{
this.OnEndDateChanging(value);
this.SendPropertyChanging();
this._EndDate = value;
this.SendPropertyChanged("EndDate");
this.OnEndDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectContent", DbType="NVarChar(2000)")]
public string ProjectContent
{
get
{
return this._ProjectContent;
}
set
{
if ((this._ProjectContent != value))
{
this.OnProjectContentChanging(value);
this.SendPropertyChanging();
this._ProjectContent = value;
this.SendPropertyChanged("ProjectContent");
this.OnProjectContentChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AcceptanceOpinion", DbType="NVarChar(1000)")]
public string AcceptanceOpinion
{
get
{
return this._AcceptanceOpinion;
}
set
{
if ((this._AcceptanceOpinion != value))
{
this.OnAcceptanceOpinionChanging(value);
this.SendPropertyChanging();
this._AcceptanceOpinion = value;
this.SendPropertyChanged("AcceptanceOpinion");
this.OnAcceptanceOpinionChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HeaderMan", DbType="NVarChar(50)")]
public string HeaderMan
{
get
{
return this._HeaderMan;
}
set
{
if ((this._HeaderMan != value))
{
this.OnHeaderManChanging(value);
this.SendPropertyChanging();
this._HeaderMan = value;
this.SendPropertyChanged("HeaderMan");
this.OnHeaderManChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SupervisoryOpinion", DbType="NVarChar(1000)")]
public string SupervisoryOpinion
{
get
{
return this._SupervisoryOpinion;
}
set
{
if ((this._SupervisoryOpinion != value))
{
this.OnSupervisoryOpinionChanging(value);
this.SendPropertyChanging();
this._SupervisoryOpinion = value;
this.SendPropertyChanged("SupervisoryOpinion");
this.OnSupervisoryOpinionChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
public string CompileMan
{
get
{
return this._CompileMan;
}
set
{
if ((this._CompileMan != value))
{
if (this._Sys_User.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
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_AcceptanceCertificate_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_AcceptanceCertificate.Remove(this);
}
this._Base_Project.Entity = value;
if ((value != null))
{
value.JGZL_AcceptanceCertificate.Add(this);
this._ProjectId = value.ProjectId;
}
else
{
this._ProjectId = default(string);
}
this.SendPropertyChanged("Base_Project");
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_AcceptanceCertificate_Sys_User", Storage="_Sys_User", ThisKey="CompileMan", OtherKey="UserId", IsForeignKey=true)]
public Sys_User Sys_User
{
get
{
return this._Sys_User.Entity;
}
set
{
Sys_User previousValue = this._Sys_User.Entity;
if (((previousValue != value)
|| (this._Sys_User.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Sys_User.Entity = null;
previousValue.JGZL_AcceptanceCertificate.Remove(this);
}
this._Sys_User.Entity = value;
if ((value != null))
{
value.JGZL_AcceptanceCertificate.Add(this);
this._CompileMan = value.UserId;
}
else
{
this._CompileMan = default(string);
}
this.SendPropertyChanged("Sys_User");
}
}
}
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_CommencementReport")]
public partial class JGZL_CommencementReport : INotifyPropertyChanging, INotifyPropertyChanged
{
@ -101440,6 +101863,8 @@ namespace Model
private EntitySet<HJGL_WeldingProcedure_WeldHotProcessCard> _HJGL_WeldingProcedure_WeldHotProcessCard;
private EntitySet<JGZL_AcceptanceCertificate> _JGZL_AcceptanceCertificate;
private EntitySet<JGZL_CommencementReport> _JGZL_CommencementReport;
private EntitySet<JGZL_HandoverCertificate> _JGZL_HandoverCertificate;
@ -101525,6 +101950,7 @@ namespace Model
this._HJGL_Sys_DataInTemp = new EntitySet<HJGL_Sys_DataInTemp>(new Action<HJGL_Sys_DataInTemp>(this.attach_HJGL_Sys_DataInTemp), new Action<HJGL_Sys_DataInTemp>(this.detach_HJGL_Sys_DataInTemp));
this._HJGL_Sys_UserShowColumns = new EntitySet<HJGL_Sys_UserShowColumns>(new Action<HJGL_Sys_UserShowColumns>(this.attach_HJGL_Sys_UserShowColumns), new Action<HJGL_Sys_UserShowColumns>(this.detach_HJGL_Sys_UserShowColumns));
this._HJGL_WeldingProcedure_WeldHotProcessCard = new EntitySet<HJGL_WeldingProcedure_WeldHotProcessCard>(new Action<HJGL_WeldingProcedure_WeldHotProcessCard>(this.attach_HJGL_WeldingProcedure_WeldHotProcessCard), new Action<HJGL_WeldingProcedure_WeldHotProcessCard>(this.detach_HJGL_WeldingProcedure_WeldHotProcessCard));
this._JGZL_AcceptanceCertificate = new EntitySet<JGZL_AcceptanceCertificate>(new Action<JGZL_AcceptanceCertificate>(this.attach_JGZL_AcceptanceCertificate), new Action<JGZL_AcceptanceCertificate>(this.detach_JGZL_AcceptanceCertificate));
this._JGZL_CommencementReport = new EntitySet<JGZL_CommencementReport>(new Action<JGZL_CommencementReport>(this.attach_JGZL_CommencementReport), new Action<JGZL_CommencementReport>(this.detach_JGZL_CommencementReport));
this._JGZL_HandoverCertificate = new EntitySet<JGZL_HandoverCertificate>(new Action<JGZL_HandoverCertificate>(this.attach_JGZL_HandoverCertificate), new Action<JGZL_HandoverCertificate>(this.detach_JGZL_HandoverCertificate));
this._Project_User = new EntitySet<Project_User>(new Action<Project_User>(this.attach_Project_User), new Action<Project_User>(this.detach_Project_User));
@ -102165,6 +102591,19 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_AcceptanceCertificate_Sys_User", Storage="_JGZL_AcceptanceCertificate", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
public EntitySet<JGZL_AcceptanceCertificate> JGZL_AcceptanceCertificate
{
get
{
return this._JGZL_AcceptanceCertificate;
}
set
{
this._JGZL_AcceptanceCertificate.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_CommencementReport_Sys_User", Storage="_JGZL_CommencementReport", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
public EntitySet<JGZL_CommencementReport> JGZL_CommencementReport
{
@ -102558,6 +102997,18 @@ namespace Model
entity.Sys_User = null;
}
private void attach_JGZL_AcceptanceCertificate(JGZL_AcceptanceCertificate entity)
{
this.SendPropertyChanging();
entity.Sys_User = this;
}
private void detach_JGZL_AcceptanceCertificate(JGZL_AcceptanceCertificate entity)
{
this.SendPropertyChanging();
entity.Sys_User = null;
}
private void attach_JGZL_CommencementReport(JGZL_CommencementReport entity)
{
this.SendPropertyChanging();