20260212 无损检测人员登记
This commit is contained in:
parent
3becf06cfe
commit
2355984ee7
|
|
@ -0,0 +1,105 @@
|
|||
|
||||
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
|
||||
values('68C050BD-0EDC-473C-BD87-EE4A403F0132','隔热工程质量验收记录','JGZL/InsulationAcceptanceRecord.aspx',430,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
|
||||
go
|
||||
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
values('F05CC125-5AE9-4887-A9FE-AD768049A5EC','68C050BD-0EDC-473C-BD87-EE4A403F0132','增加',1)
|
||||
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
values('D92A2ECA-174A-408F-A6F4-D60F4CE9E077','68C050BD-0EDC-473C-BD87-EE4A403F0132','修改',2)
|
||||
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
values('B6EE8A4C-11ED-4F72-BA8D-B0F7EA80AD41','68C050BD-0EDC-473C-BD87-EE4A403F0132','删除',3)
|
||||
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
values('E6D2D75A-8316-4988-8664-9A6C41111F5C','68C050BD-0EDC-473C-BD87-EE4A403F0132','保存',4)
|
||||
go
|
||||
CREATE TABLE [dbo].[JGZL_InsulationAcceptanceRecord](
|
||||
[InsulationAcceptanceRecordId] [nvarchar](50) NOT NULL,
|
||||
[ProjectId] [nvarchar](50) NULL,
|
||||
[HeatInsulationArea] [nvarchar](500) NULL,
|
||||
[InsulationStructure] [nvarchar](500) NULL,
|
||||
[AcceptanceConclusion] [nvarchar](500) NULL,
|
||||
[CompileMan] [nvarchar](50) NULL,
|
||||
[CompileDate] [datetime] NULL,
|
||||
CONSTRAINT [PK_JGZL_InsulationAcceptanceRecord] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[InsulationAcceptanceRecordId] 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_InsulationAcceptanceRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_InsulationAcceptanceRecord_Base_Project] FOREIGN KEY([ProjectId])
|
||||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[JGZL_InsulationAcceptanceRecord] CHECK CONSTRAINT [FK_JGZL_InsulationAcceptanceRecord_Base_Project]
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[JGZL_InsulationAcceptanceRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_InsulationAcceptanceRecord_Sys_User] FOREIGN KEY([CompileMan])
|
||||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[JGZL_InsulationAcceptanceRecord] CHECK CONSTRAINT [FK_JGZL_InsulationAcceptanceRecord_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_InsulationAcceptanceRecord', @level2type=N'COLUMN',@level2name=N'InsulationAcceptanceRecordId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_InsulationAcceptanceRecord', @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_InsulationAcceptanceRecord', @level2type=N'COLUMN',@level2name=N'HeatInsulationArea'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'隔热结构' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_InsulationAcceptanceRecord', @level2type=N'COLUMN',@level2name=N'InsulationStructure'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'验收结论' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_InsulationAcceptanceRecord', @level2type=N'COLUMN',@level2name=N'AcceptanceConclusion'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_InsulationAcceptanceRecord', @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_InsulationAcceptanceRecord', @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_InsulationAcceptanceRecord'
|
||||
GO
|
||||
|
||||
|
||||
|
||||
|
||||
CREATE TABLE [dbo].[JGZL_InsulationAcceptanceRecordItem](
|
||||
[InsulationAcceptanceRecordItemId] [nvarchar](50) NOT NULL,
|
||||
[InsulationAcceptanceRecordId] [nvarchar](50) NULL,
|
||||
[CheckCode] [nvarchar](50) NULL,
|
||||
[CheckItem] [nvarchar](200) NULL,
|
||||
[CheckResult] [nvarchar](50) NULL,
|
||||
CONSTRAINT [PK_JGZL_InsulationAcceptanceRecordItem] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[InsulationAcceptanceRecordItemId] 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_InsulationAcceptanceRecordItem] WITH CHECK ADD CONSTRAINT [FK_JGZL_InsulationAcceptanceRecordItem_JGZL_InsulationAcceptanceRecord] FOREIGN KEY([InsulationAcceptanceRecordItemId])
|
||||
REFERENCES [dbo].[JGZL_InsulationAcceptanceRecord] ([InsulationAcceptanceRecordId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[JGZL_InsulationAcceptanceRecordItem] CHECK CONSTRAINT [FK_JGZL_InsulationAcceptanceRecordItem_JGZL_InsulationAcceptanceRecord]
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主表Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_InsulationAcceptanceRecordItem', @level2type=N'COLUMN',@level2name=N'InsulationAcceptanceRecordId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'序号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_InsulationAcceptanceRecordItem', @level2type=N'COLUMN',@level2name=N'CheckCode'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'检查项目与要求' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_InsulationAcceptanceRecordItem', @level2type=N'COLUMN',@level2name=N'CheckItem'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'检查结果' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_InsulationAcceptanceRecordItem', @level2type=N'COLUMN',@level2name=N'CheckResult'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'隔热工程质量验收记录明细表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_InsulationAcceptanceRecordItem'
|
||||
GO
|
||||
|
||||
|
||||
|
|
@ -249,6 +249,8 @@
|
|||
<Compile Include="JGZL\AcceptanceCertificateService.cs" />
|
||||
<Compile Include="JGZL\DocumentDescriptionService.cs" />
|
||||
<Compile Include="JGZL\FileDirectoryService.cs" />
|
||||
<Compile Include="JGZL\InsulationAcceptanceRecordItemService.cs" />
|
||||
<Compile Include="JGZL\InsulationAcceptanceRecordService.cs" />
|
||||
<Compile Include="JGZL\LeakTestOfPipelineSystemRecordItemService.cs" />
|
||||
<Compile Include="JGZL\PressureTestOfPipelineSystemRecordItemService.cs" />
|
||||
<Compile Include="JGZL\AnticorrosionEngineeringInspectionRecordItemService.cs" />
|
||||
|
|
|
|||
|
|
@ -1905,6 +1905,11 @@ namespace BLL
|
|||
/// </summary>
|
||||
public const string JGZL_FileDirectoryMenuId = "729387AD-488D-4451-AEB4-570306747351";
|
||||
|
||||
/// <summary>
|
||||
/// 隔热工程质量验收记录
|
||||
/// </summary>
|
||||
public const string JGZL_InsulationAcceptanceRecordMenuId = "68C050BD-0EDC-473C-BD87-EE4A403F0132";
|
||||
|
||||
#endregion
|
||||
|
||||
#region 报表对应ID
|
||||
|
|
|
|||
|
|
@ -0,0 +1,58 @@
|
|||
using Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.Caching.Hosting;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 隔热工程质量验收记录明细表
|
||||
/// </summary>
|
||||
public class InsulationAcceptanceRecordItemService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键Id获取明细信息
|
||||
/// </summary>
|
||||
/// <param name="insulationAcceptanceRecordId"></param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.JGZL_InsulationAcceptanceRecordItem> GetItemsByInsulationAcceptanceRecordId(string insulationAcceptanceRecordId)
|
||||
{
|
||||
return (from x in Funs.DB.JGZL_InsulationAcceptanceRecordItem where x.InsulationAcceptanceRecordId == insulationAcceptanceRecordId select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加
|
||||
/// </summary>
|
||||
/// <param name="item"></param>
|
||||
public static void AddInsulationAcceptanceRecordItem(Model.JGZL_InsulationAcceptanceRecordItem item)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_InsulationAcceptanceRecordItem newItem = new Model.JGZL_InsulationAcceptanceRecordItem();
|
||||
newItem.InsulationAcceptanceRecordItemId=item.InsulationAcceptanceRecordItemId;
|
||||
newItem.InsulationAcceptanceRecordId=item.InsulationAcceptanceRecordId;
|
||||
newItem.CheckCode=item.CheckCode;
|
||||
newItem.CheckItem=item.CheckItem;
|
||||
newItem.CheckResult = item.CheckResult;
|
||||
db.JGZL_InsulationAcceptanceRecordItem.InsertOnSubmit(newItem);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键Id删除相关明细信息
|
||||
/// </summary>
|
||||
/// <param name="insulationAcceptanceRecordId"></param>
|
||||
public static void DeleteItemByInsulationAcceptanceRecordId(string insulationAcceptanceRecordId)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
var q = (from x in db.JGZL_InsulationAcceptanceRecordItem where x.InsulationAcceptanceRecordId == insulationAcceptanceRecordId select x).ToList();
|
||||
if (q!=null)
|
||||
{
|
||||
db.JGZL_InsulationAcceptanceRecordItem.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,76 @@
|
|||
using Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 隔热工程质量验收记录
|
||||
/// </summary>
|
||||
public class InsulationAcceptanceRecordService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取隔热工程质量验收记录
|
||||
/// </summary>
|
||||
/// <param name="insulationAcceptanceRecordId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.JGZL_InsulationAcceptanceRecord GetInsulationAcceptanceRecordById(string insulationAcceptanceRecordId)
|
||||
{
|
||||
return Funs.DB.JGZL_InsulationAcceptanceRecord.FirstOrDefault(e => e.InsulationAcceptanceRecordId == insulationAcceptanceRecordId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加
|
||||
/// </summary>
|
||||
/// <param name="record"></param>
|
||||
public static void AddInsulationAcceptanceRecord(Model.JGZL_InsulationAcceptanceRecord record)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_InsulationAcceptanceRecord newReport = new JGZL_InsulationAcceptanceRecord();
|
||||
newReport.InsulationAcceptanceRecordId = record.InsulationAcceptanceRecordId;
|
||||
newReport.ProjectId = record.ProjectId;
|
||||
newReport.HeatInsulationArea = record.HeatInsulationArea;
|
||||
newReport.InsulationStructure = record.InsulationStructure;
|
||||
newReport.AcceptanceConclusion = record.AcceptanceConclusion;
|
||||
newReport.CompileMan = record.CompileMan;
|
||||
newReport.CompileDate = record.CompileDate;
|
||||
db.JGZL_InsulationAcceptanceRecord.InsertOnSubmit(newReport);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改
|
||||
/// </summary>
|
||||
/// <param name="record"></param>
|
||||
public static void UpdateInsulationAcceptanceRecord(Model.JGZL_InsulationAcceptanceRecord record)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_InsulationAcceptanceRecord newReport = db.JGZL_InsulationAcceptanceRecord.FirstOrDefault(e => e.InsulationAcceptanceRecordId == record.InsulationAcceptanceRecordId);
|
||||
if (newReport != null)
|
||||
{
|
||||
newReport.HeatInsulationArea = record.HeatInsulationArea;
|
||||
newReport.InsulationStructure = record.InsulationStructure;
|
||||
newReport.AcceptanceConclusion = record.AcceptanceConclusion;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除隔热工程质量验收记录
|
||||
/// </summary>
|
||||
/// <param name="insulationAcceptanceRecordId"></param>
|
||||
public static void DeleteInsulationAcceptanceRecordById(string insulationAcceptanceRecordId)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_InsulationAcceptanceRecord report = db.JGZL_InsulationAcceptanceRecord.FirstOrDefault(e => e.InsulationAcceptanceRecordId == insulationAcceptanceRecordId);
|
||||
if (report != null)
|
||||
{
|
||||
db.JGZL_InsulationAcceptanceRecord.DeleteOnSubmit(report);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -76,5 +76,16 @@ namespace BLL
|
|||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
public static void DeleteNDTPersonByProjectId(string projectId)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
var q = (from x in db.JGZL_NDTPerson where x.ProjectId == projectId select x).ToList();
|
||||
if (q!=null)
|
||||
{
|
||||
db.JGZL_NDTPerson.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="07/15/2025 14:12:53" ReportInfo.Modified="02/06/2026 17:11:16" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="07/15/2025 14:12:53" ReportInfo.Modified="02/12/2026 09:15:58" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<ScriptText>using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
|
@ -42,7 +42,7 @@ namespace FastReport
|
|||
}
|
||||
</ScriptText>
|
||||
<Dictionary>
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFXLKJ1jNbCuhAR+28+pWB0g==">
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QF4n65VIsY0T+Kq4g5gTDpIg==">
|
||||
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
|
||||
<Column Name="Number" DataType="System.String" PropName="attach_image_id"/>
|
||||
<Column Name="WED_Name" DataType="System.String" PropName="image_series"/>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/18/2025 17:45:45" ReportInfo.Modified="02/06/2026 17:18:56" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/18/2025 17:45:45" ReportInfo.Modified="02/12/2026 10:07:08" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<ScriptText>using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
|
@ -42,7 +42,7 @@ namespace FastReport
|
|||
}
|
||||
</ScriptText>
|
||||
<Dictionary>
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QF3gOCTWHIbofiM93+8NfrAw==">
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFjGCGn+DlPNmNWcQMx4Vneg==">
|
||||
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
|
||||
<Column Name="PersonName" DataType="System.String" PropName="attach_image_id"/>
|
||||
<Column Name="CertificateNumber" DataType="System.String" PropName="image_series"/>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,80 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="02/11/2026 16:25:54" ReportInfo.Modified="02/11/2026 16:39:24" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Dictionary/>
|
||||
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="0,642.6,66.15,519.75,425.25,633.15,113.4,646.4,67.1,398.8,484.8,642.4,85,273.95,358.95">
|
||||
<PageHeaderBand Name="PageHeader1" Width="646.38" Height="207.9" Guides="0,75.6,103.95,132.3,122.85,151.2,207.9,56.7">
|
||||
<TextObject Name="Text1" Width="642.6" Height="75.6" Text="渣油加氢不稳定石脑油流程优化档案资料移交表" HorzAlign="Center" VertAlign="Center" Font="宋体, 18pt"/>
|
||||
<TextObject Name="Text2" Left="66.15" Top="75.6" Width="453.6" Height="28.35" Text="(施工号:22012-010189)" HorzAlign="Center" VertAlign="Center" Font="宋体, 14pt"/>
|
||||
<TextObject Name="Text3" Left="425.25" Top="103.95" Width="207.9" Height="28.35" Text="ZDS-T6.38.027.A/0.2019" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TextObject Name="Text4" Top="122.85" Width="113.4" Height="28.35" Text="移交部门:" VertAlign="Center" Font="宋体, 14pt"/>
|
||||
<TableObject Name="Table1" Top="151.2" Width="646.4" Height="56.7">
|
||||
<TableColumn Name="Column1" Width="67.1"/>
|
||||
<TableColumn Name="Column2" Width="331.7"/>
|
||||
<TableColumn Name="Column3" Width="86"/>
|
||||
<TableColumn Name="Column4" Width="161.6"/>
|
||||
<TableRow Name="Row1" Height="56.7">
|
||||
<TableCell Name="Cell1" Border.Lines="All" Text="序号" HorzAlign="Center" VertAlign="Center" Font="宋体, 14pt"/>
|
||||
<TableCell Name="Cell2" Border.Lines="All" Text="文 件 名 称 (合同号,施工号,文件编号)" HorzAlign="Center" VertAlign="Center" Font="宋体, 14pt"/>
|
||||
<TableCell Name="Cell3" Border.Lines="All" Text="数量" HorzAlign="Center" VertAlign="Center" Font="宋体, 14pt"/>
|
||||
<TableCell Name="Cell4" Border.Lines="All" Text="备 注" HorzAlign="Center" VertAlign="Center" Font="宋体, 14pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</PageHeaderBand>
|
||||
<DataBand Name="Data1" Top="211.9" Width="646.38" Height="47.25" Guides="0,47.25">
|
||||
<TableObject Name="Table2" Width="646.4" Height="47.25">
|
||||
<TableColumn Name="Column5" Width="67.1"/>
|
||||
<TableColumn Name="Column6" Width="331.7"/>
|
||||
<TableColumn Name="Column7" Width="86"/>
|
||||
<TableColumn Name="Column8" Width="161.6"/>
|
||||
<TableRow Name="Row2" Height="47.25">
|
||||
<TableCell Name="Cell5" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 14pt"/>
|
||||
<TableCell Name="Cell6" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 14pt"/>
|
||||
<TableCell Name="Cell7" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 14pt"/>
|
||||
<TableCell Name="Cell8" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 14pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</DataBand>
|
||||
<ColumnFooterBand Name="ColumnFooter1" Top="314.4" Width="646.38">
|
||||
<ChildBand Name="Child1" Top="263.15" Width="646.38" Height="47.25" Guides="0,47.25" FillUnusedSpace="true">
|
||||
<TableObject Name="Table3" Width="646.4" Height="47.25">
|
||||
<TableColumn Name="Column9" Width="67.1"/>
|
||||
<TableColumn Name="Column10" Width="331.7"/>
|
||||
<TableColumn Name="Column11" Width="86"/>
|
||||
<TableColumn Name="Column12" Width="161.6"/>
|
||||
<TableRow Name="Row3" Height="47.25">
|
||||
<TableCell Name="Cell9" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 14pt"/>
|
||||
<TableCell Name="Cell10" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 14pt"/>
|
||||
<TableCell Name="Cell11" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 14pt"/>
|
||||
<TableCell Name="Cell12" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 14pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</ChildBand>
|
||||
</ColumnFooterBand>
|
||||
<PageFooterBand Name="PageFooter1" Top="318.4" Width="646.38" Height="139.86" Guides="0,139.86,46.62,93.24">
|
||||
<TableObject Name="Table4" Width="642.4" Height="139.86">
|
||||
<TableColumn Name="Column13" Width="85"/>
|
||||
<TableColumn Name="Column14" Width="188.95"/>
|
||||
<TableColumn Name="Column15" Width="85"/>
|
||||
<TableColumn Name="Column16" Width="283.45"/>
|
||||
<TableRow Name="Row4" Height="46.62">
|
||||
<TableCell Name="Cell13" Text="移交人: " HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell14" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell15" Text="日期:" HorzAlign="Right" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell16" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row5" Height="46.62">
|
||||
<TableCell Name="Cell18" Text="审核人: " HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell19" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell20" Text="日期:" HorzAlign="Right" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell21" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row6" Height="46.62">
|
||||
<TableCell Name="Cell23" Text="接收人: " HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell24" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell25" Text="日期:" HorzAlign="Right" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell26" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</PageFooterBand>
|
||||
</ReportPage>
|
||||
</Report>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="11/19/2024 10:28:42" ReportInfo.Modified="02/09/2026 09:40:41" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="11/19/2024 10:28:42" ReportInfo.Modified="02/12/2026 10:11:36" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<ScriptText>using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
|
@ -50,7 +50,7 @@ namespace FastReport
|
|||
}
|
||||
</ScriptText>
|
||||
<Dictionary>
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QF8DRQk5jS4yardRf28nyfLw==">
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QF+ZeeHqWx7GTHsZYv7jySOA==">
|
||||
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
|
||||
<Column Name="ISO_IsoNo" DataType="System.String" PropName="attach_image_id"/>
|
||||
<Column Name="JOT_JointNo" DataType="System.String" PropName="image_series"/>
|
||||
|
|
@ -67,8 +67,8 @@ namespace FastReport
|
|||
<Parameter Name="ProjectName" DataType="System.String"/>
|
||||
</Dictionary>
|
||||
<ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9" LeftMargin="16.5" TopMargin="22" RightMargin="13.3" BottomMargin="17" Guides="0,1009.39,231,49.35,741.3099,115.5,93.46,87.15,39.9,835.81,53.88,58.8,181.65,863.44,318.15,433.65,527.11,614.26,701.41,809.56,68.25,922.24,1009.21,336.99,673.98,9.45,406.35">
|
||||
<PageHeaderBand Name="PageHeader1" Width="1010.02" Height="136.08" Guides="0,136.08,98.28,68.04,9.45,28.35,30.24,37.8">
|
||||
<TableObject Name="Table1" Width="1009.39" Height="136.08" Border.Lines="Right">
|
||||
<PageHeaderBand Name="PageHeader1" Width="1010.02" Height="135.32" Guides="0,135.32,97.52,67.28,9.45,28.35,30.24,37.8">
|
||||
<TableObject Name="Table1" Width="1009.39" Height="135.32" Border.Lines="Right">
|
||||
<TableColumn Name="Column1" Width="181.65"/>
|
||||
<TableColumn Name="Column2" Width="49.35"/>
|
||||
<TableColumn Name="Column3" Width="87.15"/>
|
||||
|
|
@ -81,7 +81,7 @@ namespace FastReport
|
|||
<TableColumn Name="Column10" Width="53.88"/>
|
||||
<TableColumn Name="Column11" Width="58.8"/>
|
||||
<TableColumn Name="Column12" Width="87.15"/>
|
||||
<TableRow Name="Row1" Height="68.04">
|
||||
<TableRow Name="Row1" Height="67.28">
|
||||
<TableCell Name="Cell1" Border.Lines="All" Text="SH/T 3503-J415-1" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2" RowSpan="2"/>
|
||||
<TableCell Name="Cell2" Border.Lines="All"/>
|
||||
<TableCell Name="Cell3" Border.Lines="All" BeforePrintEvent="Cell3_BeforePrint" Text="管道焊接工作记录[header]" HorzAlign="Center" VertAlign="Center" Font="思源宋体 CN, 16pt, style=Bold" ColSpan="6" RowSpan="2"/>
|
||||
|
|
@ -127,7 +127,7 @@ namespace FastReport
|
|||
</TableRow>
|
||||
</TableObject>
|
||||
</PageHeaderBand>
|
||||
<DataBand Name="Data1" Top="140.08" Width="1010.02" Height="34.02" Guides="0,34.02">
|
||||
<DataBand Name="Data1" Top="139.32" Width="1010.02" Height="34.02" Guides="0,34.02">
|
||||
<TableObject Name="Table2" Width="1009.39" Height="34.02" ManualBuildEvent="Table2_ManualBuild">
|
||||
<TableColumn Name="Column13" Width="181.65"/>
|
||||
<TableColumn Name="Column14" Width="49.35"/>
|
||||
|
|
@ -157,8 +157,8 @@ namespace FastReport
|
|||
</TableRow>
|
||||
</TableObject>
|
||||
</DataBand>
|
||||
<ColumnFooterBand Name="ColumnFooter1" Top="216.12" Width="1010.02">
|
||||
<ChildBand Name="Child1" Top="178.1" Width="1010.02" Height="34.02" Guides="0,34.02" FillUnusedSpace="true">
|
||||
<ColumnFooterBand Name="ColumnFooter1" Top="215.36" Width="1010.02">
|
||||
<ChildBand Name="Child1" Top="177.34" Width="1010.02" Height="34.02" Guides="0,34.02" FillUnusedSpace="true">
|
||||
<TableObject Name="Table3" Width="1009.39" Height="34.02">
|
||||
<TableColumn Name="Column25" Width="181.65"/>
|
||||
<TableColumn Name="Column26" Width="49.35"/>
|
||||
|
|
@ -189,15 +189,15 @@ namespace FastReport
|
|||
</TableObject>
|
||||
</ChildBand>
|
||||
</ColumnFooterBand>
|
||||
<PageFooterBand Name="PageFooter1" Top="220.12" Width="1010.02" Height="136.08" PrintOn="FirstPage" Guides="0,136.08,26.46,52.92,83.16,109.62">
|
||||
<PageFooterBand Name="PageFooter1" Top="219.36" Width="1010.02" Height="136.08" PrintOn="FirstPage" Guides="0,136.08,26.46,52.92,83.16,109.62">
|
||||
<TableObject Name="Table4" Width="1009.21" Height="136.08" Border.Lines="Left, Right, Top">
|
||||
<TableColumn Name="Column37" Width="336.99"/>
|
||||
<TableColumn Name="Column38" Width="336.99"/>
|
||||
<TableColumn Name="Column39" Width="335.23"/>
|
||||
<TableRow Name="Row8" Height="26.46">
|
||||
<TableCell Name="Cell95" Border.Lines="All" Text="建设/监理单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell96" Border.Lines="All" Text="总承包单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell97" Border.Lines="All" Text="施工单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell95" Border.Lines="Left, Right, Bottom" Text="建设/监理单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell96" Border.Lines="Left, Right, Bottom" Text="总承包单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell97" Border.Lines="Left, Right, Bottom" Text="施工单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row9" Height="26.46">
|
||||
<TableCell Name="Cell100" Border.Lines="Right" Text="专业工程师:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
|
|
@ -220,7 +220,7 @@ namespace FastReport
|
|||
<TableCell Name="Cell117" Border.Lines="Right, Bottom" Text="日期:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
<ChildBand Name="Child2" Top="360.2" Width="1010.02" PrintOn="LastPage, OddPages, EvenPages, RepeatedBand, SinglePage" Guides="0">
|
||||
<ChildBand Name="Child2" Top="359.44" Width="1010.02" PrintOn="LastPage, OddPages, EvenPages, RepeatedBand, SinglePage" Guides="0">
|
||||
<LineObject Name="Line1" Left="9.45" Width="396.9"/>
|
||||
</ChildBand>
|
||||
</PageFooterBand>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="11/23/2024 15:00:41" ReportInfo.Modified="02/09/2026 10:01:32" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="11/23/2024 15:00:41" ReportInfo.Modified="02/12/2026 10:12:28" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<ScriptText>using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
|
@ -42,7 +42,7 @@ namespace FastReport
|
|||
}
|
||||
</ScriptText>
|
||||
<Dictionary>
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QF02vrTv70KzTmW3+HmuLbtA==">
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QF0BXLqCH+D36Tzw9+6fXkjQ==">
|
||||
<TableDataSource Name="Attach_Image" Alias="Data" DataType="System.Int32" Enabled="true" TableName="Attach_Image">
|
||||
<Column Name="Number" DataType="System.String" PropName="attach_image_id"/>
|
||||
<Column Name="ISO_IsoNo" DataType="System.String" PropName="image_series"/>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,158 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="02/11/2026 16:08:40" ReportInfo.Modified="02/11/2026 16:45:40" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Dictionary/>
|
||||
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="0,646.4,142.7,398.8,483.85,133.25,256.1,513.15,29.3,360.05,95.45,550.95,161.6,646.38,215.46,430.92">
|
||||
<PageHeaderBand Name="PageHeader1" Width="646.38" Height="94.5" Guides="0,94.5,66.15,9.45,28.35">
|
||||
<TableObject Name="Table1" Width="646.4" Height="94.5" Border.Lines="Left, Right, Top">
|
||||
<TableColumn Name="Column1" Width="142.7"/>
|
||||
<TableColumn Name="Column2" Width="256.1"/>
|
||||
<TableColumn Name="Column3" Width="114.35"/>
|
||||
<TableColumn Name="Column4" Width="133.25"/>
|
||||
<TableRow Name="Row1" Height="66.15">
|
||||
<TableCell Name="Cell1" Border.Lines="All" Text="SH/T 3503—J119" HorzAlign="Center" VertAlign="Center" Font="黑体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell2" Border.Lines="All" Text="隔热工程质量验收记录" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt, style=Bold" RowSpan="2"/>
|
||||
<TableCell Name="Cell3" Border.Lines="Left, Right, Top" Font="宋体, 10.5pt" ColSpan="2">
|
||||
<TextObject Name="Text1" Top="9.45" Width="85.05" Height="18.9" Text="工程名称:" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableCell>
|
||||
<TableCell Name="Cell4" Border.Lines="All"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row2" Height="28.35">
|
||||
<TableCell Name="Cell6" Border.Lines="All"/>
|
||||
<TableCell Name="Cell7" Border.Lines="All"/>
|
||||
<TableCell Name="Cell8" Border.Lines="Left, Bottom" Text="单位工程名称:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell9" Border.Lines="Right, Bottom" Text="管道安装工程" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</PageHeaderBand>
|
||||
<DataBand Name="Data1" Top="98.5" Width="646.38" Height="737.1" Guides="0,737.1,94.5,189,217.35,28.35,255.15,37.8,292.95,330.75,368.55,481.95,406.35,444.15,538.65,56.7,652.05,576.45,614.25,85.05">
|
||||
<TableObject Name="Table2" Width="646.4" Height="737.1">
|
||||
<TableColumn Name="Column5" Width="29.3"/>
|
||||
<TableColumn Name="Column6" Width="161.6"/>
|
||||
<TableColumn Name="Column7" Width="360.05"/>
|
||||
<TableColumn Name="Column8" Width="95.45"/>
|
||||
<TableRow Name="Row3" Height="94.5">
|
||||
<TableCell Name="Cell10" Border.Lines="All" Text="隔热部位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell11" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
|
||||
<TableCell Name="Cell12" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell63" Border.Lines="All"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row4" Height="94.5">
|
||||
<TableCell Name="Cell15" Border.Lines="All" Text="隔热结构" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell16" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
|
||||
<TableCell Name="Cell17" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell64" Border.Lines="All"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row5" Height="28.35">
|
||||
<TableCell Name="Cell20" Border.Lines="All" Text="检查项目与要求" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
|
||||
<TableCell Name="Cell21" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell22" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell65" Border.Lines="All" Text="检查结果" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row6" Height="37.8">
|
||||
<TableCell Name="Cell25" Border.Lines="All" Text="原材料符合设计及有关规范要求,具有出厂质量证明文件及复验报告" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
|
||||
<TableCell Name="Cell26" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell27" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell66" Border.Lines="All"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row7" Height="37.8">
|
||||
<TableCell Name="Cell30" Border.Lines="All" Text="设备、管道按规定进行了压力试验,防腐涂层完毕" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
|
||||
<TableCell Name="Cell31" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell32" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell67" Border.Lines="All"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row8" Height="37.8">
|
||||
<TableCell Name="Cell33" Border.Lines="All" Text="具有工序交接记录" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
|
||||
<TableCell Name="Cell34" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell35" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell68" Border.Lines="All"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row9" Height="37.8">
|
||||
<TableCell Name="Cell36" Border.Lines="All" Text="管支、托架处的隔热层结构不影响活动面的自由伸缩" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
|
||||
<TableCell Name="Cell37" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell38" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell69" Border.Lines="All"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row10" Height="37.8">
|
||||
<TableCell Name="Cell39" Border.Lines="All" Text="隔热层" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="3"/>
|
||||
<TableCell Name="Cell40" Border.Lines="All" Text="成型制品同层错缝、内外层压缝,伸缩缝留置正确,嵌缝充填或粘贴紧密、厚度偏差符合规范规定" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell41" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell70" Border.Lines="All"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row11" Height="37.8">
|
||||
<TableCell Name="Cell42" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell43" Border.Lines="All" Text="缠裹材料同层靠紧,内外层缠裹方向相反,接缝错开,厚度偏差符合规范规定" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell44" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell71" Border.Lines="All"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row12" Height="37.8">
|
||||
<TableCell Name="Cell45" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell46" Border.Lines="All" Text="散状材料和浇注材料,填充密实、均匀,厚度偏差符合规范规定" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell47" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell72" Border.Lines="All"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row13" Height="56.7">
|
||||
<TableCell Name="Cell48" Border.Lines="All" Text="防潮层" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell49" Border.Lines="All" Text="粘贴于隔热层上,无脱落和鼓包现象,表面平整,厚度符合规范规定" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell50" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell73" Border.Lines="All"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row14" Height="37.8">
|
||||
<TableCell Name="Cell51" Border.Lines="All" Text="保护层" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="3"/>
|
||||
<TableCell Name="Cell52" Border.Lines="All" Text="金属保护层应压边,搭接缝、表面平整度符合规范规定,无脱壳和凹凸不平" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell53" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell74" Border.Lines="All"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row15" Height="37.8">
|
||||
<TableCell Name="Cell54" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell55" Border.Lines="All" Text="卷材保护层应紧贴表面,无褶皱和开裂" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell56" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell75" Border.Lines="All"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row16" Height="37.8">
|
||||
<TableCell Name="Cell57" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell58" Border.Lines="All" Text="抹面保护层应平整、光滑,端部棱角整齐,无显著裂纹,表面平整度符合规范规定" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell59" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell76" Border.Lines="All"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row17" Height="85.05">
|
||||
<TableCell Name="Cell60" Border.Lines="All" Text="验收结论:" Font="宋体, 10.5pt" ColSpan="4"/>
|
||||
<TableCell Name="Cell61" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell62" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell77" Border.Lines="All"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</DataBand>
|
||||
<PageFooterBand Name="PageFooter1" Top="839.6" Width="646.38" Height="177.66" Guides="0,177.66,30.24,69.93,109.62,147.42">
|
||||
<TableObject Name="Table3" Width="646.38" Height="177.66" Border.Lines="All">
|
||||
<TableColumn Name="Column9" Width="215.46"/>
|
||||
<TableColumn Name="Column10" Width="215.46"/>
|
||||
<TableColumn Name="Column11" Width="215.46"/>
|
||||
<TableRow Name="Row18" Height="30.24">
|
||||
<TableCell Name="Cell78" Border.Lines="All" Text="建设/监理单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell79" Border.Lines="All" Text="总承包单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell80" Border.Lines="All" Text="施工单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row19" Height="39.69">
|
||||
<TableCell Name="Cell83" Text="专业工程师:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell84" Border.Lines="Left, Right" Text="专业工程师:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell85" Text="施工班组长:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row20" Height="39.69">
|
||||
<TableCell Name="Cell88" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell89" Border.Lines="Left, Right" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell90" Text="质量检验员:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row21" Height="37.8">
|
||||
<TableCell Name="Cell93" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell94" Border.Lines="Left, Right" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell95" Text="专业工程师:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row22" Height="30.24">
|
||||
<TableCell Name="Cell98" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell99" Border.Lines="Left, Right" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell100" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</PageFooterBand>
|
||||
</ReportPage>
|
||||
</Report>
|
||||
|
|
@ -1247,6 +1247,8 @@
|
|||
<Content Include="JGZL\DocumentDescription.aspx" />
|
||||
<Content Include="JGZL\EWeldRHRecord.aspx" />
|
||||
<Content Include="JGZL\FileDirectory.aspx" />
|
||||
<Content Include="JGZL\InsulationAcceptanceRecord.aspx" />
|
||||
<Content Include="JGZL\InsulationAcceptanceRecordEdit.aspx" />
|
||||
<Content Include="JGZL\PressureTestOfPipelineSystemConfirmationRecord.aspx" />
|
||||
<Content Include="JGZL\LeakTestOfPipelineSystemRecord.aspx" />
|
||||
<Content Include="JGZL\PressureTestOfPipelineSystemConfirmationRecordEdit.aspx" />
|
||||
|
|
@ -6634,6 +6636,20 @@
|
|||
<Compile Include="JGZL\FileDirectory.aspx.designer.cs">
|
||||
<DependentUpon>FileDirectory.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\InsulationAcceptanceRecord.aspx.cs">
|
||||
<DependentUpon>InsulationAcceptanceRecord.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\InsulationAcceptanceRecord.aspx.designer.cs">
|
||||
<DependentUpon>InsulationAcceptanceRecord.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\InsulationAcceptanceRecordEdit.aspx.cs">
|
||||
<DependentUpon>InsulationAcceptanceRecordEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\InsulationAcceptanceRecordEdit.aspx.designer.cs">
|
||||
<DependentUpon>InsulationAcceptanceRecordEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\PressureTestOfPipelineSystemConfirmationRecord.aspx.cs">
|
||||
<DependentUpon>PressureTestOfPipelineSystemConfirmationRecord.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,115 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InsulationAcceptanceRecord.aspx.cs" Inherits="FineUIPro.Web.JGZL.InsulationAcceptanceRecord" %>
|
||||
|
||||
<!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="InsulationAcceptanceRecordId" AllowCellEditing="true"
|
||||
EnableColumnLines="true" ClicksToEdit="1" DataIDField="InsulationAcceptanceRecordId" AllowSorting="true"
|
||||
SortField="CompileDate" 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="HeatInsulationArea" DataField="HeatInsulationArea" SortField="HeatInsulationArea"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="隔热结构" ColumnID="InsulationStructure" DataField="InsulationStructure" SortField="InsulationStructure"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="时间" ColumnID="CompileDate" DataField="CompileDate" SortField="CompileDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="180px" >
|
||||
</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,415 @@
|
|||
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 InsulationAcceptanceRecord : 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.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
|
||||
this.InitTreeMenu();//加载树
|
||||
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
#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 strSql = @"SELECT * from JGZL_InsulationAcceptanceRecord 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));
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
// 2.获取当前分页数据
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 分页排序
|
||||
#region 页索引改变事件
|
||||
/// <summary>
|
||||
/// 页索引改变事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 排序
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 分页选择下拉改变事件
|
||||
/// <summary>
|
||||
/// 分页选择下拉改变事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 查询
|
||||
///<summary>
|
||||
///查询
|
||||
///</summary>
|
||||
///<param name="sender"></param>
|
||||
///<param name="e"></param>
|
||||
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
||||
this.InitTreeMenu();
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 打印
|
||||
/// <summary>
|
||||
/// 打印
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnPrint_Click(object sender, EventArgs e)
|
||||
{
|
||||
string projectId = this.tvControlItem.SelectedNodeID;
|
||||
|
||||
if (projectId != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||
{
|
||||
string initTemplatePath = "";
|
||||
string rootPath = Server.MapPath("~/");
|
||||
BLL.Common.FastReportService.ResetData();
|
||||
|
||||
var report = BLL.InsulationAcceptanceRecordService.GetInsulationAcceptanceRecordById(this.Grid1.SelectedRowID);
|
||||
if (report != null)
|
||||
{
|
||||
DataTable dt = new DataTable();
|
||||
dt.TableName = "MainData";
|
||||
dt.Columns.Add("ProjectName");
|
||||
dt.Columns.Add("HeatInsulationArea");
|
||||
dt.Columns.Add("InsulationStructure");
|
||||
dt.Columns.Add("AcceptanceConclusion");
|
||||
dt.Columns.Add("CompileDate");
|
||||
|
||||
var newRow = dt.NewRow();
|
||||
newRow["ProjectName"] = BLL.Base_ProjectService.GetProjectByProjectId(report.ProjectId).ProjectName;
|
||||
newRow["HeatInsulationArea"] = report.HeatInsulationArea;
|
||||
newRow["InsulationStructure"] = report.InsulationStructure;
|
||||
newRow["AcceptanceConclusion"] = report.AcceptanceConclusion;
|
||||
string CompileDate = string.Format("{0:yyyy年MM月dd日}", report.CompileDate);
|
||||
newRow["CompileDate"] = CompileDate;
|
||||
dt.Rows.Add(newRow);
|
||||
BLL.Common.FastReportService.AddFastreportTable(dt);
|
||||
|
||||
var itemList = BLL.InsulationAcceptanceRecordItemService.GetItemsByInsulationAcceptanceRecordId(this.Grid1.SelectedRowID);
|
||||
if (itemList.Count > 0)
|
||||
{
|
||||
DataTable itemdt = new DataTable();
|
||||
itemdt.TableName = "Data";
|
||||
itemdt.Columns.Add("CheckCode");
|
||||
itemdt.Columns.Add("CheckItem");
|
||||
itemdt.Columns.Add("CheckResult");
|
||||
|
||||
foreach (var item in itemList)
|
||||
{
|
||||
var newRow2 = itemdt.NewRow();
|
||||
newRow2["CheckCode"] = item.CheckCode;
|
||||
newRow2["CheckItem"] = item.CheckItem;
|
||||
newRow2["CheckResult"] = item.CheckResult;
|
||||
itemdt.Rows.Add(newRow2);
|
||||
}
|
||||
BLL.Common.FastReportService.AddFastreportTable(itemdt);
|
||||
}
|
||||
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||
//keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
|
||||
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
||||
}
|
||||
initTemplatePath = "File\\Fastreport\\JGZL\\隔热工程质量验收记录.frx";
|
||||
if (File.Exists(rootPath + initTemplatePath))
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
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("InsulationAcceptanceRecordEdit.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_InsulationAcceptanceRecordMenuId, BLL.Const.BtnModify))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("InsulationAcceptanceRecordEdit.aspx?insulationAcceptanceRecordId={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_InsulationAcceptanceRecordMenuId, BLL.Const.BtnModify))
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("InsulationAcceptanceRecordEdit.aspx?insulationAcceptanceRecordId={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_InsulationAcceptanceRecordMenuId, 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.InsulationAcceptanceRecordItemService.DeleteItemByInsulationAcceptanceRecordId(rowID);
|
||||
BLL.InsulationAcceptanceRecordService.DeleteInsulationAcceptanceRecordById(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 InsulationAcceptanceRecord
|
||||
{
|
||||
|
||||
/// <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,80 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InsulationAcceptanceRecordEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.InsulationAcceptanceRecordEdit" %>
|
||||
|
||||
<!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:TextArea ID="txtHeatInsulationArea" runat="server" Label="隔热部位" LabelAlign="Right" MaxLength="500"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtInsulationStructure" runat="server" Label="隔热结构" LabelAlign="Right" MaxLength="500"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtAcceptanceConclusion" runat="server" Label="验收结论" LabelAlign="Right" MaxLength="500"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="检查项目与要求" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="InsulationAcceptanceRecordItemId" AllowCellEditing="true"
|
||||
EnableColumnLines="true" ClicksToEdit="1" DataIDField="InsulationAcceptanceRecordItemId" AllowSorting="true"
|
||||
SortField="CheckCode" SortDirection="ASC"
|
||||
EnableTextSelection="True" AutoScroll="true">
|
||||
<Columns>
|
||||
<f:RenderField HeaderText="序号" ColumnID="CheckCode" DataField="CheckCode" SortField="CheckCode"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px" Hidden="true">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtCheckCode" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="检查项目与要求" ColumnID="CheckItem" DataField="CheckItem" SortField="CheckItem"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px" ExpandUnusedSpace="true">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtCheckItem" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="检查结果" ColumnID="CheckResult" DataField="CheckResult" SortField="CheckResult"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtCheckResult" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="主键" ColumnID="InsulationAcceptanceRecordItemId" DataField="InsulationAcceptanceRecordItemId" SortField="InsulationAcceptanceRecordItemId"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="140px" Hidden="true">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,232 @@
|
|||
using BLL;
|
||||
using Newtonsoft.Json.Linq;
|
||||
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 InsulationAcceptanceRecordEdit : PageBase
|
||||
{
|
||||
#region 定义项
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
private string InsulationAcceptanceRecordId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["InsulationAcceptanceRecordId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["InsulationAcceptanceRecordId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 项目Id
|
||||
/// </summary>
|
||||
private string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ProjectId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ProjectId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 定义集合
|
||||
/// </summary>
|
||||
private static List<Model.JGZL_InsulationAcceptanceRecordItem> items = new List<Model.JGZL_InsulationAcceptanceRecordItem>();
|
||||
#endregion
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.ProjectId = Request.Params["projectId"];
|
||||
this.InsulationAcceptanceRecordId = Request.Params["insulationAcceptanceRecordId"];
|
||||
if (!string.IsNullOrEmpty(this.InsulationAcceptanceRecordId))
|
||||
{
|
||||
var report = BLL.InsulationAcceptanceRecordService.GetInsulationAcceptanceRecordById(this.InsulationAcceptanceRecordId);
|
||||
if (report != null)
|
||||
{
|
||||
this.InsulationAcceptanceRecordId = report.InsulationAcceptanceRecordId;
|
||||
this.txtHeatInsulationArea.Text = report.HeatInsulationArea;
|
||||
this.txtInsulationStructure.Text = report.InsulationStructure;
|
||||
this.txtAcceptanceConclusion.Text = report.AcceptanceConclusion;
|
||||
}
|
||||
items.Clear();
|
||||
items = BLL.InsulationAcceptanceRecordItemService.GetItemsByInsulationAcceptanceRecordId(this.InsulationAcceptanceRecordId);
|
||||
this.Grid1.DataSource = items;
|
||||
this.Grid1.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
InitItemData();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 加载默认明细
|
||||
/// </summary>
|
||||
private void InitItemData()
|
||||
{
|
||||
items.Clear();
|
||||
Model.JGZL_InsulationAcceptanceRecordItem newItem = new Model.JGZL_InsulationAcceptanceRecordItem();
|
||||
newItem.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
|
||||
newItem.CheckCode = "1";
|
||||
newItem.CheckItem = "原材料符合设计及有关规范要求,具有出厂质量证明文件及复验报告";
|
||||
newItem.CheckResult = "";
|
||||
items.Add(newItem);
|
||||
|
||||
Model.JGZL_InsulationAcceptanceRecordItem newItem2 = new Model.JGZL_InsulationAcceptanceRecordItem();
|
||||
newItem2.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
|
||||
newItem2.CheckCode = "2";
|
||||
newItem2.CheckItem = "设备、管道按规定进行了压力试验,防腐涂层完毕";
|
||||
newItem2.CheckResult = "";
|
||||
items.Add(newItem2);
|
||||
|
||||
Model.JGZL_InsulationAcceptanceRecordItem newItem3 = new Model.JGZL_InsulationAcceptanceRecordItem();
|
||||
newItem3.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
|
||||
newItem3.CheckCode = "3";
|
||||
newItem3.CheckItem = "具有工序交接记录";
|
||||
newItem3.CheckResult = "";
|
||||
items.Add(newItem3);
|
||||
|
||||
Model.JGZL_InsulationAcceptanceRecordItem newItem4 = new Model.JGZL_InsulationAcceptanceRecordItem();
|
||||
newItem4.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
|
||||
newItem4.CheckCode = "4";
|
||||
newItem4.CheckItem = "管支、托架处的隔热层结构不影响活动面的自由伸缩";
|
||||
newItem4.CheckResult = "";
|
||||
items.Add(newItem4);
|
||||
|
||||
Model.JGZL_InsulationAcceptanceRecordItem newItem5 = new Model.JGZL_InsulationAcceptanceRecordItem();
|
||||
newItem5.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
|
||||
newItem5.CheckCode = "5";
|
||||
newItem5.CheckItem = "成型制品同层错缝、内外层压缝,伸缩缝留置正确,嵌缝充填或粘贴紧密、厚度偏差符合规范规定";
|
||||
newItem5.CheckResult = "";
|
||||
items.Add(newItem5);
|
||||
|
||||
Model.JGZL_InsulationAcceptanceRecordItem newItem6 = new Model.JGZL_InsulationAcceptanceRecordItem();
|
||||
newItem6.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
|
||||
newItem6.CheckCode = "6";
|
||||
newItem6.CheckItem = "缠裹材料同层靠紧,内外层缠裹方向相反,接缝错开,厚度偏差符合规范规定";
|
||||
newItem6.CheckResult = "";
|
||||
items.Add(newItem6);
|
||||
|
||||
Model.JGZL_InsulationAcceptanceRecordItem newItem7 = new Model.JGZL_InsulationAcceptanceRecordItem();
|
||||
newItem7.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
|
||||
newItem7.CheckCode = "7";
|
||||
newItem7.CheckItem = "散状材料和浇注材料,填充密实、均匀,厚度偏差符合规范规定";
|
||||
newItem7.CheckResult = "";
|
||||
items.Add(newItem7);
|
||||
|
||||
Model.JGZL_InsulationAcceptanceRecordItem newItem8 = new Model.JGZL_InsulationAcceptanceRecordItem();
|
||||
newItem8.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
|
||||
newItem8.CheckCode = "8";
|
||||
newItem8.CheckItem = "粘贴于隔热层上,无脱落和鼓包现象,表面平整,厚度符合规范规定";
|
||||
newItem8.CheckResult = "";
|
||||
items.Add(newItem8);
|
||||
|
||||
Model.JGZL_InsulationAcceptanceRecordItem newItem9 = new Model.JGZL_InsulationAcceptanceRecordItem();
|
||||
newItem9.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
|
||||
newItem9.CheckCode = "9";
|
||||
newItem9.CheckItem = "金属保护层应压边,搭接缝、表面平整度符合规范规定,无脱壳和凹凸不平";
|
||||
newItem9.CheckResult = "";
|
||||
items.Add(newItem9);
|
||||
|
||||
Model.JGZL_InsulationAcceptanceRecordItem newItem10 = new Model.JGZL_InsulationAcceptanceRecordItem();
|
||||
newItem10.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
|
||||
newItem10.CheckCode = "10";
|
||||
newItem10.CheckItem = "卷材保护层应紧贴表面,无褶皱和开裂";
|
||||
newItem10.CheckResult = "";
|
||||
items.Add(newItem10);
|
||||
|
||||
Model.JGZL_InsulationAcceptanceRecordItem newItem11 = new Model.JGZL_InsulationAcceptanceRecordItem();
|
||||
newItem11.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
|
||||
newItem11.CheckCode = "11";
|
||||
newItem11.CheckItem = "抹面保护层应平整、光滑,端部棱角整齐,无显著裂纹,表面平整度符合规范规定";
|
||||
newItem11.CheckResult = "";
|
||||
items.Add(newItem11);
|
||||
|
||||
this.Grid1.DataSource = items;
|
||||
this.Grid1.DataBind();
|
||||
}
|
||||
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_InsulationAcceptanceRecordMenuId, Const.BtnSave))
|
||||
{
|
||||
Model.JGZL_InsulationAcceptanceRecord newReport = new Model.JGZL_InsulationAcceptanceRecord();
|
||||
newReport.HeatInsulationArea = this.txtHeatInsulationArea.Text.Trim();
|
||||
newReport.InsulationStructure = this.txtInsulationStructure.Text.Trim();
|
||||
newReport.AcceptanceConclusion = this.txtAcceptanceConclusion.Text.Trim();
|
||||
if (!string.IsNullOrEmpty(this.InsulationAcceptanceRecordId))
|
||||
{
|
||||
newReport.InsulationAcceptanceRecordId = this.InsulationAcceptanceRecordId;
|
||||
BLL.InsulationAcceptanceRecordService.UpdateInsulationAcceptanceRecord(newReport);
|
||||
}
|
||||
else
|
||||
{
|
||||
newReport.ProjectId = this.ProjectId;
|
||||
newReport.CompileMan = this.CurrUser.UserId;
|
||||
newReport.CompileDate = DateTime.Now;
|
||||
newReport.InsulationAcceptanceRecordId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecord));
|
||||
this.InsulationAcceptanceRecordId = newReport.InsulationAcceptanceRecordId;
|
||||
BLL.InsulationAcceptanceRecordService.AddInsulationAcceptanceRecord(newReport);
|
||||
}
|
||||
saveItem();
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void saveItem()
|
||||
{
|
||||
BLL.InsulationAcceptanceRecordItemService.DeleteItemByInsulationAcceptanceRecordId(this.InsulationAcceptanceRecordId);
|
||||
List<Model.JGZL_InsulationAcceptanceRecordItem> detailLists = new List<Model.JGZL_InsulationAcceptanceRecordItem>();
|
||||
JArray teamGroupData = Grid1.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
{
|
||||
JObject values = teamGroupRow.Value<JObject>("values");
|
||||
int rowIndex = teamGroupRow.Value<int>("index");
|
||||
Model.JGZL_InsulationAcceptanceRecordItem newDetail = new Model.JGZL_InsulationAcceptanceRecordItem
|
||||
{
|
||||
InsulationAcceptanceRecordItemId = values.Value<string>("InsulationAcceptanceRecordItemId"),
|
||||
InsulationAcceptanceRecordId = this.InsulationAcceptanceRecordId,
|
||||
CheckCode = values.Value<string>("CheckCode"),
|
||||
CheckItem = values.Value<string>("CheckItem"),
|
||||
CheckResult = values.Value<string>("CheckResult")
|
||||
};
|
||||
detailLists.Add(newDetail);
|
||||
}
|
||||
try
|
||||
{
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
Funs.DB.JGZL_InsulationAcceptanceRecordItem.InsertAllOnSubmit(detailLists);
|
||||
}
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
134
HJGL_DS/FineUIPro.Web/JGZL/InsulationAcceptanceRecordEdit.aspx.designer.cs
generated
Normal file
134
HJGL_DS/FineUIPro.Web/JGZL/InsulationAcceptanceRecordEdit.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,134 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
|
||||
|
||||
public partial class InsulationAcceptanceRecordEdit
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// txtHeatInsulationArea 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtHeatInsulationArea;
|
||||
|
||||
/// <summary>
|
||||
/// txtInsulationStructure 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtInsulationStructure;
|
||||
|
||||
/// <summary>
|
||||
/// txtAcceptanceConclusion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtAcceptanceConclusion;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckItem 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckItem;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckResult 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckResult;
|
||||
}
|
||||
}
|
||||
|
|
@ -37,9 +37,11 @@
|
|||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:TextBox ID="txtPersonNameS" runat="server" Label="姓名" EmptyText="输入查询条件" LabelWidth="70px" LabelAlign="Right" AutoPostBack="true" OnTextChanged="txtPersonNameS_TextChanged"></f:TextBox>
|
||||
<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="btnSave" Text="保存" ToolTip="保存" Icon="SystemSave" runat="server" OnClick="btnSave_Click"></f:Button>
|
||||
<f:Button ID="btnPrint" Text="无损检测人员登记表打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
|
|
@ -49,31 +51,51 @@
|
|||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="无损检测人员登记表" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="NDTPersonId" AllowCellEditing="true"
|
||||
EnableColumnLines="true" ClicksToEdit="1" DataIDField="NDTPersonId" AllowSorting="true"
|
||||
SortField="CompileDate" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true"
|
||||
SortField="ValidityDate" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true"
|
||||
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableTextSelection="True" AutoScroll="true" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
|
||||
EnableTextSelection="True" AutoScroll="true" OnPreDataBound="Grid1_PreDataBound">
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField HeaderText="姓名" ColumnID="PersonName" DataField="PersonName" SortField="PersonName"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtPersonName" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="证书编号" ColumnID="CertificateNumber" DataField="CertificateNumber" SortField="CertificateNumber"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtCertificateNumber" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="合格项目代号" ColumnID="QualifiedProjectCode" DataField="QualifiedProjectCode" SortField="QualifiedProjectCode"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="180px" ExpandUnusedSpace="true">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtQualifiedProjectCode" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="级别" ColumnID="Levels" DataField="Levels" SortField="Levels"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtLevels" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="有效期限" ColumnID="ValidityDate" DataField="ValidityDate" SortField="ValidityDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:DatePicker ID="txtValidityDate" runat="server"></f:DatePicker>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:LinkButtonField ColumnID="Delete3" Width="60px" EnablePostBack="false" Icon="Delete"
|
||||
HeaderTextAlign="Center" HeaderText="删除" />
|
||||
<f:RenderField HeaderText="主键" ColumnID="NDTPersonId" DataField="NDTPersonId" SortField="NDTPersonId"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="140px" Hidden="true">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<%--<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
</Listeners>
|
||||
</Listeners>--%>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
|
|
@ -92,30 +114,30 @@
|
|||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="无损检测人员登记表" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
<%--<f:Window ID="Window1" Title="无损检测人员登记表" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||
Width="1100px" Height="620px">
|
||||
</f:Window>
|
||||
</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: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>
|
||||
</f:Menu>--%>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
<%--<script type="text/javascript">
|
||||
var menuID = '<%= Menu1.ClientID %>';
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
</script>--%>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ using System.Web;
|
|||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.IO;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
|
|
@ -93,19 +94,19 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
//string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1");
|
||||
string projectId = this.tvControlItem.SelectedNodeID;
|
||||
string strSql = @"SELECT * from JGZL_NDTPerson where 1=1";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
if (!string.IsNullOrEmpty(projectId))
|
||||
{
|
||||
strSql += " AND ProjectId = @ProjectId";
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
|
||||
listStr.Add(new SqlParameter("@ProjectId", projectId));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtPersonNameS.Text))
|
||||
{
|
||||
strSql += " AND PersonName like @PersonName";
|
||||
listStr.Add(new SqlParameter("@PersonName", "%" + this.txtPersonNameS.Text + "%"));
|
||||
}
|
||||
//else
|
||||
//{
|
||||
// strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 ";
|
||||
// listStr.Add(new SqlParameter("@ProjectId", projectIds));
|
||||
//}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
// 2.获取当前分页数据
|
||||
|
|
@ -114,6 +115,38 @@ namespace FineUIPro.Web.JGZL
|
|||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
|
||||
#region 没有数据默认增加一行空白行
|
||||
if (tb.Rows.Count == 0)
|
||||
{
|
||||
JArray teamGroupData = Grid1.GetMergedData();
|
||||
List<JObject> list = new List<JObject>();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
{
|
||||
JObject values = teamGroupRow.Value<JObject>("values");
|
||||
list.Add(values);
|
||||
}
|
||||
|
||||
JObject defaultObj = new JObject
|
||||
{
|
||||
{ "NDTPersonId", Guid.NewGuid() },
|
||||
{ "ProjectId", projectId},
|
||||
{ "PersonName", "" },
|
||||
{ "CertificateNumber", "" },
|
||||
{ "QualifiedProjectCode", "" },
|
||||
{ "Levels", "" },
|
||||
{ "ValidityDate", "" },
|
||||
{
|
||||
"Delete3",
|
||||
String.Format("<a href=\"javascript:;\" onclick=\"{0}\"><img src=\"{1}\"/></a>",
|
||||
GetDeleteScriptGrid1(), IconHelper.GetResolvedIconUrl(Icon.Delete))
|
||||
}
|
||||
};
|
||||
list.Add(defaultObj);
|
||||
Grid1.DataSource = list;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
@ -174,9 +207,9 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||
protected void txtPersonNameS_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
@ -195,12 +228,20 @@ namespace FineUIPro.Web.JGZL
|
|||
string rootPath = Server.MapPath("~/");
|
||||
BLL.Common.FastReportService.ResetData();
|
||||
|
||||
string strSql = @"SELECT * from JGZL_NDTPerson where ProjectId = @ProjectId order by CompileDate desc";
|
||||
string strSql = @"SELECT * from JGZL_NDTPerson where ProjectId = @ProjectId";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", projectId));
|
||||
if (!string.IsNullOrEmpty(this.txtPersonNameS.Text))
|
||||
{
|
||||
strSql += " and PersonName like @personName";
|
||||
listStr.Add(new SqlParameter("@personName", "%" + this.txtPersonNameS.Text + "%"));
|
||||
}
|
||||
strSql += " order by ValidityDate desc";
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
if (tb.Rows.Count > 0)
|
||||
{
|
||||
DataTable dt = new DataTable();
|
||||
dt.TableName = "Data";
|
||||
dt.Columns.Add("Num");
|
||||
|
|
@ -238,6 +279,12 @@ namespace FineUIPro.Web.JGZL
|
|||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("没有可打印的数据!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
|
|
@ -255,7 +302,36 @@ namespace FineUIPro.Web.JGZL
|
|||
{
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("NDTPersonEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
JArray teamGroupData = Grid1.GetMergedData();
|
||||
List<JObject> list = new List<JObject>();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
{
|
||||
JObject values = teamGroupRow.Value<JObject>("values");
|
||||
list.Add(values);
|
||||
}
|
||||
|
||||
JObject defaultObj = new JObject
|
||||
{
|
||||
{ "NDTPersonId", Guid.NewGuid() },
|
||||
{ "ProjectId", this.tvControlItem.SelectedNodeID },
|
||||
{ "PersonName", "" },
|
||||
{ "CertificateNumber", "" },
|
||||
{ "QualifiedProjectCode", "" },
|
||||
{ "Levels", "" },
|
||||
{ "ValidityDate", "" },
|
||||
{
|
||||
"Delete3",
|
||||
String.Format("<a href=\"javascript:;\" onclick=\"{0}\"><img src=\"{1}\"/></a>",
|
||||
GetDeleteScriptGrid1(), IconHelper.GetResolvedIconUrl(Icon.Delete))
|
||||
}
|
||||
};
|
||||
list.Add(defaultObj);
|
||||
Grid1.DataSource = list;
|
||||
Grid1.DataBind();
|
||||
|
||||
//PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("NDTPersonEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -263,127 +339,146 @@ namespace FineUIPro.Web.JGZL
|
|||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void Grid1_PreDataBound(object sender, EventArgs e)
|
||||
{
|
||||
// 设置LinkButtonField的点击客户端事件
|
||||
LinkButtonField deleteField = Grid1.FindColumn("Delete3") as LinkButtonField;
|
||||
deleteField.OnClientClick = GetDeleteScriptGrid1();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除提示
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private string GetDeleteScriptGrid1()
|
||||
{
|
||||
return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question,
|
||||
Grid1.GetDeleteSelectedRowsReference(), String.Empty);
|
||||
}
|
||||
|
||||
|
||||
/// <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_NDTPersonMenuId, BLL.Const.BtnModify))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("NDTPersonEdit.aspx?NDTPersonId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
//protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||
//{
|
||||
// if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_NDTPersonMenuId, BLL.Const.BtnModify))
|
||||
// {
|
||||
// if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
// {
|
||||
// if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||
// {
|
||||
// PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("NDTPersonEdit.aspx?NDTPersonId={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_NDTPersonMenuId, BLL.Const.BtnModify))
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("NDTPersonEdit.aspx?NDTPersonId={0}", Grid1.SelectedRowID, "维护 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
//protected void btnMenuEdit_Click(object sender, EventArgs e)
|
||||
//{
|
||||
// if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_NDTPersonMenuId, BLL.Const.BtnModify))
|
||||
// {
|
||||
// if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
// {
|
||||
// Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
// }
|
||||
// PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("NDTPersonEdit.aspx?NDTPersonId={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_NDTPersonMenuId, Const.BtnDelete))
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
//protected void btnMenuDelete_Click(object sender, EventArgs e)
|
||||
//{
|
||||
// if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_NDTPersonMenuId, 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.NDTPersonService.DeleteNDTPersonByNDTPersonId(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);
|
||||
}
|
||||
}
|
||||
// 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.NDTPersonService.DeleteNDTPersonByNDTPersonId(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;
|
||||
//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;
|
||||
}
|
||||
}
|
||||
// if (string.IsNullOrEmpty(content))
|
||||
// {
|
||||
// return true;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// if (isShow)
|
||||
// {
|
||||
// Alert.ShowInTop(content, MessageBoxIcon.Error);
|
||||
// }
|
||||
// return false;
|
||||
// }
|
||||
//}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
|
|
@ -393,10 +488,65 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
//protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
//{
|
||||
// this.InitTreeMenu();//加载树
|
||||
// this.BindGrid();
|
||||
//}
|
||||
#endregion
|
||||
|
||||
#region 保存
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.InitTreeMenu();//加载树
|
||||
this.BindGrid();
|
||||
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId,
|
||||
Const.JGZL_NDTPersonMenuId, Const.BtnSave))
|
||||
{
|
||||
saveItem();
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void saveItem()
|
||||
{
|
||||
BLL.NDTPersonService.DeleteNDTPersonByProjectId(this.tvControlItem.SelectedNodeID);
|
||||
List<Model.JGZL_NDTPerson> detailLists = new List<Model.JGZL_NDTPerson>();
|
||||
JArray teamGroupData = Grid1.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
{
|
||||
JObject values = teamGroupRow.Value<JObject>("values");
|
||||
int rowIndex = teamGroupRow.Value<int>("index");
|
||||
Model.JGZL_NDTPerson newDetail = new Model.JGZL_NDTPerson
|
||||
{
|
||||
NDTPersonId = values.Value<string>("NDTPersonId"),
|
||||
ProjectId = this.tvControlItem.SelectedNodeID,
|
||||
PersonName = values.Value<string>("PersonName"),
|
||||
CertificateNumber = values.Value<string>("CertificateNumber"),
|
||||
QualifiedProjectCode = values.Value<string>("QualifiedProjectCode"),
|
||||
Levels = values.Value<string>("Levels"),
|
||||
ValidityDate = Funs.GetNewDateTime(values.Value<string>("ValidityDate")),
|
||||
CompileMan = this.CurrUser.UserId,
|
||||
CompileDate = DateTime.Now
|
||||
};
|
||||
detailLists.Add(newDetail);
|
||||
}
|
||||
try
|
||||
{
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
Funs.DB.JGZL_NDTPerson.InsertAllOnSubmit(detailLists);
|
||||
}
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,6 +95,15 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// txtPersonNameS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPersonNameS;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -113,6 +122,15 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAdd;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnPrint 控件。
|
||||
/// </summary>
|
||||
|
|
@ -131,6 +149,51 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// txtPersonName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPersonName;
|
||||
|
||||
/// <summary>
|
||||
/// txtCertificateNumber 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCertificateNumber;
|
||||
|
||||
/// <summary>
|
||||
/// txtQualifiedProjectCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtQualifiedProjectCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtLevels 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtLevels;
|
||||
|
||||
/// <summary>
|
||||
/// txtValidityDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtValidityDate;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -158,15 +221,6 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// WindowPrint 控件。
|
||||
/// </summary>
|
||||
|
|
@ -175,32 +229,5 @@ namespace FineUIPro.Web.JGZL
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -416,6 +416,12 @@ namespace Model
|
|||
partial void InsertJGZL_IndustrialPipelineInstallationSummary(JGZL_IndustrialPipelineInstallationSummary instance);
|
||||
partial void UpdateJGZL_IndustrialPipelineInstallationSummary(JGZL_IndustrialPipelineInstallationSummary instance);
|
||||
partial void DeleteJGZL_IndustrialPipelineInstallationSummary(JGZL_IndustrialPipelineInstallationSummary instance);
|
||||
partial void InsertJGZL_InsulationAcceptanceRecord(JGZL_InsulationAcceptanceRecord instance);
|
||||
partial void UpdateJGZL_InsulationAcceptanceRecord(JGZL_InsulationAcceptanceRecord instance);
|
||||
partial void DeleteJGZL_InsulationAcceptanceRecord(JGZL_InsulationAcceptanceRecord instance);
|
||||
partial void InsertJGZL_InsulationAcceptanceRecordItem(JGZL_InsulationAcceptanceRecordItem instance);
|
||||
partial void UpdateJGZL_InsulationAcceptanceRecordItem(JGZL_InsulationAcceptanceRecordItem instance);
|
||||
partial void DeleteJGZL_InsulationAcceptanceRecordItem(JGZL_InsulationAcceptanceRecordItem instance);
|
||||
partial void InsertJGZL_LeakTestOfPipelineSystemRecord(JGZL_LeakTestOfPipelineSystemRecord instance);
|
||||
partial void UpdateJGZL_LeakTestOfPipelineSystemRecord(JGZL_LeakTestOfPipelineSystemRecord instance);
|
||||
partial void DeleteJGZL_LeakTestOfPipelineSystemRecord(JGZL_LeakTestOfPipelineSystemRecord instance);
|
||||
|
|
@ -1958,6 +1964,22 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<JGZL_InsulationAcceptanceRecord> JGZL_InsulationAcceptanceRecord
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<JGZL_InsulationAcceptanceRecord>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<JGZL_InsulationAcceptanceRecordItem> JGZL_InsulationAcceptanceRecordItem
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<JGZL_InsulationAcceptanceRecordItem>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<JGZL_LeakTestOfPipelineSystemRecord> JGZL_LeakTestOfPipelineSystemRecord
|
||||
{
|
||||
get
|
||||
|
|
@ -4749,6 +4771,8 @@ namespace Model
|
|||
|
||||
private EntitySet<JGZL_IndustrialPipelineInstallationSummary> _JGZL_IndustrialPipelineInstallationSummary;
|
||||
|
||||
private EntitySet<JGZL_InsulationAcceptanceRecord> _JGZL_InsulationAcceptanceRecord;
|
||||
|
||||
private EntitySet<JGZL_LeakTestOfPipelineSystemRecord> _JGZL_LeakTestOfPipelineSystemRecord;
|
||||
|
||||
private EntitySet<JGZL_MaterialIdentificationInspectionRecord> _JGZL_MaterialIdentificationInspectionRecord;
|
||||
|
|
@ -4920,6 +4944,7 @@ namespace Model
|
|||
this._JGZL_HandoverCertificate = new EntitySet<JGZL_HandoverCertificate>(new Action<JGZL_HandoverCertificate>(this.attach_JGZL_HandoverCertificate), new Action<JGZL_HandoverCertificate>(this.detach_JGZL_HandoverCertificate));
|
||||
this._JGZL_IndustrialPipelineInstallationQualityCertificate = new EntitySet<JGZL_IndustrialPipelineInstallationQualityCertificate>(new Action<JGZL_IndustrialPipelineInstallationQualityCertificate>(this.attach_JGZL_IndustrialPipelineInstallationQualityCertificate), new Action<JGZL_IndustrialPipelineInstallationQualityCertificate>(this.detach_JGZL_IndustrialPipelineInstallationQualityCertificate));
|
||||
this._JGZL_IndustrialPipelineInstallationSummary = new EntitySet<JGZL_IndustrialPipelineInstallationSummary>(new Action<JGZL_IndustrialPipelineInstallationSummary>(this.attach_JGZL_IndustrialPipelineInstallationSummary), new Action<JGZL_IndustrialPipelineInstallationSummary>(this.detach_JGZL_IndustrialPipelineInstallationSummary));
|
||||
this._JGZL_InsulationAcceptanceRecord = new EntitySet<JGZL_InsulationAcceptanceRecord>(new Action<JGZL_InsulationAcceptanceRecord>(this.attach_JGZL_InsulationAcceptanceRecord), new Action<JGZL_InsulationAcceptanceRecord>(this.detach_JGZL_InsulationAcceptanceRecord));
|
||||
this._JGZL_LeakTestOfPipelineSystemRecord = new EntitySet<JGZL_LeakTestOfPipelineSystemRecord>(new Action<JGZL_LeakTestOfPipelineSystemRecord>(this.attach_JGZL_LeakTestOfPipelineSystemRecord), new Action<JGZL_LeakTestOfPipelineSystemRecord>(this.detach_JGZL_LeakTestOfPipelineSystemRecord));
|
||||
this._JGZL_MaterialIdentificationInspectionRecord = new EntitySet<JGZL_MaterialIdentificationInspectionRecord>(new Action<JGZL_MaterialIdentificationInspectionRecord>(this.attach_JGZL_MaterialIdentificationInspectionRecord), new Action<JGZL_MaterialIdentificationInspectionRecord>(this.detach_JGZL_MaterialIdentificationInspectionRecord));
|
||||
this._JGZL_MaterialQualityCertificateDoc = new EntitySet<JGZL_MaterialQualityCertificateDoc>(new Action<JGZL_MaterialQualityCertificateDoc>(this.attach_JGZL_MaterialQualityCertificateDoc), new Action<JGZL_MaterialQualityCertificateDoc>(this.detach_JGZL_MaterialQualityCertificateDoc));
|
||||
|
|
@ -6173,6 +6198,19 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_InsulationAcceptanceRecord_Base_Project", Storage="_JGZL_InsulationAcceptanceRecord", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<JGZL_InsulationAcceptanceRecord> JGZL_InsulationAcceptanceRecord
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._JGZL_InsulationAcceptanceRecord;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._JGZL_InsulationAcceptanceRecord.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_LeakTestOfPipelineSystemRecord_Base_Project", Storage="_JGZL_LeakTestOfPipelineSystemRecord", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<JGZL_LeakTestOfPipelineSystemRecord> JGZL_LeakTestOfPipelineSystemRecord
|
||||
{
|
||||
|
|
@ -7208,6 +7246,18 @@ namespace Model
|
|||
entity.Base_Project = null;
|
||||
}
|
||||
|
||||
private void attach_JGZL_InsulationAcceptanceRecord(JGZL_InsulationAcceptanceRecord entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Project = this;
|
||||
}
|
||||
|
||||
private void detach_JGZL_InsulationAcceptanceRecord(JGZL_InsulationAcceptanceRecord entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Project = null;
|
||||
}
|
||||
|
||||
private void attach_JGZL_LeakTestOfPipelineSystemRecord(JGZL_LeakTestOfPipelineSystemRecord entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
|
|
@ -87090,6 +87140,525 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_InsulationAcceptanceRecord")]
|
||||
public partial class JGZL_InsulationAcceptanceRecord : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _InsulationAcceptanceRecordId;
|
||||
|
||||
private string _ProjectId;
|
||||
|
||||
private string _HeatInsulationArea;
|
||||
|
||||
private string _InsulationStructure;
|
||||
|
||||
private string _AcceptanceConclusion;
|
||||
|
||||
private string _CompileMan;
|
||||
|
||||
private System.Nullable<System.DateTime> _CompileDate;
|
||||
|
||||
private EntityRef<Base_Project> _Base_Project;
|
||||
|
||||
private EntityRef<Sys_User> _Sys_User;
|
||||
|
||||
private EntityRef<JGZL_InsulationAcceptanceRecordItem> _JGZL_InsulationAcceptanceRecordItem;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnInsulationAcceptanceRecordIdChanging(string value);
|
||||
partial void OnInsulationAcceptanceRecordIdChanged();
|
||||
partial void OnProjectIdChanging(string value);
|
||||
partial void OnProjectIdChanged();
|
||||
partial void OnHeatInsulationAreaChanging(string value);
|
||||
partial void OnHeatInsulationAreaChanged();
|
||||
partial void OnInsulationStructureChanging(string value);
|
||||
partial void OnInsulationStructureChanged();
|
||||
partial void OnAcceptanceConclusionChanging(string value);
|
||||
partial void OnAcceptanceConclusionChanged();
|
||||
partial void OnCompileManChanging(string value);
|
||||
partial void OnCompileManChanged();
|
||||
partial void OnCompileDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnCompileDateChanged();
|
||||
#endregion
|
||||
|
||||
public JGZL_InsulationAcceptanceRecord()
|
||||
{
|
||||
this._Base_Project = default(EntityRef<Base_Project>);
|
||||
this._Sys_User = default(EntityRef<Sys_User>);
|
||||
this._JGZL_InsulationAcceptanceRecordItem = default(EntityRef<JGZL_InsulationAcceptanceRecordItem>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InsulationAcceptanceRecordId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||
public string InsulationAcceptanceRecordId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._InsulationAcceptanceRecordId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._InsulationAcceptanceRecordId != value))
|
||||
{
|
||||
this.OnInsulationAcceptanceRecordIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._InsulationAcceptanceRecordId = value;
|
||||
this.SendPropertyChanged("InsulationAcceptanceRecordId");
|
||||
this.OnInsulationAcceptanceRecordIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[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="_HeatInsulationArea", DbType="NVarChar(500)")]
|
||||
public string HeatInsulationArea
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._HeatInsulationArea;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._HeatInsulationArea != value))
|
||||
{
|
||||
this.OnHeatInsulationAreaChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._HeatInsulationArea = value;
|
||||
this.SendPropertyChanged("HeatInsulationArea");
|
||||
this.OnHeatInsulationAreaChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InsulationStructure", DbType="NVarChar(500)")]
|
||||
public string InsulationStructure
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._InsulationStructure;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._InsulationStructure != value))
|
||||
{
|
||||
this.OnInsulationStructureChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._InsulationStructure = value;
|
||||
this.SendPropertyChanged("InsulationStructure");
|
||||
this.OnInsulationStructureChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AcceptanceConclusion", DbType="NVarChar(500)")]
|
||||
public string AcceptanceConclusion
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._AcceptanceConclusion;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._AcceptanceConclusion != value))
|
||||
{
|
||||
this.OnAcceptanceConclusionChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._AcceptanceConclusion = value;
|
||||
this.SendPropertyChanged("AcceptanceConclusion");
|
||||
this.OnAcceptanceConclusionChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[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_InsulationAcceptanceRecord_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_InsulationAcceptanceRecord.Remove(this);
|
||||
}
|
||||
this._Base_Project.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.JGZL_InsulationAcceptanceRecord.Add(this);
|
||||
this._ProjectId = value.ProjectId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._ProjectId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Base_Project");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_InsulationAcceptanceRecord_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_InsulationAcceptanceRecord.Remove(this);
|
||||
}
|
||||
this._Sys_User.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.JGZL_InsulationAcceptanceRecord.Add(this);
|
||||
this._CompileMan = value.UserId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._CompileMan = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Sys_User");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_InsulationAcceptanceRecordItem_JGZL_InsulationAcceptanceRecord", Storage="_JGZL_InsulationAcceptanceRecordItem", ThisKey="InsulationAcceptanceRecordId", OtherKey="InsulationAcceptanceRecordItemId", IsUnique=true, IsForeignKey=false, DeleteRule="NO ACTION")]
|
||||
public JGZL_InsulationAcceptanceRecordItem JGZL_InsulationAcceptanceRecordItem
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._JGZL_InsulationAcceptanceRecordItem.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
JGZL_InsulationAcceptanceRecordItem previousValue = this._JGZL_InsulationAcceptanceRecordItem.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._JGZL_InsulationAcceptanceRecordItem.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._JGZL_InsulationAcceptanceRecordItem.Entity = null;
|
||||
previousValue.JGZL_InsulationAcceptanceRecord = null;
|
||||
}
|
||||
this._JGZL_InsulationAcceptanceRecordItem.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.JGZL_InsulationAcceptanceRecord = this;
|
||||
}
|
||||
this.SendPropertyChanged("JGZL_InsulationAcceptanceRecordItem");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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_InsulationAcceptanceRecordItem")]
|
||||
public partial class JGZL_InsulationAcceptanceRecordItem : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _InsulationAcceptanceRecordItemId;
|
||||
|
||||
private string _InsulationAcceptanceRecordId;
|
||||
|
||||
private string _CheckCode;
|
||||
|
||||
private string _CheckItem;
|
||||
|
||||
private string _CheckResult;
|
||||
|
||||
private EntityRef<JGZL_InsulationAcceptanceRecord> _JGZL_InsulationAcceptanceRecord;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnInsulationAcceptanceRecordItemIdChanging(string value);
|
||||
partial void OnInsulationAcceptanceRecordItemIdChanged();
|
||||
partial void OnInsulationAcceptanceRecordIdChanging(string value);
|
||||
partial void OnInsulationAcceptanceRecordIdChanged();
|
||||
partial void OnCheckCodeChanging(string value);
|
||||
partial void OnCheckCodeChanged();
|
||||
partial void OnCheckItemChanging(string value);
|
||||
partial void OnCheckItemChanged();
|
||||
partial void OnCheckResultChanging(string value);
|
||||
partial void OnCheckResultChanged();
|
||||
#endregion
|
||||
|
||||
public JGZL_InsulationAcceptanceRecordItem()
|
||||
{
|
||||
this._JGZL_InsulationAcceptanceRecord = default(EntityRef<JGZL_InsulationAcceptanceRecord>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InsulationAcceptanceRecordItemId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||
public string InsulationAcceptanceRecordItemId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._InsulationAcceptanceRecordItemId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._InsulationAcceptanceRecordItemId != value))
|
||||
{
|
||||
if (this._JGZL_InsulationAcceptanceRecord.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnInsulationAcceptanceRecordItemIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._InsulationAcceptanceRecordItemId = value;
|
||||
this.SendPropertyChanged("InsulationAcceptanceRecordItemId");
|
||||
this.OnInsulationAcceptanceRecordItemIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InsulationAcceptanceRecordId", DbType="NVarChar(50)")]
|
||||
public string InsulationAcceptanceRecordId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._InsulationAcceptanceRecordId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._InsulationAcceptanceRecordId != value))
|
||||
{
|
||||
this.OnInsulationAcceptanceRecordIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._InsulationAcceptanceRecordId = value;
|
||||
this.SendPropertyChanged("InsulationAcceptanceRecordId");
|
||||
this.OnInsulationAcceptanceRecordIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckCode", DbType="NVarChar(50)")]
|
||||
public string CheckCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._CheckCode;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._CheckCode != value))
|
||||
{
|
||||
this.OnCheckCodeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._CheckCode = value;
|
||||
this.SendPropertyChanged("CheckCode");
|
||||
this.OnCheckCodeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckItem", DbType="NVarChar(200)")]
|
||||
public string CheckItem
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._CheckItem;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._CheckItem != value))
|
||||
{
|
||||
this.OnCheckItemChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._CheckItem = value;
|
||||
this.SendPropertyChanged("CheckItem");
|
||||
this.OnCheckItemChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckResult", DbType="NVarChar(50)")]
|
||||
public string CheckResult
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._CheckResult;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._CheckResult != value))
|
||||
{
|
||||
this.OnCheckResultChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._CheckResult = value;
|
||||
this.SendPropertyChanged("CheckResult");
|
||||
this.OnCheckResultChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_InsulationAcceptanceRecordItem_JGZL_InsulationAcceptanceRecord", Storage="_JGZL_InsulationAcceptanceRecord", ThisKey="InsulationAcceptanceRecordItemId", OtherKey="InsulationAcceptanceRecordId", IsForeignKey=true)]
|
||||
public JGZL_InsulationAcceptanceRecord JGZL_InsulationAcceptanceRecord
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._JGZL_InsulationAcceptanceRecord.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
JGZL_InsulationAcceptanceRecord previousValue = this._JGZL_InsulationAcceptanceRecord.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._JGZL_InsulationAcceptanceRecord.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._JGZL_InsulationAcceptanceRecord.Entity = null;
|
||||
previousValue.JGZL_InsulationAcceptanceRecordItem = null;
|
||||
}
|
||||
this._JGZL_InsulationAcceptanceRecord.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.JGZL_InsulationAcceptanceRecordItem = this;
|
||||
this._InsulationAcceptanceRecordItemId = value.InsulationAcceptanceRecordId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._InsulationAcceptanceRecordItemId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("JGZL_InsulationAcceptanceRecord");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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_LeakTestOfPipelineSystemRecord")]
|
||||
public partial class JGZL_LeakTestOfPipelineSystemRecord : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
|
@ -118178,6 +118747,8 @@ namespace Model
|
|||
|
||||
private EntitySet<JGZL_IndustrialPipelineInstallationSummary> _JGZL_IndustrialPipelineInstallationSummary;
|
||||
|
||||
private EntitySet<JGZL_InsulationAcceptanceRecord> _JGZL_InsulationAcceptanceRecord;
|
||||
|
||||
private EntitySet<JGZL_LeakTestOfPipelineSystemRecord> _JGZL_LeakTestOfPipelineSystemRecord;
|
||||
|
||||
private EntitySet<JGZL_MaterialIdentificationInspectionRecord> _JGZL_MaterialIdentificationInspectionRecord;
|
||||
|
|
@ -118306,6 +118877,7 @@ namespace Model
|
|||
this._JGZL_HandoverCertificate = new EntitySet<JGZL_HandoverCertificate>(new Action<JGZL_HandoverCertificate>(this.attach_JGZL_HandoverCertificate), new Action<JGZL_HandoverCertificate>(this.detach_JGZL_HandoverCertificate));
|
||||
this._JGZL_IndustrialPipelineInstallationQualityCertificate = new EntitySet<JGZL_IndustrialPipelineInstallationQualityCertificate>(new Action<JGZL_IndustrialPipelineInstallationQualityCertificate>(this.attach_JGZL_IndustrialPipelineInstallationQualityCertificate), new Action<JGZL_IndustrialPipelineInstallationQualityCertificate>(this.detach_JGZL_IndustrialPipelineInstallationQualityCertificate));
|
||||
this._JGZL_IndustrialPipelineInstallationSummary = new EntitySet<JGZL_IndustrialPipelineInstallationSummary>(new Action<JGZL_IndustrialPipelineInstallationSummary>(this.attach_JGZL_IndustrialPipelineInstallationSummary), new Action<JGZL_IndustrialPipelineInstallationSummary>(this.detach_JGZL_IndustrialPipelineInstallationSummary));
|
||||
this._JGZL_InsulationAcceptanceRecord = new EntitySet<JGZL_InsulationAcceptanceRecord>(new Action<JGZL_InsulationAcceptanceRecord>(this.attach_JGZL_InsulationAcceptanceRecord), new Action<JGZL_InsulationAcceptanceRecord>(this.detach_JGZL_InsulationAcceptanceRecord));
|
||||
this._JGZL_LeakTestOfPipelineSystemRecord = new EntitySet<JGZL_LeakTestOfPipelineSystemRecord>(new Action<JGZL_LeakTestOfPipelineSystemRecord>(this.attach_JGZL_LeakTestOfPipelineSystemRecord), new Action<JGZL_LeakTestOfPipelineSystemRecord>(this.detach_JGZL_LeakTestOfPipelineSystemRecord));
|
||||
this._JGZL_MaterialIdentificationInspectionRecord = new EntitySet<JGZL_MaterialIdentificationInspectionRecord>(new Action<JGZL_MaterialIdentificationInspectionRecord>(this.attach_JGZL_MaterialIdentificationInspectionRecord), new Action<JGZL_MaterialIdentificationInspectionRecord>(this.detach_JGZL_MaterialIdentificationInspectionRecord));
|
||||
this._JGZL_MaterialQualityCertificateDoc = new EntitySet<JGZL_MaterialQualityCertificateDoc>(new Action<JGZL_MaterialQualityCertificateDoc>(this.attach_JGZL_MaterialQualityCertificateDoc), new Action<JGZL_MaterialQualityCertificateDoc>(this.detach_JGZL_MaterialQualityCertificateDoc));
|
||||
|
|
@ -119130,6 +119702,19 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_InsulationAcceptanceRecord_Sys_User", Storage="_JGZL_InsulationAcceptanceRecord", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
|
||||
public EntitySet<JGZL_InsulationAcceptanceRecord> JGZL_InsulationAcceptanceRecord
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._JGZL_InsulationAcceptanceRecord;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._JGZL_InsulationAcceptanceRecord.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_LeakTestOfPipelineSystemRecord_Sys_User", Storage="_JGZL_LeakTestOfPipelineSystemRecord", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
|
||||
public EntitySet<JGZL_LeakTestOfPipelineSystemRecord> JGZL_LeakTestOfPipelineSystemRecord
|
||||
{
|
||||
|
|
@ -119874,6 +120459,18 @@ namespace Model
|
|||
entity.Sys_User = null;
|
||||
}
|
||||
|
||||
private void attach_JGZL_InsulationAcceptanceRecord(JGZL_InsulationAcceptanceRecord entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Sys_User = this;
|
||||
}
|
||||
|
||||
private void detach_JGZL_InsulationAcceptanceRecord(JGZL_InsulationAcceptanceRecord entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Sys_User = null;
|
||||
}
|
||||
|
||||
private void attach_JGZL_LeakTestOfPipelineSystemRecord(JGZL_LeakTestOfPipelineSystemRecord entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
|
|
|
|||
Loading…
Reference in New Issue