20251211 工程中间交接证书
This commit is contained in:
parent
54ba2f172c
commit
945bbd3b21
|
|
@ -0,0 +1,81 @@
|
|||
|
||||
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
|
||||
values('7BB74C3E-52E6-49C2-91FA-FF73128FF8E6','工程中间交接证书','JGZL/HandoverCertificate.aspx',20,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
|
||||
go
|
||||
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
values('BFDF8B51-C8EC-486D-9C62-74609ED95323','7BB74C3E-52E6-49C2-91FA-FF73128FF8E6','增加',1)
|
||||
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
values('B760900B-51D0-43A0-861B-7402E85C2B03','7BB74C3E-52E6-49C2-91FA-FF73128FF8E6','修改',2)
|
||||
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
values('D61F53A0-3670-45CF-811B-BA3E2B1B4932','7BB74C3E-52E6-49C2-91FA-FF73128FF8E6','删除',3)
|
||||
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
values('173B2847-A21A-4933-B83D-57A6A5FA75C8','7BB74C3E-52E6-49C2-91FA-FF73128FF8E6','保存',4)
|
||||
go
|
||||
|
||||
|
||||
CREATE TABLE [dbo].[JGZL_HandoverCertificate](
|
||||
[HandoverCertificateId] [nvarchar](50) NOT NULL,
|
||||
[ProjectId] [nvarchar](50) NULL,
|
||||
[ContractNumber] [nvarchar](100) NULL,
|
||||
[HandoverDate] [datetime] NULL,
|
||||
[ProjectContent] [nvarchar](2000) NULL,
|
||||
[ReceiveOpinions] [nvarchar](1000) NULL,
|
||||
[HeaderMan] [nvarchar](50) NULL,
|
||||
[SupervisionOpinion] [nvarchar](1000) NULL,
|
||||
[CompileMan] [nvarchar](50) NULL,
|
||||
[CompileDate] [datetime] NULL,
|
||||
CONSTRAINT [PK_JGZL_HandoverCertificate] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[HandoverCertificateId] 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_HandoverCertificate] WITH CHECK ADD CONSTRAINT [FK_JGZL_HandoverCertificate_Base_Project] FOREIGN KEY([ProjectId])
|
||||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[JGZL_HandoverCertificate] CHECK CONSTRAINT [FK_JGZL_HandoverCertificate_Base_Project]
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[JGZL_HandoverCertificate] WITH CHECK ADD CONSTRAINT [FK_JGZL_HandoverCertificate_Sys_User] FOREIGN KEY([CompileMan])
|
||||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[JGZL_HandoverCertificate] CHECK CONSTRAINT [FK_JGZL_HandoverCertificate_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_HandoverCertificate', @level2type=N'COLUMN',@level2name=N'HandoverCertificateId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_HandoverCertificate', @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_HandoverCertificate', @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_HandoverCertificate', @level2type=N'COLUMN',@level2name=N'HandoverDate'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工程内容' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_HandoverCertificate', @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_HandoverCertificate', @level2type=N'COLUMN',@level2name=N'ReceiveOpinions'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'使用单位负责(代表)人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_HandoverCertificate', @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_HandoverCertificate', @level2type=N'COLUMN',@level2name=N'SupervisionOpinion'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_HandoverCertificate', @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_HandoverCertificate', @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_HandoverCertificate'
|
||||
GO
|
||||
|
||||
|
||||
|
|
@ -246,6 +246,7 @@
|
|||
<Compile Include="HJGL\WeldingManage\WelderOKRateStatisticsService.cs" />
|
||||
<Compile Include="HJGL\WeldingManage\WeldRecordInService.cs" />
|
||||
<Compile Include="JGZL\CommencementReportService.cs" />
|
||||
<Compile Include="JGZL\HandoverCertificateService.cs" />
|
||||
<Compile Include="JsonHelper.cs" />
|
||||
<Compile Include="libFace.cs" />
|
||||
<Compile Include="libOpenCV.cs" />
|
||||
|
|
|
|||
|
|
@ -1759,6 +1759,11 @@ namespace BLL
|
|||
/// 工程施工开工报告
|
||||
/// </summary>
|
||||
public const string JGZL_CommencementReportMenuId = "A4B2E5A9-96A8-460F-885A-BE5FF9B5019E";
|
||||
|
||||
/// <summary>
|
||||
/// 工程中间交接证书
|
||||
/// </summary>
|
||||
public const string JGZL_HandoverCertificateMenuId = "7BB74C3E-52E6-49C2-91FA-FF73128FF8E6";
|
||||
#endregion
|
||||
|
||||
#region 报表对应ID
|
||||
|
|
|
|||
|
|
@ -0,0 +1,83 @@
|
|||
using Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.ServiceModel.Configuration;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 工程中间交接证书
|
||||
/// </summary>
|
||||
public class HandoverCertificateService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取工程中间交接证书
|
||||
/// </summary>
|
||||
/// <param name="handoverCertificateId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.JGZL_HandoverCertificate GetHandoverCertificateById(string handoverCertificateId)
|
||||
{
|
||||
return Funs.DB.JGZL_HandoverCertificate.FirstOrDefault(e => e.HandoverCertificateId == handoverCertificateId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加工程中间交接证书
|
||||
/// </summary>
|
||||
/// <param name="handoverCertificate"></param>
|
||||
public static void AddHandoverCertificate(Model.JGZL_HandoverCertificate handoverCertificate)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_HandoverCertificate newHandoverCertificate = new JGZL_HandoverCertificate();
|
||||
newHandoverCertificate.HandoverCertificateId = handoverCertificate.HandoverCertificateId;
|
||||
newHandoverCertificate.ProjectId = handoverCertificate.ProjectId;
|
||||
newHandoverCertificate.ContractNumber = handoverCertificate.ContractNumber;
|
||||
newHandoverCertificate.HandoverDate = handoverCertificate.HandoverDate;
|
||||
newHandoverCertificate.ProjectContent = handoverCertificate.ProjectContent;
|
||||
newHandoverCertificate.ReceiveOpinions = handoverCertificate.ReceiveOpinions;
|
||||
newHandoverCertificate.HeaderMan = handoverCertificate.HeaderMan;
|
||||
newHandoverCertificate.SupervisionOpinion = handoverCertificate.SupervisionOpinion;
|
||||
newHandoverCertificate.CompileMan = handoverCertificate.CompileMan;
|
||||
newHandoverCertificate.CompileDate = handoverCertificate.CompileDate;
|
||||
db.JGZL_HandoverCertificate.InsertOnSubmit(newHandoverCertificate);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改工程中间交接证书
|
||||
/// </summary>
|
||||
/// <param name="handoverCertificate"></param>
|
||||
public static void UpdateHandoverCertificate(Model.JGZL_HandoverCertificate handoverCertificate)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_HandoverCertificate newHandoverCertificate = db.JGZL_HandoverCertificate.FirstOrDefault(e => e.HandoverCertificateId == handoverCertificate.HandoverCertificateId);
|
||||
if (newHandoverCertificate != null)
|
||||
{
|
||||
newHandoverCertificate.ContractNumber = handoverCertificate.ContractNumber;
|
||||
newHandoverCertificate.HandoverDate = handoverCertificate.HandoverDate;
|
||||
newHandoverCertificate.ProjectContent = handoverCertificate.ProjectContent;
|
||||
newHandoverCertificate.ReceiveOpinions = handoverCertificate.ReceiveOpinions;
|
||||
newHandoverCertificate.HeaderMan = handoverCertificate.HeaderMan;
|
||||
newHandoverCertificate.SupervisionOpinion = handoverCertificate.SupervisionOpinion;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除工程中间交接证书
|
||||
/// </summary>
|
||||
/// <param name="handoverCertificateId"></param>
|
||||
public static void DeleteHandoverCertificateById(string handoverCertificateId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.JGZL_HandoverCertificate handoverCertificate = db.JGZL_HandoverCertificate.FirstOrDefault(e => e.HandoverCertificateId == handoverCertificateId);
|
||||
if (handoverCertificate != null)
|
||||
{
|
||||
db.JGZL_HandoverCertificate.DeleteOnSubmit(handoverCertificate);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,129 @@
|
|||
<?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">
|
||||
<Dictionary>
|
||||
<Parameter Name="ProjectName" DataType="System.String"/>
|
||||
<Parameter Name="ContractNumber" DataType="System.String"/>
|
||||
<Parameter Name="HandoverDate" DataType="System.String"/>
|
||||
<Parameter Name="ProjectContent" DataType="System.String"/>
|
||||
<Parameter Name="ReceiveOpinions" DataType="System.String"/>
|
||||
<Parameter Name="HeaderMan" DataType="System.String"/>
|
||||
<Parameter Name="SupervisionOpinion" DataType="System.String"/>
|
||||
</Dictionary>
|
||||
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="18" RightMargin="17" BottomMargin="19" Guides="0,646.38,191.97,73.44,82.89,440.64,63.99,92.34,35.64,109.08,348.3,205.74,646.4,161.6,323.2,484.8">
|
||||
<PageHeaderBand Name="PageHeader1" Width="646.38" Height="831.51" Guides="0,831.51,103.92,33.06,70.86,136.98,401.58,264.6,623.64,590.58,189,798.45,174.81">
|
||||
<TableObject Name="Table1" Width="646.38" Height="831.51" Border.Lines="All">
|
||||
<TableColumn Name="Column1" Width="35.64"/>
|
||||
<TableColumn Name="Column2" Width="73.44"/>
|
||||
<TableColumn Name="Column3" Width="82.89"/>
|
||||
<TableColumn Name="Column4" Width="92.34"/>
|
||||
<TableColumn Name="Column5" Width="63.99"/>
|
||||
<TableColumn Name="Column6" Width="92.34"/>
|
||||
<TableColumn Name="Column7" Width="205.74"/>
|
||||
<TableRow Name="Row1" Height="33.06">
|
||||
<TableCell Name="Cell1" Border.Lines="All" Text="SH/T 3503—J106A" HorzAlign="Center" VertAlign="Center" Font="黑体, 10.5pt" ColSpan="3" RowSpan="2"/>
|
||||
<TableCell Name="Cell2" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell3" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell4" Border.Lines="All" Text="工程中间交接证书" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt, style=Bold" ColSpan="3" RowSpan="2"/>
|
||||
<TableCell Name="Cell5" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell26" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell27" Border.Lines="Left, Right, Top" Text="工程名称:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row2" Height="70.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="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell28" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell29" Border.Lines="Left, Right, Bottom" Text="[ProjectName]" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row3" Height="33.06">
|
||||
<TableCell Name="Cell11" Border.Lines="All" Text="施工合同编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell12" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell13" Border.Lines="All" Text="[ContractNumber]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="3"/>
|
||||
<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"/>
|
||||
<TableCell Name="Cell30" Border.Lines="All" Text="交接日期" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell31" Border.Lines="All" Text="[HandoverDate]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row4" Height="264.6">
|
||||
<TableCell Name="Cell16" Border.Lines="All" Text="工 程 内 容 " HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell17" Border.Lines="All" Text="[ProjectContent]" 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"/>
|
||||
<TableCell Name="Cell32" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell33" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row5" Height="189">
|
||||
<TableCell Name="Cell21" Border.Lines="All" Text="接 收 意 见" 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="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"/>
|
||||
<TableCell Name="Cell34" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell35" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row6" Height="33.06">
|
||||
<TableCell Name="Cell36" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell37" Border.Lines="Left, Bottom" Text="使用单位负责(代表)人:" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="4"/>
|
||||
<TableCell Name="Cell38" Border.Lines="Left, Right, Bottom" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell39" Border.Lines="Left, Right, Bottom" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell40" Border.Lines="Left, Right, Bottom" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell41" Border.Lines="Bottom" Text="[HeaderMan]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell42" Border.Lines="Right, Bottom" Text="年 月 日" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row7" Height="174.81">
|
||||
<TableCell Name="Cell43" Border.Lines="All" Text="质 量 监 督 意 见" 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="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"/>
|
||||
<TableCell Name="Cell48" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell49" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row8" Height="33.06">
|
||||
<TableCell Name="Cell50" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell51" Border.Lines="Left, Right, Bottom" Text="工程质量监督站长/组长:(监督站/组章) 年 月 日" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="6"/>
|
||||
<TableCell Name="Cell52" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell53" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell54" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell55" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell56" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</PageHeaderBand>
|
||||
<PageFooterBand Name="PageFooter1" Top="835.51" Width="646.38" Height="151.13" Guides="0,151.13,35.42,80.28999,115.71">
|
||||
<TableObject Name="Table2" Width="646.4" Height="151.13" Border.Lines="Left, Right, Bottom">
|
||||
<TableColumn Name="Column8" Width="161.6"/>
|
||||
<TableColumn Name="Column9" Width="161.6"/>
|
||||
<TableColumn Name="Column10" Width="161.6"/>
|
||||
<TableColumn Name="Column11" Width="161.6"/>
|
||||
<TableRow Name="Row9" Height="35.42">
|
||||
<TableCell Name="Cell57" Border.Lines="All" Text="建设单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell58" Border.Lines="All" Text="设计单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell59" Border.Lines="All" Text="监理单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell60" Border.Lines="All" Text="施工单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row10" Height="44.87">
|
||||
<TableCell Name="Cell62" Border.Lines="Left, Right, Top" Text="(项目部章)" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell63" Border.Lines="Left, Right, Top" Text="(项目部章)" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell64" Border.Lines="Left, Right, Top" Text="(项目部章)" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell65" Border.Lines="Left, Right, Top" Text="(项目部章)" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row11" Height="35.42">
|
||||
<TableCell Name="Cell67" Border.Lines="Left, Right" Text="项目经理:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell68" Border.Lines="Left, Right" Text="项目经理:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell69" Border.Lines="Left, Right" Text="项目总监:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell70" Border.Lines="Left, Right" Text="项目经理:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row12" Height="35.42">
|
||||
<TableCell Name="Cell72" Border.Lines="Left, Right, Bottom" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell73" Border.Lines="Left, Right, Bottom" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell74" Border.Lines="Left, Right, Bottom" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell75" Border.Lines="Left, Right, Bottom" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</PageFooterBand>
|
||||
</ReportPage>
|
||||
</Report>
|
||||
|
|
@ -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/09/2025 14:32:25" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<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">
|
||||
<Dictionary>
|
||||
<Parameter Name="ProjectName" DataType="System.String"/>
|
||||
<Parameter Name="ContractNumber" DataType="System.String"/>
|
||||
|
|
@ -11,16 +11,16 @@
|
|||
<Parameter Name="ReviewOpinion" DataType="System.String"/>
|
||||
<Parameter Name="QualitySupervisionOpinion" DataType="System.String"/>
|
||||
</Dictionary>
|
||||
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="25" TopMargin="20" RightMargin="20" BottomMargin="21" Guides="0,623.7,160.65,69.3,59.85,374.85,107.1,31.5,100.8,267.75,248.85,211.05,422.1">
|
||||
<PageHeaderBand Name="PageHeader1" Width="623.7" Height="788.26" Guides="0,788.26,86.21,20.06,66.15,125.17,38.96,164.13,360.69,196.56,503.6,142.91,635.9,132.3,749.3,113.4">
|
||||
<TableObject Name="Table1" Width="623.7" Height="788.26">
|
||||
<TableColumn Name="Column1" Width="31.5"/>
|
||||
<TableColumn Name="Column2" Width="69.3"/>
|
||||
<TableColumn Name="Column3" Width="59.85"/>
|
||||
<TableColumn Name="Column4" Width="107.1"/>
|
||||
<TableColumn Name="Column5" Width="107.1"/>
|
||||
<TableColumn Name="Column6" Width="248.85"/>
|
||||
<TableRow Name="Row1" Height="20.06">
|
||||
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="18" RightMargin="17" BottomMargin="19" Guides="0,646.4,171.99,73.09,63.61,393.77,110.89,35.29,108.38,282.88,252.63,646.38,218.61,437.22">
|
||||
<PageHeaderBand Name="PageHeader1" Width="646.38" Height="802.87" Guides="0,802.87,90.2,22.16,68.04,131.26,41.06,169.06,37.8,367.72,198.66,514.01,146.29,648.41,134.4,761.81,113.4">
|
||||
<TableObject Name="Table1" Width="646.4" Height="802.87">
|
||||
<TableColumn Name="Column1" Width="35.29"/>
|
||||
<TableColumn Name="Column2" Width="73.09"/>
|
||||
<TableColumn Name="Column3" Width="63.61"/>
|
||||
<TableColumn Name="Column4" Width="110.89"/>
|
||||
<TableColumn Name="Column5" Width="110.89"/>
|
||||
<TableColumn Name="Column6" Width="252.63"/>
|
||||
<TableRow Name="Row1" Height="22.16">
|
||||
<TableCell Name="Cell1" Border.Lines="All" Text="SH/T 3503—J105A" HorzAlign="Center" VertAlign="Center" Font="黑体, 10.5pt" ColSpan="3" RowSpan="2"/>
|
||||
<TableCell Name="Cell2" Border.Lines="All"/>
|
||||
<TableCell Name="Cell3" Border.Lines="All"/>
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
<TableCell Name="Cell5" Border.Lines="All"/>
|
||||
<TableCell Name="Cell26" Border.Lines="Left, Right, Top" Text="工程名称:" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row9" Height="66.15">
|
||||
<TableRow Name="Row9" Height="68.04">
|
||||
<TableCell Name="Cell57" Border.Lines="All"/>
|
||||
<TableCell Name="Cell58" Border.Lines="All"/>
|
||||
<TableCell Name="Cell59" Border.Lines="All"/>
|
||||
|
|
@ -36,7 +36,7 @@
|
|||
<TableCell Name="Cell61" Border.Lines="All"/>
|
||||
<TableCell Name="Cell62" Border.Lines="Left, Right, Bottom" Text="[ProjectName]" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row2" Height="38.96">
|
||||
<TableRow Name="Row2" Height="41.06">
|
||||
<TableCell Name="Cell6" Border.Lines="All" Text="施工合同编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell7" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell8" Border.Lines="All" Text="[ContractNumber]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
|
||||
|
|
@ -44,7 +44,7 @@
|
|||
<TableCell Name="Cell10" Border.Lines="All" Text="设计单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell28" Border.Lines="All" Text="[DesignUnit]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row3" Height="38.96">
|
||||
<TableRow Name="Row3" Height="37.8">
|
||||
<TableCell Name="Cell11" Border.Lines="All" Text="计划开工日期" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell12" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell13" Border.Lines="All" Text="[PlannedStartDate]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
|
||||
|
|
@ -52,7 +52,7 @@
|
|||
<TableCell Name="Cell15" Border.Lines="All" Text="计划交工日期" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell30" Border.Lines="All" Text="[PlannedEndDate]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row4" Height="196.56">
|
||||
<TableRow Name="Row4" Height="198.66">
|
||||
<TableCell Name="Cell16" Border.Lines="All" Text="工 程 内 容" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell17" Border.Lines="All" Text="[ProjectContent]" Font="楷体, 10.5pt" ColSpan="5"/>
|
||||
<TableCell Name="Cell18" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
|
|
@ -60,7 +60,7 @@
|
|||
<TableCell Name="Cell20" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell32" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row5" Height="142.91">
|
||||
<TableRow Name="Row5" Height="146.29">
|
||||
<TableCell Name="Cell21" Border.Lines="All" Text="开 工 条 件" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell22" Border.Lines="All" Text="[Conditions]" Font="楷体, 10.5pt" ColSpan="5"/>
|
||||
<TableCell Name="Cell23" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
|
|
@ -68,7 +68,7 @@
|
|||
<TableCell Name="Cell25" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell34" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row6" Height="132.3">
|
||||
<TableRow Name="Row6" Height="134.4">
|
||||
<TableCell Name="Cell36" Border.Lines="All" Text="审 查 意 见" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell37" Border.Lines="All" Text="[ReviewOpinion]" Font="楷体, 10.5pt" ColSpan="5"/>
|
||||
<TableCell Name="Cell38" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
|
|
@ -84,7 +84,7 @@
|
|||
<TableCell Name="Cell47" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell48" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row8" Height="38.96">
|
||||
<TableRow Name="Row8" Height="41.06">
|
||||
<TableCell Name="Cell50" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell51" Border.Lines="Left, Right, Bottom" Text=" 工程质量监督站长/组长:(监督站/组章)年月日" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="5"/>
|
||||
<TableCell Name="Cell52" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
|
|
@ -94,11 +94,11 @@
|
|||
</TableRow>
|
||||
</TableObject>
|
||||
</PageHeaderBand>
|
||||
<PageFooterBand Name="PageFooter1" Top="792.26" Width="623.7" Height="179.52" Guides="0,179.52,35.43,99.21,144.09">
|
||||
<TableObject Name="Table2" Width="623.7" Height="179.52" Border.Lines="Left, Right, Bottom">
|
||||
<TableColumn Name="Column7" Width="211.05"/>
|
||||
<TableColumn Name="Column8" Width="211.05"/>
|
||||
<TableColumn Name="Column9" Width="201.6"/>
|
||||
<PageFooterBand Name="PageFooter1" Top="806.87" Width="646.38" Height="179.52" Guides="0,179.52,35.43,99.21,144.09">
|
||||
<TableObject Name="Table2" Width="646.38" Height="179.52" Border.Lines="Left, Right, Bottom">
|
||||
<TableColumn Name="Column7" Width="218.61"/>
|
||||
<TableColumn Name="Column8" Width="218.61"/>
|
||||
<TableColumn Name="Column9" Width="209.16"/>
|
||||
<TableRow Name="Row10" Height="35.43">
|
||||
<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"/>
|
||||
|
|
|
|||
|
|
@ -1243,6 +1243,8 @@
|
|||
<Content Include="Images\wrong.jpg" />
|
||||
<Content Include="JGZL\CommencementReport.aspx" />
|
||||
<Content Include="JGZL\CommencementReportEdit.aspx" />
|
||||
<Content Include="JGZL\HandoverCertificate.aspx" />
|
||||
<Content Include="JGZL\HandoverCertificateEdit.aspx" />
|
||||
<Content Include="Login.aspx" />
|
||||
<Content Include="AttachFile\fileupload.ashx" />
|
||||
<Content Include="Captcha\captcha.ashx" />
|
||||
|
|
@ -6536,6 +6538,20 @@
|
|||
<Compile Include="JGZL\CommencementReportEdit.aspx.designer.cs">
|
||||
<DependentUpon>CommencementReportEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\HandoverCertificate.aspx.cs">
|
||||
<DependentUpon>HandoverCertificate.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\HandoverCertificate.aspx.designer.cs">
|
||||
<DependentUpon>HandoverCertificate.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\HandoverCertificateEdit.aspx.cs">
|
||||
<DependentUpon>HandoverCertificateEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\HandoverCertificateEdit.aspx.designer.cs">
|
||||
<DependentUpon>HandoverCertificateEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Login.aspx.cs">
|
||||
<DependentUpon>Login.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>Debug|Any CPU</LastActiveSolutionConfig>
|
||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
||||
<Use64BitIISExpress />
|
||||
<IISExpressSSLPort />
|
||||
<IISExpressAnonymousAuthentication />
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using BLL;
|
||||
using FastReport;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
|
@ -57,7 +58,7 @@ namespace FineUIPro.Web.JGZL
|
|||
if (!string.IsNullOrEmpty(this.CommencementReportId))
|
||||
{
|
||||
var report = BLL.CommencementReportService.GetCommencementReportById(this.CommencementReportId);
|
||||
if (report!=null)
|
||||
if (report != null)
|
||||
{
|
||||
this.txtContractNumber.Text = report.ContractNumber;
|
||||
this.txtDesignUnit.Text = report.DesignUnit;
|
||||
|
|
@ -69,7 +70,30 @@ namespace FineUIPro.Web.JGZL
|
|||
this.txtQualitySupervisionOpinion.Text = report.QualitySupervisionOpinion;
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
string pipeLineClass = string.Empty;
|
||||
List<string> pipeLineClassLists = 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.PipeLineClass) && item.PipeLineClass != "/")
|
||||
{
|
||||
pipeLineClassLists.Add(item.PipeLineClass);
|
||||
}
|
||||
}
|
||||
foreach (var item in pipeLineClassLists.Distinct())
|
||||
{
|
||||
pipeLineClass += item + "、";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(pipeLineClass))
|
||||
{
|
||||
pipeLineClass = pipeLineClass.Substring(0, pipeLineClass.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 + ",管道类别为" + pipeLineClass + "级,共计安装压力管道" + isoInfos.Count.ToString() + "条,总吋径量" + SumSize.ToString(".00") + "吋,该项目已经达到开工条件。";
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
|
|
|||
|
|
@ -0,0 +1,115 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HandoverCertificate.aspx.cs" Inherits="FineUIPro.Web.JGZL.HandoverCertificate" %>
|
||||
|
||||
<!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="HandoverCertificateId" AllowCellEditing="true"
|
||||
EnableColumnLines="true" ClicksToEdit="1" DataIDField="HandoverCertificateId" 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="HandoverDate" DataField="HandoverDate" SortField="HandoverDate"
|
||||
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>
|
||||
|
|
@ -0,0 +1,384 @@
|
|||
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 HandoverCertificate : 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_HandoverCertificate 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.HandoverCertificateService.GetHandoverCertificateById(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("HandoverDate", report.HandoverDate.HasValue ? string.Format("{0:yyyy年MM月dd日}", report.HandoverDate) : "");
|
||||
keyValuePairs.Add("ProjectContent", report.ProjectContent);
|
||||
keyValuePairs.Add("ReceiveOpinions", report.ReceiveOpinions);
|
||||
keyValuePairs.Add("HeaderMan", report.HeaderMan);
|
||||
keyValuePairs.Add("SupervisionOpinion", report.SupervisionOpinion);
|
||||
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("HandoverCertificateEdit.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_HandoverCertificateMenuId, BLL.Const.BtnModify))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HandoverCertificateEdit.aspx?handoverCertificateId={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_HandoverCertificateMenuId, BLL.Const.BtnModify))
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HandoverCertificateEdit.aspx?handoverCertificateId={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_HandoverCertificateMenuId, 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.HandoverCertificateService.DeleteHandoverCertificateById(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
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,206 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
|
||||
|
||||
public partial class HandoverCertificate
|
||||
{
|
||||
|
||||
/// <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;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HandoverCertificateEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.HandoverCertificateEdit" %>
|
||||
|
||||
<!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:DatePicker ID="txtHandoverDate" 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="txtReceiveOpinions" 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="txtSupervisionOpinion" runat="server" Label="质量监督意见" LabelAlign="Right" LabelWidth="110px" MaxLength="1000"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,141 @@
|
|||
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 HandoverCertificateEdit : PageBase
|
||||
{
|
||||
#region 定义项
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
private string HandoverCertificateId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["HandoverCertificateId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["HandoverCertificateId"] = 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.HandoverCertificateId = Request.Params["handoverCertificateId"];
|
||||
if (!string.IsNullOrEmpty(this.HandoverCertificateId))
|
||||
{
|
||||
var report = BLL.HandoverCertificateService.GetHandoverCertificateById(this.HandoverCertificateId);
|
||||
if (report != null)
|
||||
{
|
||||
this.txtContractNumber.Text = report.ContractNumber;
|
||||
this.txtHandoverDate.Text = report.HandoverDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.HandoverDate) : "";
|
||||
this.txtProjectContent.Text = report.ProjectContent;
|
||||
this.txtReceiveOpinions.Text = report.ReceiveOpinions;
|
||||
this.txtHeaderMan.Text = report.HeaderMan;
|
||||
this.txtSupervisionOpinion.Text = report.SupervisionOpinion;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string pipeLineClass = string.Empty;
|
||||
List<string> pipeLineClassLists = 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.PipeLineClass) && item.PipeLineClass != "/")
|
||||
{
|
||||
pipeLineClassLists.Add(item.PipeLineClass);
|
||||
}
|
||||
}
|
||||
foreach (var item in pipeLineClassLists.Distinct())
|
||||
{
|
||||
pipeLineClass += item + "、";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(pipeLineClass))
|
||||
{
|
||||
pipeLineClass = pipeLineClass.Substring(0, pipeLineClass.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 + ",管道类别为" + pipeLineClass + "级,共计安装压力管道" + isoInfos.Count.ToString() + "条,总吋径量" + SumSize.ToString(".00") + "吋,该项目已经达到交接条件。";
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#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_HandoverCertificateMenuId, Const.BtnSave))
|
||||
{
|
||||
Model.JGZL_HandoverCertificate newReport = new Model.JGZL_HandoverCertificate();
|
||||
newReport.ContractNumber = this.txtContractNumber.Text.Trim();
|
||||
newReport.HandoverDate = Funs.GetNewDateTime(this.txtHandoverDate.Text);
|
||||
newReport.ProjectContent = this.txtProjectContent.Text;
|
||||
newReport.ReceiveOpinions = this.txtReceiveOpinions.Text;
|
||||
newReport.HeaderMan = this.txtHeaderMan.Text;
|
||||
newReport.SupervisionOpinion = this.txtSupervisionOpinion.Text;
|
||||
if (!string.IsNullOrEmpty(this.HandoverCertificateId))
|
||||
{
|
||||
newReport.HandoverCertificateId = this.HandoverCertificateId;
|
||||
BLL.HandoverCertificateService.UpdateHandoverCertificate(newReport);
|
||||
}
|
||||
else
|
||||
{
|
||||
newReport.ProjectId = this.ProjectId;
|
||||
newReport.CompileMan = this.CurrUser.UserId;
|
||||
newReport.CompileDate = DateTime.Now;
|
||||
newReport.HandoverCertificateId = SQLHelper.GetNewID(typeof(Model.JGZL_HandoverCertificate));
|
||||
this.HandoverCertificateId = newReport.HandoverCertificateId;
|
||||
BLL.HandoverCertificateService.AddHandoverCertificate(newReport);
|
||||
}
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,125 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
|
||||
|
||||
public partial class HandoverCertificateEdit
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// txtHandoverDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtHandoverDate;
|
||||
|
||||
/// <summary>
|
||||
/// txtProjectContent 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtProjectContent;
|
||||
|
||||
/// <summary>
|
||||
/// txtReceiveOpinions 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtReceiveOpinions;
|
||||
|
||||
/// <summary>
|
||||
/// txtHeaderMan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtHeaderMan;
|
||||
|
||||
/// <summary>
|
||||
/// txtSupervisionOpinion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtSupervisionOpinion;
|
||||
}
|
||||
}
|
||||
|
|
@ -374,6 +374,9 @@ namespace Model
|
|||
partial void InsertJGZL_CommencementReport(JGZL_CommencementReport instance);
|
||||
partial void UpdateJGZL_CommencementReport(JGZL_CommencementReport instance);
|
||||
partial void DeleteJGZL_CommencementReport(JGZL_CommencementReport instance);
|
||||
partial void InsertJGZL_HandoverCertificate(JGZL_HandoverCertificate instance);
|
||||
partial void UpdateJGZL_HandoverCertificate(JGZL_HandoverCertificate instance);
|
||||
partial void DeleteJGZL_HandoverCertificate(JGZL_HandoverCertificate instance);
|
||||
partial void InsertOAM_UesrQualified(OAM_UesrQualified instance);
|
||||
partial void UpdateOAM_UesrQualified(OAM_UesrQualified instance);
|
||||
partial void DeleteOAM_UesrQualified(OAM_UesrQualified instance);
|
||||
|
|
@ -1738,6 +1741,14 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<JGZL_HandoverCertificate> JGZL_HandoverCertificate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<JGZL_HandoverCertificate>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<OAM_UesrQualified> OAM_UesrQualified
|
||||
{
|
||||
get
|
||||
|
|
@ -4321,6 +4332,8 @@ namespace Model
|
|||
|
||||
private EntitySet<JGZL_CommencementReport> _JGZL_CommencementReport;
|
||||
|
||||
private EntitySet<JGZL_HandoverCertificate> _JGZL_HandoverCertificate;
|
||||
|
||||
private EntitySet<Project_Installation> _Project_Installation;
|
||||
|
||||
private EntitySet<Project_RoleButtonPower> _Project_RoleButtonPower;
|
||||
|
|
@ -4446,6 +4459,7 @@ namespace Model
|
|||
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_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));
|
||||
this._Project_RoleButtonPower = new EntitySet<Project_RoleButtonPower>(new Action<Project_RoleButtonPower>(this.attach_Project_RoleButtonPower), new Action<Project_RoleButtonPower>(this.detach_Project_RoleButtonPower));
|
||||
this._Project_RolePower = new EntitySet<Project_RolePower>(new Action<Project_RolePower>(this.attach_Project_RolePower), new Action<Project_RolePower>(this.detach_Project_RolePower));
|
||||
|
|
@ -5526,6 +5540,19 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_HandoverCertificate_Base_Project", Storage="_JGZL_HandoverCertificate", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<JGZL_HandoverCertificate> JGZL_HandoverCertificate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._JGZL_HandoverCertificate;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._JGZL_HandoverCertificate.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Project_Installation_Base_Project", Storage="_Project_Installation", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<Project_Installation> Project_Installation
|
||||
{
|
||||
|
|
@ -6196,6 +6223,18 @@ namespace Model
|
|||
entity.Base_Project = null;
|
||||
}
|
||||
|
||||
private void attach_JGZL_HandoverCertificate(JGZL_HandoverCertificate entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Project = this;
|
||||
}
|
||||
|
||||
private void detach_JGZL_HandoverCertificate(JGZL_HandoverCertificate entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Project = null;
|
||||
}
|
||||
|
||||
private void attach_Project_Installation(Project_Installation entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
|
|
@ -79592,6 +79631,366 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_HandoverCertificate")]
|
||||
public partial class JGZL_HandoverCertificate : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _HandoverCertificateId;
|
||||
|
||||
private string _ProjectId;
|
||||
|
||||
private string _ContractNumber;
|
||||
|
||||
private System.Nullable<System.DateTime> _HandoverDate;
|
||||
|
||||
private string _ProjectContent;
|
||||
|
||||
private string _ReceiveOpinions;
|
||||
|
||||
private string _HeaderMan;
|
||||
|
||||
private string _SupervisionOpinion;
|
||||
|
||||
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 OnHandoverCertificateIdChanging(string value);
|
||||
partial void OnHandoverCertificateIdChanged();
|
||||
partial void OnProjectIdChanging(string value);
|
||||
partial void OnProjectIdChanged();
|
||||
partial void OnContractNumberChanging(string value);
|
||||
partial void OnContractNumberChanged();
|
||||
partial void OnHandoverDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnHandoverDateChanged();
|
||||
partial void OnProjectContentChanging(string value);
|
||||
partial void OnProjectContentChanged();
|
||||
partial void OnReceiveOpinionsChanging(string value);
|
||||
partial void OnReceiveOpinionsChanged();
|
||||
partial void OnHeaderManChanging(string value);
|
||||
partial void OnHeaderManChanged();
|
||||
partial void OnSupervisionOpinionChanging(string value);
|
||||
partial void OnSupervisionOpinionChanged();
|
||||
partial void OnCompileManChanging(string value);
|
||||
partial void OnCompileManChanged();
|
||||
partial void OnCompileDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnCompileDateChanged();
|
||||
#endregion
|
||||
|
||||
public JGZL_HandoverCertificate()
|
||||
{
|
||||
this._Base_Project = default(EntityRef<Base_Project>);
|
||||
this._Sys_User = default(EntityRef<Sys_User>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandoverCertificateId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||
public string HandoverCertificateId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._HandoverCertificateId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._HandoverCertificateId != value))
|
||||
{
|
||||
this.OnHandoverCertificateIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._HandoverCertificateId = value;
|
||||
this.SendPropertyChanged("HandoverCertificateId");
|
||||
this.OnHandoverCertificateIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[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="_HandoverDate", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> HandoverDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._HandoverDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._HandoverDate != value))
|
||||
{
|
||||
this.OnHandoverDateChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._HandoverDate = value;
|
||||
this.SendPropertyChanged("HandoverDate");
|
||||
this.OnHandoverDateChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[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="_ReceiveOpinions", DbType="NVarChar(1000)")]
|
||||
public string ReceiveOpinions
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ReceiveOpinions;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ReceiveOpinions != value))
|
||||
{
|
||||
this.OnReceiveOpinionsChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ReceiveOpinions = value;
|
||||
this.SendPropertyChanged("ReceiveOpinions");
|
||||
this.OnReceiveOpinionsChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[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="_SupervisionOpinion", DbType="NVarChar(1000)")]
|
||||
public string SupervisionOpinion
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._SupervisionOpinion;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._SupervisionOpinion != value))
|
||||
{
|
||||
this.OnSupervisionOpinionChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._SupervisionOpinion = value;
|
||||
this.SendPropertyChanged("SupervisionOpinion");
|
||||
this.OnSupervisionOpinionChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[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_HandoverCertificate_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_HandoverCertificate.Remove(this);
|
||||
}
|
||||
this._Base_Project.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.JGZL_HandoverCertificate.Add(this);
|
||||
this._ProjectId = value.ProjectId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._ProjectId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Base_Project");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_HandoverCertificate_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_HandoverCertificate.Remove(this);
|
||||
}
|
||||
this._Sys_User.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.JGZL_HandoverCertificate.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.OAM_UesrQualified")]
|
||||
public partial class OAM_UesrQualified : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
|
@ -101043,6 +101442,8 @@ namespace Model
|
|||
|
||||
private EntitySet<JGZL_CommencementReport> _JGZL_CommencementReport;
|
||||
|
||||
private EntitySet<JGZL_HandoverCertificate> _JGZL_HandoverCertificate;
|
||||
|
||||
private EntitySet<Project_User> _Project_User;
|
||||
|
||||
private EntitySet<Project_UserButtonPower> _Project_UserButtonPower;
|
||||
|
|
@ -101125,6 +101526,7 @@ namespace Model
|
|||
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_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));
|
||||
this._Project_UserButtonPower = new EntitySet<Project_UserButtonPower>(new Action<Project_UserButtonPower>(this.attach_Project_UserButtonPower), new Action<Project_UserButtonPower>(this.detach_Project_UserButtonPower));
|
||||
this._Project_UserPower = new EntitySet<Project_UserPower>(new Action<Project_UserPower>(this.attach_Project_UserPower), new Action<Project_UserPower>(this.detach_Project_UserPower));
|
||||
|
|
@ -101776,6 +102178,19 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_HandoverCertificate_Sys_User", Storage="_JGZL_HandoverCertificate", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
|
||||
public EntitySet<JGZL_HandoverCertificate> JGZL_HandoverCertificate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._JGZL_HandoverCertificate;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._JGZL_HandoverCertificate.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Project_User_Sys_User", Storage="_Project_User", ThisKey="UserId", OtherKey="UserId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<Project_User> Project_User
|
||||
{
|
||||
|
|
@ -102155,6 +102570,18 @@ namespace Model
|
|||
entity.Sys_User = null;
|
||||
}
|
||||
|
||||
private void attach_JGZL_HandoverCertificate(JGZL_HandoverCertificate entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Sys_User = this;
|
||||
}
|
||||
|
||||
private void detach_JGZL_HandoverCertificate(JGZL_HandoverCertificate entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Sys_User = null;
|
||||
}
|
||||
|
||||
private void attach_Project_User(Project_User entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
|
|
|
|||
|
|
@ -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>Debug|Any CPU</LastActiveSolutionConfig>
|
||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
||||
<NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
<Use64BitIISExpress />
|
||||
|
|
|
|||
Loading…
Reference in New Issue