Compare commits
31 Commits
86f7704bab
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
| e3f033a8cc | |||
| b2ea7df94d | |||
| db7cd6870c | |||
| f4adc645ac | |||
| 7c81259fbb | |||
| 466941bdaa | |||
| a5660eda30 | |||
| 9189e998ae | |||
| d5afc0d5c0 | |||
| 18173e2233 | |||
| 47c5ca0ce4 | |||
| e69276ce48 | |||
| dcc9d3a345 | |||
| 498b31cacd | |||
| c2c229df63 | |||
| 159acc1d33 | |||
| a9f54cdeb7 | |||
| 13b8bbf2fe | |||
| 75123fa77a | |||
| a9bf304ad9 | |||
| 156883656d | |||
| 2b3539cd85 | |||
| 2a50577412 | |||
| 5a8271ef13 | |||
| b4874d3399 | |||
| 7c78c33c47 | |||
| b2f446f93d | |||
| b13cbb7ae0 | |||
| 30c7a40be4 | |||
| 7cd3a3102e | |||
| 2f5a36e444 |
@@ -0,0 +1,74 @@
|
||||
|
||||
CREATE TABLE [dbo].[JGZL_LeakageVacuum](
|
||||
[LeakageVacuumId] [nvarchar](50) NOT NULL,
|
||||
[ProjectId] [nvarchar](50) NOT NULL,
|
||||
[SystemName] [nvarchar](50) NULL,
|
||||
[SystemCode] [nvarchar](50) NULL,
|
||||
[CheckItemResult1] [nvarchar](50) NULL,
|
||||
[CheckItemResult2] [nvarchar](50) NULL,
|
||||
[CheckItemResult3] [nvarchar](50) NULL,
|
||||
[CheckItemResult4] [nvarchar](50) NULL,
|
||||
[CheckItemResult5] [nvarchar](50) NULL,
|
||||
[Conclusion] [nvarchar](500) NULL,
|
||||
CONSTRAINT [PK_JGZL_LeakageVacuum] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[LeakageVacuumId] 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_LeakageVacuum] WITH CHECK ADD CONSTRAINT [FK_JGZL_LeakageVacuum_Base_Project] FOREIGN KEY([ProjectId])
|
||||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[JGZL_LeakageVacuum] CHECK CONSTRAINT [FK_JGZL_LeakageVacuum_Base_Project]
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakageVacuum', @level2type=N'COLUMN',@level2name=N'LeakageVacuumId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakageVacuum', @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_LeakageVacuum', @level2type=N'COLUMN',@level2name=N'SystemName'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'系统编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakageVacuum', @level2type=N'COLUMN',@level2name=N'SystemCode'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试验结论' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakageVacuum', @level2type=N'COLUMN',@level2name=N'Conclusion'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管道系统泄漏性/真空试验条件确认与试验记录' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakageVacuum'
|
||||
GO
|
||||
|
||||
|
||||
CREATE TABLE [dbo].[JGZL_LeakageVacuumTestRecord](
|
||||
[LeakageVacuumTestRecordId] [nvarchar](50) NOT NULL,
|
||||
[LeakageVacuumId] [nvarchar](50) NULL,
|
||||
[PipelineId] [nvarchar](50) NULL,
|
||||
[PipelineCode] [nvarchar](50) NULL,
|
||||
[DesignPressure] [nvarchar](50) NULL,
|
||||
[DesignTem] [nvarchar](50) NULL,
|
||||
[TestAmbientTemp] [nvarchar](50) NULL,
|
||||
[TestMediumTemp] [nvarchar](50) NULL,
|
||||
[LeakPressure] [nvarchar](50) NULL,
|
||||
[LeakMedium] [nvarchar](50) NULL,
|
||||
[VacuumPressure] [nvarchar](50) NULL,
|
||||
[VacuumMedium] [nvarchar](50) NULL,
|
||||
CONSTRAINT [PK_JGZL_LeakageVacuumTestRecord] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[LeakageVacuumTestRecordId] 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_LeakageVacuumTestRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_LeakageVacuumTestRecord_JGZL_LeakageVacuum] FOREIGN KEY([LeakageVacuumId])
|
||||
REFERENCES [dbo].[JGZL_LeakageVacuum] ([LeakageVacuumId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[JGZL_LeakageVacuumTestRecord] CHECK CONSTRAINT [FK_JGZL_LeakageVacuumTestRecord_JGZL_LeakageVacuum]
|
||||
GO
|
||||
|
||||
update Sys_Menu set MenuName='管道系统泄漏性/真空试验条件确认与试验记录',Url='JGZL/LeakageVacuum.aspx' where MenuId='FF56CCBE-0B8C-4AF6-832E-EC6ED1584C94'
|
||||
go
|
||||
@@ -0,0 +1,7 @@
|
||||
|
||||
update Sys_Menu set MenuName='工业管道安装质量证明书(安装2025版)',SortIndex=50 where MenuId='F5833B38-65DF-4236-A676-EE75F9487061'
|
||||
update Sys_Menu set MenuName='工业管道安装汇总表(安装2025版)',SortIndex=51 where MenuId='C527812C-0FF8-4EAC-B1FD-3B561DBE46ED'
|
||||
update Sys_Menu set MenuName='工业管道安装质量证明书(安装2020版)',SortIndex=53 where MenuId='1B71BBF6-2686-458F-B6F9-639A5B71AE86'
|
||||
update Sys_Menu set MenuName='工业管道安装汇总表(安装2020版)',SortIndex=54 where MenuId='151BA8BA-E6A8-4941-AEAB-1D32AD6BAC31'
|
||||
update Sys_Menu set MenuName='压力管道改造维修质量证明书(改造、重大修理、维修)',SortIndex=55 where MenuId='087420E0-A459-4CD7-A1B6-A7A5E001ABF8'
|
||||
go
|
||||
@@ -0,0 +1,126 @@
|
||||
|
||||
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
|
||||
values('BC7616E5-E6B2-4C32-A3C4-8B2877B73DD0','工业管道安装汇总表(舟山特检院要求表)','JGZL/IndustrialInstallationSummaryZhoushan.aspx',52,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
|
||||
go
|
||||
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
values('7D9788EA-5015-4C75-9345-6413C5CE31B7','BC7616E5-E6B2-4C32-A3C4-8B2877B73DD0','增加',1)
|
||||
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
values('4F1EFB19-F2B0-45FA-A23D-E099B0F349C6','BC7616E5-E6B2-4C32-A3C4-8B2877B73DD0','修改',2)
|
||||
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
values('987AB25A-D7ED-4955-B871-21CD85B75282','BC7616E5-E6B2-4C32-A3C4-8B2877B73DD0','删除',3)
|
||||
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
values('868F695F-2963-49AE-A479-4E6BCB90B061','BC7616E5-E6B2-4C32-A3C4-8B2877B73DD0','提交',4)
|
||||
go
|
||||
|
||||
|
||||
CREATE TABLE [dbo].[JGZL_IndustrialInstallationSummaryZhoushan](
|
||||
[SummaryId] [nvarchar](50) NOT NULL,
|
||||
[ProjectId] [nvarchar](50) NULL,
|
||||
[InstallationName] [nvarchar](50) NULL,
|
||||
[TestPackageCode] [nvarchar](50) NULL,
|
||||
[PipelineName] [nvarchar](50) NULL,
|
||||
[PipelineCode] [nvarchar](50) NULL,
|
||||
[PipelineLevel] [nvarchar](50) NULL,
|
||||
[Material] [nvarchar](50) NULL,
|
||||
[Medium] [nvarchar](50) NULL,
|
||||
[Diameter] [decimal](18, 2) NULL,
|
||||
[WallThickness] [decimal](18, 2) NULL,
|
||||
[PipelineLength] [decimal](18, 2) NULL,
|
||||
[WeldJointsCount] [int] NULL,
|
||||
[PipeFittings] [int] NULL,
|
||||
[StartPoint] [nvarchar](50) NULL,
|
||||
[EndPoint] [nvarchar](50) NULL,
|
||||
[DesignTemperature] [decimal](18, 2) NULL,
|
||||
[DesignPressure] [decimal](18, 2) NULL,
|
||||
[OperatingTemperature] [decimal](18, 2) NULL,
|
||||
[OperatingPressure] [decimal](18, 2) NULL,
|
||||
[PressureTestMedium] [nvarchar](50) NULL,
|
||||
[PressureTestPressure] [decimal](18, 2) NULL,
|
||||
[TestDate] [datetime] NULL,
|
||||
CONSTRAINT [PK_JGZL_IndustrialInstallationSummaryZhoushan] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[SummaryId] 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_IndustrialInstallationSummaryZhoushan] WITH CHECK ADD CONSTRAINT [FK_JGZL_IndustrialInstallationSummaryZhoushan_Base_Project] FOREIGN KEY([ProjectId])
|
||||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[JGZL_IndustrialInstallationSummaryZhoushan] CHECK CONSTRAINT [FK_JGZL_IndustrialInstallationSummaryZhoushan_Base_Project]
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'SummaryId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @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_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'InstallationName'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试压包编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'TestPackageCode'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管道名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'PipelineName'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管道编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'PipelineCode'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管道级别' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'PipelineLevel'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'材质' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'Material'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'介质' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'Medium'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'公称直径(mm)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'Diameter'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'公称壁厚(mm)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'WallThickness'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管道长度(m)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'PipelineLength'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'焊口总数(个)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'WeldJointsCount'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管件数量(个)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'PipeFittings'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'起点' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'StartPoint'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'终点' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'EndPoint'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计温度(℃)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'DesignTemperature'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计压力(MPa)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'DesignPressure'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'操作温度℃' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'OperatingTemperature'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'操作压力Mpa' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'OperatingPressure'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'压力试验介质' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'PressureTestMedium'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'压力试验压力Mpa' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'PressureTestPressure'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试压时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'TestDate'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'压力管道安装汇总表(舟山特检院要求表)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan'
|
||||
GO
|
||||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
alter table [dbo].[OAM_User] add IsSelfCreate bit null
|
||||
GO
|
||||
@@ -0,0 +1,2 @@
|
||||
alter table HJGL_BS_Welder add IsSelfCreate bit null
|
||||
GO
|
||||
@@ -0,0 +1,67 @@
|
||||
|
||||
CREATE VIEW [dbo].[View_UnitWeldPerformance]
|
||||
AS
|
||||
SELECT
|
||||
NEWID() AS Id,
|
||||
'' as ProjectCode,
|
||||
total.WED_Unit,
|
||||
un.UnitCode,-- 单位代码
|
||||
un.UnitName,--单位名称
|
||||
-------------本期start
|
||||
ISNULL(MRPerson.MRPersonNum,0) AS MRPersonNum, --维保在岗人数
|
||||
ISNULL(TTPerson.TTPersonNum,0) AS TTPersonNum, --技改在岗人数
|
||||
ISNULL(WeldJoint.totalSize,0) AS TotalSize, --当日焊接量
|
||||
ISNULL(WorkProject.WorkProjectNum,0) AS WorkProjectNum --维保工作项数
|
||||
FROM
|
||||
--总达因值 --总焊口
|
||||
(SELECT SUM(joint.JOT_Size) AS totalSize,COUNT(*) AS totalJoint
|
||||
,joint.WED_Unit
|
||||
FROM View_JointWelder joint
|
||||
LEFT JOIN HJGL_BO_WeldReportMain report ON joint.DReportID = report.DReportID
|
||||
WHERE joint.DReportID IS NOT NULL and report.JOT_WeldDate >= '2026-01-01'
|
||||
GROUP BY joint.WED_Unit) AS total
|
||||
|
||||
|
||||
--维保在岗人数,有几个人领用了焊材就是几个人
|
||||
LEFT JOIN (SELECT COUNT(usingMat.UsingMatId) AS MRPersonNum,
|
||||
welder.WED_Unit
|
||||
FROM dbo.HJGL_BS_Welder welder
|
||||
left join dbo.Weld_UsingMat usingMat on usingMat.UsingMan=welder.WED_ID
|
||||
WHERE usingMat.UsingDate>= DATEADD(day, -1, CAST(GETDATE() AS date)) and usingMat.UsingDate<CAST(GETDATE() AS date)
|
||||
GROUP BY welder.WED_Unit) AS MRPerson
|
||||
ON MRPerson.WED_Unit = total.WED_Unit
|
||||
|
||||
--技改在岗人数,当焊材领用时选择了管道焊接的人数
|
||||
LEFT JOIN (SELECT COUNT(distinct usingMat.UsingMan) AS TTPersonNum,
|
||||
welder.WED_Unit
|
||||
FROM dbo.HJGL_BS_Welder welder
|
||||
left join dbo.Weld_UsingMat usingMat on usingMat.UsingMan=welder.WED_ID
|
||||
left join dbo.Weld_UsingPlan usingPlan on usingPlan.UsingPlanId=usingMat.UsingPlanId
|
||||
WHERE usingMat.UsingDate>= DATEADD(day, -1, CAST(GETDATE() AS date)) and usingMat.UsingDate<CAST(GETDATE() AS date) and usingPlan.IsSteelStru=0
|
||||
GROUP BY welder.WED_Unit) AS TTPerson
|
||||
ON TTPerson.WED_Unit = total.WED_Unit
|
||||
--当日焊接量,只统计自建焊工的总工作量
|
||||
LEFT JOIN (SELECT SUM(joint.JOT_Size) AS totalSize
|
||||
,joint.WED_Unit
|
||||
FROM View_JointWelder joint
|
||||
LEFT JOIN HJGL_BO_WeldReportMain report ON joint.DReportID = report.DReportID
|
||||
LEFT JOIN HJGL_BS_Welder wed on wed.WED_ID=joint.Welder
|
||||
WHERE joint.DReportID IS NOT NULL and report.JOT_WeldDate>= DATEADD(day, -1, CAST(GETDATE() AS date)) and report.JOT_WeldDate<CAST(GETDATE() AS date)
|
||||
and wed.IsSelfCreate=1
|
||||
GROUP BY joint.WED_Unit) AS WeldJoint
|
||||
ON WeldJoint.WED_Unit = total.WED_Unit
|
||||
--维保工作项数,自建焊工领用的项目数量
|
||||
LEFT JOIN (SELECT COUNT(distinct usingMat.ProjectId) AS WorkProjectNum,
|
||||
welder.WED_Unit
|
||||
FROM dbo.HJGL_BS_Welder welder
|
||||
left join dbo.Weld_UsingMat usingMat on usingMat.UsingMan=welder.WED_ID
|
||||
WHERE usingMat.UsingDate>= DATEADD(day, -1, CAST(GETDATE() AS date)) and usingMat.UsingDate<CAST(GETDATE() AS date)
|
||||
and welder.IsSelfCreate=1
|
||||
GROUP BY welder.WED_Unit) AS WorkProject
|
||||
ON WorkProject.WED_Unit = total.WED_Unit
|
||||
LEFT JOIN dbo.Base_Unit un ON un.UnitId=total.WED_Unit
|
||||
|
||||
|
||||
GO
|
||||
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
|
||||
ALTER VIEW [dbo].[View_UnitWeldPerformance]
|
||||
AS
|
||||
SELECT
|
||||
NEWID() AS Id,
|
||||
'' as ProjectCode,
|
||||
total.WED_Unit,
|
||||
un.UnitCode,-- 单位代码
|
||||
un.UnitName,--单位名称
|
||||
-------------本期start
|
||||
DATEADD(day, -1, CAST(GETDATE() AS date)) as ReportDate, --统计日期
|
||||
ISNULL(MRPerson.MRPersonNum,0) AS MRPersonNum, --维保在岗人数
|
||||
ISNULL(TTPerson.TTPersonNum,0) AS TTPersonNum, --技改在岗人数
|
||||
ISNULL(WeldJoint.totalSize,0) AS TotalSize, --当日焊接量
|
||||
ISNULL(WorkProject.WorkProjectNum,0) AS WorkProjectNum --维保工作项数
|
||||
FROM
|
||||
--总达因值 --总焊口
|
||||
(SELECT SUM(joint.JOT_Size) AS totalSize,COUNT(*) AS totalJoint
|
||||
,joint.WED_Unit
|
||||
FROM View_JointWelder joint
|
||||
LEFT JOIN HJGL_BO_WeldReportMain report ON joint.DReportID = report.DReportID
|
||||
WHERE joint.DReportID IS NOT NULL and report.JOT_WeldDate >= '2026-01-01'
|
||||
GROUP BY joint.WED_Unit) AS total
|
||||
|
||||
|
||||
--维保在岗人数,有几个人领用了焊材就是几个人
|
||||
LEFT JOIN (SELECT COUNT(usingMat.UsingMatId) AS MRPersonNum,
|
||||
welder.WED_Unit
|
||||
FROM dbo.HJGL_BS_Welder welder
|
||||
left join dbo.Weld_UsingMat usingMat on usingMat.UsingMan=welder.WED_ID
|
||||
WHERE usingMat.UsingDate>= DATEADD(day, -1, CAST(GETDATE() AS date)) and usingMat.UsingDate<CAST(GETDATE() AS date)
|
||||
GROUP BY welder.WED_Unit) AS MRPerson
|
||||
ON MRPerson.WED_Unit = total.WED_Unit
|
||||
|
||||
--技改在岗人数,当焊材领用时选择了管道焊接的人数
|
||||
LEFT JOIN (SELECT COUNT(distinct usingMat.UsingMan) AS TTPersonNum,
|
||||
welder.WED_Unit
|
||||
FROM dbo.HJGL_BS_Welder welder
|
||||
left join dbo.Weld_UsingMat usingMat on usingMat.UsingMan=welder.WED_ID
|
||||
left join dbo.Weld_UsingPlan usingPlan on usingPlan.UsingPlanId=usingMat.UsingPlanId
|
||||
WHERE usingMat.UsingDate>= DATEADD(day, -1, CAST(GETDATE() AS date)) and usingMat.UsingDate<CAST(GETDATE() AS date) and usingPlan.IsSteelStru=0
|
||||
GROUP BY welder.WED_Unit) AS TTPerson
|
||||
ON TTPerson.WED_Unit = total.WED_Unit
|
||||
--当日焊接量,只统计自建焊工的总工作量
|
||||
LEFT JOIN (SELECT SUM(joint.JOT_Size) AS totalSize
|
||||
,joint.WED_Unit
|
||||
FROM View_JointWelder joint
|
||||
LEFT JOIN HJGL_BO_WeldReportMain report ON joint.DReportID = report.DReportID
|
||||
LEFT JOIN HJGL_BS_Welder wed on wed.WED_ID=joint.Welder
|
||||
WHERE joint.DReportID IS NOT NULL and report.JOT_WeldDate>= DATEADD(day, -1, CAST(GETDATE() AS date)) and report.JOT_WeldDate<CAST(GETDATE() AS date)
|
||||
and wed.IsSelfCreate=1
|
||||
GROUP BY joint.WED_Unit) AS WeldJoint
|
||||
ON WeldJoint.WED_Unit = total.WED_Unit
|
||||
--维保工作项数,自建焊工领用的项目数量
|
||||
LEFT JOIN (SELECT COUNT(distinct usingMat.ProjectId) AS WorkProjectNum,
|
||||
welder.WED_Unit
|
||||
FROM dbo.HJGL_BS_Welder welder
|
||||
left join dbo.Weld_UsingMat usingMat on usingMat.UsingMan=welder.WED_ID
|
||||
WHERE usingMat.UsingDate>= DATEADD(day, -1, CAST(GETDATE() AS date)) and usingMat.UsingDate<CAST(GETDATE() AS date)
|
||||
and welder.IsSelfCreate=1
|
||||
GROUP BY welder.WED_Unit) AS WorkProject
|
||||
ON WorkProject.WED_Unit = total.WED_Unit
|
||||
LEFT JOIN dbo.Base_Unit un ON un.UnitId=total.WED_Unit
|
||||
|
||||
|
||||
GO
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
update Sys_Menu set MenuName='工艺管线数据表识别',SortIndex=5,SuperMenu='8IDKGJE2-09B1-4607-6666-DCC3O48F080F' where MenuId='EFD1E914-E79C-4F5E-A2F7-CFF4F7821284'
|
||||
update Sys_Menu set SortIndex=15,SuperMenu='8IDKGJE2-09B1-4607-6666-DCC3O48F080F' where MenuId='34BAD63E-EF7C-4D7E-8641-C706BBFCD85F'
|
||||
update Sys_Menu set SortIndex=21,SuperMenu='8IDKGJE2-09B1-4607-6666-DCC3O48F080F' where MenuId='6B16D1D4-FBDA-4B2B-AE0A-B465C686C27D'
|
||||
GO
|
||||
@@ -264,8 +264,11 @@
|
||||
<Compile Include="JGZL\ArchivalTransferService.cs" />
|
||||
<Compile Include="JGZL\DocumentDescriptionService.cs" />
|
||||
<Compile Include="JGZL\FileDirectoryService.cs" />
|
||||
<Compile Include="JGZL\IndustrialInstallationSummaryZhoushanService.cs" />
|
||||
<Compile Include="JGZL\InsulationAcceptanceRecordItemService.cs" />
|
||||
<Compile Include="JGZL\InsulationAcceptanceRecordService.cs" />
|
||||
<Compile Include="JGZL\LeakageVacuumService.cs" />
|
||||
<Compile Include="JGZL\LeakageVacuumTestRecordServic.cs" />
|
||||
<Compile Include="JGZL\LeakTestOfPipelineSystemRecordItemService.cs" />
|
||||
<Compile Include="JGZL\ModRepairQualityCertificateService.cs" />
|
||||
<Compile Include="JGZL\PressureTestOfPipelineSystemRecordItemService.cs" />
|
||||
|
||||
@@ -1831,6 +1831,11 @@ namespace BLL
|
||||
/// </summary>
|
||||
public const string JGZL_BlowingCleaningMenuId = "E64FC226-8164-43F7-AA4D-6E268EDEC5BC";
|
||||
|
||||
/// <summary>
|
||||
/// 管道系统泄漏性/真空试验条件确认与试验记录
|
||||
/// </summary>
|
||||
public const string JGZL_LeakageVacuumMenuId = "FF56CCBE-0B8C-4AF6-832E-EC6ED1584C94";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 防腐工程质量验收记录
|
||||
@@ -2625,6 +2630,11 @@ namespace BLL
|
||||
/// </summary>
|
||||
public const string JGZL_ArchivalTransferUrl = "File\\Word\\JGZL\\档案资料移交表导出模板.docx";
|
||||
|
||||
/// <summary>
|
||||
/// 管道系统泄漏性/真空试验条件确认与试验记录
|
||||
/// </summary>
|
||||
public const string JGZL_LeakageVacuumUrl = "File\\Word\\JGZL\\管道系统泄漏性试验记录导出模板.docx";
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
@@ -2636,5 +2646,7 @@ namespace BLL
|
||||
/// 焊缝返修台账导出模板
|
||||
/// </summary>
|
||||
public const string HJGL_WeldRepairListsUrl = "File\\Excel\\焊缝返修台账导出模板.xlsx";
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace BLL
|
||||
newWelder.ProjectId = welder.ProjectId;
|
||||
newWelder.IdentityCard = welder.IdentityCard;
|
||||
newWelder.SignatureUrl = welder.SignatureUrl;
|
||||
|
||||
newWelder.IsSelfCreate = welder.IsSelfCreate;
|
||||
newWelder.MaxHanTiao = welder.MaxHanTiao;
|
||||
newWelder.MaxWeldingWire = welder.MaxWeldingWire;
|
||||
|
||||
@@ -95,6 +95,7 @@ namespace BLL
|
||||
newWelder.MaxHanTiao = welder.MaxHanTiao;
|
||||
newWelder.MaxWeldingWire = welder.MaxWeldingWire;
|
||||
newWelder.IsOAM = welder.IsOAM;
|
||||
newWelder.IsSelfCreate = welder.IsSelfCreate;
|
||||
if (!string.IsNullOrEmpty(welder.PhotoUrl) && newWelder.PhotoUrl != welder.PhotoUrl)
|
||||
{
|
||||
newWelder.PhotoUrl = welder.PhotoUrl;
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
using Model;
|
||||
using Org.BouncyCastle.Bcpg.OpenPgp;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 压力管道安装汇总表(舟山特检院要求表)
|
||||
/// </summary>
|
||||
public class IndustrialInstallationSummaryZhoushanService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据项目Id获取压力管道安装汇总表(舟山特检院要求表)
|
||||
/// </summary>
|
||||
/// <param name="projectId"></param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.JGZL_IndustrialInstallationSummaryZhoushan> GetInstallationSummaryZhoushanByProjectId(string projectId)
|
||||
{
|
||||
return (from x in Funs.DB.JGZL_IndustrialInstallationSummaryZhoushan where x.ProjectId == projectId select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加
|
||||
/// </summary>
|
||||
/// <param name="zs"></param>
|
||||
public static void AddIndustrialInstallationSummaryZhoushan(Model.JGZL_IndustrialInstallationSummaryZhoushan zs)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_IndustrialInstallationSummaryZhoushan newZS = new JGZL_IndustrialInstallationSummaryZhoushan();
|
||||
newZS.SummaryId = zs.SummaryId;
|
||||
newZS.ProjectId= zs.ProjectId;
|
||||
newZS.InstallationName= zs.InstallationName;
|
||||
newZS.TestPackageCode = zs.TestPackageCode;
|
||||
newZS.PipelineName = zs.PipelineName;
|
||||
newZS.PipelineCode = zs.PipelineCode;
|
||||
newZS.PipelineLevel = zs.PipelineLevel;
|
||||
newZS.Material = zs.Material;
|
||||
newZS.Medium= zs.Medium;
|
||||
newZS.Diameter= zs.Diameter;
|
||||
newZS.WallThickness= zs.WallThickness;
|
||||
newZS.PipelineLength = zs.PipelineLength;
|
||||
newZS.WeldJointsCount= zs.WeldJointsCount;
|
||||
newZS.PipeFittings= zs.PipeFittings;
|
||||
newZS.StartPoint= zs.StartPoint;
|
||||
newZS.EndPoint= zs.EndPoint;
|
||||
newZS.DesignTemperature= zs.DesignTemperature;
|
||||
newZS.DesignPressure= zs.DesignPressure;
|
||||
newZS.OperatingTemperature= zs.OperatingTemperature;
|
||||
newZS.OperatingPressure = zs.OperatingPressure;
|
||||
newZS.PressureTestPressure= zs.PressureTestPressure;
|
||||
newZS.PressureTestMedium = zs.PressureTestMedium;
|
||||
newZS.TestDate= zs.TestDate;
|
||||
db.JGZL_IndustrialInstallationSummaryZhoushan.InsertOnSubmit(newZS);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据项目Id删除压力管道安装汇总表(舟山特检院要求表)
|
||||
/// </summary>
|
||||
/// <param name="projectId"></param>
|
||||
public static void DeleteIndustrialInstallationSummaryZhoushanByProjectId(string projectId)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
var q = (from x in db.JGZL_IndustrialInstallationSummaryZhoushan where x.ProjectId == projectId select x).ToList();
|
||||
if (q.Count>0)
|
||||
{
|
||||
db.JGZL_IndustrialInstallationSummaryZhoushan.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
using Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.Eventing.Reader;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 管道系统泄漏性/真空试验条件确认与试验记录
|
||||
/// </summary>
|
||||
public class LeakageVacuumService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据项目Id获取管道系统泄漏性/真空试验条件确认与试验记录
|
||||
/// </summary>
|
||||
/// <param name="projectId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.JGZL_LeakageVacuum GetLeakageVacuumByProjectId(string projectId)
|
||||
{
|
||||
return Funs.DB.JGZL_LeakageVacuum.FirstOrDefault(e => e.ProjectId == projectId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加获取管道系统泄漏性/真空试验条件确认与试验记录
|
||||
/// </summary>
|
||||
/// <param name="leakageVacuum"></param>
|
||||
public static void AddLeakageVacuum(Model.JGZL_LeakageVacuum leakageVacuum)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.JGZL_LeakageVacuum newLeakageVacuum = new Model.JGZL_LeakageVacuum();
|
||||
newLeakageVacuum.LeakageVacuumId = leakageVacuum.LeakageVacuumId;
|
||||
newLeakageVacuum.ProjectId = leakageVacuum.ProjectId;
|
||||
newLeakageVacuum.SystemName = leakageVacuum.SystemName;
|
||||
newLeakageVacuum.SystemCode = leakageVacuum.SystemCode;
|
||||
newLeakageVacuum.CheckItemResult1 = leakageVacuum.CheckItemResult1;
|
||||
newLeakageVacuum.CheckItemResult2 = leakageVacuum.CheckItemResult2;
|
||||
newLeakageVacuum.CheckItemResult3 = leakageVacuum.CheckItemResult3;
|
||||
newLeakageVacuum.CheckItemResult4 = leakageVacuum.CheckItemResult4;
|
||||
newLeakageVacuum.CheckItemResult5 = leakageVacuum.CheckItemResult5;
|
||||
newLeakageVacuum.Conclusion = leakageVacuum.Conclusion;
|
||||
db.JGZL_LeakageVacuum.InsertOnSubmit(newLeakageVacuum);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改管道系统泄漏性/真空试验条件确认与试验记录
|
||||
/// </summary>
|
||||
/// <param name="leakageVacuum"></param>
|
||||
public static void UpdateLeakageVacuum(Model.JGZL_LeakageVacuum leakageVacuum)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.JGZL_LeakageVacuum newLeakageVacuum = db.JGZL_LeakageVacuum.FirstOrDefault(e => e.LeakageVacuumId == leakageVacuum.LeakageVacuumId);
|
||||
if (newLeakageVacuum != null)
|
||||
{
|
||||
newLeakageVacuum.SystemName = leakageVacuum.SystemName;
|
||||
newLeakageVacuum.SystemCode = leakageVacuum.SystemCode;
|
||||
newLeakageVacuum.CheckItemResult1 = leakageVacuum.CheckItemResult1;
|
||||
newLeakageVacuum.CheckItemResult2 = leakageVacuum.CheckItemResult2;
|
||||
newLeakageVacuum.CheckItemResult3 = leakageVacuum.CheckItemResult3;
|
||||
newLeakageVacuum.CheckItemResult4 = leakageVacuum.CheckItemResult4;
|
||||
newLeakageVacuum.CheckItemResult5 = leakageVacuum.CheckItemResult5;
|
||||
newLeakageVacuum.Conclusion = leakageVacuum.Conclusion;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除管道系统泄漏性/真空试验条件确认与试验记录
|
||||
/// </summary>
|
||||
/// <param name="leakageVacuumId"></param>
|
||||
public static void DeleteLeakageVacuumById(string leakageVacuumId)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_LeakageVacuum leakageVacuum = db.JGZL_LeakageVacuum.FirstOrDefault(e => e.LeakageVacuumId == leakageVacuumId);
|
||||
if (leakageVacuum != null)
|
||||
{
|
||||
db.JGZL_LeakageVacuum.DeleteOnSubmit(leakageVacuum);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
using Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 管道系统泄漏性/真空试验条件确认与试验记录
|
||||
/// </summary>
|
||||
public class LeakageVacuumTestRecordServic
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取明细信息
|
||||
/// </summary>
|
||||
/// <param name="leakageVacuumId"></param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.JGZL_LeakageVacuumTestRecord> GetLeakageVacuumTestRecordByLeakageVacuumId(string leakageVacuumId)
|
||||
{
|
||||
return (from x in Funs.DB.JGZL_LeakageVacuumTestRecord where x.LeakageVacuumId == leakageVacuumId select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加试验记录
|
||||
/// </summary>
|
||||
/// <param name="record"></param>
|
||||
public static void AddLeakageVacuumTestRecord(Model.JGZL_LeakageVacuumTestRecord record)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_LeakageVacuumTestRecord newRecord = new JGZL_LeakageVacuumTestRecord();
|
||||
newRecord.LeakageVacuumTestRecordId = record.LeakageVacuumTestRecordId;
|
||||
newRecord.LeakageVacuumId = record.LeakageVacuumId;
|
||||
newRecord.PipelineId = record.PipelineId;
|
||||
newRecord.PipelineCode = record.PipelineCode;
|
||||
newRecord.DesignPressure = record.DesignPressure;
|
||||
newRecord.DesignTem = record.DesignTem;
|
||||
newRecord.TestAmbientTemp = record.TestAmbientTemp;
|
||||
newRecord.TestMediumTemp = record.TestMediumTemp;
|
||||
newRecord.LeakPressure = record.LeakPressure;
|
||||
newRecord.LeakMedium = record.LeakMedium;
|
||||
newRecord.VacuumPressure = record.VacuumPressure;
|
||||
newRecord.VacuumMedium = record.VacuumMedium;
|
||||
db.JGZL_LeakageVacuumTestRecord.InsertOnSubmit(newRecord);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键Id删除试验记录
|
||||
/// </summary>
|
||||
/// <param name="leakageVacuumId"></param>
|
||||
public static void DeleteLeakageVacuumTestRecordByLeakageVacuumId(string leakageVacuumId)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
var q = (from x in db.JGZL_LeakageVacuumTestRecord where x.LeakageVacuumId == leakageVacuumId select x).ToList();
|
||||
if (q.Count > 0)
|
||||
{
|
||||
db.JGZL_LeakageVacuumTestRecord.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
public static Model.JGZL_LeakageVacuumTestRecord GetItemByIsoNo(string projectId, string isoNo)
|
||||
{
|
||||
return (from x in Funs.DB.JGZL_LeakageVacuumTestRecord
|
||||
join y in Funs.DB.JGZL_LeakageVacuum on x.LeakageVacuumId equals y.LeakageVacuumId
|
||||
where y.ProjectId == projectId && x.PipelineCode == isoNo
|
||||
select x).FirstOrDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" DoublePass="true" ReportInfo.Created="02/09/2026 11:02:02" ReportInfo.Modified="04/22/2026 16:39:05" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" DoublePass="true" ReportInfo.Created="02/09/2026 11:02:02" ReportInfo.Modified="10/10/2026 09:10:07" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<ScriptText>using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
@@ -51,7 +51,7 @@ namespace FastReport
|
||||
}
|
||||
</ScriptText>
|
||||
<Dictionary>
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFg1qRjSswFxgpEVsc1cd7Ug==">
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFTnSgiTjxVXJT4iSckTJclA==">
|
||||
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
|
||||
<Column Name="SerialNumber" DataType="System.String" PropName="attach_image_id"/>
|
||||
<Column Name="FileCode" DataType="System.String" PropName="image_series"/>
|
||||
@@ -61,7 +61,7 @@ namespace FastReport
|
||||
</MsSqlDataConnection>
|
||||
<Parameter Name="ProjectName" DataType="System.String"/>
|
||||
</Dictionary>
|
||||
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="0,646.4,129.28,390.86,472.89,507.67,261.58,34.78,646.37,45.83,242.86,515.49,646.38,323.19">
|
||||
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="0,646.4,129.28,390.86,472.89,138.73,261.58,507.67,34.78,646.37,45.83,242.86,515.49,646.38,323.19">
|
||||
<PageHeaderBand Name="PageHeader1" Width="646.38" Height="103.95" Guides="0,103.95,66.15,37.8">
|
||||
<TableObject Name="Table1" Width="646.4" Height="103.95" Border.Lines="Left">
|
||||
<TableColumn Name="Column1" Width="129.28"/>
|
||||
@@ -72,16 +72,16 @@ namespace FastReport
|
||||
<TableRow Name="Row1" Height="66.15">
|
||||
<TableCell Name="Cell1" Border.Lines="Top, Bottom" Text="SH/T 3503—J103" HorzAlign="Center" VertAlign="Center" Font="黑体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell2" Border.Lines="All" Text="交工技术文件目录" HorzAlign="Center" VertAlign="Center" Font="思源宋体 CN, 16pt, style=Bold" RowSpan="2"/>
|
||||
<TableCell Name="Cell3" Border.Lines="Left, Top" Text="工程名称:" Padding="2, 15, 2, 1" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell4" Border.Lines="Right, Top" Text="[ProjectName]" Padding="2, 10, 2, 1" Font="楷体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell3" Border.Lines="Left, Top" Text="工程名称:" Padding="2, 15, 1, 1" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell4" Border.Lines="Right, Top" Text="[ProjectName]" Padding="1, 15, 2, 1" Font="楷体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell5" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row2" Height="37.8">
|
||||
<TableCell Name="Cell6"/>
|
||||
<TableCell Name="Cell7"/>
|
||||
<TableCell Name="Cell8" Border.Lines="Left, Bottom" Text="单位工程名称:" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell8" Border.Lines="Left, Bottom" Text="单位工程名称:" Padding="2, 1, 1, 1" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell9" Border.Lines="Left" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell10" Border.Lines="Right, Bottom" Text="管道安装工程" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell10" Border.Lines="Right, Bottom" Text="管道安装工程" Padding="1, 1, 2, 1" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
<ChildBand Name="Child1" Top="107.95" Width="646.38" Height="34.85" Guides="0,34.85">
|
||||
@@ -99,13 +99,13 @@ namespace FastReport
|
||||
</TableObject>
|
||||
</ChildBand>
|
||||
</PageHeaderBand>
|
||||
<DataBand Name="Data1" Top="146.8" Width="646.38" Height="34.85" Guides="0,34.85">
|
||||
<TableObject Name="Table3" Width="646.37" Height="34.85" Border.Lines="All" ManualBuildEvent="Table3_ManualBuild">
|
||||
<DataBand Name="Data1" Top="146.8" Width="646.38" Height="25.4" Guides="0,25.4">
|
||||
<TableObject Name="Table3" Width="646.37" Height="25.4" Border.Lines="All" ManualBuildEvent="Table3_ManualBuild">
|
||||
<TableColumn Name="Column10" Width="45.83"/>
|
||||
<TableColumn Name="Column11" Width="197.03"/>
|
||||
<TableColumn Name="Column12" Width="272.63"/>
|
||||
<TableColumn Name="Column13" Width="130.88"/>
|
||||
<TableRow Name="Row4" Height="34.85">
|
||||
<TableRow Name="Row4" Height="25.4">
|
||||
<TableCell Name="Cell15" Border.Lines="All" Text="[Data.SerialNumber]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell16" Border.Lines="All" Text="[Data.FileCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell17" Border.Lines="All" Text="[Data.FileName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
@@ -113,14 +113,14 @@ namespace FastReport
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</DataBand>
|
||||
<ColumnFooterBand Name="ColumnFooter1" Top="224.5" Width="646.38">
|
||||
<ChildBand Name="Child2" Top="185.65" Width="646.38" Height="34.85" Guides="0,34.85" FillUnusedSpace="true">
|
||||
<TableObject Name="Table4" Width="646.37" Height="34.85" Border.Lines="All">
|
||||
<ColumnFooterBand Name="ColumnFooter1" Top="205.6" Width="646.38">
|
||||
<ChildBand Name="Child2" Top="176.2" Width="646.38" Height="25.4" Guides="0,25.4" FillUnusedSpace="true">
|
||||
<TableObject Name="Table4" Width="646.37" Height="25.4" Border.Lines="All">
|
||||
<TableColumn Name="Column14" Width="45.83"/>
|
||||
<TableColumn Name="Column15" Width="197.03"/>
|
||||
<TableColumn Name="Column16" Width="272.63"/>
|
||||
<TableColumn Name="Column17" Width="130.88"/>
|
||||
<TableRow Name="Row5" Height="34.85">
|
||||
<TableRow Name="Row5" Height="25.4">
|
||||
<TableCell Name="Cell19" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell20" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell21" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
@@ -129,15 +129,15 @@ namespace FastReport
|
||||
</TableObject>
|
||||
</ChildBand>
|
||||
</ColumnFooterBand>
|
||||
<PageFooterBand Name="PageFooter1" Top="228.5" Width="646.38" Height="103.95" PrintOn="LastPage" BeforePrintEvent="PageFooter1_BeforePrint" Guides="0,103.95,40.95,72.45">
|
||||
<TableObject Name="Table5" Width="646.38" Height="103.95" Border.Lines="Left">
|
||||
<PageFooterBand Name="PageFooter1" Top="209.6" Width="646.38" Height="109.12" PrintOn="LastPage" BeforePrintEvent="PageFooter1_BeforePrint" Guides="0,109.12,40.95,77.62">
|
||||
<TableObject Name="Table5" Width="646.38" Height="109.12" Border.Lines="Left">
|
||||
<TableColumn Name="Column18" Width="323.19"/>
|
||||
<TableColumn Name="Column19" Width="323.19"/>
|
||||
<TableRow Name="Row6" Height="40.95">
|
||||
<TableCell Name="Cell23" Border.Lines="Right" Text="编制人:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell24" Border.Lines="Right" Text="审核人:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell23" Border.Lines="Right, Top" Text="编制人:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell24" Border.Lines="Right, Top" Text="审核人:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row7" Height="31.5">
|
||||
<TableRow Name="Row7" Height="36.67">
|
||||
<TableCell Name="Cell28" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell29" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/29/2026 16:26:38" ReportInfo.Modified="04/22/2026 16:42:34" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/29/2026 16:26:38" ReportInfo.Modified="10/10/2026 09:15:26" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<ScriptText>using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
@@ -33,7 +33,7 @@ namespace FastReport
|
||||
<Parameter Name="MainContent" DataType="System.String"/>
|
||||
<Parameter Name="CopiesNum" DataType="System.String"/>
|
||||
</Dictionary>
|
||||
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="0,646.38,149.31,383.67,468.72,418.23,228.15,323.19">
|
||||
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="0,646.38,149.31,383.67,468.72,228.15,418.23,323.19">
|
||||
<PageHeaderBand Name="PageHeader1" Width="646.38" Height="94.5" Guides="0,94.5">
|
||||
<TableObject Name="Table1" Width="646.38" Height="94.5" Border.Lines="Left">
|
||||
<TableColumn Name="Column1" Width="149.31"/>
|
||||
@@ -48,14 +48,18 @@ namespace FastReport
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</PageHeaderBand>
|
||||
<DataBand Name="Data1" Top="98.5" Width="646.38" Height="830.2" Guides="0,830.2,194.11,227.57,33.46,327.95,361.41,394.87,428.33,461.79,495.25,528.71,642.88,42.91,37.8,676.34,709.8,749.49">
|
||||
<DataBand Name="Data1" Top="98.5" Width="646.38" Height="830.2" Guides="0,830.2,24.01,194.11,227.57,33.46,327.95,361.41,394.87,428.33,461.79,495.25,528.71,642.88,42.91,37.8,676.34,709.8,749.49">
|
||||
<TableObject Name="Table2" Width="646.38" Height="830.2" Border.Lines="Left, Right, Bottom">
|
||||
<TableColumn Name="Column4" Width="228.15"/>
|
||||
<TableColumn Name="Column5" Width="418.23"/>
|
||||
<TableRow Name="Row2" Height="194.11">
|
||||
<TableCell Name="Cell4" Text="一、工程概况:[ProjectOverview]" Font="楷体, 10.5pt" ColSpan="2"/>
|
||||
<TableRow Name="Row2" Height="24.01">
|
||||
<TableCell Name="Cell4" Text="一、工程概况:" Font="楷体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell5" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row22" Height="170.1">
|
||||
<TableCell Name="Cell60" Text="[ProjectOverview]" Padding="50, 1, 2, 1" Font="楷体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell61"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row3" Height="33.46">
|
||||
<TableCell Name="Cell9" Text="二、编制依据" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell10" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/26/2026 11:18:50" ReportInfo.Modified="09/09/2026 16:50:18" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" DoublePass="true" ReportInfo.Created="01/26/2026 11:18:50" ReportInfo.Modified="10/13/2026 16:09:56" 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+/QFPBBtNNSbxRL0XXYTtAoVIA==">
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFGAuPUX4+1p6Hpm3DKm9KJQ==">
|
||||
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
|
||||
<Column Name="Num" DataType="System.String" PropName="attach_image_id"/>
|
||||
<Column Name="PipelineCode" DataType="System.String" PropName="image_series"/>
|
||||
@@ -75,115 +75,144 @@ namespace FastReport
|
||||
<Parameter Name="DeliveryUnit" DataType="System.String"/>
|
||||
<Parameter Name="DeliveryUnitCode" DataType="System.String"/>
|
||||
</Dictionary>
|
||||
<ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9" LeftMargin="16" TopMargin="22" RightMargin="13.2" BottomMargin="17" Guides="718.2,1001.7,311.85,670.95,0,141.75,132.3,463.05,1009.26,151.2,85.05,9.45,37.8,538.65,28.35,56.7,47.25,66.15,669.0601,54.81,113.4,207.9,264.6,349.65,406.35,472.5,510.3,567,621.81,716.31,773.01,820.26,867.51,914.76,962.01,18.9,179.55,75.6,103.95,274.05,368.55,803.25,897.75,633.15,387.45">
|
||||
<PageHeaderBand Name="PageHeader1" Width="1012.28" Height="236.25" Guides="0,18.9,56.7,85.05,236.25,37.8,151.2,94.5">
|
||||
<ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9" LeftMargin="16" TopMargin="22" RightMargin="13.2" BottomMargin="17" Guides="718.2,1001.7,311.85,670.95,0,141.75,132.3,463.05,1009.26,151.2,85.05,9.45,37.8,538.65,28.35,56.7,47.25,66.15,669.0601,54.81,113.4,207.9,264.6,349.65,406.35,472.5,510.3,567,621.81,716.31,773.01,820.26,867.51,914.76,962.01,18.9,179.55,75.6,103.95,274.05,368.55,803.25,897.75,633.15,378,661.5">
|
||||
<PageHeaderBand Name="PageHeader1" Width="1012.28" Height="85.05" Guides="0,18.9,56.7,85.05">
|
||||
<TextObject Name="Text1" Left="718.2" Width="283.5" Height="18.9" Text="ZDS-T6.38.047.A/1.2025" HorzAlign="Center" VertAlign="Center" Font="宋体, 14pt"/>
|
||||
<TextObject Name="Text2" Left="311.85" Top="18.9" Width="359.1" Height="37.8" Text="工业管道安装汇总表" HorzAlign="Center" VertAlign="Center" Font="思源宋体 CN, 16pt, style=Bold"/>
|
||||
<TextObject Name="Text3" Top="56.7" Width="141.75" Height="28.35" Text="质量证明书编号:" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TextObject Name="Text4" Left="132.3" Top="56.7" Width="330.75" Height="28.35" Text="[CertificateCode]" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableObject Name="Table1" Top="85.05" Width="1009.26" Height="151.2" Border.Lines="Bottom">
|
||||
<TableColumn Name="Column1" Width="18.9"/>
|
||||
<TableColumn Name="Column23" Width="85.05"/>
|
||||
<TableColumn Name="Column2" Width="9.45"/>
|
||||
<TableColumn Name="Column3" Width="37.8"/>
|
||||
<TableColumn Name="Column71" Width="28.35"/>
|
||||
<TableColumn Name="Column70" Width="28.35"/>
|
||||
<TableColumn Name="Column4" Width="56.7"/>
|
||||
<TableColumn Name="Column5" Width="47.25"/>
|
||||
<TableColumn Name="Column7" Width="37.8"/>
|
||||
<TableColumn Name="Column8" Width="56.7"/>
|
||||
<TableColumn Name="Column9"/>
|
||||
<TableColumn Name="Column10" Width="37.8"/>
|
||||
<TableColumn Name="Column11" Width="28.35"/>
|
||||
<TableColumn Name="Column12" Width="28.35"/>
|
||||
<TableColumn Name="Column13" Width="54.81"/>
|
||||
<TableColumn Name="Column14" Width="47.25"/>
|
||||
<TableColumn Name="Column15" Width="47.25"/>
|
||||
<TableColumn Name="Column16" Width="56.7"/>
|
||||
<TableColumn Name="Column17" Width="47.25"/>
|
||||
<TableColumn Name="Column18" Width="47.25"/>
|
||||
<TableColumn Name="Column20" Width="47.25"/>
|
||||
<TableColumn Name="Column21" Width="47.25"/>
|
||||
<TableColumn Name="Column22" Width="47.25"/>
|
||||
<TableRow Name="Row1" Height="37.8">
|
||||
<TableCell Name="Cell1" Border.Lines="Left, Top, Bottom" Text="交工单元名称:" HorzAlign="Right" VertAlign="Center" Font="宋体, 12pt" ColSpan="4"/>
|
||||
<TableCell Name="Cell77" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell2" Border.Lines="Right, Top, Bottom" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell3" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell175" Border.Lines="Top" Text="[DeliveryUnit]" VertAlign="Center" Font="宋体, 12pt" ColSpan="9"/>
|
||||
<TableCell Name="Cell172" Border.Lines="Top" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell4" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell5" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell27" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell28" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell29" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell30" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell31" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell32" Border.Lines="Left, Top, Bottom" Text="交工单元编号:" HorzAlign="Right" VertAlign="Center" Font="宋体, 12pt" ColSpan="3"/>
|
||||
<TableCell Name="Cell33" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell34" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell35" Border.Lines="Right, Top, Bottom" Text="[DeliveryUnitCode]" VertAlign="Center" Font="宋体, 12pt" ColSpan="7"/>
|
||||
<TableCell Name="Cell36" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell37" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell38" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell40" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell41" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell42" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row2" Height="56.7">
|
||||
<TableCell Name="Cell6" Border.Lines="All" Text="管道编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" ColSpan="3" RowSpan="2"/>
|
||||
<TableCell Name="Cell78" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell7" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell8" Border.Lines="All" Text="管道 级别" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell176" Border.Lines="All" Text="起止点" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell173" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell9" Border.Lines="All" Text="设计 压力 (MPa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell10" Border.Lines="All" Text="设计温度(℃)" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell44" Border.Lines="All" Text="介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell45" Border.Lines="All" Text="材质" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell46" Border.Lines="All" Text="规格 (mm)" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell47" Border.Lines="All" Text="长度(m)" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell48" Border.Lines="All" Text="铺设方式" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell49" Border.Lines="All" Text="焊口 数量 " HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell50" Border.Lines="All" Text="无损检测方法/比例(%)" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell51" Border.Lines="All" Text="耐压试验方法" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell52" Border.Lines="All" Text="耐压试验介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell53" Border.Lines="All" Text="耐压试验压力(MPa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell54" Border.Lines="All" Text="泄漏试验介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell55" Border.Lines="All" Text="泄漏试验压力(MPa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell57" Border.Lines="All" Text="吹扫、清洗方法" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell58" Border.Lines="All" Text="腐蚀控制方式" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell59" Border.Lines="All" Text="保温(绝热)方式 " HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" RowSpan="2"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row3" Height="56.7">
|
||||
<TableCell Name="Cell11" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell79" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell12" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell13" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell177" Border.Lines="All" Text="起 点" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell174" Border.Lines="All" Text="终 点" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell14" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell15" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell61" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell62" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell63" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell64" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell65" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell66" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell67" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell68" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell69" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell70" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell71" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell72" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell74" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell75" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell76" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
<TextObject Name="Text3" Top="56.7" Width="141.75" Height="28.35" Text="质量证明书编号:" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TextObject Name="Text4" Left="132.3" Top="56.7" Width="330.75" Height="28.35" Text="[CertificateCode]" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<ChildBand Name="Child2" Top="89.05" Width="1012.28" Height="37.8" PrintOn="FirstPage" Guides="0,37.8">
|
||||
<TableObject Name="Table1" Width="1009.26" Height="37.8" Border.Lines="Bottom">
|
||||
<TableColumn Name="Column1" Width="18.9"/>
|
||||
<TableColumn Name="Column23" Width="85.05"/>
|
||||
<TableColumn Name="Column2" Width="9.45"/>
|
||||
<TableColumn Name="Column3" Width="37.8"/>
|
||||
<TableColumn Name="Column71" Width="28.35"/>
|
||||
<TableColumn Name="Column70" Width="28.35"/>
|
||||
<TableColumn Name="Column4" Width="56.7"/>
|
||||
<TableColumn Name="Column5" Width="47.25"/>
|
||||
<TableColumn Name="Column7" Width="37.8"/>
|
||||
<TableColumn Name="Column8" Width="56.7"/>
|
||||
<TableColumn Name="Column9"/>
|
||||
<TableColumn Name="Column10" Width="37.8"/>
|
||||
<TableColumn Name="Column11" Width="28.35"/>
|
||||
<TableColumn Name="Column12" Width="28.35"/>
|
||||
<TableColumn Name="Column13" Width="54.81"/>
|
||||
<TableColumn Name="Column14" Width="47.25"/>
|
||||
<TableColumn Name="Column15" Width="47.25"/>
|
||||
<TableColumn Name="Column16" Width="56.7"/>
|
||||
<TableColumn Name="Column17" Width="47.25"/>
|
||||
<TableColumn Name="Column18" Width="47.25"/>
|
||||
<TableColumn Name="Column20" Width="47.25"/>
|
||||
<TableColumn Name="Column21" Width="47.25"/>
|
||||
<TableColumn Name="Column22" Width="47.25"/>
|
||||
<TableRow Name="Row1" Height="37.8">
|
||||
<TableCell Name="Cell1" Border.Lines="Left, Top, Bottom" Text="交工单元名称:" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="4"/>
|
||||
<TableCell Name="Cell77" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell2" Border.Lines="Right, Top, Bottom" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell3" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell175" Border.Lines="Top" Text="[DeliveryUnit]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="9"/>
|
||||
<TableCell Name="Cell172" Border.Lines="Top" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell4" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell5" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell27" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell28" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell29" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell30" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell31" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell32" Border.Lines="Left, Top, Bottom" Text="交工单元编号:" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
|
||||
<TableCell Name="Cell33" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell34" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell35" Border.Lines="Right, Top, Bottom" Text="[DeliveryUnitCode]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="7"/>
|
||||
<TableCell Name="Cell36" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell37" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell38" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell40" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell41" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell42" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
<ChildBand Name="Child3" Top="130.85" Width="1012.28" Height="113.4" Guides="0,113.4,56.7">
|
||||
<TableObject Name="Table4" Width="1009.26" Height="113.4" Border.Lines="Bottom">
|
||||
<TableColumn Name="Column76" Width="18.9"/>
|
||||
<TableColumn Name="Column77" Width="85.05"/>
|
||||
<TableColumn Name="Column78" Width="9.45"/>
|
||||
<TableColumn Name="Column79" Width="37.8"/>
|
||||
<TableColumn Name="Column80" Width="28.35"/>
|
||||
<TableColumn Name="Column81" Width="28.35"/>
|
||||
<TableColumn Name="Column82" Width="56.7"/>
|
||||
<TableColumn Name="Column83" Width="47.25"/>
|
||||
<TableColumn Name="Column84" Width="37.8"/>
|
||||
<TableColumn Name="Column85" Width="56.7"/>
|
||||
<TableColumn Name="Column86"/>
|
||||
<TableColumn Name="Column87" Width="37.8"/>
|
||||
<TableColumn Name="Column88" Width="28.35"/>
|
||||
<TableColumn Name="Column89" Width="28.35"/>
|
||||
<TableColumn Name="Column90" Width="54.81"/>
|
||||
<TableColumn Name="Column91" Width="47.25"/>
|
||||
<TableColumn Name="Column92" Width="47.25"/>
|
||||
<TableColumn Name="Column93" Width="56.7"/>
|
||||
<TableColumn Name="Column94" Width="47.25"/>
|
||||
<TableColumn Name="Column95" Width="47.25"/>
|
||||
<TableColumn Name="Column96" Width="47.25"/>
|
||||
<TableColumn Name="Column97" Width="47.25"/>
|
||||
<TableColumn Name="Column98" Width="47.25"/>
|
||||
<TableRow Name="Row9" Height="56.7">
|
||||
<TableCell Name="Cell205" Border.Lines="All" Text="管道编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3" RowSpan="2"/>
|
||||
<TableCell Name="Cell206" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell207" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell208" Border.Lines="All" Text="管道 级别" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell209" Border.Lines="All" Text="起止点" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell210" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell211" Border.Lines="All" Text="设计 压力 (MPa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell212" Border.Lines="All" Text="设计温度(℃)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell213" Border.Lines="All" Text="介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell214" Border.Lines="All" Text="材质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell215" Border.Lines="All" Text="规格 (mm)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell216" Border.Lines="All" Text="长度(m)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell217" Border.Lines="All" Text="铺设方式" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell218" Border.Lines="All" Text="焊口 数量 " HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell219" Border.Lines="All" Text="无损检测方法/比例(%)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell220" Border.Lines="All" Text="耐压试验方法" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell221" Border.Lines="All" Text="耐压试验介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell222" Border.Lines="All" Text="耐压试验压力(MPa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell223" Border.Lines="All" Text="泄漏试验介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell224" Border.Lines="All" Text="泄漏试验压力(MPa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell225" Border.Lines="All" Text="吹扫、清洗方法" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell226" Border.Lines="All" Text="腐蚀控制方式" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell227" Border.Lines="All" Text="保温(绝热)方式 " HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row10" Height="56.7">
|
||||
<TableCell Name="Cell228" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell229" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell230" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell231" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell232" Border.Lines="All" Text="起 点" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell233" Border.Lines="All" Text="终 点" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell234" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell235" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell236" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell237" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell238" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell239" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell240" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell241" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell242" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell243" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell244" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell245" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell246" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell247" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell248" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell249" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell250" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</ChildBand>
|
||||
</ChildBand>
|
||||
</PageHeaderBand>
|
||||
<DataBand Name="Data1" Top="240.25" Width="1012.28" Height="85.05" Guides="0,85.05">
|
||||
<TableObject Name="Table2" Width="1009.26" Height="85.05" Border.Lines="Bottom" ManualBuildEvent="Table2_ManualBuild">
|
||||
<DataBand Name="Data1" Top="248.25" Width="1012.28" Height="75.6" Guides="0,75.6">
|
||||
<TableObject Name="Table2" Width="1009.26" Height="75.6" Border.Lines="Bottom" ManualBuildEvent="Table2_ManualBuild">
|
||||
<TableColumn Name="Column24" Width="18.9"/>
|
||||
<TableColumn Name="Column25" Width="75.6"/>
|
||||
<TableColumn Name="Column26" Width="18.9"/>
|
||||
@@ -207,36 +236,36 @@ namespace FastReport
|
||||
<TableColumn Name="Column44" Width="47.25"/>
|
||||
<TableColumn Name="Column45" Width="47.25"/>
|
||||
<TableColumn Name="Column46" Width="47.25"/>
|
||||
<TableRow Name="Row6" Height="85.05">
|
||||
<TableCell Name="Cell126" Border.Lines="All" Text="[Data.PipelineCode]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" ColSpan="3"/>
|
||||
<TableCell Name="Cell127" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell128" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell129" Border.Lines="All" Text="[Data.PipelineLevel]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell179" Border.Lines="All" Text="[Data.PipelineStartPoint]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell178" Border.Lines="All" Text="[Data.PipelineEndPoint]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell130" Border.Lines="All" Text="[Data.DesignPressure]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell131" Border.Lines="All" Text="[Data.DesignTemperature]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell133" Border.Lines="All" Text="[Data.Medium]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell134" Border.Lines="All" Text="[Data.Material]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell135" Border.Lines="All" Text="[Data.Specifications]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell136" Border.Lines="All" Text="[Data.Length]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell137" Border.Lines="All" Text="[Data.LayingMethod]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell138" Border.Lines="All" Text="[Data.WeldsNum]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell139" Border.Lines="All" Text="[Data.LosslessRatio]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell140" Border.Lines="All" Text="[Data.Remark]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell141" Border.Lines="All" Text="[Data.VoltageResistantTestMedium]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell142" Border.Lines="All" Text="[Data.VoltageResistantTestPressure]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell143" Border.Lines="All" Text="[Data.LeakageTestMedium]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell144" Border.Lines="All" Text="[Data.LeakageTestPressure]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell146" Border.Lines="All" Text="[Data.CleaningMethod]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell147" Border.Lines="All" Text="[Data.CorrosionControlMethod]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell148" Border.Lines="All" Text="[Data.InsulationMethod]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableRow Name="Row6" Height="75.6">
|
||||
<TableCell Name="Cell126" Border.Lines="All" Text="[Data.PipelineCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="3"/>
|
||||
<TableCell Name="Cell127" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell128" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell129" Border.Lines="All" Text="[Data.PipelineLevel]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell179" Border.Lines="All" Text="[Data.PipelineStartPoint]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell178" Border.Lines="All" Text="[Data.PipelineEndPoint]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell130" Border.Lines="All" Text="[Data.DesignPressure]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell131" Border.Lines="All" Text="[Data.DesignTemperature]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell133" Border.Lines="All" Text="[Data.Medium]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell134" Border.Lines="All" Text="[Data.Material]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell135" Border.Lines="All" Text="[Data.Specifications]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell136" Border.Lines="All" Text="[Data.Length]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell137" Border.Lines="All" Text="[Data.LayingMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell138" Border.Lines="All" Text="[Data.WeldsNum]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell139" Border.Lines="All" Text="[Data.LosslessRatio]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell140" Border.Lines="All" Text="[Data.Remark]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell141" Border.Lines="All" Text="[Data.VoltageResistantTestMedium]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell142" Border.Lines="All" Text="[Data.VoltageResistantTestPressure]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell143" Border.Lines="All" Text="[Data.LeakageTestMedium]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell144" Border.Lines="All" Text="[Data.LeakageTestPressure]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell146" Border.Lines="All" Text="[Data.CleaningMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell147" Border.Lines="All" Text="[Data.CorrosionControlMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell148" Border.Lines="All" Text="[Data.InsulationMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</DataBand>
|
||||
<ColumnFooterBand Name="ColumnFooter1" Top="418.35" Width="1012.28">
|
||||
<ChildBand Name="Child1" Top="329.3" Width="1012.28" Height="85.05" Guides="0,85.05" FillUnusedSpace="true">
|
||||
<TableObject Name="Table3" Width="1009.26" Height="85.05" Border.Lines="Bottom">
|
||||
<ColumnFooterBand Name="ColumnFooter1" Top="407.45" Width="1012.28">
|
||||
<ChildBand Name="Child1" Top="327.85" Width="1012.28" Height="75.6" Guides="0,75.6" FillUnusedSpace="true">
|
||||
<TableObject Name="Table3" Width="1009.26" Height="75.6" Border.Lines="Bottom">
|
||||
<TableColumn Name="Column47" Width="18.9"/>
|
||||
<TableColumn Name="Column48" Width="75.6"/>
|
||||
<TableColumn Name="Column49" Width="18.9"/>
|
||||
@@ -260,7 +289,7 @@ namespace FastReport
|
||||
<TableColumn Name="Column67" Width="47.25"/>
|
||||
<TableColumn Name="Column68" Width="47.25"/>
|
||||
<TableColumn Name="Column69" Width="47.25"/>
|
||||
<TableRow Name="Row7" Height="85.05">
|
||||
<TableRow Name="Row7" Height="75.6">
|
||||
<TableCell Name="Cell149" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="3"/>
|
||||
<TableCell Name="Cell150" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell151" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
@@ -288,12 +317,14 @@ namespace FastReport
|
||||
</TableObject>
|
||||
</ChildBand>
|
||||
</ColumnFooterBand>
|
||||
<PageFooterBand Name="PageFooter1" Top="422.35" Width="1012.28" Height="56.7" Guides="9.45,28.35,37.8,56.7">
|
||||
<PageFooterBand Name="PageFooter1" Top="411.45" Width="1012.28" Height="28.35" PrintOn="LastPage" Guides="9.45,28.35">
|
||||
<TextObject Name="Text5" Left="9.45" Top="9.45" Width="94.5" Height="18.9" Text="填表:" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TextObject Name="Text6" Left="274.05" Top="9.45" Width="94.5" Height="18.9" Text="日期:" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TextObject Name="Text7" Left="803.25" Top="9.45" Width="94.5" Height="18.9" Text="日期:" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TextObject Name="Text8" Left="538.65" Top="9.45" Width="94.5" Height="18.9" Text="审核:" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TextObject Name="Text9" Left="387.45" Top="37.8" Width="283.5" Height="18.9" Text="共[TotalPages#]页 第[Page#]页" Font="宋体, 12pt"/>
|
||||
<ChildBand Name="Child4" Top="443.8" Width="1012.28" Height="28.35" Guides="9.45,28.35">
|
||||
<TextObject Name="Text9" Left="378" Top="9.45" Width="283.5" Height="18.9" Text="共[TotalPages#]页 第[Page#]页" Font="宋体, 12pt"/>
|
||||
</ChildBand>
|
||||
</PageFooterBand>
|
||||
</ReportPage>
|
||||
</Report>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/26/2026 11:18:50" ReportInfo.Modified="09/10/2026 09:47:10" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" DoublePass="true" ReportInfo.Created="01/26/2026 11:18:50" ReportInfo.Modified="10/13/2026 16:15:01" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<ScriptText>using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
@@ -17,8 +17,7 @@ using FastReport.Utils;
|
||||
namespace FastReport
|
||||
{
|
||||
public class ReportScript
|
||||
{
|
||||
|
||||
{
|
||||
private void Table2_ManualBuild(object sender, EventArgs e)
|
||||
{
|
||||
DataSourceBase rowData = Report.GetDataSource("Data");
|
||||
@@ -36,13 +35,13 @@ namespace FastReport
|
||||
|
||||
// go next data source row
|
||||
rowData.Next();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</ScriptText>
|
||||
<Dictionary>
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFSNC6k3/Jky1tLKNl3mNErg==">
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFjoj0apwefOc2l/sd78fdnQ==">
|
||||
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
|
||||
<Column Name="Num" DataType="System.String" PropName="attach_image_id"/>
|
||||
<Column Name="PipelineCode" DataType="System.String" PropName="image_series"/>
|
||||
@@ -75,118 +74,147 @@ namespace FastReport
|
||||
<Parameter Name="DeliveryUnit" DataType="System.String"/>
|
||||
<Parameter Name="DeliveryUnitCode" DataType="System.String"/>
|
||||
</Dictionary>
|
||||
<ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9" LeftMargin="16" TopMargin="22" RightMargin="13.2" BottomMargin="17" Guides="718.2,1001.7,311.85,670.95,500.85,642.6,973.35,0,1009.26,151.2,85.05,9.45,37.8,56.7,66.15,28.35,631.26,54.81,47.25,18.9,113.4,198.45,236.25,274.05,368.55,434.7,472.5,529.2,584.01,735.21,886.41,924.21,962.01,669.06,782.46,820.26,103.95,803.25,897.75,538.65,633.15">
|
||||
<PageHeaderBand Name="PageHeader1" Width="1012.28" Height="236.25" Guides="0,18.9,56.7,85.05,236.25,37.8,151.2,75.6">
|
||||
<ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9" LeftMargin="16" TopMargin="22" RightMargin="13.2" BottomMargin="17" Guides="718.2,1001.7,311.85,670.95,500.85,642.6,973.35,0,1010.26,152.2,75.6,1,37.8,501.85,56.7,66.15,28.35,632.26,54.81,47.25,114.4,199.45,237.25,275.05,312.85,369.55,435.7,473.5,530.2,585.01,736.21,887.41,925.21,963.01,670.06,783.46,821.26,9.45,103.95,274.05,368.55,803.25,897.75,538.65,633.15">
|
||||
<PageHeaderBand Name="PageHeader1" Width="1012.28" Height="85.05" Guides="0,18.9,56.7,85.05">
|
||||
<TextObject Name="Text1" Left="718.2" Width="283.5" Height="18.9" Text="ZDS-T6.38.047.A/0.2020" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 15pt"/>
|
||||
<TextObject Name="Text2" Left="311.85" Top="18.9" Width="359.1" Height="37.8" Text="二、压力管道安装汇总表" HorzAlign="Center" VertAlign="Center" Font="思源宋体 CN, 16pt, style=Bold"/>
|
||||
<TextObject Name="Text3" Left="500.85" Top="56.7" Width="141.75" Height="28.35" Text="质量证明书编号:" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TextObject Name="Text4" Left="642.6" Top="56.7" Width="330.75" Height="28.35" Text="[CertificateCode]" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableObject Name="Table1" Top="85.05" Width="1009.26" Height="151.2" Border.Lines="Bottom">
|
||||
<TableColumn Name="Column1" Width="18.9"/>
|
||||
<TableColumn Name="Column23" Width="85.05"/>
|
||||
<TableColumn Name="Column2" Width="9.45"/>
|
||||
<TableColumn Name="Column3" Width="37.8"/>
|
||||
<TableColumn Name="Column4" Width="47.25"/>
|
||||
<TableColumn Name="Column5" Width="37.8"/>
|
||||
<TableColumn Name="Column70" Width="37.8"/>
|
||||
<TableColumn Name="Column7" Width="37.8"/>
|
||||
<TableColumn Name="Column8" Width="56.7"/>
|
||||
<TableColumn Name="Column9"/>
|
||||
<TableColumn Name="Column10" Width="37.8"/>
|
||||
<TableColumn Name="Column11" Width="28.35"/>
|
||||
<TableColumn Name="Column12" Width="28.35"/>
|
||||
<TableColumn Name="Column13" Width="54.81"/>
|
||||
<TableColumn Name="Column14" Width="47.25"/>
|
||||
<TableColumn Name="Column15" Width="37.8"/>
|
||||
<TableColumn Name="Column16"/>
|
||||
<TableColumn Name="Column17" Width="47.25"/>
|
||||
<TableColumn Name="Column18" Width="37.8"/>
|
||||
<TableColumn Name="Column73"/>
|
||||
<TableColumn Name="Column20" Width="37.8"/>
|
||||
<TableColumn Name="Column21" Width="37.8"/>
|
||||
<TableColumn Name="Column22" Width="47.25"/>
|
||||
<TableRow Name="Row1" Height="37.8">
|
||||
<TableCell Name="Cell1" Border.Lines="Left, Top, Bottom" Text="交工单元名称:" HorzAlign="Right" VertAlign="Center" ColSpan="4"/>
|
||||
<TableCell Name="Cell77" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell2" Border.Lines="Right, Top, Bottom" VertAlign="Center"/>
|
||||
<TableCell Name="Cell3" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell4" Border.Lines="All" Text="[DeliveryUnit]" VertAlign="Center" ColSpan="8"/>
|
||||
<TableCell Name="Cell5" Border.Lines="All" VertAlign="Center"/>
|
||||
<TableCell Name="Cell172"/>
|
||||
<TableCell Name="Cell27" Border.Lines="All" VertAlign="Center"/>
|
||||
<TableCell Name="Cell28" Border.Lines="All" VertAlign="Center"/>
|
||||
<TableCell Name="Cell29" Border.Lines="All" VertAlign="Center"/>
|
||||
<TableCell Name="Cell30" Border.Lines="All" VertAlign="Center"/>
|
||||
<TableCell Name="Cell31" Border.Lines="All" VertAlign="Center"/>
|
||||
<TableCell Name="Cell32" Border.Lines="Left, Top, Bottom" Text="交工单元编号:" HorzAlign="Right" VertAlign="Center" ColSpan="3"/>
|
||||
<TableCell Name="Cell33" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell34" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell35" Border.Lines="Right, Top, Bottom" Text="[DeliveryUnitCode]" VertAlign="Center" ColSpan="8"/>
|
||||
<TableCell Name="Cell36" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell37" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell38" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell177"/>
|
||||
<TableCell Name="Cell40" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell41" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell42" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row2" Height="37.8">
|
||||
<TableCell Name="Cell6" Border.Lines="All" Text="序号" HorzAlign="Center" VertAlign="Center" RowSpan="2"/>
|
||||
<TableCell Name="Cell78" Border.Lines="All" Text="单线号" HorzAlign="Center" VertAlign="Center" ColSpan="2" RowSpan="2"/>
|
||||
<TableCell Name="Cell7" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell8" Border.Lines="All" Text="管道 级别" HorzAlign="Center" VertAlign="Center" RowSpan="2"/>
|
||||
<TableCell Name="Cell9" Border.Lines="All" Text="设计 压力 (MPa)" HorzAlign="Center" VertAlign="Center" RowSpan="2"/>
|
||||
<TableCell Name="Cell10" Border.Lines="All" Text="设计温度(℃)" HorzAlign="Center" VertAlign="Center" RowSpan="2"/>
|
||||
<TableCell Name="Cell173" Text="操作温度℃" HorzAlign="Center" VertAlign="Center" RowSpan="2"/>
|
||||
<TableCell Name="Cell44" Border.Lines="All" Text="输送介质" HorzAlign="Center" VertAlign="Center" RowSpan="2"/>
|
||||
<TableCell Name="Cell45" Border.Lines="All" Text="管道材质牌号及标准" HorzAlign="Center" VertAlign="Center" RowSpan="2"/>
|
||||
<TableCell Name="Cell46" Border.Lines="All" Text="管道规格 (外径×壁厚mm)" HorzAlign="Center" VertAlign="Center" RowSpan="2"/>
|
||||
<TableCell Name="Cell47" Border.Lines="All" Text="管道长度(m)" HorzAlign="Center" VertAlign="Center" RowSpan="2"/>
|
||||
<TableCell Name="Cell48" Border.Lines="All" Text="铺设方式" HorzAlign="Center" VertAlign="Center" RowSpan="2"/>
|
||||
<TableCell Name="Cell49" Border.Lines="All" Text="焊口 数量 " HorzAlign="Center" VertAlign="Center" RowSpan="2"/>
|
||||
<TableCell Name="Cell50" Border.Lines="All" Text="检测方法/比例(%)" HorzAlign="Center" VertAlign="Center" RowSpan="2"/>
|
||||
<TableCell Name="Cell51" Border.Lines="All" Text="压力试验" HorzAlign="Center" VertAlign="Center" ColSpan="3"/>
|
||||
<TableCell Name="Cell52" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell53" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell54" Border.Lines="All" Text="泄漏性试验" HorzAlign="Center" VertAlign="Center" ColSpan="3"/>
|
||||
<TableCell Name="Cell55" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell178"/>
|
||||
<TableCell Name="Cell57" Border.Lines="All" Text="吹洗方法" HorzAlign="Center" VertAlign="Center" RowSpan="2"/>
|
||||
<TableCell Name="Cell58" Border.Lines="All" Text="防腐方式" HorzAlign="Center" VertAlign="Center" RowSpan="2"/>
|
||||
<TableCell Name="Cell59" Border.Lines="All" Text="保温(绝热)方式 " HorzAlign="Center" VertAlign="Center" RowSpan="2"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row3" Height="75.6">
|
||||
<TableCell Name="Cell11" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell79" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell12" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell13" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell14" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell15" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell174"/>
|
||||
<TableCell Name="Cell61" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell62" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell63" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell64" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell65" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell66" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell67" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell68" Border.Lines="All" Text="介质" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell69" Border.Lines="All" Text="压力(Mpa)" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell70" Border.Lines="All" Text="日期" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell71" Border.Lines="All" Text="介质" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell72" Border.Lines="All" Text="压力(Mpa)" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell179" Text="日期" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell74" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell75" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell76" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
<ChildBand Name="Child2" Top="89.05" Width="1012.28" Height="37.8" PrintOn="FirstPage" Guides="0,37.8">
|
||||
<TableObject Name="Table1" Width="1010.26" Height="37.8" Border.Lines="Bottom">
|
||||
<TableColumn Name="Column1" Width="37.8"/>
|
||||
<TableColumn Name="Column23" Width="75.6"/>
|
||||
<TableColumn Name="Column2" Width="1"/>
|
||||
<TableColumn Name="Column3" Width="37.8"/>
|
||||
<TableColumn Name="Column4" Width="47.25"/>
|
||||
<TableColumn Name="Column5" Width="37.8"/>
|
||||
<TableColumn Name="Column70" Width="37.8"/>
|
||||
<TableColumn Name="Column7" Width="37.8"/>
|
||||
<TableColumn Name="Column8" Width="56.7"/>
|
||||
<TableColumn Name="Column9"/>
|
||||
<TableColumn Name="Column10" Width="37.8"/>
|
||||
<TableColumn Name="Column11" Width="28.35"/>
|
||||
<TableColumn Name="Column12" Width="28.35"/>
|
||||
<TableColumn Name="Column13" Width="54.81"/>
|
||||
<TableColumn Name="Column14" Width="47.25"/>
|
||||
<TableColumn Name="Column15" Width="37.8"/>
|
||||
<TableColumn Name="Column16"/>
|
||||
<TableColumn Name="Column17" Width="47.25"/>
|
||||
<TableColumn Name="Column18" Width="37.8"/>
|
||||
<TableColumn Name="Column73"/>
|
||||
<TableColumn Name="Column20" Width="37.8"/>
|
||||
<TableColumn Name="Column21" Width="37.8"/>
|
||||
<TableColumn Name="Column22" Width="47.25"/>
|
||||
<TableRow Name="Row1" Height="37.8">
|
||||
<TableCell Name="Cell1" Border.Lines="Left, Top, Bottom" Text="交工单元名称:" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="4"/>
|
||||
<TableCell Name="Cell77" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell2" Border.Lines="Right, Top, Bottom" VertAlign="Center"/>
|
||||
<TableCell Name="Cell3" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell4" Border.Lines="All" Text="[DeliveryUnit]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="8"/>
|
||||
<TableCell Name="Cell5" Border.Lines="All" VertAlign="Center"/>
|
||||
<TableCell Name="Cell172"/>
|
||||
<TableCell Name="Cell27" Border.Lines="All" VertAlign="Center"/>
|
||||
<TableCell Name="Cell28" Border.Lines="All" VertAlign="Center"/>
|
||||
<TableCell Name="Cell29" Border.Lines="All" VertAlign="Center"/>
|
||||
<TableCell Name="Cell30" Border.Lines="All" VertAlign="Center"/>
|
||||
<TableCell Name="Cell31" Border.Lines="All" VertAlign="Center"/>
|
||||
<TableCell Name="Cell32" Border.Lines="Left, Top, Bottom" Text="交工单元编号:" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
|
||||
<TableCell Name="Cell33" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell34" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell35" Border.Lines="Right, Top, Bottom" Text="[DeliveryUnitCode]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="8"/>
|
||||
<TableCell Name="Cell36" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell37" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell38" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell177"/>
|
||||
<TableCell Name="Cell40" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell41" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell42" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
<ChildBand Name="Child3" Top="130.85" Width="1012.28" Height="94.5" Guides="0,94.5,37.8,56.7">
|
||||
<TableObject Name="Table4" Width="1010.26" Height="94.5" Border.Lines="Bottom">
|
||||
<TableColumn Name="Column76" Width="37.8"/>
|
||||
<TableColumn Name="Column77" Width="75.6"/>
|
||||
<TableColumn Name="Column78" Width="1"/>
|
||||
<TableColumn Name="Column79" Width="37.8"/>
|
||||
<TableColumn Name="Column80" Width="47.25"/>
|
||||
<TableColumn Name="Column81" Width="37.8"/>
|
||||
<TableColumn Name="Column82" Width="37.8"/>
|
||||
<TableColumn Name="Column83" Width="37.8"/>
|
||||
<TableColumn Name="Column84" Width="56.7"/>
|
||||
<TableColumn Name="Column85"/>
|
||||
<TableColumn Name="Column86" Width="37.8"/>
|
||||
<TableColumn Name="Column87" Width="28.35"/>
|
||||
<TableColumn Name="Column88" Width="28.35"/>
|
||||
<TableColumn Name="Column89" Width="54.81"/>
|
||||
<TableColumn Name="Column90" Width="47.25"/>
|
||||
<TableColumn Name="Column91" Width="37.8"/>
|
||||
<TableColumn Name="Column92"/>
|
||||
<TableColumn Name="Column93" Width="47.25"/>
|
||||
<TableColumn Name="Column94" Width="37.8"/>
|
||||
<TableColumn Name="Column95"/>
|
||||
<TableColumn Name="Column96" Width="37.8"/>
|
||||
<TableColumn Name="Column97" Width="37.8"/>
|
||||
<TableColumn Name="Column98" Width="47.25"/>
|
||||
<TableRow Name="Row9" Height="37.8">
|
||||
<TableCell Name="Cell205" Border.Lines="All" Text="序号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell206" Border.Lines="All" Text="单线号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2" RowSpan="2"/>
|
||||
<TableCell Name="Cell207" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell208" Border.Lines="All" Text="管道 级别" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell209" Border.Lines="All" Text="设计 压力 (MPa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell210" Border.Lines="All" Text="设计温度(℃)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell211" Border.Lines="Top" Text="操作温度℃" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell212" Border.Lines="All" Text="输送介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell213" Border.Lines="All" Text="管道材质牌号及标准" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell214" Border.Lines="All" Text="管道规格 (外径×壁厚mm)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell215" Border.Lines="All" Text="管道长度(m)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell216" Border.Lines="All" Text="铺设方式" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell217" Border.Lines="All" Text="焊口 数量 " HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell218" Border.Lines="All" Text="检测方法/比例(%)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell219" Border.Lines="All" Text="压力试验" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
|
||||
<TableCell Name="Cell220" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell221" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell222" Border.Lines="All" Text="泄漏性试验" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
|
||||
<TableCell Name="Cell223" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell224" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell225" Border.Lines="All" Text="吹洗方法" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell226" Border.Lines="All" Text="防腐方式" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell227" Border.Lines="All" Text="保温(绝热)方式 " HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row10" Height="56.7">
|
||||
<TableCell Name="Cell228" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell229" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell230" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell231" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell232" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell233" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell234" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell235" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell236" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell237" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell238" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell239" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell240" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell241" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell242" Border.Lines="All" Text="介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell243" Border.Lines="All" Text="压力(Mpa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell244" Border.Lines="All" Text="日期" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell245" Border.Lines="All" Text="介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell246" Border.Lines="All" Text="压力(Mpa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell247" Text="日期" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell248" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell249" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell250" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</ChildBand>
|
||||
</ChildBand>
|
||||
</PageHeaderBand>
|
||||
<DataBand Name="Data1" Top="240.25" Width="1012.28" Height="85.05" Guides="0,85.05">
|
||||
<TableObject Name="Table2" Width="1009.26" Height="85.05" Border.Lines="Bottom" ManualBuildEvent="Table2_ManualBuild">
|
||||
<TableColumn Name="Column24" Width="18.9"/>
|
||||
<DataBand Name="Data1" Top="229.35" Width="1012.28" Height="56.7" Guides="0,56.7">
|
||||
<TableObject Name="Table2" Width="1010.26" Height="56.7" Border.Lines="Bottom" ManualBuildEvent="Table2_ManualBuild">
|
||||
<TableColumn Name="Column24" Width="37.8"/>
|
||||
<TableColumn Name="Column25" Width="75.6"/>
|
||||
<TableColumn Name="Column26" Width="18.9"/>
|
||||
<TableColumn Name="Column26" Width="1"/>
|
||||
<TableColumn Name="Column27" Width="37.8"/>
|
||||
<TableColumn Name="Column28" Width="47.25"/>
|
||||
<TableColumn Name="Column29" Width="37.8"/>
|
||||
@@ -207,39 +235,39 @@ namespace FastReport
|
||||
<TableColumn Name="Column44" Width="37.8"/>
|
||||
<TableColumn Name="Column45" Width="37.8"/>
|
||||
<TableColumn Name="Column46" Width="47.25"/>
|
||||
<TableRow Name="Row6" Height="85.05">
|
||||
<TableCell Name="Cell126" Border.Lines="All" Text="[Data.Num]" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
|
||||
<TableCell Name="Cell127" Border.Lines="All" Text="[Data.PipelineCode]" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell128" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
|
||||
<TableCell Name="Cell129" Border.Lines="All" Text="[Data.PipelineLevel]" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
|
||||
<TableCell Name="Cell130" Border.Lines="All" Text="[Data.DesignPressure]" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
|
||||
<TableCell Name="Cell131" Border.Lines="All" Text="[Data.DesignTemperature]" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
|
||||
<TableCell Name="Cell175" Border.Lines="All" Text="[Data.OperatingTemperature]" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
|
||||
<TableCell Name="Cell133" Border.Lines="All" Text="[Data.Medium]" HorzAlign="Center" VertAlign="Center" Font="楷体, 8pt"/>
|
||||
<TableCell Name="Cell134" Border.Lines="All" Text="[Data.Material]" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
|
||||
<TableCell Name="Cell135" Border.Lines="All" Text="[Data.Specifications]" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
|
||||
<TableCell Name="Cell136" Border.Lines="All" Text="[Data.Length]" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
|
||||
<TableCell Name="Cell137" Border.Lines="All" Text="[Data.LayingMethod]" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
|
||||
<TableCell Name="Cell138" Border.Lines="All" Text="[Data.WeldsNum]" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
|
||||
<TableCell Name="Cell139" Border.Lines="All" Text="[Data.LosslessRatio]" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
|
||||
<TableCell Name="Cell140" Border.Lines="All" Text="[Data.VoltageResistantTestMedium]" HorzAlign="Center" VertAlign="Center" Font="楷体, 8pt"/>
|
||||
<TableCell Name="Cell141" Border.Lines="All" Text="[Data.VoltageResistantTestPressure]" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
|
||||
<TableCell Name="Cell142" Border.Lines="All" Text="[Data.VoltageResistantTestDate]" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
|
||||
<TableCell Name="Cell143" Border.Lines="All" Text="[Data.LeakageTestMedium]" HorzAlign="Center" VertAlign="Center" Font="楷体, 8pt"/>
|
||||
<TableCell Name="Cell144" Border.Lines="All" Text="[Data.LeakageTestPressure]" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
|
||||
<TableCell Name="Cell180" Border.Lines="All" Text="[Data.LeakageTestDate]" HorzAlign="Center" VertAlign="Center" Font="Arial, 8pt"/>
|
||||
<TableCell Name="Cell146" Border.Lines="All" Text="[Data.CleaningMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 8pt"/>
|
||||
<TableCell Name="Cell147" Border.Lines="All" Text="[Data.CorrosionControlMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 8pt"/>
|
||||
<TableCell Name="Cell148" Border.Lines="All" Text="[Data.InsulationMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 8pt"/>
|
||||
<TableRow Name="Row6" Height="56.7">
|
||||
<TableCell Name="Cell126" Border.Lines="All" Text="[Data.Num]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell127" Border.Lines="All" Text="[Data.PipelineCode]" Padding="1, 1, 1, 1" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell128" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell129" Border.Lines="All" Text="[Data.PipelineLevel]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell130" Border.Lines="All" Text="[Data.DesignPressure]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell131" Border.Lines="All" Text="[Data.DesignTemperature]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell175" Border.Lines="All" Text="[Data.OperatingTemperature]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell133" Border.Lines="All" Text="[Data.Medium]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell134" Border.Lines="All" Text="[Data.Material]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell135" Border.Lines="All" Text="[Data.Specifications]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell136" Border.Lines="All" Text="[Data.Length]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell137" Border.Lines="All" Text="[Data.LayingMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell138" Border.Lines="All" Text="[Data.WeldsNum]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell139" Border.Lines="All" Text="[Data.LosslessRatio]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell140" Border.Lines="All" Text="[Data.VoltageResistantTestMedium]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell141" Border.Lines="All" Text="[Data.VoltageResistantTestPressure]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell142" Border.Lines="All" Text="[Data.VoltageResistantTestDate]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell143" Border.Lines="All" Text="[Data.LeakageTestMedium]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell144" Border.Lines="All" Text="[Data.LeakageTestPressure]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell180" Border.Lines="All" Text="[Data.LeakageTestDate]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell146" Border.Lines="All" Text="[Data.CleaningMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell147" Border.Lines="All" Text="[Data.CorrosionControlMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
<TableCell Name="Cell148" Border.Lines="All" Text="[Data.InsulationMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</DataBand>
|
||||
<ColumnFooterBand Name="ColumnFooter1" Top="418.35" Width="1012.28">
|
||||
<ChildBand Name="Child1" Top="329.3" Width="1012.28" Height="85.05" Guides="0,85.05" FillUnusedSpace="true">
|
||||
<TableObject Name="Table3" Width="1009.26" Height="85.05" Border.Lines="Bottom">
|
||||
<TableColumn Name="Column47" Width="18.9"/>
|
||||
<ColumnFooterBand Name="ColumnFooter1" Top="350.75" Width="1012.28">
|
||||
<ChildBand Name="Child1" Top="290.05" Width="1012.28" Height="56.7" Guides="0,56.7" FillUnusedSpace="true">
|
||||
<TableObject Name="Table3" Width="1010.26" Height="56.7" Border.Lines="Bottom">
|
||||
<TableColumn Name="Column47" Width="37.8"/>
|
||||
<TableColumn Name="Column48" Width="75.6"/>
|
||||
<TableColumn Name="Column49" Width="18.9"/>
|
||||
<TableColumn Name="Column49" Width="1"/>
|
||||
<TableColumn Name="Column50" Width="37.8"/>
|
||||
<TableColumn Name="Column51" Width="47.25"/>
|
||||
<TableColumn Name="Column52" Width="37.8"/>
|
||||
@@ -260,7 +288,7 @@ namespace FastReport
|
||||
<TableColumn Name="Column67" Width="37.8"/>
|
||||
<TableColumn Name="Column68" Width="37.8"/>
|
||||
<TableColumn Name="Column69" Width="47.25"/>
|
||||
<TableRow Name="Row7" Height="85.05">
|
||||
<TableRow Name="Row7" Height="56.7">
|
||||
<TableCell Name="Cell149" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
<TableCell Name="Cell150" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
|
||||
<TableCell Name="Cell151" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
|
||||
@@ -288,11 +316,11 @@ namespace FastReport
|
||||
</TableObject>
|
||||
</ChildBand>
|
||||
</ColumnFooterBand>
|
||||
<PageFooterBand Name="PageFooter1" Top="422.35" Width="1012.28" Height="56.7" Guides="9.45,28.35">
|
||||
<TextObject Name="Text5" Left="9.45" Top="9.45" Width="94.5" Height="18.9" Text="填表:" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TextObject Name="Text6" Left="274.05" Top="9.45" Width="94.5" Height="18.9" Text="日期:" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TextObject Name="Text7" Left="803.25" Top="9.45" Width="94.5" Height="18.9" Text="日期:" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TextObject Name="Text8" Left="538.65" Top="9.45" Width="94.5" Height="18.9" Text="审核:" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<PageFooterBand Name="PageFooter1" Top="354.75" Width="1012.28" Height="28.35" PrintOn="LastPage" Guides="0,28.35">
|
||||
<TextObject Name="Text5" Left="9.45" Width="94.5" Height="28.35" Text="填表:" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TextObject Name="Text6" Left="274.05" Width="94.5" Height="28.35" Text="日期:" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TextObject Name="Text7" Left="803.25" Width="94.5" Height="28.35" Text="日期:" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TextObject Name="Text8" Left="538.65" Width="94.5" Height="28.35" Text="审核:" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</PageFooterBand>
|
||||
</ReportPage>
|
||||
</Report>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="09/10/2026 11:10:02" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="10/10/2026 14:32:26" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Dictionary>
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFRLE3fVb1N0D74ri9q0f0Mg==">
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFWqDDMaPXqV/z/brFfXz69A==">
|
||||
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
|
||||
<Column Name="CertificateCode" DataType="System.String" PropName="attach_image_id"/>
|
||||
<Column Name="EngineeringName" DataType="System.String" PropName="image_series"/>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="09/09/2026 10:05:21" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="10/12/2026 16:12:50" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Dictionary>
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFjoj0apwefOc2l/sd78fdnQ==">
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFDbN1Q7UYiQPLPu1xuNqgnQ==">
|
||||
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
|
||||
<Column Name="CertificateCode" DataType="System.String" PropName="attach_image_id"/>
|
||||
<Column Name="EngineeringName" DataType="System.String" PropName="image_series"/>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/29/2026 15:42:03" ReportInfo.Modified="02/07/2026 10:37:06" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/29/2026 15:42:03" ReportInfo.Modified="10/09/2026 17:13:41" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Dictionary>
|
||||
<Parameter Name="ProjectName" DataType="System.String"/>
|
||||
<Parameter Name="Code" DataType="System.String"/>
|
||||
</Dictionary>
|
||||
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="0,646.37,178.38,394.56,459.55,500,146.37,646.38,212.31,424.62">
|
||||
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="0,646.37,178.38,394.56,459.55,396.05,580.22,684.17,146.37,542.42,646.38,212.31,424.62">
|
||||
<PageHeaderBand Name="PageHeader1" Width="646.38" Height="88.83" Guides="0,88.83">
|
||||
<TableObject Name="Table1" Width="646.37" Height="88.83" Border.Lines="Right">
|
||||
<TableColumn Name="Column1" Width="178.38"/>
|
||||
@@ -19,25 +19,30 @@
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</PageHeaderBand>
|
||||
<DataBand Name="Data1" Top="92.83" Width="646.38" Height="694.37" Guides="0,694.37,173.12,251.74,330.36">
|
||||
<DataBand Name="Data1" Top="92.83" Width="646.38" Height="694.37" Guides="0,694.37,173.12,232.84,311.46">
|
||||
<TableObject Name="Table2" Width="646.37" Height="694.37" Border.Lines="Left, Right">
|
||||
<TableColumn Name="Column4" Width="146.37"/>
|
||||
<TableColumn Name="Column5" Width="500"/>
|
||||
<TableColumn Name="Column5" Width="396.05"/>
|
||||
<TableColumn Name="Column10" Width="103.95"/>
|
||||
<TableRow Name="Row2" Height="173.12">
|
||||
<TableCell Name="Cell4" Border.Lines="Left" Text="石油化工建设工程项目交工技术文件" HorzAlign="Center" VertAlign="Center" Font="黑体, 22pt, style=Bold" ColSpan="2"/>
|
||||
<TableCell Name="Cell4" Border.Lines="Left" Text="石油化工建设工程项目交工技术文件" HorzAlign="Center" VertAlign="Center" Font="黑体, 22pt, style=Bold" ColSpan="3"/>
|
||||
<TableCell Name="Cell20" HorzAlign="Center" VertAlign="Center" Font="黑体, 22pt"/>
|
||||
<TableCell Name="Cell48"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row3" Height="78.62">
|
||||
<TableCell Name="Cell9" Border.Lines="Left" Text="工程名称:" HorzAlign="Right" VertAlign="Bottom" Font="宋体, 14pt"/>
|
||||
<TableCell Name="Cell21" Text="[ProjectName]" VertAlign="Bottom" Font="楷体, 14pt"/>
|
||||
<TableRow Name="Row3" Height="59.72">
|
||||
<TableCell Name="Cell9" Border.Lines="Left" Text="工程名称:" HorzAlign="Right" Font="宋体, 14pt"/>
|
||||
<TableCell Name="Cell21" Text="[ProjectName]" Font="楷体, 14pt"/>
|
||||
<TableCell Name="Cell49"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row4" Height="78.62">
|
||||
<TableCell Name="Cell14" Border.Lines="Left" Text="卷名:" HorzAlign="Right" VertAlign="Center" Font="宋体, 14pt"/>
|
||||
<TableCell Name="Cell22" Text="管道安装工程卷" VertAlign="Center" Font="楷体, 14pt"/>
|
||||
<TableCell Name="Cell14" Border.Lines="Left" Text="卷 名:" HorzAlign="Right" Font="宋体, 14pt"/>
|
||||
<TableCell Name="Cell22" Text="管道安装工程卷" Font="楷体, 14pt"/>
|
||||
<TableCell Name="Cell50"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row5" Height="364.01">
|
||||
<TableRow Name="Row5" Height="382.91">
|
||||
<TableCell Name="Cell19" Border.Lines="Left"/>
|
||||
<TableCell Name="Cell23"/>
|
||||
<TableCell Name="Cell51"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</DataBand>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="09/11/2026 14:43:51" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="10/12/2026 16:13:11" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Dictionary>
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFaSQGGfp0C04d0yi9F5iJBg==">
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFthogzLLWZLLsLiHjss2ZTA==">
|
||||
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
|
||||
<Column Name="QualityCertificateCode" DataType="System.String" PropName="attach_image_id"/>
|
||||
<Column Name="ConUnit" DataType="System.String" PropName="image_series"/>
|
||||
@@ -30,7 +30,7 @@
|
||||
<Parameter Name="chkZhongDaWeiXiu" DataType="System.String"/>
|
||||
<Parameter Name="chkWeiXiu" DataType="System.String"/>
|
||||
</Dictionary>
|
||||
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="368.55,642.6,9.45,0,311.85,646.4,112.27,337.94,431.31,140.62,93.37,74.47,440.76,452.1,497.46,508.8,582.51,593.85,506.91,591.96,639.21,450.21,225.67,505.78,508.04">
|
||||
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="368.55,642.6,9.45,0,311.85,646.4,112.27,337.94,431.31,140.62,93.37,74.47,440.76,452.1,497.46,508.8,582.51,593.85,506.91,591.96,639.21,450.21,225.67,505.78">
|
||||
<PageHeaderBand Name="PageHeader1" Width="646.38" Height="122.85" Guides="9.45,37.8,66.15,94.5,122.85">
|
||||
<TextObject Name="Text1" Left="368.55" Top="9.45" Width="274.05" Height="28.35" Text="ZDS-T6.38.048.A/0.2020" HorzAlign="Right" VertAlign="Center" Font="Calibri, 15pt, style=Bold"/>
|
||||
<TextObject Name="Text2" Left="9.45" Top="66.15" Width="633.15" Height="28.35" Text="压力管道改造维修质量证明书" HorzAlign="Center" VertAlign="Center" Font="思源宋体 CN, 22pt, style=Bold"/>
|
||||
@@ -90,19 +90,19 @@
|
||||
<TableCell Name="Cell31" Border.Lines="All" Text="使用单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell32" Border.Lines="All" Text="[Data.UseUnit]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell33" Border.Lines="All" Text="统一社会信用代码" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell34" Border.Lines="All" Text="[Data.UseUSCC]" HorzAlign="Center" VertAlign="Center" Font="楷体, 12pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell34" Border.Lines="All" Text="[Data.UseUSCC]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell35" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row8" Height="43.46">
|
||||
<TableCell Name="Cell36" Border.Lines="All" Text="使用地点" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell37" Border.Lines="All" Text="[Data.UseAddress]" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="4"/>
|
||||
<TableCell Name="Cell37" Border.Lines="All" Text="[Data.UseAddress]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="4"/>
|
||||
<TableCell Name="Cell38" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell39" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell40" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row9" Height="43.46">
|
||||
<TableCell Name="Cell41" Border.Lines="All" Text="设计单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell42" Border.Lines="All" Text="[Data.DesignUnit]" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="4"/>
|
||||
<TableCell Name="Cell42" Border.Lines="All" Text="[Data.DesignUnit]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="4"/>
|
||||
<TableCell Name="Cell43" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell44" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell45" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
@@ -145,18 +145,14 @@
|
||||
<TableRow Name="Row13" Height="52.91">
|
||||
<TableCell Name="Cell61" Border.Lines="Left" Text="质检员(签章):" Padding="50, 1, 2, 1" HorzAlign="Right" VertAlign="Center" Font="黑体, 12pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell62" HorzAlign="Right" VertAlign="Center" Font="黑体, 10.5pt"/>
|
||||
<TableCell Name="Cell63" Border.Lines="Right" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="3">
|
||||
<TextObject Name="Text3" Top="9.45" Width="170.1" Height="28.35" Border.Lines="Bottom" Text="[Data.QC_Inspector]" VertAlign="Center" Font="黑体, 12pt"/>
|
||||
</TableCell>
|
||||
<TableCell Name="Cell63" Border.Lines="Right" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="3"/>
|
||||
<TableCell Name="Cell64" Border.Lines="Right" HorzAlign="Right" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell65" Border.Lines="Right" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row14" Height="71.81">
|
||||
<TableCell Name="Cell66" Border.Lines="Left" Padding="2, 1, 50, 1" HorzAlign="Right" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell67" Text="质量保证工程师(签章):" HorzAlign="Right" VertAlign="Center" Font="黑体, 12pt"/>
|
||||
<TableCell Name="Cell68" Border.Lines="Right" VertAlign="Center" Font="楷体, 12pt" ColSpan="3">
|
||||
<TextObject Name="Text5" Top="18.9" Width="170.1" Height="28.35" Border.Lines="Bottom" Text="[Data.QA_Engineer]" VertAlign="Center" Font="黑体, 12pt"/>
|
||||
</TableCell>
|
||||
<TableCell Name="Cell68" Border.Lines="Right" VertAlign="Center" Font="楷体, 12pt" ColSpan="3"/>
|
||||
<TableCell Name="Cell69" Border.Lines="Right" HorzAlign="Center" VertAlign="Center" Font="楷体, 12pt"/>
|
||||
<TableCell Name="Cell70" Border.Lines="Right" HorzAlign="Center" VertAlign="Center" Font="楷体, 12pt"/>
|
||||
</TableRow>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="10/26/2024 15:04:43" ReportInfo.Modified="04/22/2026 23:04:05" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="10/26/2024 15:04:43" ReportInfo.Modified="09/24/2026 13:25:49" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<ScriptText>using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
@@ -39,7 +39,7 @@ namespace FastReport
|
||||
}
|
||||
</ScriptText>
|
||||
<Dictionary>
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFjpTGEarsSxENa6kYDYyuhA==">
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFXRA52hHA2Zz6d5lLvCYfUA==">
|
||||
<TableDataSource Name="Data" DataType="System.Int32" PropName="HJGL_BakeRecords" Enabled="true" TableName="Data">
|
||||
<Column Name="BakeDateMonth" DataType="System.String"/>
|
||||
<Column Name="BakeDateDay" DataType="System.String" PropName="Column"/>
|
||||
@@ -65,9 +65,9 @@ namespace FastReport
|
||||
</MsSqlDataConnection>
|
||||
<Parameter Name="ProjectName" DataType="System.String"/>
|
||||
</Dictionary>
|
||||
<ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9" LeftMargin="16" TopMargin="22" RightMargin="13.2" BottomMargin="17" Guides="0,1011.67,330.2,33.91,100.06,52.81,729.89,81.16,43.36,822.17,744.9,778.81,788.26,812.72,856.08,899.44,933.35,77.27,177.33,277.39,383.01,464.17,507.53,618.71,797.71,575.35,662.07,78.32,541.44,695.98,763.8,9.45,1001.7,708.75,1011.51,43.38,77.31,177.39,277.47,383.13,52.83,464.31,507.69,541.62,575.55,618.93,662.31,696.24,730.17,764.1,798.03,821.9301,855.86,899.24,933.17,1011.63,515.05,33.89,100.04,52.79,62.24,71.69,3.84,43.34,63.18">
|
||||
<PageHeaderBand Name="PageHeader1" Width="1012.28" Height="205.81" Guides="56.7,205.81,0,78.25,101.87,23.62,149.11,125.49,28.35,37.8">
|
||||
<TableObject Name="Table1" Top="56.7" Width="1011.67" Height="149.11">
|
||||
<ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9" LeftMargin="16" TopMargin="22" RightMargin="13.2" BottomMargin="17" Guides="0,1011.67,330.2,33.91,100.06,52.81,729.89,81.16,43.36,822.17,24.46,78.32,77.27,177.33,277.39,383.01,464.17,507.53,618.71,797.71,899.44,933.35,575.35,662.07,856.08,541.44,695.98,763.8,1011.51,43.38,77.31,177.39,277.47,383.13,52.83,464.31,507.69,541.62,575.55,618.93,662.31,696.24,730.17,764.1,798.03,821.9301,855.86,899.24,933.17,1011.63,515.05,33.89,100.04,52.79,62.24,71.69,3.84,43.34,63.18">
|
||||
<PageHeaderBand Name="PageHeader1" Width="1012.28" Height="149.11" Guides="0,149.11,78.25,101.87,23.62,125.49">
|
||||
<TableObject Name="Table1" Width="1011.67" Height="149.11">
|
||||
<TableColumn Name="Column1" Width="43.36"/>
|
||||
<TableColumn Name="Column2" Width="33.91"/>
|
||||
<TableColumn Name="Column3" Width="100.06"/>
|
||||
@@ -182,10 +182,8 @@ namespace FastReport
|
||||
<TableCell Name="Cell89" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
<TextObject Name="Text1" Left="9.45" Width="992.25" Height="28.35" Text="浙 江 鼎 盛 石 化 工 程 有 限 公 司" HorzAlign="Center" VertAlign="Center" Font="思源宋体 CN, 16pt, style=Bold"/>
|
||||
<TextObject Name="Text2" Left="708.75" Top="37.8" Width="292.95" Height="18.9" Text="ZDS-T6.37.075.A/1.2020" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
</PageHeaderBand>
|
||||
<DataBand Name="Data1" Top="209.81" Width="1012.28" Height="33.07" Guides="0,33.07">
|
||||
<DataBand Name="Data1" Top="153.11" Width="1012.28" Height="33.07" Guides="0,33.07">
|
||||
<TableObject Name="Table2" Width="1011.51" Height="33.07" ManualBuildEvent="Table2_ManualBuild">
|
||||
<TableColumn Name="Column22" Width="43.38"/>
|
||||
<TableColumn Name="Column23" Width="33.93"/>
|
||||
@@ -233,8 +231,8 @@ namespace FastReport
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</DataBand>
|
||||
<ColumnFooterBand Name="ColumnFooter1" Top="283.95" Width="1012.28">
|
||||
<ChildBand Name="Child1" Top="246.88" Width="1012.28" Height="33.07" Guides="0,33.07" FillUnusedSpace="true">
|
||||
<ColumnFooterBand Name="ColumnFooter1" Top="227.25" Width="1012.28">
|
||||
<ChildBand Name="Child1" Top="190.18" Width="1012.28" Height="33.07" Guides="0,33.07" FillUnusedSpace="true">
|
||||
<TableObject Name="Table3" Width="1011.67" Height="33.07">
|
||||
<TableColumn Name="Column43" Width="43.36"/>
|
||||
<TableColumn Name="Column44" Width="33.91"/>
|
||||
@@ -283,7 +281,7 @@ namespace FastReport
|
||||
</TableObject>
|
||||
</ChildBand>
|
||||
</ColumnFooterBand>
|
||||
<PageFooterBand Name="PageFooter1" Top="287.95" Width="1012.28" Height="43.47" Guides="0,43.47">
|
||||
<PageFooterBand Name="PageFooter1" Top="231.25" Width="1012.28" Height="43.47" Guides="0,43.47">
|
||||
<TableObject Name="Table4" Width="1011.63" Height="43.47">
|
||||
<TableColumn Name="Column64" Width="33.89"/>
|
||||
<TableColumn Name="Column65" Width="33.89"/>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/22/2025 14:15:28" ReportInfo.Modified="04/22/2026 16:42:54" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/22/2025 14:15:28" ReportInfo.Modified="10/10/2026 10:27:55" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Dictionary>
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFtUIxFNKm2jviWjofgJksTw==">
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QF089YVQm2WmvoAT9oe8vufw==">
|
||||
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
|
||||
<Column Name="MaintenanceCode" DataType="System.String" PropName="attach_image_id"/>
|
||||
<Column Name="ConUnit" DataType="System.String" PropName="image_series"/>
|
||||
|
||||
@@ -0,0 +1,285 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/29/2026 10:23:50" ReportInfo.Modified="09/18/2026 11:22:49" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<ScriptText>using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Forms;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using FastReport;
|
||||
using FastReport.Data;
|
||||
using FastReport.Dialog;
|
||||
using FastReport.Barcode;
|
||||
using FastReport.Table;
|
||||
using FastReport.Utils;
|
||||
|
||||
namespace FastReport
|
||||
{
|
||||
public class ReportScript
|
||||
{
|
||||
|
||||
private void Table3_ManualBuild(object sender, EventArgs e)
|
||||
{
|
||||
DataSourceBase rowData = Report.GetDataSource("Data");
|
||||
// init the data source
|
||||
rowData.Init();
|
||||
|
||||
// print the first table row - it is a header
|
||||
|
||||
// now enumerate the data source and print the table body
|
||||
while (rowData.HasMoreRows)
|
||||
{
|
||||
// print the table body
|
||||
Table3.PrintRow(0);
|
||||
Table3.PrintColumns();
|
||||
|
||||
// go next data source row
|
||||
rowData.Next();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</ScriptText>
|
||||
<Dictionary>
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFlDGVCtBD9EyVLKcJ6YVUug==">
|
||||
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
|
||||
<Column Name="PipelineNo" DataType="System.String" PropName="attach_image_id"/>
|
||||
<Column Name="DesignPressure" DataType="System.String" PropName="image_series"/>
|
||||
<Column Name="DesignTem" DataType="System.String" PropName="file_name"/>
|
||||
<Column Name="TestAmbientTemp" DataType="System.String" PropName="file_size"/>
|
||||
<Column Name="TestMediumTemp" Enabled="false" DataType="System.String" PropName="created_date"/>
|
||||
<Column Name="LeakPressure" DataType="System.String" PropName="created_by"/>
|
||||
<Column Name="LeakMedium" DataType="System.String" PropName="series_desc"/>
|
||||
<Column Name="VacuumPressure" DataType="System.String" PropName="Column"/>
|
||||
<Column Name="VacuumMedium" DataType="System.String" PropName="Column"/>
|
||||
<Column Name="TestMediumTemp" DataType="System.String" PropName="Column"/>
|
||||
</TableDataSource>
|
||||
</MsSqlDataConnection>
|
||||
<MsSqlDataConnection Name="Connection1" ConnectionString="rijcmlqM3/HbiZANEYP3Y6oNtE7mqsCE0NW5tkXiWL0RJsdm/BnXhHrIFd8DaTyqYvkCZwzaaQipsiBeb+lBhzIDpDvfvxDsovr3/ckbYEBSCcpPFiH7Npcn4kPkDoxtl7XrCt1j63ma3mCLcLPN9o74aBqqd1WZsaEs7MLRtSWt4L/IDLoaEYKi0euV49rY12ECZLm">
|
||||
<TableDataSource Name="MainData" DataType="System.Int32" PropName="JGZL_LeakageVacuum" Enabled="true" TableName="MainData">
|
||||
<Column Name="ProjectName" DataType="System.String" PropName="LeakageVacuumId"/>
|
||||
<Column Name="SystemName" DataType="System.String" PropName="ProjectId"/>
|
||||
<Column Name="SystemCode" DataType="System.String" PropName="SystemName"/>
|
||||
<Column Name="SystemCode" Enabled="false" DataType="System.String"/>
|
||||
<Column Name="CheckItemResult1" DataType="System.String"/>
|
||||
<Column Name="CheckItemResult2" DataType="System.String"/>
|
||||
<Column Name="CheckItemResult3" DataType="System.String"/>
|
||||
<Column Name="CheckItemResult4" DataType="System.String"/>
|
||||
<Column Name="CheckItemResult5" DataType="System.String"/>
|
||||
<Column Name="Conclusion" DataType="System.String"/>
|
||||
</TableDataSource>
|
||||
</MsSqlDataConnection>
|
||||
<Parameter Name="ProjectName" DataType="System.String"/>
|
||||
<Parameter Name="SystemName" DataType="System.String"/>
|
||||
<Parameter Name="SystemCode" DataType="System.String"/>
|
||||
<Parameter Name="TestConclusion" DataType="System.String"/>
|
||||
<Parameter Name="Remark" DataType="System.String"/>
|
||||
</Dictionary>
|
||||
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="25" TopMargin="20" RightMargin="20" BottomMargin="21" Guides="0,624.25,141.89,37.87,406.72,397.04,491.54,122.92,104.06,104.02,141.91,520.19,283.8,623.8,425.3,623.7,71.55,62.1,52.65,43.2,66.15,137.7,209.25,280.8,342.9,395.55,504.9,438.75,557.55,207.9,415.8">
|
||||
<PageHeaderBand Name="PageHeader1" Width="623.7" Height="160.65" Guides="0,160.65,94.5,66.15,9.45,28.35">
|
||||
<TableObject Name="Table1" Width="624.25" Height="160.65">
|
||||
<TableColumn Name="Column1" Width="104.02"/>
|
||||
<TableColumn Name="Column2" Width="37.87"/>
|
||||
<TableColumn Name="Column3" Width="141.91"/>
|
||||
<TableColumn Name="Column4" Width="122.92"/>
|
||||
<TableColumn Name="Column5" Width="113.47"/>
|
||||
<TableColumn Name="Column6" Width="104.06"/>
|
||||
<TableRow Name="Row1" Height="66.15">
|
||||
<TableCell Name="Cell1" Border.Lines="All" Text="SH/T 3503—J407" HorzAlign="Center" VertAlign="Center" Font="黑体, 10.5pt" ColSpan="2" RowSpan="2"/>
|
||||
<TableCell Name="Cell2" Border.Lines="All"/>
|
||||
<TableCell Name="Cell3" Border.Lines="All" Text="管道系统泄漏性/真空 试验条件确认与试验记录" HorzAlign="Center" VertAlign="Center" Font="华文中宋, 16pt, style=Bold" ColSpan="2" RowSpan="2">
|
||||
<TextObject Name="Text1" Left="255.15" Top="9.45" Width="94.5" Height="18.9" Text="工程名称:" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableCell>
|
||||
<TableCell Name="Cell4" Border.Lines="All"/>
|
||||
<TableCell Name="Cell5" Border.Lines="Left, Right, Top" Text=" [MainData.ProjectName]" Padding="2, 9, 2, 1" Font="楷体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell26" 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="All"/>
|
||||
<TableCell Name="Cell9" Border.Lines="All"/>
|
||||
<TableCell Name="Cell10" Border.Lines="Left, Bottom" Text="单位工程名称:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell27" Border.Lines="Right, Bottom" Text="管道安装工程" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row3" Height="66.15">
|
||||
<TableCell Name="Cell11" Border.Lines="All" Text="系统名称" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell12" Border.Lines="All" Text="[MainData.SystemName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell13" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell14" Border.Lines="All" Text="系统编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell15" Border.Lines="All" Text="[MainData.SystemCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell28" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
<ChildBand Name="Child1" Top="164.65" Width="623.7" Height="160.56" Guides="0,160.56,26.76,53.52,80.28,107.04,133.8">
|
||||
<TableObject Name="Table6" Width="623.8" Height="160.56" Border.Lines="All">
|
||||
<TableColumn Name="Column40" Width="425.3"/>
|
||||
<TableColumn Name="Column41" Width="198.5"/>
|
||||
<TableRow Name="Row17" Height="26.76">
|
||||
<TableCell Name="Cell130" Border.Lines="All" Text="检查项目与要求" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell131" Border.Lines="All" Text="检查结果" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row18" Height="26.76">
|
||||
<TableCell Name="Cell135" Border.Lines="All" Text="管道压力试验合格" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell136" Border.Lines="All" Text="[MainData.CheckItemResult1]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row19" Height="26.76">
|
||||
<TableCell Name="Cell140" Border.Lines="All" Text="压力试验采用的临时法兰、螺栓、垫片等均已更换" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell141" Border.Lines="All" Text="[MainData.CheckItemResult2]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row20" Height="26.76">
|
||||
<TableCell Name="Cell145" Border.Lines="All" Text="未参与压力试验的安全附件及仪表等已安装复位" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell146" Border.Lines="All" Text="[MainData.CheckItemResult3]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row21" Height="26.76">
|
||||
<TableCell Name="Cell150" Border.Lines="All" Text="试验管道系统的阀门已全部开启" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell151" Border.Lines="All" Text="[MainData.CheckItemResult4]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row22" Height="26.76">
|
||||
<TableCell Name="Cell152" Border.Lines="All" Text="试压用压力表、精度等级、检定状态符合规范要求" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell153" Border.Lines="All" Text="[MainData.CheckItemResult5]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
<ChildBand Name="Child3" Top="329.21" Width="623.7" Height="103.96" Guides="0,103.96,33.08,66.16,37.8">
|
||||
<TableObject Name="Table2" Width="623.7" Height="103.96" Border.Lines="Left, Bottom">
|
||||
<TableColumn Name="Column7" Width="137.7"/>
|
||||
<TableColumn Name="Column8" Width="71.55"/>
|
||||
<TableColumn Name="Column9" Width="71.55"/>
|
||||
<TableColumn Name="Column10" Width="62.1"/>
|
||||
<TableColumn Name="Column12" Width="52.65"/>
|
||||
<TableColumn Name="Column13" Width="43.2"/>
|
||||
<TableColumn Name="Column34"/>
|
||||
<TableColumn Name="Column14" Width="52.65"/>
|
||||
<TableColumn Name="Column35"/>
|
||||
<TableRow Name="Row4" Height="33.08">
|
||||
<TableCell Name="Cell29" Border.Lines="All" Text="试 验 记 录 " HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="9"/>
|
||||
<TableCell Name="Cell30" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell31" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell32" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell54" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell55" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell120"/>
|
||||
<TableCell Name="Cell56" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell123"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row5" Height="33.08">
|
||||
<TableCell Name="Cell34" Border.Lines="All" Text="管道编号 /单线号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell35" Border.Lines="All" Text="设计压力 MPa" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell36" Border.Lines="All" Text="设计温度 ℃" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell37" Border.Lines="All" Text="试验环境温度 ℃" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell57" Border.Lines="All" Text="试验介质温度 ℃" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||
<TableCell Name="Cell58" Border.Lines="All" Text="泄漏性试验" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell121"/>
|
||||
<TableCell Name="Cell59" Border.Lines="All" Text="真空试验" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
|
||||
<TableCell Name="Cell124"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row16" Height="37.8">
|
||||
<TableCell Name="Cell113"/>
|
||||
<TableCell Name="Cell114"/>
|
||||
<TableCell Name="Cell115"/>
|
||||
<TableCell Name="Cell116"/>
|
||||
<TableCell Name="Cell117"/>
|
||||
<TableCell Name="Cell118" Border.Lines="All" Text="压力 MPa" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell122" Border.Lines="All" Text="介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell119" Border.Lines="All" Text="压力 MPa" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell125" Border.Lines="All" Text="介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</ChildBand>
|
||||
</ChildBand>
|
||||
</PageHeaderBand>
|
||||
<DataBand Name="Data1" Top="437.17" Width="623.7" Height="33.08" Guides="0,33.08">
|
||||
<TableObject Name="Table3" Width="623.7" Height="33.08" Border.Lines="Left, Bottom" ManualBuildEvent="Table3_ManualBuild">
|
||||
<TableColumn Name="Column15" Width="137.7"/>
|
||||
<TableColumn Name="Column16" Width="71.55"/>
|
||||
<TableColumn Name="Column17" Width="71.55"/>
|
||||
<TableColumn Name="Column18" Width="62.1"/>
|
||||
<TableColumn Name="Column20" Width="52.65"/>
|
||||
<TableColumn Name="Column21" Width="43.2"/>
|
||||
<TableColumn Name="Column36"/>
|
||||
<TableColumn Name="Column22" Width="52.65"/>
|
||||
<TableColumn Name="Column37"/>
|
||||
<TableRow Name="Row7" Height="33.08">
|
||||
<TableCell Name="Cell68" Border.Lines="All" Text="[Data.PipelineNo]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell69" Border.Lines="All" Text="[Data.DesignPressure]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell70" Border.Lines="All" Text="[Data.DesignTem]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell71" Border.Lines="All" Text="[Data.TestAmbientTemp]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell73" Border.Lines="All" Text="[Data.TestMediumTemp]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell74" Border.Lines="All" Text="[Data.LeakPressure]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell126" Border.Lines="All" Text="[Data.LeakMedium]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell75" Border.Lines="All" Text="[Data.VacuumPressure]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell127" Border.Lines="All" Text="[Data.VacuumMedium]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</DataBand>
|
||||
<ColumnFooterBand Name="ColumnFooter1" Top="511.33" Width="623.7">
|
||||
<ChildBand Name="Child2" Top="474.25" Width="623.7" Height="33.08" Guides="0,33.08" FillUnusedSpace="true">
|
||||
<TableObject Name="Table4" Width="623.7" Height="33.08" Border.Lines="Left, Bottom">
|
||||
<TableColumn Name="Column23" Width="137.7"/>
|
||||
<TableColumn Name="Column24" Width="71.55"/>
|
||||
<TableColumn Name="Column25" Width="71.55"/>
|
||||
<TableColumn Name="Column26" Width="62.1"/>
|
||||
<TableColumn Name="Column28" Width="52.65"/>
|
||||
<TableColumn Name="Column29" Width="43.2"/>
|
||||
<TableColumn Name="Column38"/>
|
||||
<TableColumn Name="Column30" Width="52.65"/>
|
||||
<TableColumn Name="Column39"/>
|
||||
<TableRow Name="Row8" Height="33.08">
|
||||
<TableCell Name="Cell76" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell77" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell78" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell79" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell81" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell82" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell128" Border.Lines="All"/>
|
||||
<TableCell Name="Cell83" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell129" Border.Lines="All"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</ChildBand>
|
||||
</ColumnFooterBand>
|
||||
<PageFooterBand Name="PageFooter1" Top="515.33" Width="623.7" Height="211.26" Guides="0,211.26,30.18,60.36,90.54,120.72,150.9,181.08">
|
||||
<TableObject Name="Table5" Width="623.7" Height="211.26" Border.Lines="All">
|
||||
<TableColumn Name="Column31" Width="207.9"/>
|
||||
<TableColumn Name="Column32" Width="207.9"/>
|
||||
<TableColumn Name="Column33" Width="207.9"/>
|
||||
<TableRow Name="Row9" Height="30.18">
|
||||
<TableCell Name="Cell84" Text="试验结论:" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
|
||||
<TableCell Name="Cell85" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell86" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row10" Height="30.18">
|
||||
<TableCell Name="Cell89" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
|
||||
<TableCell Name="Cell90" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell91" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row11" Height="30.18">
|
||||
<TableCell Name="Cell94" Border.Lines="All" Text="建设/监理单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<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"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row12" Height="30.18">
|
||||
<TableCell Name="Cell99" Text="专业工程师:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell100" Border.Lines="Left, Right" Text="专业工程师:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell101" Text="施工班组长:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row13" Height="30.18">
|
||||
<TableCell Name="Cell104" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell105" Border.Lines="Left, Right" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell106" Text="质量检查员:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row14" Height="30.18">
|
||||
<TableCell Name="Cell107" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell108" Border.Lines="Left, Right" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell109" Text="专业工程师:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row15" Height="30.18">
|
||||
<TableCell Name="Cell110" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell111" Border.Lines="Left, Right" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell112" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
</TableRow>
|
||||
</TableObject>
|
||||
</PageFooterBand>
|
||||
</ReportPage>
|
||||
</Report>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/29/2026 10:23:50" ReportInfo.Modified="03/19/2026 15:08:11" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/29/2026 10:23:50" ReportInfo.Modified="09/14/2026 14:54:57" 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+/QFg1qRjSswFxgpEVsc1cd7Ug==">
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFLqIlIgZXSpuHRnSqyOh9GQ==">
|
||||
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
|
||||
<Column Name="PipelineNo" DataType="System.String" PropName="attach_image_id"/>
|
||||
<Column Name="DesignPressure" DataType="System.String" PropName="image_series"/>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="10/26/2024 15:04:43" ReportInfo.Modified="11/05/2024 15:06:25" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="10/26/2024 15:04:43" ReportInfo.Modified="09/24/2026 13:53:49" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<ScriptText>using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
@@ -39,7 +39,7 @@ namespace FastReport
|
||||
}
|
||||
</ScriptText>
|
||||
<Dictionary>
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqdP6ADbZQpLOMXx+Ivgq2SioFBJ7B1iEOuUxf7y1evrTM15NUOhfx6SD2+E9SReEWvg7u6EQdXpqQDDPj6WgkoKQIrTt5q9lJyuCu5B6Nl0MXJ6ZEae4ta6haGkhwICyq72I9X2dS6a3zf8gkFZpb6VtdwKlyFhTivyv2i8IjPiUXLimy5mJMh8U2rXyiDDAJIsLkZzjrsv+NOSh6uCq6Ug==">
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFUQPsnPetCK/eKuGGko7kWA==">
|
||||
<TableDataSource Name="Data" DataType="System.Int32" PropName="HJGL_BakeRecords" Enabled="true" TableName="Data">
|
||||
<Column Name="BakeDateMonth" DataType="System.String"/>
|
||||
<Column Name="BakeDateDay" DataType="System.String" PropName="Column"/>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1404,10 +1404,13 @@
|
||||
<Content Include="JGZL\ElectrodeRecovery.aspx" />
|
||||
<Content Include="JGZL\EWeldRHRecord.aspx" />
|
||||
<Content Include="JGZL\FileDirectory.aspx" />
|
||||
<Content Include="JGZL\IndustrialPipelineInstallationQualityCertificateEdit.aspx" />
|
||||
<Content Include="JGZL\IndustrialPipelineInstallationSummary2020.aspx" />
|
||||
<Content Include="JGZL\IndustrialPipelineInstallationSummaryEdit.aspx" />
|
||||
<Content Include="JGZL\IndustrialPipelineQualityCertificate2020.aspx" />
|
||||
<Content Include="JGZL\InsulationAcceptanceRecord.aspx" />
|
||||
<Content Include="JGZL\InsulationAcceptanceRecordEdit.aspx" />
|
||||
<Content Include="JGZL\LeakageVacuum.aspx" />
|
||||
<Content Include="JGZL\ModRepairQualityCertificate.aspx" />
|
||||
<Content Include="JGZL\PressureTestOfPipelineSystemConfirmationRecord.aspx" />
|
||||
<Content Include="JGZL\LeakTestOfPipelineSystemRecord.aspx" />
|
||||
@@ -1433,9 +1436,7 @@
|
||||
<Content Include="JGZL\HandoverCertificate.aspx" />
|
||||
<Content Include="JGZL\HandoverCertificateEdit.aspx" />
|
||||
<Content Include="JGZL\IndustrialPipelineInstallationQualityCertificate.aspx" />
|
||||
<Content Include="JGZL\IndustrialPipelineInstallationQualityCertificateEdit.aspx" />
|
||||
<Content Include="JGZL\IndustrialPipelineInstallationSummary.aspx" />
|
||||
<Content Include="JGZL\IndustrialPipelineInstallationSummaryEdit.aspx" />
|
||||
<Content Include="JGZL\MaterialIdentificationInspectionRecord.aspx" />
|
||||
<Content Include="JGZL\MaterialIdentificationInspectionRecordEdit.aspx" />
|
||||
<Content Include="JGZL\MaterialIdentificationInspectionRecordSearch.aspx" />
|
||||
@@ -7062,6 +7063,13 @@
|
||||
<Compile Include="JGZL\FileDirectory.aspx.designer.cs">
|
||||
<DependentUpon>FileDirectory.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\IndustrialPipelineInstallationQualityCertificateEdit.aspx.cs">
|
||||
<DependentUpon>IndustrialPipelineInstallationQualityCertificateEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\IndustrialPipelineInstallationQualityCertificateEdit.aspx.designer.cs">
|
||||
<DependentUpon>IndustrialPipelineInstallationQualityCertificateEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\IndustrialPipelineInstallationSummary2020.aspx.cs">
|
||||
<DependentUpon>IndustrialPipelineInstallationSummary2020.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -7069,6 +7077,13 @@
|
||||
<Compile Include="JGZL\IndustrialPipelineInstallationSummary2020.aspx.designer.cs">
|
||||
<DependentUpon>IndustrialPipelineInstallationSummary2020.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\IndustrialPipelineInstallationSummaryEdit.aspx.cs">
|
||||
<DependentUpon>IndustrialPipelineInstallationSummaryEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\IndustrialPipelineInstallationSummaryEdit.aspx.designer.cs">
|
||||
<DependentUpon>IndustrialPipelineInstallationSummaryEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\IndustrialPipelineQualityCertificate2020.aspx.cs">
|
||||
<DependentUpon>IndustrialPipelineQualityCertificate2020.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -7090,6 +7105,13 @@
|
||||
<Compile Include="JGZL\InsulationAcceptanceRecordEdit.aspx.designer.cs">
|
||||
<DependentUpon>InsulationAcceptanceRecordEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\LeakageVacuum.aspx.cs">
|
||||
<DependentUpon>LeakageVacuum.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\LeakageVacuum.aspx.designer.cs">
|
||||
<DependentUpon>LeakageVacuum.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\ModRepairQualityCertificate.aspx.cs">
|
||||
<DependentUpon>ModRepairQualityCertificate.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -7265,13 +7287,6 @@
|
||||
<Compile Include="JGZL\IndustrialPipelineInstallationQualityCertificate.aspx.designer.cs">
|
||||
<DependentUpon>IndustrialPipelineInstallationQualityCertificate.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\IndustrialPipelineInstallationQualityCertificateEdit.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>IndustrialPipelineInstallationQualityCertificateEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\IndustrialPipelineInstallationQualityCertificateEdit.aspx.designer.cs">
|
||||
<DependentUpon>IndustrialPipelineInstallationQualityCertificateEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\IndustrialPipelineInstallationSummary.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>IndustrialPipelineInstallationSummary.aspx</DependentUpon>
|
||||
@@ -7279,13 +7294,6 @@
|
||||
<Compile Include="JGZL\IndustrialPipelineInstallationSummary.aspx.designer.cs">
|
||||
<DependentUpon>IndustrialPipelineInstallationSummary.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\IndustrialPipelineInstallationSummaryEdit.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>IndustrialPipelineInstallationSummaryEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\IndustrialPipelineInstallationSummaryEdit.aspx.designer.cs">
|
||||
<DependentUpon>IndustrialPipelineInstallationSummaryEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\MaterialIdentificationInspectionRecord.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>MaterialIdentificationInspectionRecord.aspx</DependentUpon>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
||||
<Use64BitIISExpress />
|
||||
<IISExpressSSLPort />
|
||||
<IISExpressAnonymousAuthentication />
|
||||
|
||||
@@ -340,6 +340,7 @@
|
||||
newWelder.MaxHanTiao = q.MID_HanTiao;
|
||||
newWelder.MaxWeldingWire = q.MID_WeldingWire;
|
||||
newWelder.IsOAM = true;
|
||||
newWelder.IsSelfCreate = q.IsSelfCreate;
|
||||
if (s.Count() > 0)
|
||||
{
|
||||
newWelder.WED_ID = s.First().WED_ID;
|
||||
@@ -377,9 +378,22 @@
|
||||
{
|
||||
if (!string.IsNullOrEmpty(q.MIDWelder_QualifiedProjectCode))
|
||||
{
|
||||
if (q.MIDWelder_QualifiedProjectCode.Contains("+"))
|
||||
if (q.MIDWelder_QualifiedProjectCode.Contains("+") || q.MIDWelder_QualifiedProjectCode.Contains("+") || q.MIDWelder_QualifiedProjectCode.Contains("和"))
|
||||
{
|
||||
string[] codes = q.MIDWelder_QualifiedProjectCode.Split('+');
|
||||
string[] codes = null;
|
||||
if (q.MIDWelder_QualifiedProjectCode.Contains("+"))
|
||||
{
|
||||
codes = q.MIDWelder_QualifiedProjectCode.Split('+');
|
||||
}
|
||||
if (q.MIDWelder_QualifiedProjectCode.Contains("+"))
|
||||
{
|
||||
codes = q.MIDWelder_QualifiedProjectCode.Split('+');
|
||||
}
|
||||
if (q.MIDWelder_QualifiedProjectCode.Contains("和"))
|
||||
{
|
||||
codes = q.MIDWelder_QualifiedProjectCode.Split('和');
|
||||
}
|
||||
|
||||
foreach (string c in codes)
|
||||
{
|
||||
var oldCode = from x in Funs.DB.HJGL_BS_WelderQualifiedProject where x.WED_ID == s.First().WED_ID && x.QualifiedProjectCode == c && x.LimitDate.Value.Date == q.MIDWelder_LimitDate.Value.Date select x;
|
||||
@@ -425,10 +439,17 @@
|
||||
BLL.HJGL_WelderQualifiedProjectService.UpdateWelderQualifiedLimitDate(welderQualifiedProjectId, limitDate, q.MIDWelder_sfxgjgbl, q.MIDWelder_jjsybl, q.MIDWelder_jjsy);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 回写表OAM_UesrQualified
|
||||
long welder_ID = q.MIDWelder_ID;
|
||||
bool isSync = true;
|
||||
BLL.HJGL_WelderQualifiedProjectService.UpdateOAWelderQue(welder_ID, isSync);
|
||||
|
||||
//List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
//listStr.Add(new SqlParameter("@MIDWelder_ID", q.MIDWelder_ID));
|
||||
//SqlParameter[] parameter = listStr.ToArray();
|
||||
//BLL.SQLHelper.ExecutSql("UPDATE dbo.OAM_UesrQualified SET IsSync=1 WHERE MIDWelder_ID=@MIDWelder_ID", parameter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -210,6 +210,7 @@ namespace FineUIPro.Web.HJGL.DataIn
|
||||
""泄露性试验"",
|
||||
""设计压力"",
|
||||
""设计温度"",
|
||||
""压力试验压力"",
|
||||
""耐压试验"",
|
||||
""外径"",
|
||||
""壁厚"",
|
||||
@@ -348,10 +349,10 @@ namespace FineUIPro.Web.HJGL.DataIn
|
||||
case "设计温度":
|
||||
isoInfo.ISO_DesignTemperature = Funs.GetNewDecimal(row[dataColumn.ColumnName].ToString());
|
||||
break;
|
||||
case "耐压试验":
|
||||
case "压力试验压力":
|
||||
if (isoInfo.ISO_DesignPress.HasValue)
|
||||
{
|
||||
isoInfo.ISO_TestPress = isoInfo.ISO_DesignPress.Value * 1.5m;
|
||||
isoInfo.ISO_TestPress = Funs.GetNewDecimal(row[dataColumn.ColumnName].ToString());
|
||||
}
|
||||
break;
|
||||
case "外径":
|
||||
|
||||
@@ -20,17 +20,19 @@
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="true" EnableCheckBoxSelect="true"
|
||||
KeepCurrentSelection="true" runat="server" BoxFlex="1" DataKeyNames="BakeRecordsId"
|
||||
DataIDField="BakeRecordsId" AllowSorting="true" SortField="BakeDate" SortDirection="DESC"
|
||||
OnSort="Grid1_Sort" EnableTextSelection="True">
|
||||
OnSort="Grid1_Sort" EnableTextSelection="True" AllowPaging="true" IsDatabasePaging="true" PageSize="50"
|
||||
OnPageIndexChange="Grid1_PageIndexChange" >
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar3" Position="Top" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelWidth="50px" Width="265px"
|
||||
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelWidth="50px" Width="200px"
|
||||
EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
<f:DatePicker ID="txtStartDate" runat="server" Label="烘烤日期" EmptyText="开始时间" Width="220px" LabelAlign="Right"></f:DatePicker>
|
||||
<f:Label ID="Label1" runat="server" Text="-"></f:Label>
|
||||
<f:DatePicker ID="txtEndDate" runat="server" EmptyText="结束时间" Width="120px"></f:DatePicker>
|
||||
<f:TextBox runat="server" Label="焊材牌号" ID="txtBrand" EmptyText="输入查询条件" Width="300px" LabelAlign="right"></f:TextBox>
|
||||
<f:DropDownList ID="drpUnitStore" runat="server" Label="焊材库" LabelAlign="Right" Width="220px" LabelWidth="80px"></f:DropDownList>
|
||||
<f:TextBox runat="server" Label="焊材牌号" ID="txtBrand" EmptyText="输入查询条件" Width="200px" LabelAlign="right"></f:TextBox>
|
||||
<f:Button ID="btnSearch" runat="server" Text="查询" Icon="SystemSearch" OnClick="btnSearch_Click"></f:Button>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
|
||||
@@ -30,6 +30,8 @@ namespace FineUIPro.Web.HJGL.MaterialManage
|
||||
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectList("1");
|
||||
this.drpProjectId.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpProjectId);
|
||||
|
||||
BLL.UnitStoreService.InitUnitStoreDropDownList(drpUnitStore, null, true);
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
@@ -82,13 +84,18 @@ namespace FineUIPro.Web.HJGL.MaterialManage
|
||||
strSql += " AND BakeRecords.BakeDate <= @endDate";
|
||||
listStr.Add(new SqlParameter("@endDate", this.txtEndDate.Text.Trim()));
|
||||
}
|
||||
if (this.drpUnitStore.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpUnitStore.SelectedValue))
|
||||
{
|
||||
strSql += " AND BakeRecords.UnitStoreId = @UnitStoreId";
|
||||
listStr.Add(new SqlParameter("@UnitStoreId", this.drpUnitStore.SelectedValue));
|
||||
}
|
||||
strSql += " order by BakeRecords.BakeDate desc";
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
//var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = tb;
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
#endregion
|
||||
@@ -107,6 +114,19 @@ namespace FineUIPro.Web.HJGL.MaterialManage
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 页索引改变事件
|
||||
/// <summary>
|
||||
/// 页索引改变事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
Grid1.PageIndex = e.NewPageIndex;
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 提交
|
||||
/// <summary>
|
||||
/// 确定按钮
|
||||
|
||||
+30
-19
@@ -7,11 +7,13 @@
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HJGL.MaterialManage {
|
||||
|
||||
|
||||
public partial class ElectrodeBakeRecordNewSelect {
|
||||
|
||||
namespace FineUIPro.Web.HJGL.MaterialManage
|
||||
{
|
||||
|
||||
|
||||
public partial class ElectrodeBakeRecordNewSelect
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar3 控件。
|
||||
/// </summary>
|
||||
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar3;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpProjectId 控件。
|
||||
/// </summary>
|
||||
@@ -74,7 +76,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpProjectId;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtStartDate 控件。
|
||||
/// </summary>
|
||||
@@ -83,7 +85,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtStartDate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
@@ -92,7 +94,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtEndDate 控件。
|
||||
/// </summary>
|
||||
@@ -101,7 +103,16 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtEndDate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpUnitStore 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnitStore;
|
||||
|
||||
/// <summary>
|
||||
/// txtBrand 控件。
|
||||
/// </summary>
|
||||
@@ -110,7 +121,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtBrand;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSearch 控件。
|
||||
/// </summary>
|
||||
@@ -119,7 +130,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSearch;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
@@ -128,7 +139,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSure 控件。
|
||||
/// </summary>
|
||||
@@ -137,7 +148,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSure;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window2 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:TextBox ID="txtCode" runat="server" Label="卷号" LabelAlign="Right"></f:TextBox>
|
||||
<f:Button ID="btnPrint" Text="封面打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
<f:Button ID="btnPrint" Text="预览" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出Word" Icon="FolderUp"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnPrint" Text="交工技术文件说明打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
<f:Button ID="btnPrint" Text="预览" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出Word" Icon="FolderUp"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnPrint" Text="交工技术文件目录打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
<f:Button ID="btnPrint" Text="预览" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出Word" Icon="FolderUp"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
|
||||
@@ -309,7 +309,7 @@ namespace FineUIPro.Web.JGZL
|
||||
string filePath = string.Empty;
|
||||
|
||||
//每页显示的固定数据行数
|
||||
int rowsPerPage = 36;
|
||||
int rowsPerPage = 33;
|
||||
|
||||
string projectId = this.tvControlItem.SelectedNodeID;
|
||||
if (!string.IsNullOrEmpty(projectId))
|
||||
@@ -352,7 +352,9 @@ namespace FineUIPro.Web.JGZL
|
||||
for (int i = 0; i < tb.Rows.Count; i++)
|
||||
{
|
||||
//创建行
|
||||
Row row = new Row(doc);
|
||||
Row row = new Row(doc);
|
||||
row.RowFormat.Height = 18;
|
||||
row.RowFormat.HeightRule = HeightRule.Exactly;
|
||||
row.Cells.Add(CreateCell((i + 1).ToString(), doc, 27, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["FileCode"].ToString(), doc, 118, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["FileName"].ToString(), doc, 261.3, "", ""));
|
||||
@@ -370,6 +372,8 @@ namespace FineUIPro.Web.JGZL
|
||||
for (int i = 0; i < needBlankRows - 1; i++)
|
||||
{
|
||||
Row blankRow = new Row(doc);
|
||||
blankRow.RowFormat.Height = 18;
|
||||
blankRow.RowFormat.HeightRule = HeightRule.Exactly;
|
||||
// 空白行的单元格宽度和数据行保持一致
|
||||
blankRow.Cells.Add(CreateCell("", doc, 27, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 118, "", ""));
|
||||
@@ -431,6 +435,11 @@ namespace FineUIPro.Web.JGZL
|
||||
//序号
|
||||
value = " " + value;
|
||||
}
|
||||
|
||||
Run run = new Run(doc, value);
|
||||
run.Font.Size = 10.5;
|
||||
run.Font.Name = "楷体";
|
||||
|
||||
if (!string.IsNullOrEmpty(cellUnitLeft))
|
||||
{
|
||||
p.ParagraphFormat.Alignment = ParagraphAlignment.Left;//表格中字体居左
|
||||
@@ -441,7 +450,7 @@ namespace FineUIPro.Web.JGZL
|
||||
}
|
||||
|
||||
|
||||
p.AppendChild(new Run(doc, value));
|
||||
p.AppendChild(run);
|
||||
|
||||
cell.CellFormat.Width = cellWidth;
|
||||
|
||||
|
||||
@@ -42,8 +42,7 @@
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<%--<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>--%>
|
||||
<f:Button ID="btnPrint" Text="工业管道安装质量证明书(安装)打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
<f:Button ID="btnPrint" Text="预览" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出Word" Icon="FolderUp"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
@@ -60,12 +59,6 @@
|
||||
<f:TextBox ID="txtCertificateCode" runat="server" Label="编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<%--<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtEngineeringName" runat="server" Label="工程名称" LabelAlign="Right" LabelWidth="170px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
<f:TextBox ID="txtEngineeringCode" runat="server" Label="工程编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>--%>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtDeliveryUnit" runat="server" Label="交工单元名称" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
|
||||
@@ -81,43 +74,33 @@
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpPipelineLevel" runat="server" Label="管道级别" LabelAlign="Right" LabelWidth="170px" EnableEdit="true"></f:DropDownList>
|
||||
<%--<f:DropDownList ID="drpPipelineLength" runat="server" Label="管道长度" LabelAlign="Right" LabelWidth="170px" EnableEdit="true"></f:DropDownList>--%>
|
||||
<%--<f:TextBox ID="txtPipelineLevel" runat="server" Label="管道级别" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>--%>
|
||||
<f:TextBox ID="txtPipelineLength" runat="server" Label="管道长度" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<%--<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtDesignLicenseCode" runat="server" Label="压力管道设计许可证编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
|
||||
<f:TextBox ID="txtQualificationCertificateCode" runat="server" Label="资质证书编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>--%>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<%--<f:TextBox ID="txtInstitutionalApprovalCertificate" runat="server" Label="无损检测机构核准证编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>--%>
|
||||
<f:TextBox ID="txtDesignUnit" runat="server" Label="设计单位" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
|
||||
<f:TextBox ID="txtLosslessTestingAgency" runat="server" Label="无损检测机构" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<%--<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtSupervisoryAndInspectionAgency" runat="server" Label="监理单位" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>--%>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtInstallationInspection" runat="server" Label="监检机构" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
|
||||
<f:TextBox ID="txtConstructionUnit" runat="server" Label="建设单位(使用单位)" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="20% 40% 40%">
|
||||
<f:FormRow ColumnWidths="10% 90%">
|
||||
<Items>
|
||||
<f:Label ID="lblRemark" runat="server" Text="本工业管道的安装经质量检验,符合"></f:Label>
|
||||
<%--<f:TextBox ID="txtRemark" runat="server"></f:TextBox>--%>
|
||||
<f:DropDownList ID="drpRemark" runat="server" >
|
||||
<f:ListItem Value="GB50517-2010石油化工金属管道工程施工质量验收规范" Text="GB50517-2010石油化工金属管道工程施工质量验收规范"/>
|
||||
<f:ListItem Value="SH/T3501-2021石油化工有毒、可燃介质钢制管道工程施工及验收规范" Text="SH/T3501-2021石油化工有毒、可燃介质钢制管道工程施工及验收规范"/>
|
||||
<f:Label ID="Label1" runat="server"></f:Label>
|
||||
<f:Label ID="lblRemark" runat="server" Text="本压力管道的安装经质量检验,符合《工业管道安装技术规程》(TSG 31-2025)、设计文件和"></f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="10% 55% 35%">
|
||||
<Items>
|
||||
<f:Label ID="Label2" runat="server"></f:Label>
|
||||
<f:DropDownList ID="drpRemark" runat="server">
|
||||
<f:ListItem Value="GB50517-2010石油化工金属管道工程施工质量验收规范" Text="GB50517-2010石油化工金属管道工程施工质量验收规范" />
|
||||
<f:ListItem Value="SH/T3501-2021石油化工有毒、可燃介质钢制管道工程施工及验收规范" Text="SH/T3501-2021石油化工有毒、可燃介质钢制管道工程施工及验收规范" />
|
||||
</f:DropDownList>
|
||||
<f:Label ID="lbld" runat="server" Text="的要求。"></f:Label>
|
||||
</Items>
|
||||
@@ -125,99 +108,18 @@
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtSpecialEquipmentProductionLicenseCode" runat="server" Label="特种设备安装许可证编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
|
||||
<%--<f:TextArea ID="txtRemark" runat="server" Label="备注" LabelAlign="Right" LabelWidth="170px" MaxLength="500"></f:TextArea>--%>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
<%--<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="工业管道安装质量证明书" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="CertificateId" AllowCellEditing="true"
|
||||
EnableColumnLines="true" ClicksToEdit="1" DataIDField="CertificateId" AllowSorting="true"
|
||||
SortField="CertificateCode" 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="CertificateCode" DataField="CertificateCode" SortField="CertificateCode"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="140px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="交工单元名称" ColumnID="DeliveryUnit" DataField="DeliveryUnit" SortField="DeliveryUnit"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="220px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="交工单元编号" ColumnID="DeliveryUnitCode" DataField="DeliveryUnitCode" SortField="DeliveryUnitCode"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="120px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="安装开工日期" ColumnID="InstallStartDate" DataField="InstallStartDate" SortField="InstallStartDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="安装竣工日期" ColumnID="InstallEndDate" DataField="InstallEndDate" SortField="InstallEndDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="管道级别" ColumnID="PipelineLevel" DataField="PipelineLevel" SortField="PipelineLevel"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="120px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="管道长度" ColumnID="PipelineLength" DataField="PipelineLength" SortField="PipelineLength"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="150px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="设计单位" ColumnID="DesignUnit" DataField="DesignUnit" SortField="DesignUnit"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="150px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="无损检测机构" ColumnID="LosslessTestingAgency" DataField="LosslessTestingAgency" SortField="LosslessTestingAgency"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="150px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="监检机构" ColumnID="InstallationInspection" DataField="InstallationInspection" SortField="InstallationInspection"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="150px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="建设单位(使用单位)" ColumnID="ConstructionUnit" DataField="ConstructionUnit" SortField="ConstructionUnit"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="150px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
</Listeners>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
<f:ListItem Text="10" Value="10" />
|
||||
<f:ListItem Text="15" Value="15" />
|
||||
<f:ListItem Text="20" Value="20" />
|
||||
<f:ListItem Text="25" Value="25" />
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>--%>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<%--<f:Window ID="Window1" Title="工业管道安装质量证明书" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||
Width="900px" Height="600px">
|
||||
</f:Window>--%>
|
||||
<f:Window ID="WindowPrint" Title="打印工业管道安装质量证明书(安装)" Hidden="true" EnableIFrame="true" EnableMaximize="false"
|
||||
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
|
||||
Height="600px">
|
||||
</f:Window>
|
||||
<%--<f:Menu ID="Menu1" runat="server">
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
||||
runat="server" Text="编辑" Icon="TableEdit">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
|
||||
</f:MenuButton>
|
||||
</f:Menu>--%>
|
||||
</form>
|
||||
<%--<script type="text/javascript">
|
||||
var menuID = '<%= Menu1.ClientID %>';
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
</script>--%>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+28
-229
@@ -41,8 +41,6 @@ namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
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");
|
||||
@@ -58,12 +56,6 @@ namespace FineUIPro.Web.JGZL
|
||||
this.drpPipelineLevel.DataValueField = "ISC_IsoName";
|
||||
this.drpPipelineLevel.DataSource = BLL.HJGL_PW_IsoInfoService.GetPipelineLevelList(this.drpProjectId.SelectedValue);
|
||||
this.drpPipelineLevel.DataBind();
|
||||
//管道长度
|
||||
//this.drpPipelineLength.DataTextField = "PipeLineLength";
|
||||
//this.drpPipelineLength.DataValueField = "PipeLineLength";
|
||||
//this.drpPipelineLength.DataSource = BLL.HJGL_PW_IsoInfoService.GetPipeLineLengthList(this.drpProjectId.SelectedValue);
|
||||
//this.drpPipelineLength.DataBind();
|
||||
//this.BindGrid();
|
||||
PageData();
|
||||
}
|
||||
}
|
||||
@@ -159,12 +151,22 @@ namespace FineUIPro.Web.JGZL
|
||||
else
|
||||
{
|
||||
this.CertificateId = string.Empty;
|
||||
this.txtInstallationInspection.Text = "浙江省特种设备研究院";
|
||||
this.txtCertificateCode.Text = "0XXX-91330921MA2A2R3F6G-" + DateTime.Now.Year;
|
||||
var insta = (from x in Funs.DB.Project_Installation where x.ProjectId == this.CurrUser.LoginProjectId select x).FirstOrDefault();
|
||||
if (insta != null)
|
||||
{
|
||||
this.txtDeliveryUnit.Text = insta.InstallationName;
|
||||
this.txtDeliveryUnitCode.Text = insta.InstallationCode;
|
||||
}
|
||||
this.txtInstallationInspection.Text = "浙江省特种设备科学研究院";
|
||||
this.txtConstructionUnit.Text = "浙江石油化工有限公司";
|
||||
this.txtSpecialEquipmentProductionLicenseCode.Text = "TS3833339-2028";
|
||||
//this.txtRemark.Text = "GB50517-2023";
|
||||
this.txtPipelineLength.Text = BLL.HJGL_PW_IsoInfoService.GetPipeLineLengthList(this.tvControlItem.SelectedNodeID).Value.ToString(".##");
|
||||
}
|
||||
var pipeLineLength = BLL.HJGL_PW_IsoInfoService.GetPipeLineLengthList(this.tvControlItem.SelectedNodeID);
|
||||
if (pipeLineLength != null)
|
||||
{
|
||||
this.txtPipelineLength.Text = pipeLineLength.Value.ToString(".##");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -212,80 +214,10 @@ namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
if (this.tvControlItem.SelectedNodeID != "0")
|
||||
{
|
||||
//this.BindGrid();
|
||||
PageData();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 数据绑定
|
||||
/// <summary>
|
||||
/// 数据绑定
|
||||
/// </summary>
|
||||
//private void BindGrid()
|
||||
//{
|
||||
// //string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1");
|
||||
// string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationQualityCertificate where 1=1";
|
||||
// List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
// if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
// {
|
||||
// strSql += " AND ProjectId = @ProjectId";
|
||||
// listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
|
||||
// }
|
||||
// //else
|
||||
// //{
|
||||
// // strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 ";
|
||||
// // listStr.Add(new SqlParameter("@ProjectId", projectIds));
|
||||
// //}
|
||||
// SqlParameter[] parameter = listStr.ToArray();
|
||||
// DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
// // 2.获取当前分页数据
|
||||
// Grid1.RecordCount = tb.Rows.Count;
|
||||
// //tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
// var table = this.GetPagedDataTable(Grid1, tb);
|
||||
// Grid1.DataSource = table;
|
||||
// Grid1.DataBind();
|
||||
//}
|
||||
#endregion
|
||||
|
||||
#region 分页排序
|
||||
#region 页索引改变事件
|
||||
/// <summary>
|
||||
/// 页索引改变事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
//protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
//{
|
||||
// BindGrid();
|
||||
//}
|
||||
#endregion
|
||||
|
||||
#region 排序
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
//protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
//{
|
||||
// BindGrid();
|
||||
//}
|
||||
#endregion
|
||||
|
||||
#region 分页选择下拉改变事件
|
||||
/// <summary>
|
||||
/// 分页选择下拉改变事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
//protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
//{
|
||||
// Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||
// BindGrid();
|
||||
//}
|
||||
#endregion
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 查询
|
||||
///<summary>
|
||||
@@ -376,7 +308,7 @@ namespace FineUIPro.Web.JGZL
|
||||
newRow["InstallationInspection"] = report.InstallationInspection;
|
||||
newRow["ConstructionUnit"] = report.ConstructionUnit;
|
||||
newRow["SpecialEquipmentProductionLicenseCode"] = report.SpecialEquipmentProductionLicenseCode;
|
||||
newRow["Remark"] = " 本工业管道的安装经质量检验,符合" + report.Remark + "要求。";
|
||||
newRow["Remark"] = " 本压力管道的安装经质量检验,符合《工业管道安装技术规程》(TSG 31-2025)、设计文件和" + report.Remark + "要求。";
|
||||
dt.Rows.Add(newRow);
|
||||
|
||||
BLL.Common.FastReportService.AddFastreportTable(dt);
|
||||
@@ -405,148 +337,6 @@ namespace FineUIPro.Web.JGZL
|
||||
}
|
||||
#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("IndustrialPipelineInstallationQualityCertificateEdit.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_IndustrialPipelineInstallationQualityCertificateMenuId, BLL.Const.BtnModify))
|
||||
// {
|
||||
// if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
// {
|
||||
// if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||
// {
|
||||
// PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationQualityCertificateEdit.aspx?certificateId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
// }
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// 右键编辑
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
//protected void btnMenuEdit_Click(object sender, EventArgs e)
|
||||
//{
|
||||
// if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_IndustrialPipelineInstallationQualityCertificateMenuId, BLL.Const.BtnModify))
|
||||
// {
|
||||
// if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
// {
|
||||
// Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
// }
|
||||
// PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationQualityCertificateEdit.aspx?certificateId={0}", Grid1.SelectedRowID, "维护 - ")));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
// }
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// 右键删除
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
//protected void btnMenuDelete_Click(object sender, EventArgs e)
|
||||
//{
|
||||
// if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_IndustrialPipelineInstallationQualityCertificateMenuId, 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.IndustrialPipelineInstallationQualityCertificateService.DeleteIndustrialPipelineInstallationQualityCertificateById(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>
|
||||
/// 关闭弹出窗口
|
||||
@@ -700,17 +490,26 @@ namespace FineUIPro.Web.JGZL
|
||||
Bookmark pipelineLevel = doc.Range.Bookmarks["PipelineLevel"];
|
||||
if (pipelineLevel != null)
|
||||
{
|
||||
pipelineLevel.Text = report.PipelineLevel;
|
||||
if (report.PipelineLevel != null)
|
||||
{
|
||||
pipelineLevel.Text = report.PipelineLevel;
|
||||
}
|
||||
}
|
||||
Bookmark pipelineLength = doc.Range.Bookmarks["PipelineLength"];
|
||||
if (pipelineLength != null)
|
||||
{
|
||||
pipelineLength.Text = report.PipelineLength;
|
||||
if (report.PipelineLength != null)
|
||||
{
|
||||
pipelineLength.Text = report.PipelineLength;
|
||||
}
|
||||
}
|
||||
Bookmark designUnit = doc.Range.Bookmarks["DesignUnit"];
|
||||
if (designUnit != null)
|
||||
{
|
||||
designUnit.Text = report.DesignUnit;
|
||||
if (report.DesignUnit != null)
|
||||
{
|
||||
designUnit.Text = report.DesignUnit;
|
||||
}
|
||||
}
|
||||
Bookmark losslessTestingAgency = doc.Range.Bookmarks["LosslessTestingAgency"];
|
||||
if (losslessTestingAgency != null)
|
||||
|
||||
Generated
+18
@@ -239,6 +239,15 @@ namespace FineUIPro.Web.JGZL
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtConstructionUnit;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// lblRemark 控件。
|
||||
/// </summary>
|
||||
@@ -248,6 +257,15 @@ namespace FineUIPro.Web.JGZL
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lblRemark;
|
||||
|
||||
/// <summary>
|
||||
/// Label2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label2;
|
||||
|
||||
/// <summary>
|
||||
/// drpRemark 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
</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 ID="btnPrint" Text="预览" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出Word" Icon="FolderUp"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using Aspose.Words;
|
||||
using Aspose.Words.Tables;
|
||||
using BLL;
|
||||
using FineUIPro.Web.common.BaseInfo;
|
||||
using Model;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
@@ -146,7 +147,7 @@ namespace FineUIPro.Web.JGZL
|
||||
var jointInfo = (from x in Funs.DB.HJGL_PW_JointInfo where x.ISO_ID == item.ISO_ID select x).FirstOrDefault();
|
||||
if (jointInfo != null)
|
||||
{
|
||||
newSummary.Specifications = jointInfo.JOT_JointDesc;
|
||||
newSummary.Specifications = HttpUtility.HtmlDecode(jointInfo.JOT_JointDesc);
|
||||
}
|
||||
newSummary.Length = item.PipeLineLength.HasValue ? item.PipeLineLength.Value.ToString("#.00") : "";
|
||||
newSummary.WeldsNum = BLL.HJGL_PW_JointInfoService.GetJointCountByIsoId(item.ISO_ID).ToString();
|
||||
@@ -392,16 +393,26 @@ CASE WHEN ISNUMERIC(DesignPressure)=1 THEN FORMAT(CAST(DesignPressure AS DECIMAL
|
||||
int i = 0;
|
||||
foreach (var row in rows)
|
||||
{
|
||||
string pipeLineClass = string.Empty;
|
||||
string isoNo = row["PipelineCode"].ToString();
|
||||
var isoInfo = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoNo(isoNo, projectId);
|
||||
if (isoInfo != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(isoInfo.PipeLineClass) && isoInfo.PipeLineClass != "/")
|
||||
{
|
||||
pipeLineClass = isoInfo.PipeLineClass + "/";
|
||||
}
|
||||
}
|
||||
var newRow = dt.NewRow();
|
||||
newRow["Num"] = (i + 1).ToString();
|
||||
newRow["PipelineCode"] = row["PipelineCode"].ToString();
|
||||
newRow["PipelineLevel"] = row["PipelineLevel"].ToString();
|
||||
newRow["PipelineCode"] = isoNo;
|
||||
newRow["PipelineLevel"] = pipeLineClass + row["PipelineLevel"].ToString();
|
||||
newRow["DesignPressure"] = row["DesignPressure"].ToString();
|
||||
newRow["DesignTemperature"] = row["DesignTemperature"].ToString();
|
||||
newRow["OperatingTemperature"] = row["OperatingTemperature"].ToString();
|
||||
newRow["Medium"] = row["Medium"].ToString();
|
||||
newRow["Material"] = row["Material"].ToString();
|
||||
newRow["Specifications"] = row["Specifications"].ToString();
|
||||
newRow["Specifications"] = HttpUtility.HtmlDecode(row["Specifications"].ToString());
|
||||
newRow["Length"] = row["Length"].ToString();
|
||||
newRow["LayingMethod"] = row["LayingMethod"].ToString();
|
||||
newRow["WeldsNum"] = row["WeldsNum"].ToString();
|
||||
@@ -621,7 +632,7 @@ CASE WHEN ISNUMERIC(DesignPressure)=1 THEN FORMAT(CAST(DesignPressure AS DECIMAL
|
||||
DesignTemperature = values.Value<string>("DesignTemperature"),
|
||||
Medium = values.Value<string>("Medium"),
|
||||
Material = values.Value<string>("Material"),
|
||||
Specifications = values.Value<string>("Specifications"),
|
||||
Specifications = HttpUtility.HtmlDecode(values.Value<string>("Specifications").Replace('×', 'x')),
|
||||
Length = values.Value<string>("Length"),
|
||||
LayingMethod = values.Value<string>("LayingMethod"),
|
||||
WeldsNum = values.Value<string>("WeldsNum"),
|
||||
@@ -661,227 +672,329 @@ CASE WHEN ISNUMERIC(DesignPressure)=1 THEN FORMAT(CAST(DesignPressure AS DECIMAL
|
||||
protected void btnOut_Click(object sender, EventArgs e)
|
||||
{
|
||||
string rootPath = Server.MapPath("~/");
|
||||
string initTemplatePath = string.Empty;
|
||||
string uploadfilepath = string.Empty;
|
||||
string newUrl = string.Empty;
|
||||
string filePath = string.Empty;
|
||||
|
||||
//每页显示的固定数据行数
|
||||
int rowsPerPage = 4;
|
||||
|
||||
string projectId = this.tvControlItem.SelectedNodeID;
|
||||
if (!string.IsNullOrEmpty(projectId))
|
||||
string initTemplatePath = Const.JGZL_IndustrialPipelineInstallationSummaryUrl;
|
||||
string templateFullPath = Path.Combine(rootPath, initTemplatePath);
|
||||
string saveTempPath = templateFullPath.Replace("工业管道安装汇总表导出模板", "工业管道安装汇总表(安装)");
|
||||
int dataRowsPerPage = 5; //每页明细数据行数
|
||||
string projectId = tvControlItem.SelectedNodeID;
|
||||
if (string.IsNullOrEmpty(projectId))
|
||||
{
|
||||
string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationSummary where ProjectId = @ProjectId and FromType='1'";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", projectId));
|
||||
if (!string.IsNullOrEmpty(this.txtIsoNoS.Text))
|
||||
{
|
||||
strSql += " And PipelineCode like @pipeLineCode";
|
||||
listStr.Add(new SqlParameter("@pipeLineCode", "%" + this.txtIsoNoS.Text + "%"));
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
if (tb.Rows.Count > 0)
|
||||
{
|
||||
initTemplatePath = Const.JGZL_IndustrialPipelineInstallationSummaryUrl;
|
||||
uploadfilepath = rootPath + initTemplatePath;
|
||||
|
||||
newUrl = uploadfilepath.Replace("工业管道安装汇总表导出模板", "工业管道安装汇总表(安装)");
|
||||
if (File.Exists(newUrl))
|
||||
{
|
||||
File.Delete(newUrl);
|
||||
}
|
||||
File.Copy(uploadfilepath, newUrl);
|
||||
//更新书签内容
|
||||
Document doc = new Aspose.Words.Document(newUrl);
|
||||
DocumentBuilder builder = new DocumentBuilder(doc);
|
||||
|
||||
Aspose.Words.Tables.Table table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, 0, true);
|
||||
|
||||
string certificateCode = string.Empty;
|
||||
string deliveryUnit = string.Empty;
|
||||
string deliveryUnitCode = string.Empty;
|
||||
string certificateId = tb.Rows[0]["CertificateId"].ToString();
|
||||
var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(certificateId);
|
||||
if (certificate != null)
|
||||
{
|
||||
certificateCode = certificate.CertificateCode;
|
||||
deliveryUnit = certificate.DeliveryUnit;
|
||||
deliveryUnitCode = certificate.DeliveryUnitCode;
|
||||
}
|
||||
|
||||
Bookmark bookmark1 = doc.Range.Bookmarks["certificateCode"];
|
||||
if (bookmark1 != null)
|
||||
{
|
||||
bookmark1.Text = certificateCode;
|
||||
}
|
||||
Bookmark bookmark2 = doc.Range.Bookmarks["deliveryUnit"];
|
||||
if (bookmark2 != null)
|
||||
{
|
||||
bookmark2.Text = deliveryUnit;
|
||||
}
|
||||
Bookmark bookmark3 = doc.Range.Bookmarks["deliveryUnitCode"];
|
||||
if (bookmark3 != null)
|
||||
{
|
||||
bookmark3.Text = deliveryUnitCode;
|
||||
}
|
||||
|
||||
// 设置表头行重复显示
|
||||
table.Rows[0].RowFormat.HeadingFormat = true;
|
||||
table.Rows[1].RowFormat.HeadingFormat = true;
|
||||
table.Rows[2].RowFormat.HeadingFormat = true;
|
||||
|
||||
// 先记录页尾行,并从表格中移除
|
||||
//Row footerRow = table.Rows[table.Rows.Count - 1];
|
||||
//table.Rows.RemoveAt(table.Rows.Count - 1);
|
||||
|
||||
for (int i = 0; i < tb.Rows.Count; i++)
|
||||
{
|
||||
//创建行
|
||||
Aspose.Words.Tables.Row row = new Aspose.Words.Tables.Row(doc);
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["PipelineCode"].ToString(), doc, 32.3, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["PipelineLevel"].ToString(), doc, 33.7, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["PipelineStartPoint"].ToString(), doc, 31.75, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["PipelineEndPoint"].ToString(), doc, 32, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["DesignPressure"].ToString(), doc, 40, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["DesignTemperature"].ToString(), doc, 36, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["Medium"].ToString(), doc, 30.6, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["Material"].ToString(), doc, 31.47, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["Specifications"].ToString(), doc, 32.3, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["Length"].ToString(), doc, 30, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["LayingMethod"].ToString(), doc, 31.49, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["WeldsNum"].ToString(), doc, 30, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["LosslessRatio"].ToString(), doc, 39, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["VoltageResistantTestMethod"].ToString(), doc, 32.3, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["VoltageResistantTestMedium"].ToString(), doc, 28.6, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["VoltageResistantTestPressure"].ToString(), doc, 38, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["LeakageTestMedium"].ToString(), doc, 37.4, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["LeakageTestPressure"].ToString(), doc, 41.67, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["CleaningMethod"].ToString(), doc, 34.3, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["CorrosionControlMethod"].ToString(), doc, 31.2, "", ""));
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["InsulationMethod"].ToString(), doc, 43.9, "", ""));
|
||||
|
||||
table.Rows.Insert(i + 3, row);
|
||||
}
|
||||
// 计算并插入空白行,填满整页
|
||||
// 计算总数据行数
|
||||
int totalDataRows = tb.Rows.Count;
|
||||
// 计算需要补充的空白行数量
|
||||
int remainder = totalDataRows % rowsPerPage;
|
||||
int needBlankRows = remainder == 0 ? 0 : rowsPerPage - remainder;
|
||||
|
||||
// 插入空白行(和数据行格式保持一致,仅内容为空)
|
||||
for (int i = 0; i < needBlankRows - 1; i++)
|
||||
{
|
||||
Aspose.Words.Tables.Row blankRow = new Aspose.Words.Tables.Row(doc);
|
||||
// 空白行的单元格宽度和数据行保持一致
|
||||
blankRow.Cells.Add(CreateCell("", doc, 32.3, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 33.7, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 31.75, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 32, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 40, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 36, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 30.6, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 31.47, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 32.3, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 30, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 31.49, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 30, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 39, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 32.3, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 28.6, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 38, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 37.4, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 41.67, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 34.3, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 31.2, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 43.9, "", ""));
|
||||
|
||||
// 插入到表格最后一行
|
||||
table.Rows.Add(blankRow);
|
||||
}
|
||||
//把页尾行重新加回表格最后
|
||||
//table.Rows.Add(footerRow);
|
||||
|
||||
//自动设置表格样式
|
||||
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
|
||||
table.Alignment = TableAlignment.Center;
|
||||
|
||||
doc.Save(newUrl);
|
||||
|
||||
string fileName = Path.GetFileName(newUrl);
|
||||
FileInfo info = new FileInfo(newUrl);
|
||||
long fileSize = info.Length;
|
||||
Response.Clear();
|
||||
Response.ContentType = "application/x-zip-compressed";
|
||||
Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
|
||||
Response.AddHeader("Content-Length", fileSize.ToString());
|
||||
Response.TransmitFile(newUrl, 0, fileSize);
|
||||
Response.Flush();
|
||||
Response.Close();
|
||||
File.Delete(newUrl);
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("没有要导出的数据!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop("请先选择项目!");
|
||||
return;
|
||||
}
|
||||
string sql = @"SELECT * from JGZL_IndustrialPipelineInstallationSummary
|
||||
WHERE ProjectId = @ProjectId AND FromType='1'";
|
||||
List<SqlParameter> paras = new List<SqlParameter>();
|
||||
paras.Add(new SqlParameter("@ProjectId", projectId));
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(sql, paras.ToArray());
|
||||
if (tb == null || tb.Rows.Count <= 0)
|
||||
{
|
||||
Alert.ShowInTop("当前没有可导出的数据!");
|
||||
return;
|
||||
}
|
||||
//复制模板
|
||||
if (File.Exists(saveTempPath))
|
||||
{
|
||||
File.Delete(saveTempPath);
|
||||
}
|
||||
File.Copy(templateFullPath, saveTempPath);
|
||||
Document doc = new Document(saveTempPath);
|
||||
DocumentBuilder builder = new DocumentBuilder(doc);
|
||||
Aspose.Words.Tables.Table table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, 0, true);
|
||||
if (table == null)
|
||||
{
|
||||
Alert.ShowInTop("导出模板异常,未找到汇总主表格!");
|
||||
return;
|
||||
}
|
||||
string certificateCode = string.Empty;
|
||||
string deliveryUnit = string.Empty;
|
||||
string deliveryUnitCode = string.Empty;
|
||||
string certificateId = tb.Rows[0]["CertificateId"] == DBNull.Value ? "" : tb.Rows[0]["CertificateId"].ToString();
|
||||
var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(certificateId);
|
||||
if (certificate != null)
|
||||
{
|
||||
certificateCode = certificate.CertificateCode;
|
||||
deliveryUnit = certificate.DeliveryUnit;
|
||||
deliveryUnitCode = certificate.DeliveryUnitCode;
|
||||
}
|
||||
//书签赋值交工单元
|
||||
Bookmark bookmark1 = doc.Range.Bookmarks["certificateCode"];
|
||||
if (bookmark1 != null) bookmark1.Text = certificateCode;
|
||||
Bookmark bookmark2 = doc.Range.Bookmarks["deliveryUnit"];
|
||||
if (bookmark2 != null) bookmark2.Text = deliveryUnit;
|
||||
Bookmark bookmark3 = doc.Range.Bookmarks["deliveryUnitCode"];
|
||||
if (bookmark3 != null) bookmark3.Text = deliveryUnitCode;
|
||||
// 关闭HeadingFormat,全部走手动克隆表头
|
||||
table.Rows[0].RowFormat.HeadingFormat = false;
|
||||
table.Rows[1].RowFormat.HeadingFormat = false;
|
||||
table.Rows[2].RowFormat.HeadingFormat = false;
|
||||
//克隆表格内表头行
|
||||
Aspose.Words.Tables.Row deliveryUnitRow = (Aspose.Words.Tables.Row)table.Rows[0].Clone(true); //交工单元行,仅首页
|
||||
Aspose.Words.Tables.Row headerRow1 = (Aspose.Words.Tables.Row)table.Rows[1].Clone(true);
|
||||
Aspose.Words.Tables.Row headerRow2 = (Aspose.Words.Tables.Row)table.Rows[2].Clone(true);
|
||||
// 清理模板预留空行;保留 Row0(交工单元)、Row1、Row2(列表头)
|
||||
while (table.Rows.Count > 3)
|
||||
{
|
||||
table.Rows.RemoveAt(3);
|
||||
}
|
||||
int totalCount = tb.Rows.Count;
|
||||
int pageRowCounter = 0;
|
||||
for (int i = 0; i < totalCount; i++)
|
||||
{
|
||||
DataRow dr = tb.Rows[i];
|
||||
Aspose.Words.Tables.Row dataRow = BuildDataRow(dr, doc);
|
||||
table.Rows.Add(dataRow);
|
||||
pageRowCounter++;
|
||||
// 判断:本页已满,并且不是最后一条记录
|
||||
if (pageRowCounter >= dataRowsPerPage && i != totalCount - 1)
|
||||
{
|
||||
//补本页空白行
|
||||
int blankNeed = dataRowsPerPage - pageRowCounter;
|
||||
for (int b = 0; b < blankNeed; b++)
|
||||
{
|
||||
table.Rows.Add(BuildBlankRow(doc));
|
||||
}
|
||||
// 1. 定位到当前表格之后,输出本页底部页码
|
||||
if (table.NextSibling == null)
|
||||
{
|
||||
Paragraph paraAfter = new Paragraph(doc);
|
||||
table.ParentNode.InsertAfter(paraAfter, table);
|
||||
}
|
||||
builder.MoveTo(table.NextSibling);
|
||||
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;
|
||||
builder.Font.Name = "宋体";
|
||||
builder.Font.Size = 10.5;
|
||||
builder.Write("共 ");
|
||||
builder.InsertField(@"NUMPAGES", "");
|
||||
builder.Write(" 页 第 ");
|
||||
builder.InsertField(@"PAGE", "");
|
||||
builder.Write(" 页");
|
||||
//保存当前节点(页码段落),后续DOM在它后面追加内容
|
||||
Node currentParaNode = builder.CurrentParagraph;
|
||||
//插入分页符(写在当前页码段落末尾)
|
||||
builder.InsertBreak(BreakType.PageBreak);
|
||||
//==== DOM方式新建【续页:大标题 + 质量证明书编号】====
|
||||
//续页主标题:工业管道安装汇总表
|
||||
Paragraph titlePara = new Paragraph(doc);
|
||||
titlePara.ParagraphFormat.Alignment = ParagraphAlignment.Center;
|
||||
Run titleRun = new Run(doc, "工业管道安装汇总表");
|
||||
titleRun.Font.Name = "宋体";
|
||||
titleRun.Font.Size = 16;
|
||||
titleRun.Font.Bold = true;
|
||||
titlePara.Runs.Add(titleRun);
|
||||
Paragraph certPara = new Paragraph(doc);
|
||||
certPara.ParagraphFormat.Alignment = ParagraphAlignment.Left;
|
||||
Run certRun = new Run(doc, "质量证明书编号:" + certificateCode);
|
||||
certRun.Font.Name = "宋体";
|
||||
certRun.Font.Size = 10.5;
|
||||
certPara.Runs.Add(certRun);
|
||||
//新建空段落用来做间隔
|
||||
Paragraph emptyPara = new Paragraph(doc);
|
||||
//新建续页表格:先加行,再设置格式
|
||||
Aspose.Words.Tables.Table newPageTable = new Aspose.Words.Tables.Table(doc);
|
||||
newPageTable.Rows.Add((Aspose.Words.Tables.Row)headerRow1.Clone(true));
|
||||
newPageTable.Rows.Add((Aspose.Words.Tables.Row)headerRow2.Clone(true));
|
||||
newPageTable.Alignment = TableAlignment.Center;
|
||||
newPageTable.AutoFit(AutoFitBehavior.FixedColumnWidths);
|
||||
//【DOM链式向后插入:页码段落 → 分页符 → 大标题 →证书编号 →空行 →表格】
|
||||
currentParaNode.ParentNode.InsertAfter(titlePara, currentParaNode);
|
||||
currentParaNode.ParentNode.InsertAfter(certPara, titlePara);
|
||||
currentParaNode.ParentNode.InsertAfter(emptyPara, certPara);
|
||||
currentParaNode.ParentNode.InsertAfter(newPageTable, emptyPara);
|
||||
//替换table引用,后续数据写入这个新表格
|
||||
table = newPageTable;
|
||||
pageRowCounter = 0;
|
||||
}
|
||||
}
|
||||
//处理最后一页剩余数据,补齐空白行
|
||||
int remain = totalCount % dataRowsPerPage;
|
||||
int lastBlankRows = remain == 0 ? 0 : dataRowsPerPage - remain;
|
||||
for (int b = 0; b < lastBlankRows; b++)
|
||||
{
|
||||
table.Rows.Add(BuildBlankRow(doc));
|
||||
}
|
||||
|
||||
// ========== 先插入填表审核签字行(表格之后,页码之前)==========
|
||||
if (table.NextSibling == null)
|
||||
{
|
||||
Paragraph paraAfter = new Paragraph(doc);
|
||||
table.ParentNode.InsertAfter(paraAfter, table);
|
||||
}
|
||||
builder.MoveTo(table.NextSibling);
|
||||
builder.InsertParagraph();
|
||||
builder.ParagraphFormat.Alignment = ParagraphAlignment.Left;
|
||||
builder.Font.Name = "宋体";
|
||||
builder.Font.Size = 10.5;
|
||||
builder.Write(" 填表: 日期: 审核: 日期:");
|
||||
|
||||
// ========== 再输出页码(签字行的下方)==========
|
||||
builder.InsertParagraph();
|
||||
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;
|
||||
builder.Font.Name = "宋体";
|
||||
builder.Font.Size = 10.5;
|
||||
builder.Write("共 ");
|
||||
builder.InsertField(@"NUMPAGES", "");
|
||||
builder.Write(" 页 第 ");
|
||||
builder.InsertField(@"PAGE", "");
|
||||
builder.Write(" 页");
|
||||
|
||||
doc.UpdatePageLayout();
|
||||
doc.UpdateFields();
|
||||
doc.Save(saveTempPath);
|
||||
//下载
|
||||
Response.Clear();
|
||||
Response.ContentType = "application/octet-stream";
|
||||
Response.AddHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode("工业管道安装汇总表.doc"));
|
||||
Response.TransmitFile(saveTempPath);
|
||||
Response.Flush();
|
||||
Response.End();
|
||||
File.Delete(saveTempPath);
|
||||
}
|
||||
|
||||
public static Cell CreateCell(String value, Document doc, double cellWidth, string cellMerge = "", string CenterPage = "", string cellUnitLeft = "")
|
||||
/// <summary>构建明细数据行</summary>
|
||||
private Aspose.Words.Tables.Row BuildDataRow(DataRow dr, Document doc)
|
||||
{
|
||||
Cell cell = new Cell(doc);
|
||||
Paragraph p = new Paragraph(doc);
|
||||
if (!string.IsNullOrEmpty(cellMerge))
|
||||
Aspose.Words.Tables.Row row = new Aspose.Words.Tables.Row(doc);
|
||||
row.RowFormat.Height = 47;
|
||||
row.RowFormat.HeightRule = HeightRule.Exactly;
|
||||
string GetCellValue(object obj)
|
||||
{
|
||||
if (cellMerge == "0")
|
||||
if (obj == DBNull.Value) return "";
|
||||
return obj.ToString().Replace("\r", "").Replace("\n", "").Trim();
|
||||
}
|
||||
|
||||
string pipeLineClass = string.Empty;
|
||||
string isoNo = dr["PipelineCode"].ToString();
|
||||
var isoInfo = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoNo(isoNo, this.tvControlItem.SelectedNodeID);
|
||||
if (isoInfo != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(isoInfo.PipeLineClass) && isoInfo.PipeLineClass != "/")
|
||||
{
|
||||
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;//竖直方向合并的第一个单元格
|
||||
pipeLineClass = isoInfo.PipeLineClass + "/";
|
||||
}
|
||||
else
|
||||
{
|
||||
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;//竖直方向合并的第一个单元格
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(CenterPage))
|
||||
{
|
||||
//序号
|
||||
value = " " + value;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(cellUnitLeft))
|
||||
{
|
||||
p.ParagraphFormat.Alignment = ParagraphAlignment.Left;//表格中字体居左
|
||||
}
|
||||
else
|
||||
{
|
||||
p.ParagraphFormat.Alignment = ParagraphAlignment.Center;//表格中字体居中
|
||||
}
|
||||
string pipeCode = GetCellValue(dr["PipelineCode"]);
|
||||
string pipeLevel = GetCellValue(pipeLineClass + dr["PipelineLevel"]);
|
||||
string startPoint = GetCellValue(dr["PipelineStartPoint"]);
|
||||
string endPoint = GetCellValue(dr["PipelineEndPoint"]);
|
||||
string desPressure = TrimEndZero(dr["DesignPressure"]);
|
||||
string desTemp = TrimEndZero(dr["DesignTemperature"]);
|
||||
string medium = GetCellValue(dr["Medium"]);
|
||||
string material = GetCellValue(dr["Material"]);
|
||||
string spec = HttpUtility.HtmlDecode(GetCellValue(dr["Specifications"]));
|
||||
string length = TrimEndZero(dr["Length"]);
|
||||
string layMethod = GetCellValue(dr["LayingMethod"]);
|
||||
string weldNum = GetCellValue(dr["WeldsNum"]);
|
||||
string losslessRatio = GetCellValue(dr["LosslessRatio"]);
|
||||
string pressTestMethod = GetCellValue(dr["VoltageResistantTestMethod"]);
|
||||
string pressTestMedium = GetCellValue(dr["VoltageResistantTestMedium"]);
|
||||
string pressTestPressure = GetCellValue(dr["VoltageResistantTestPressure"]);
|
||||
string leakMedium = GetCellValue(dr["LeakageTestMedium"]);
|
||||
string leakPressure = GetCellValue(dr["LeakageTestPressure"]);
|
||||
string cleanMethod = GetCellValue(dr["CleaningMethod"]);
|
||||
string corrosion = GetCellValue(dr["CorrosionControlMethod"]);
|
||||
string insulation = GetCellValue(dr["InsulationMethod"]);
|
||||
row.Cells.Add(CreateCell(pipeCode, doc, 32.3, "", "c"));
|
||||
row.Cells.Add(CreateCell(pipeLevel, doc, 33.7, "", "c"));
|
||||
row.Cells.Add(CreateCell(startPoint, doc, 31.75, "", "c"));
|
||||
row.Cells.Add(CreateCell(endPoint, doc, 32, "", "c"));
|
||||
row.Cells.Add(CreateCell(desPressure, doc, 40, "", "c"));
|
||||
row.Cells.Add(CreateCell(desTemp, doc, 36, "", "c"));
|
||||
row.Cells.Add(CreateCell(medium, doc, 30.6, "", "c"));
|
||||
row.Cells.Add(CreateCell(material, doc, 31.47, "", "c"));
|
||||
row.Cells.Add(CreateCell(spec, doc, 32.3, "", "c"));
|
||||
row.Cells.Add(CreateCell(length, doc, 30, "", "c"));
|
||||
row.Cells.Add(CreateCell(layMethod, doc, 31.49, "", "c"));
|
||||
row.Cells.Add(CreateCell(weldNum, doc, 30, "", "c"));
|
||||
row.Cells.Add(CreateCell(losslessRatio, doc, 39, "", "c"));
|
||||
row.Cells.Add(CreateCell(pressTestMethod, doc, 32.3, "", "c"));
|
||||
row.Cells.Add(CreateCell(pressTestMedium, doc, 28.6, "", "c"));
|
||||
row.Cells.Add(CreateCell(pressTestPressure, doc, 38, "", "c"));
|
||||
row.Cells.Add(CreateCell(leakMedium, doc, 37.4, "", "c"));
|
||||
row.Cells.Add(CreateCell(leakPressure, doc, 41.67, "", "c"));
|
||||
row.Cells.Add(CreateCell(cleanMethod, doc, 34.3, "", "c"));
|
||||
row.Cells.Add(CreateCell(corrosion, doc, 31.2, "", "c"));
|
||||
row.Cells.Add(CreateCell(insulation, doc, 43.9, "", "c"));
|
||||
return row;
|
||||
}
|
||||
/// <summary>空白补行</summary>
|
||||
private Aspose.Words.Tables.Row BuildBlankRow(Document doc)
|
||||
{
|
||||
Aspose.Words.Tables.Row blankRow = new Aspose.Words.Tables.Row(doc);
|
||||
blankRow.RowFormat.Height = 47;
|
||||
blankRow.RowFormat.HeightRule = HeightRule.Exactly;
|
||||
blankRow.Cells.Add(CreateCell("", doc, 32.3, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 33.7, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 31.75, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 32, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 40, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 36, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 30.6, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 31.47, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 32.3, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 30, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 31.49, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 30, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 39, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 32.3, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 28.6, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 38, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 37.4, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 41.67, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 34.3, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 31.2, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 43.9, "", ""));
|
||||
return blankRow;
|
||||
}
|
||||
private Aspose.Words.Tables.Cell CreateCell(string text, Document doc, double width, string mergeDir = "", string vertAlign = "")
|
||||
{
|
||||
Aspose.Words.Tables.Cell cell = new Aspose.Words.Tables.Cell(doc);
|
||||
cell.CellFormat.Width = width;
|
||||
|
||||
//单元格内边距,让文字贴近边框
|
||||
cell.CellFormat.TopPadding = 1.5;
|
||||
cell.CellFormat.BottomPadding = 1.5;
|
||||
cell.CellFormat.LeftPadding = 1.5;
|
||||
cell.CellFormat.RightPadding = 1.5;
|
||||
|
||||
p.AppendChild(new Run(doc, value));
|
||||
Paragraph para = new Paragraph(doc);
|
||||
Run run = new Run(doc, text);
|
||||
run.Font.Name = "楷体";
|
||||
run.Font.Size = 8;
|
||||
para.Runs.Add(run);
|
||||
|
||||
cell.CellFormat.Width = cellWidth;
|
||||
//清除段落自带空白
|
||||
para.ParagraphFormat.SpaceBefore = 0;
|
||||
para.ParagraphFormat.SpaceAfter = 0;
|
||||
para.ParagraphFormat.LineSpacingRule = LineSpacingRule.AtLeast;
|
||||
para.ParagraphFormat.LineSpacing = 8;
|
||||
|
||||
cell.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;
|
||||
|
||||
cell.CellFormat.Borders.LineWidth = 0.75;
|
||||
|
||||
cell.AppendChild(p);
|
||||
para.ParagraphFormat.Alignment = ParagraphAlignment.Center;
|
||||
cell.Paragraphs.Add(para);
|
||||
if (!string.IsNullOrEmpty(vertAlign))
|
||||
cell.CellFormat.VerticalAlignment = CellVerticalAlignment.Center;
|
||||
if (mergeDir == "hStart")
|
||||
cell.CellFormat.HorizontalMerge = CellMerge.First;
|
||||
else if (mergeDir == "hContinue")
|
||||
cell.CellFormat.HorizontalMerge = CellMerge.Previous;
|
||||
return cell;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 去掉小数末尾无效0
|
||||
/// </summary>
|
||||
public static string TrimEndZero(object val)
|
||||
{
|
||||
if (val == null || val == DBNull.Value)
|
||||
return "";
|
||||
|
||||
string s = val.ToString().Trim();
|
||||
if (!decimal.TryParse(s, out decimal num))
|
||||
return s; // 不是数字原样返回
|
||||
|
||||
// 转成字符串自动去除末尾0,.NET decimal.ToString()会自动处理
|
||||
return num.ToString("G29");
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -42,7 +42,7 @@
|
||||
</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="工业管道安装汇总表(2020版)打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
<f:Button ID="btnPrint" Text="预览" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出Word" Icon="FolderUp"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
using Aspose.Words;
|
||||
using Aspose.Words.Layout;
|
||||
using Aspose.Words.Tables;
|
||||
using BLL;
|
||||
using FastReport.Table;
|
||||
using FineUIPro.Web.HJGLServer.BaseInfo;
|
||||
using Model;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
@@ -17,6 +19,8 @@ using System.Web.Services;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
||||
using Row = Aspose.Words.Tables.Row;
|
||||
using Table = Aspose.Words.Tables.Table;
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
@@ -147,7 +151,7 @@ namespace FineUIPro.Web.JGZL
|
||||
var jointInfo = (from x in Funs.DB.HJGL_PW_JointInfo where x.ISO_ID == item.ISO_ID select x).FirstOrDefault();
|
||||
if (jointInfo != null)
|
||||
{
|
||||
newSummary.Specifications = jointInfo.JOT_JointDesc;
|
||||
newSummary.Specifications = HttpUtility.HtmlDecode(jointInfo.JOT_JointDesc);
|
||||
}
|
||||
newSummary.Length = item.PipeLineLength.HasValue ? item.PipeLineLength.Value.ToString("#.00") : "";
|
||||
newSummary.WeldsNum = BLL.HJGL_PW_JointInfoService.GetJointCountByIsoId(item.ISO_ID).ToString();
|
||||
@@ -392,16 +396,26 @@ CASE WHEN ISNUMERIC(DesignPressure)=1 THEN FORMAT(CAST(DesignPressure AS DECIMAL
|
||||
int i = 0;
|
||||
foreach (var row in rows)
|
||||
{
|
||||
string pipeLineClass = string.Empty;
|
||||
string isoNo = row["PipelineCode"].ToString();
|
||||
var isoInfo = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoNo(isoNo, this.tvControlItem.SelectedNodeID);
|
||||
if (isoInfo != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(isoInfo.PipeLineClass) && isoInfo.PipeLineClass != "/")
|
||||
{
|
||||
pipeLineClass = isoInfo.PipeLineClass + "/";
|
||||
}
|
||||
}
|
||||
var newRow = dt.NewRow();
|
||||
newRow["Num"] = (i + 1).ToString();
|
||||
newRow["PipelineCode"] = row["PipelineCode"].ToString();
|
||||
newRow["PipelineLevel"] = row["PipelineLevel"].ToString();
|
||||
newRow["PipelineCode"] = isoNo;
|
||||
newRow["PipelineLevel"] = pipeLineClass + row["PipelineLevel"].ToString();
|
||||
newRow["DesignPressure"] = row["DesignPressure"].ToString();
|
||||
newRow["DesignTemperature"] = row["DesignTemperature"].ToString();
|
||||
newRow["OperatingTemperature"] = row["OperatingTemperature"].ToString();
|
||||
newRow["Medium"] = row["Medium"].ToString();
|
||||
newRow["Material"] = row["Material"].ToString();
|
||||
newRow["Specifications"] = row["Specifications"].ToString();
|
||||
newRow["Specifications"] = HttpUtility.HtmlDecode(row["Specifications"].ToString());
|
||||
newRow["Length"] = row["Length"].ToString();
|
||||
newRow["LayingMethod"] = row["LayingMethod"].ToString();
|
||||
newRow["WeldsNum"] = row["WeldsNum"].ToString();
|
||||
@@ -622,7 +636,7 @@ CASE WHEN ISNUMERIC(DesignPressure)=1 THEN FORMAT(CAST(DesignPressure AS DECIMAL
|
||||
OperatingTemperature = values.Value<string>("OperatingTemperature"),
|
||||
Medium = values.Value<string>("Medium"),
|
||||
Material = values.Value<string>("Material"),
|
||||
Specifications = values.Value<string>("Specifications"),
|
||||
Specifications = HttpUtility.HtmlDecode(values.Value<string>("Specifications").Replace('×', 'x')),
|
||||
Length = values.Value<string>("Length"),
|
||||
LayingMethod = values.Value<string>("LayingMethod"),
|
||||
WeldsNum = values.Value<string>("WeldsNum"),
|
||||
@@ -656,6 +670,255 @@ CASE WHEN ISNUMERIC(DesignPressure)=1 THEN FORMAT(CAST(DesignPressure AS DECIMAL
|
||||
}
|
||||
#endregion
|
||||
|
||||
//#region 导出按钮
|
||||
///// 导出按钮
|
||||
///// </summary>
|
||||
///// <param name="sender"></param>
|
||||
///// <param name="e"></param>
|
||||
//protected void btnOut_Click(object sender, EventArgs e)
|
||||
//{
|
||||
// string rootPath = Server.MapPath("~/");
|
||||
// string initTemplatePath = string.Empty;
|
||||
// string uploadfilepath = string.Empty;
|
||||
// string newUrl = string.Empty;
|
||||
// string filePath = string.Empty;
|
||||
|
||||
// //每页显示的固定数据行数
|
||||
// int rowsPerPage = 8;
|
||||
|
||||
// string projectId = this.tvControlItem.SelectedNodeID;
|
||||
// if (!string.IsNullOrEmpty(projectId))
|
||||
// {
|
||||
// string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationSummary where ProjectId = @ProjectId and FromType='2'";
|
||||
// List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
// listStr.Add(new SqlParameter("@ProjectId", projectId));
|
||||
// if (!string.IsNullOrEmpty(this.txtIsoNoS.Text))
|
||||
// {
|
||||
// strSql += " And PipelineCode like @pipeLineCode";
|
||||
// listStr.Add(new SqlParameter("@pipeLineCode", "%" + this.txtIsoNoS.Text + "%"));
|
||||
// }
|
||||
// SqlParameter[] parameter = listStr.ToArray();
|
||||
// DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
// if (tb.Rows.Count > 0)
|
||||
// {
|
||||
// initTemplatePath = Const.JGZL_IndustrialPipelineInstallationSummary2020Url;
|
||||
// uploadfilepath = rootPath + initTemplatePath;
|
||||
|
||||
// newUrl = uploadfilepath.Replace("工业管道安装汇总表2020导出模板", "压力管道安装汇总表(2020版)");
|
||||
// if (File.Exists(newUrl))
|
||||
// {
|
||||
// File.Delete(newUrl);
|
||||
// }
|
||||
// File.Copy(uploadfilepath, newUrl);
|
||||
// //更新书签内容
|
||||
// Document doc = new Aspose.Words.Document(newUrl);
|
||||
// DocumentBuilder builder = new DocumentBuilder(doc);
|
||||
|
||||
// Aspose.Words.Tables.Table table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, 0, true);
|
||||
|
||||
// string certificateCode = string.Empty;
|
||||
// string deliveryUnit = string.Empty;
|
||||
// string deliveryUnitCode = string.Empty;
|
||||
// string certificateId = tb.Rows[0]["CertificateId"].ToString();
|
||||
// var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(certificateId);
|
||||
// if (certificate != null)
|
||||
// {
|
||||
// certificateCode = certificate.CertificateCode;
|
||||
// deliveryUnit = certificate.DeliveryUnit;
|
||||
// deliveryUnitCode = certificate.DeliveryUnitCode;
|
||||
// }
|
||||
|
||||
// Bookmark bookmark1 = doc.Range.Bookmarks["certificateCode"];
|
||||
// if (bookmark1 != null)
|
||||
// {
|
||||
// bookmark1.Text = certificateCode;
|
||||
// }
|
||||
// Bookmark bookmark2 = doc.Range.Bookmarks["deliveryUnit"];
|
||||
// if (bookmark2 != null)
|
||||
// {
|
||||
// bookmark2.Text = deliveryUnit;
|
||||
// }
|
||||
// Bookmark bookmark3 = doc.Range.Bookmarks["deliveryUnitCode"];
|
||||
// if (bookmark3 != null)
|
||||
// {
|
||||
// bookmark3.Text = deliveryUnitCode;
|
||||
// }
|
||||
|
||||
// // 设置表头行重复显示
|
||||
// table.Rows[0].RowFormat.HeadingFormat = true;
|
||||
// table.Rows[1].RowFormat.HeadingFormat = true;
|
||||
// table.Rows[2].RowFormat.HeadingFormat = true;
|
||||
|
||||
// // ====固定表格布局=====
|
||||
// table.AutoFit(AutoFitBehavior.FixedColumnWidths);
|
||||
// table.AllowAutoFit = false;
|
||||
// table.Alignment = TableAlignment.Center;
|
||||
|
||||
// // 先记录页尾行,并从表格中移除
|
||||
// //Row footerRow = table.Rows[table.Rows.Count - 1];
|
||||
// //table.Rows.RemoveAt(table.Rows.Count - 1);
|
||||
|
||||
// for (int i = 0; i < tb.Rows.Count; i++)
|
||||
// {
|
||||
// //创建行
|
||||
// Aspose.Words.Tables.Row row = new Aspose.Words.Tables.Row(doc);
|
||||
// row.Cells.Add(CreateCell((i + 1).ToString(), doc, 22.68, "", ""));//序号
|
||||
// row.Cells.Add(CreateCell(tb.Rows[i]["PipelineCode"].ToString(), doc, 65.49, "", ""));//单线号
|
||||
// row.Cells.Add(CreateCell(tb.Rows[i]["PipelineLevel"].ToString(), doc, 37.14, "", ""));//管道级别
|
||||
// row.Cells.Add(CreateCell(tb.Rows[i]["DesignPressure"].ToString(), doc, 27.78, "", ""));//设计压力
|
||||
// row.Cells.Add(CreateCell(tb.Rows[i]["DesignTemperature"].ToString(), doc, 28.06, "", ""));//设计温度
|
||||
// row.Cells.Add(CreateCell(tb.Rows[i]["OperatingTemperature"].ToString(), doc, 28, "", ""));//操作温度
|
||||
// row.Cells.Add(CreateCell(tb.Rows[i]["Medium"].ToString(), doc, 34.87, "", ""));//输送介质
|
||||
// row.Cells.Add(CreateCell(tb.Rows[i]["Material"].ToString(), doc, 43.66, "", ""));//管道材质牌号及标准
|
||||
// row.Cells.Add(CreateCell(HttpUtility.HtmlDecode(tb.Rows[i]["Specifications"].ToString()), doc, 59.82, "", ""));//管道规格(外径×壁厚mm)
|
||||
// row.Cells.Add(CreateCell(tb.Rows[i]["Length"].ToString(), doc, 34.58, "", ""));//管道长度(m)
|
||||
// row.Cells.Add(CreateCell(tb.Rows[i]["LayingMethod"].ToString(), doc, 33.74, "", ""));//铺设方式
|
||||
// row.Cells.Add(CreateCell(tb.Rows[i]["WeldsNum"].ToString(), doc, 27, "", ""));//焊口数量
|
||||
// row.Cells.Add(CreateCell(tb.Rows[i]["LosslessRatio"].ToString(), doc, 45.93, "", ""));//检测方法/比例(%)
|
||||
// row.Cells.Add(CreateCell(tb.Rows[i]["VoltageResistantTestMedium"].ToString(), doc, 37.14, "", ""));//压力试验-介质
|
||||
// row.Cells.Add(CreateCell(tb.Rows[i]["VoltageResistantTestPressure"].ToString(), doc, 30.62, "", ""));//压力试验-压力
|
||||
// row.Cells.Add(CreateCell(string.Format("{0:yyyy.MM.dd}", tb.Rows[i]["VoltageResistantTestDate"]), doc, 48.76, "", ""));//压力试验-日期
|
||||
// row.Cells.Add(CreateCell(tb.Rows[i]["LeakageTestMedium"].ToString(), doc, 25.23, "", ""));//泄漏性试验-介质
|
||||
// row.Cells.Add(CreateCell(tb.Rows[i]["LeakageTestPressure"].ToString(), doc, 28.92, "", ""));//泄漏性试验-压力
|
||||
// row.Cells.Add(CreateCell(string.Format("{0:yyyy.MM.dd}", tb.Rows[i]["LeakageTestDate"]), doc, 48.76, "", ""));//泄漏性试验-日期
|
||||
// row.Cells.Add(CreateCell(tb.Rows[i]["CleaningMethod"].ToString(), doc, 26.08, "", ""));//吹洗方法
|
||||
// row.Cells.Add(CreateCell(tb.Rows[i]["CorrosionControlMethod"].ToString(), doc, 56.7, "", ""));//防腐方式
|
||||
// row.Cells.Add(CreateCell(tb.Rows[i]["InsulationMethod"].ToString(), doc, 22.11, "", ""));//保温(绝热)方式
|
||||
|
||||
// table.Rows.Insert(i + 3, row);
|
||||
// }
|
||||
// // 计算并插入空白行,填满整页
|
||||
// // 计算总数据行数
|
||||
// int totalDataRows = tb.Rows.Count;
|
||||
// // 计算需要补充的空白行数量
|
||||
// int remainder = totalDataRows % rowsPerPage;
|
||||
// int needBlankRows = remainder == 0 ? 0 : rowsPerPage - remainder;
|
||||
|
||||
// // 插入空白行(和数据行格式保持一致,仅内容为空)
|
||||
// for (int i = 0; i < needBlankRows - 1; i++)
|
||||
// {
|
||||
// Aspose.Words.Tables.Row blankRow = new Aspose.Words.Tables.Row(doc);
|
||||
// blankRow.RowFormat.Height = 33;
|
||||
// blankRow.RowFormat.HeightRule = HeightRule.Exactly;
|
||||
// // 空白行的单元格宽度和数据行保持一致
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 22.68, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 65.49, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 37.14, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 27.78, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 28.06, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 28, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 34.87, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 43.66, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 59.82, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 34.58, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 33.74, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 27, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 45.93, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 37.14, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 30.62, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 48.76, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 25.23, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 28.92, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 48.76, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 26.08, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 56.7, "", ""));
|
||||
// blankRow.Cells.Add(CreateCell("", doc, 22.11, "", ""));
|
||||
// // 插入到表格最后一行
|
||||
// table.Rows.Add(blankRow);
|
||||
// }
|
||||
// //把页尾行重新加回表格最后
|
||||
// //table.Rows.Add(footerRow);
|
||||
|
||||
// doc.Save(newUrl);
|
||||
|
||||
// string fileName = Path.GetFileName(newUrl);
|
||||
// FileInfo info = new FileInfo(newUrl);
|
||||
// long fileSize = info.Length;
|
||||
// Response.Clear();
|
||||
// Response.ContentType = "application/x-zip-compressed";
|
||||
// Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
|
||||
// Response.AddHeader("Content-Length", fileSize.ToString());
|
||||
// Response.TransmitFile(newUrl, 0, fileSize);
|
||||
// Response.Flush();
|
||||
// Response.Close();
|
||||
// File.Delete(newUrl);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// Alert.ShowInTop("没有要导出的数据!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
// }
|
||||
//}
|
||||
|
||||
//public static Cell CreateCell(String value, Document doc, double cellWidth, string cellMerge = "", string CenterPage = "", string cellUnitLeft = "")
|
||||
//{
|
||||
// Cell cell = new Cell(doc);
|
||||
// Paragraph p = new Paragraph(doc);
|
||||
|
||||
// if (!string.IsNullOrEmpty(CenterPage))
|
||||
// {
|
||||
// //序号,在最开始就拼接空格
|
||||
// value = " " + value;
|
||||
// }
|
||||
|
||||
// Run run = new Run(doc, value);
|
||||
// run.Font.Size = 8;
|
||||
// run.Font.Name = "楷体";
|
||||
|
||||
// if (!string.IsNullOrEmpty(cellMerge))
|
||||
// {
|
||||
// if (cellMerge == "0")
|
||||
// {
|
||||
// cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;//竖直方向合并的第一个单元格
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;//竖直方向合并的后续单元格
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
|
||||
// }
|
||||
|
||||
// if (!string.IsNullOrEmpty(cellUnitLeft))
|
||||
// {
|
||||
// p.ParagraphFormat.Alignment = ParagraphAlignment.Left;//表格中字体居左
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// p.ParagraphFormat.Alignment = ParagraphAlignment.Center;//表格中字体居中
|
||||
// }
|
||||
|
||||
// // 把带字体样式的run加入段落
|
||||
// p.AppendChild(run);
|
||||
|
||||
// cell.CellFormat.Width = cellWidth;
|
||||
// cell.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;
|
||||
// cell.CellFormat.Borders.LineWidth = 0.75;
|
||||
|
||||
// // 单元格内边距
|
||||
// cell.CellFormat.LeftPadding = 1;
|
||||
// cell.CellFormat.RightPadding = 1;
|
||||
// cell.CellFormat.TopPadding = 1;
|
||||
// cell.CellFormat.BottomPadding = 1;
|
||||
|
||||
// //清除段落段前段后间距
|
||||
// p.ParagraphFormat.SpaceBefore = 0;
|
||||
// p.ParagraphFormat.SpaceAfter = 0;
|
||||
|
||||
// cell.AppendChild(p);
|
||||
// return cell;
|
||||
//}
|
||||
|
||||
//#endregion
|
||||
|
||||
#region 导出按钮
|
||||
/// 导出按钮
|
||||
/// </summary>
|
||||
@@ -667,11 +930,9 @@ CASE WHEN ISNUMERIC(DesignPressure)=1 THEN FORMAT(CAST(DesignPressure AS DECIMAL
|
||||
string initTemplatePath = string.Empty;
|
||||
string uploadfilepath = string.Empty;
|
||||
string newUrl = string.Empty;
|
||||
string filePath = string.Empty;
|
||||
|
||||
//每页显示的固定数据行数
|
||||
int rowsPerPage = 4;
|
||||
|
||||
//每页业务数据7行
|
||||
int rowsPerPage = 7;
|
||||
string projectId = this.tvControlItem.SelectedNodeID;
|
||||
if (!string.IsNullOrEmpty(projectId))
|
||||
{
|
||||
@@ -689,19 +950,17 @@ CASE WHEN ISNUMERIC(DesignPressure)=1 THEN FORMAT(CAST(DesignPressure AS DECIMAL
|
||||
{
|
||||
initTemplatePath = Const.JGZL_IndustrialPipelineInstallationSummary2020Url;
|
||||
uploadfilepath = rootPath + initTemplatePath;
|
||||
|
||||
newUrl = uploadfilepath.Replace("工业管道安装汇总表2020导出模板", "压力管道安装汇总表(2020版)");
|
||||
if (File.Exists(newUrl))
|
||||
{
|
||||
File.Delete(newUrl);
|
||||
}
|
||||
File.Copy(uploadfilepath, newUrl);
|
||||
//更新书签内容
|
||||
|
||||
Document doc = new Aspose.Words.Document(newUrl);
|
||||
DocumentBuilder builder = new DocumentBuilder(doc);
|
||||
|
||||
Aspose.Words.Tables.Table table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, 0, true);
|
||||
|
||||
//填充业务数据
|
||||
string certificateCode = string.Empty;
|
||||
string deliveryUnit = string.Empty;
|
||||
string deliveryUnitCode = string.Empty;
|
||||
@@ -714,112 +973,194 @@ CASE WHEN ISNUMERIC(DesignPressure)=1 THEN FORMAT(CAST(DesignPressure AS DECIMAL
|
||||
deliveryUnitCode = certificate.DeliveryUnitCode;
|
||||
}
|
||||
|
||||
Bookmark bookmark1 = doc.Range.Bookmarks["certificateCode"];
|
||||
if (bookmark1 != null)
|
||||
//取出模板原始表格,用于克隆表头行
|
||||
Table templateTable = doc.GetChild(NodeType.Table, 0, true) as Table;
|
||||
Row templateUnitRow = (Row)templateTable.Rows[0].Clone(true); //交工单元名称+交工单元编号行(仅第一页)
|
||||
Row templateTableHeader1 = (Row)templateTable.Rows[1].Clone(true);
|
||||
Row templateTableHeader2 = (Row)templateTable.Rows[2].Clone(true);
|
||||
|
||||
//直接替换交工单元行单元格内容
|
||||
Cell unitNameCell = templateUnitRow.Cells[0];
|
||||
unitNameCell.FirstParagraph.Runs.Clear();
|
||||
unitNameCell.FirstParagraph.AppendChild(new Run(doc, $"交工单元名称:{deliveryUnit}"));
|
||||
|
||||
Cell unitCodeCell = templateUnitRow.Cells[1];
|
||||
unitCodeCell.FirstParagraph.Runs.Clear();
|
||||
unitCodeCell.FirstParagraph.AppendChild(new Run(doc, $"交工单元编号:{deliveryUnitCode}"));
|
||||
|
||||
doc.FirstSection.Body.RemoveAllChildren();
|
||||
|
||||
int total = tb.Rows.Count;
|
||||
int pageCount = (int)Math.Ceiling((double)total / rowsPerPage);
|
||||
|
||||
for (int pageIndex = 0; pageIndex < pageCount; pageIndex++)
|
||||
{
|
||||
bookmark1.Text = certificateCode;
|
||||
bool isFirstPage = pageIndex == 0;
|
||||
bool isLastPage = pageIndex == pageCount - 1;
|
||||
|
||||
builder.MoveToDocumentEnd();
|
||||
|
||||
if (!isFirstPage)
|
||||
{
|
||||
builder.InsertBreak(BreakType.PageBreak);
|
||||
builder.MoveToDocumentEnd();
|
||||
}
|
||||
|
||||
//================ 每页顶部三行================
|
||||
//1.第一行:固定文字 ZDS‑T6.38.047.A/0.2020 居右
|
||||
builder.ParagraphFormat.SpaceBefore = 0;
|
||||
builder.ParagraphFormat.SpaceAfter = 1;
|
||||
builder.ParagraphFormat.Alignment = ParagraphAlignment.Right;
|
||||
builder.Font.Size = 15;
|
||||
builder.Font.Name = "Times New Roman";
|
||||
builder.Font.Bold = true;
|
||||
builder.Write("ZDS‑T6.38.047.A/0.2020");
|
||||
builder.InsertParagraph();
|
||||
|
||||
//2.第二行:大标题 二、压力管道安装汇总表 居中
|
||||
builder.ParagraphFormat.SpaceBefore = 0;
|
||||
builder.ParagraphFormat.SpaceAfter = 1;
|
||||
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;
|
||||
builder.Font.Size = 16;
|
||||
builder.Font.Name = "宋体";
|
||||
builder.Font.Bold = true;
|
||||
builder.Write("二、压力管道安装汇总表");
|
||||
builder.InsertParagraph();
|
||||
|
||||
//3.第三行:证明书编号 居右,下面紧接表格,SpaceAfter=1极小间距
|
||||
builder.ParagraphFormat.SpaceBefore = 0;
|
||||
builder.ParagraphFormat.SpaceAfter = 1;
|
||||
builder.ParagraphFormat.Alignment = ParagraphAlignment.Right;
|
||||
builder.Font.Size = 10.5;
|
||||
builder.Font.Name = "宋体";
|
||||
builder.Font.Bold = false;
|
||||
builder.Write("证明书编号:" + certificateCode + " ");
|
||||
//builder.InsertParagraph();
|
||||
//=====================================================
|
||||
|
||||
//================ 构建本页表格 =================
|
||||
Table pageTable = new Table(doc);
|
||||
|
||||
//第一页才加入交工单元名称编号行,第二页及以后不加
|
||||
if (isFirstPage)
|
||||
{
|
||||
pageTable.Rows.Add((Row)templateUnitRow.Clone(true));
|
||||
}
|
||||
//所有页面都加入2行列标题表头
|
||||
pageTable.Rows.Add((Row)templateTableHeader1.Clone(true));
|
||||
pageTable.Rows.Add((Row)templateTableHeader2.Clone(true));
|
||||
|
||||
//已经添加行之后,再设置表格格式,避免空表格AutoFit报错
|
||||
pageTable.AllowAutoFit = false;
|
||||
pageTable.AutoFit(AutoFitBehavior.FixedColumnWidths);
|
||||
pageTable.Alignment = TableAlignment.Center;
|
||||
|
||||
int startIdx = pageIndex * rowsPerPage;
|
||||
int endIdx = Math.Min(startIdx + rowsPerPage, total);
|
||||
int pageDataCnt = endIdx - startIdx;
|
||||
|
||||
//填充业务数据行
|
||||
for (int i = startIdx; i < endIdx; i++)
|
||||
{
|
||||
DataRow dr = tb.Rows[i];
|
||||
Aspose.Words.Tables.Row dataRow = new Aspose.Words.Tables.Row(doc);
|
||||
dataRow.RowFormat.Height = 40;
|
||||
dataRow.RowFormat.HeightRule = HeightRule.Exactly;
|
||||
dataRow.RowFormat.AllowBreakAcrossPages = false;
|
||||
|
||||
string pipeLineClass = string.Empty;
|
||||
string isoNo = dr["PipelineCode"].ToString();
|
||||
var isoInfo = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoNo(isoNo, this.tvControlItem.SelectedNodeID);
|
||||
if (isoInfo != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(isoInfo.PipeLineClass) && isoInfo.PipeLineClass != "/")
|
||||
{
|
||||
pipeLineClass = isoInfo.PipeLineClass + "/";
|
||||
}
|
||||
}
|
||||
dataRow.Cells.Add(CreateCell((i + 1).ToString(), doc, 22.68, "", ""));//序号
|
||||
dataRow.Cells.Add(CreateCell(dr["PipelineCode"].ToString(), doc, 65.49, "", ""));//单线号
|
||||
dataRow.Cells.Add(CreateCell(pipeLineClass + dr["PipelineLevel"].ToString(), doc, 37.14, "", ""));//管道级别
|
||||
dataRow.Cells.Add(CreateCell(dr["DesignPressure"].ToString(), doc, 27.78, "", ""));//设计压力
|
||||
dataRow.Cells.Add(CreateCell(dr["DesignTemperature"].ToString(), doc, 28.06, "", ""));//设计温度
|
||||
dataRow.Cells.Add(CreateCell(dr["OperatingTemperature"].ToString(), doc, 28, "", ""));//操作温度
|
||||
dataRow.Cells.Add(CreateCell(dr["Medium"].ToString(), doc, 34.87, "", ""));//输送介质
|
||||
dataRow.Cells.Add(CreateCell(dr["Material"].ToString(), doc, 43.66, "", ""));//管道材质牌号及标准
|
||||
dataRow.Cells.Add(CreateCell(HttpUtility.HtmlDecode(dr["Specifications"].ToString()), doc, 59.82, "", ""));//管道规格
|
||||
dataRow.Cells.Add(CreateCell(dr["Length"].ToString(), doc, 34.58, "", ""));//管道长度(m)
|
||||
dataRow.Cells.Add(CreateCell(dr["LayingMethod"].ToString(), doc, 33.74, "", ""));//铺设方式
|
||||
dataRow.Cells.Add(CreateCell(dr["WeldsNum"].ToString(), doc, 27, "", ""));//焊口数量
|
||||
dataRow.Cells.Add(CreateCell(dr["LosslessRatio"].ToString(), doc, 45.93, "", ""));//检测方法/比例(%)
|
||||
dataRow.Cells.Add(CreateCell(FormatDateStr(dr["VoltageResistantTestMedium"]), doc, 37.14, "", ""));//压力试验-介质
|
||||
dataRow.Cells.Add(CreateCell(FormatDateStr(dr["VoltageResistantTestPressure"]), doc, 30.62, "", ""));//压力试验-压力
|
||||
dataRow.Cells.Add(CreateCell(FormatDateStr(dr["VoltageResistantTestDate"]), doc, 48.76, "", ""));//压力试验-日期
|
||||
dataRow.Cells.Add(CreateCell(FormatDateStr(dr["LeakageTestMedium"]), doc, 25.23, "", ""));//泄漏性试验-介质
|
||||
dataRow.Cells.Add(CreateCell(FormatDateStr(dr["LeakageTestPressure"]), doc, 28.92, "", ""));//泄漏性试验-压力
|
||||
dataRow.Cells.Add(CreateCell(FormatDateStr(dr["LeakageTestDate"]), doc, 48.76, "", ""));//泄漏性试验-日期
|
||||
dataRow.Cells.Add(CreateCell(dr["CleaningMethod"].ToString(), doc, 26.08, "", ""));//吹洗方法
|
||||
dataRow.Cells.Add(CreateCell(dr["CorrosionControlMethod"].ToString(), doc, 56.7, "", ""));//防腐方式
|
||||
dataRow.Cells.Add(CreateCell(dr["InsulationMethod"].ToString(), doc, 22.11, "", ""));//保温(绝热)方式
|
||||
|
||||
pageTable.Rows.Add(dataRow);
|
||||
}
|
||||
|
||||
//不足7条补空白行
|
||||
int blankCount = rowsPerPage - pageDataCnt;
|
||||
for (int b = 0; b < blankCount; b++)
|
||||
{
|
||||
Aspose.Words.Tables.Row blankRow = new Aspose.Words.Tables.Row(doc);
|
||||
blankRow.RowFormat.Height = 40;
|
||||
blankRow.RowFormat.HeightRule = HeightRule.Exactly;
|
||||
blankRow.RowFormat.AllowBreakAcrossPages = false;
|
||||
|
||||
blankRow.Cells.Add(CreateCell("", doc, 22.68, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 65.49, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 37.14, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 27.78, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 28.06, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 28, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 34.87, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 43.66, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 59.82, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 34.58, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 33.74, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 27, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 45.93, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 37.14, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 30.62, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 48.76, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 25.23, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 28.92, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 48.76, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 26.08, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 56.7, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 22.11, "", ""));
|
||||
|
||||
pageTable.Rows.Add(blankRow);
|
||||
}
|
||||
|
||||
//把本页表格追加到文档正文
|
||||
doc.FirstSection.Body.AppendChild(pageTable);
|
||||
|
||||
//仅最后一页:表格外部输出签字行
|
||||
if (isLastPage)
|
||||
{
|
||||
Paragraph signPara = new Paragraph(doc);
|
||||
Run signRun = new Run(doc, " 填表: 日期: 审核: 日期: ");
|
||||
signRun.Font.Size = 10.5;
|
||||
signRun.Font.Name = "宋体";
|
||||
signPara.AppendChild(signRun);
|
||||
signPara.ParagraphFormat.SpaceBefore = 6;
|
||||
doc.FirstSection.Body.AppendChild(signPara);
|
||||
}
|
||||
}
|
||||
Bookmark bookmark2 = doc.Range.Bookmarks["deliveryUnit"];
|
||||
if (bookmark2 != null)
|
||||
{
|
||||
bookmark2.Text = deliveryUnit;
|
||||
}
|
||||
Bookmark bookmark3 = doc.Range.Bookmarks["deliveryUnitCode"];
|
||||
if (bookmark3 != null)
|
||||
{
|
||||
bookmark3.Text = deliveryUnitCode;
|
||||
}
|
||||
|
||||
// 设置表头行重复显示
|
||||
table.Rows[0].RowFormat.HeadingFormat = true;
|
||||
table.Rows[1].RowFormat.HeadingFormat = true;
|
||||
table.Rows[2].RowFormat.HeadingFormat = true;
|
||||
|
||||
// ====固定表格布局=====
|
||||
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
|
||||
table.AllowAutoFit = false;
|
||||
table.Alignment = TableAlignment.Center;
|
||||
|
||||
// 先记录页尾行,并从表格中移除
|
||||
//Row footerRow = table.Rows[table.Rows.Count - 1];
|
||||
//table.Rows.RemoveAt(table.Rows.Count - 1);
|
||||
|
||||
for (int i = 0; i < tb.Rows.Count; i++)
|
||||
{
|
||||
//创建行
|
||||
Aspose.Words.Tables.Row row = new Aspose.Words.Tables.Row(doc);
|
||||
row.Cells.Add(CreateCell((i + 1).ToString(), doc, 22.68, "", ""));//序号
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["PipelineCode"].ToString(), doc, 65.49, "", ""));//单线号
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["PipelineLevel"].ToString(), doc, 37.14, "", ""));//管道级别
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["DesignPressure"].ToString(), doc, 27.78, "", ""));//设计压力
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["DesignTemperature"].ToString(), doc, 28.06, "", ""));//设计温度
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["OperatingTemperature"].ToString(), doc, 28, "", ""));//操作温度
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["Medium"].ToString(), doc, 34.87, "", ""));//输送介质
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["Material"].ToString(), doc, 43.66, "", ""));//管道材质牌号及标准
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["Specifications"].ToString(), doc, 59.82, "", ""));//管道规格(外径×壁厚mm)
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["Length"].ToString(), doc, 34.58, "", ""));//管道长度(m)
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["LayingMethod"].ToString(), doc, 33.74, "", ""));//铺设方式
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["WeldsNum"].ToString(), doc, 27, "", ""));//焊口数量
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["LosslessRatio"].ToString(), doc, 45.93, "", ""));//检测方法/比例(%)
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["VoltageResistantTestMedium"].ToString(), doc, 37.14, "", ""));//压力试验-介质
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["VoltageResistantTestPressure"].ToString(), doc, 30.62, "", ""));//压力试验-压力
|
||||
row.Cells.Add(CreateCell(string.Format("{0:yyyy.MM.dd}", tb.Rows[i]["VoltageResistantTestDate"]), doc, 48.76, "", ""));//压力试验-日期
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["LeakageTestMedium"].ToString(), doc, 25.23, "", ""));//泄漏性试验-介质
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["LeakageTestPressure"].ToString(), doc, 28.92, "", ""));//泄漏性试验-压力
|
||||
row.Cells.Add(CreateCell(string.Format("{0:yyyy.MM.dd}", tb.Rows[i]["LeakageTestDate"]), doc, 48.76, "", ""));//泄漏性试验-日期
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["CleaningMethod"].ToString(), doc, 26.08, "", ""));//吹洗方法
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["CorrosionControlMethod"].ToString(), doc, 56.7, "", ""));//防腐方式
|
||||
row.Cells.Add(CreateCell(tb.Rows[i]["InsulationMethod"].ToString(), doc, 22.11, "", ""));//保温(绝热)方式
|
||||
|
||||
table.Rows.Insert(i + 3, row);
|
||||
}
|
||||
// 计算并插入空白行,填满整页
|
||||
// 计算总数据行数
|
||||
int totalDataRows = tb.Rows.Count;
|
||||
// 计算需要补充的空白行数量
|
||||
int remainder = totalDataRows % rowsPerPage;
|
||||
int needBlankRows = remainder == 0 ? 0 : rowsPerPage - remainder;
|
||||
|
||||
// 插入空白行(和数据行格式保持一致,仅内容为空)
|
||||
for (int i = 0; i < needBlankRows - 1; i++)
|
||||
{
|
||||
Aspose.Words.Tables.Row blankRow = new Aspose.Words.Tables.Row(doc);
|
||||
// 空白行的单元格宽度和数据行保持一致
|
||||
blankRow.Cells.Add(CreateCell("", doc, 22.68, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 65.49, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 37.14, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 27.78, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 28.06, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 28, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 34.87, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 43.66, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 59.82, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 34.58, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 33.74, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 27, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 45.93, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 37.14, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 30.62, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 48.76, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 25.23, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 28.92, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 48.76, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 26.08, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 56.7, "", ""));
|
||||
blankRow.Cells.Add(CreateCell("", doc, 22.11, "", ""));
|
||||
// 插入到表格最后一行
|
||||
table.Rows.Add(blankRow);
|
||||
}
|
||||
//把页尾行重新加回表格最后
|
||||
//table.Rows.Add(footerRow);
|
||||
|
||||
doc.Save(newUrl);
|
||||
|
||||
string fileName = Path.GetFileName(newUrl);
|
||||
FileInfo info = new FileInfo(newUrl);
|
||||
long fileSize = info.Length;
|
||||
Response.Clear();
|
||||
Response.ContentType = "application/x-zip-compressed";
|
||||
Response.ContentType = "application/octet-stream";
|
||||
Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
|
||||
Response.AddHeader("Content-Length", fileSize.ToString());
|
||||
Response.TransmitFile(newUrl, 0, fileSize);
|
||||
@@ -840,53 +1181,68 @@ CASE WHEN ISNUMERIC(DesignPressure)=1 THEN FORMAT(CAST(DesignPressure AS DECIMAL
|
||||
}
|
||||
}
|
||||
|
||||
public static Cell CreateCell(String value, Document doc, double cellWidth, string cellMerge = "", string CenterPage = "", string cellUnitLeft = "")
|
||||
private Aspose.Words.Tables.Cell CreateCell(String value, Aspose.Words.Document doc, double cellWidth, string cellMerge = "", string CenterPage = "", string cellUnitLeft = "")
|
||||
{
|
||||
Cell cell = new Cell(doc);
|
||||
Paragraph p = new Paragraph(doc);
|
||||
Aspose.Words.Tables.Cell cell = new Aspose.Words.Tables.Cell(doc);
|
||||
Aspose.Words.Paragraph p = new Aspose.Words.Paragraph(doc);
|
||||
if (!string.IsNullOrEmpty(CenterPage))
|
||||
{
|
||||
value = " " + value;
|
||||
}
|
||||
Aspose.Words.Run run = new Aspose.Words.Run(doc, value);
|
||||
run.Font.Size = 8;
|
||||
run.Font.Name = "楷体";
|
||||
if (!string.IsNullOrEmpty(cellMerge))
|
||||
{
|
||||
if (cellMerge == "0")
|
||||
{
|
||||
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;//竖直方向合并的第一个单元格
|
||||
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;
|
||||
}
|
||||
else
|
||||
{
|
||||
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;//竖直方向合并的第一个单元格
|
||||
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(CenterPage))
|
||||
{
|
||||
//序号
|
||||
value = " " + value;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(cellUnitLeft))
|
||||
{
|
||||
p.ParagraphFormat.Alignment = ParagraphAlignment.Left;//表格中字体居左
|
||||
p.ParagraphFormat.Alignment = Aspose.Words.ParagraphAlignment.Left;
|
||||
}
|
||||
else
|
||||
{
|
||||
p.ParagraphFormat.Alignment = ParagraphAlignment.Center;//表格中字体居中
|
||||
p.ParagraphFormat.Alignment = Aspose.Words.ParagraphAlignment.Center;
|
||||
}
|
||||
p.AppendChild(run);
|
||||
if (cellWidth > 0)
|
||||
{
|
||||
cell.CellFormat.Width = cellWidth;
|
||||
}
|
||||
|
||||
|
||||
p.AppendChild(new Run(doc, value));
|
||||
|
||||
cell.CellFormat.Width = cellWidth;
|
||||
|
||||
cell.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;
|
||||
|
||||
cell.CellFormat.Borders.LineWidth = 0.75;
|
||||
|
||||
cell.CellFormat.LeftPadding = 1;
|
||||
cell.CellFormat.RightPadding = 1;
|
||||
cell.CellFormat.TopPadding = 1;
|
||||
cell.CellFormat.BottomPadding = 1;
|
||||
p.ParagraphFormat.SpaceBefore = 0;
|
||||
p.ParagraphFormat.SpaceAfter = 0;
|
||||
cell.AppendChild(p);
|
||||
return cell;
|
||||
}
|
||||
|
||||
private string FormatDateStr(object objVal)
|
||||
{
|
||||
if (objVal == DBNull.Value || objVal == null || string.IsNullOrWhiteSpace(objVal.ToString()))
|
||||
return "";
|
||||
DateTime dt;
|
||||
if (DateTime.TryParse(objVal.ToString(), out dt))
|
||||
{
|
||||
return dt.ToString("yyyy.MM.dd");
|
||||
}
|
||||
return objVal.ToString();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -42,7 +42,7 @@
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnPrint" Text="打印工业管道安装质量证明书(2020版)" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
<f:Button ID="btnPrint" Text="预览" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出Word" Icon="FolderUp"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
@@ -103,14 +103,19 @@
|
||||
<f:TextBox ID="txtConstructionUnit" runat="server" Label="使用单位" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="20% 40% 40%">
|
||||
<Items>
|
||||
<f:Label ID="lblRemark" runat="server" Text="本压力管道的安装经质量检验,符合"></f:Label>
|
||||
<f:DropDownList ID="drpRemark" runat="server">
|
||||
<f:ListItem Value="GB50517-2010石油化工金属管道工程施工质量验收规范" Text="GB50517-2010石油化工金属管道工程施工质量验收规范" />
|
||||
<f:ListItem Value="SH/T3501-2021石油化工有毒、可燃介质钢制管道工程施工及验收规范" Text="SH/T3501-2021石油化工有毒、可燃介质钢制管道工程施工及验收规范" />
|
||||
</f:DropDownList>
|
||||
<f:Label ID="lbld" runat="server" Text="的要求。"></f:Label>
|
||||
<f:FormRow ColumnWidths="10% 90%">
|
||||
<Items><f:Label ID="Label1" runat="server" ></f:Label>
|
||||
<f:Label ID="lblRemark" runat="server" Text="本压力管道的安装经质量检验,符合《工业管道安装技术规程》(TSG 31-2025)、设计文件和"></f:Label>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="10% 55% 35%">
|
||||
<Items><f:Label ID="Label2" runat="server" ></f:Label>
|
||||
<f:DropDownList ID="drpRemark" runat="server">
|
||||
<f:ListItem Value="GB50517-2010石油化工金属管道工程施工质量验收规范" Text="GB50517-2010石油化工金属管道工程施工质量验收规范" />
|
||||
<f:ListItem Value="SH/T3501-2021石油化工有毒、可燃介质钢制管道工程施工及验收规范" Text="SH/T3501-2021石油化工有毒、可燃介质钢制管道工程施工及验收规范" />
|
||||
</f:DropDownList>
|
||||
<f:Label ID="lbld" runat="server" Text="的要求。"></f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
|
||||
@@ -141,10 +141,21 @@ namespace FineUIPro.Web.JGZL
|
||||
else
|
||||
{
|
||||
this.CertificateId = string.Empty;
|
||||
this.txtCertificateCode.Text = "0XXX-31330921MA2A2R3F6G-" + DateTime.Now.Year;
|
||||
var insta = (from x in Funs.DB.Project_Installation where x.ProjectId == this.CurrUser.LoginProjectId select x).FirstOrDefault();
|
||||
if (insta != null)
|
||||
{
|
||||
this.txtDeliveryUnit.Text = insta.InstallationName;
|
||||
this.txtDeliveryUnitCode.Text = insta.InstallationCode;
|
||||
}
|
||||
this.txtInstallationInspection.Text = "浙江省特种设备科学研究院";
|
||||
this.txtConstructionUnit.Text = "浙江石油化工有限公司";
|
||||
this.txtSpecialEquipmentProductionLicenseCode.Text = "TS3833339-2028";
|
||||
this.txtPipelineLength.Text = BLL.HJGL_PW_IsoInfoService.GetPipeLineLengthList(this.tvControlItem.SelectedNodeID).Value.ToString(".##");
|
||||
var pipeLineLength = BLL.HJGL_PW_IsoInfoService.GetPipeLineLengthList(this.tvControlItem.SelectedNodeID);
|
||||
if (pipeLineLength != null)
|
||||
{
|
||||
this.txtPipelineLength.Text = pipeLineLength.Value.ToString(".##");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -277,7 +288,7 @@ namespace FineUIPro.Web.JGZL
|
||||
newRow["InstallationInspection"] = report.InstallationInspection;
|
||||
newRow["ConstructionUnit"] = report.ConstructionUnit;
|
||||
newRow["SpecialEquipmentProductionLicenseCode"] = report.SpecialEquipmentProductionLicenseCode;
|
||||
newRow["Remark"] = " 本工业管道的安装经质量检验,符合" + report.Remark + "要求。";
|
||||
newRow["Remark"] = " 本压力管道的安装经质量检验,符合《工业管道安装技术规程》(TSG 31-2025)、设计文件和" + report.Remark + "要求。";
|
||||
dt.Rows.Add(newRow);
|
||||
|
||||
BLL.Common.FastReportService.AddFastreportTable(dt);
|
||||
@@ -439,12 +450,18 @@ namespace FineUIPro.Web.JGZL
|
||||
Bookmark pipelineLevel = doc.Range.Bookmarks["PipelineLevel"];
|
||||
if (pipelineLevel != null)
|
||||
{
|
||||
pipelineLevel.Text = report.PipelineLevel;
|
||||
if (report.PipelineLevel != null)
|
||||
{
|
||||
pipelineLevel.Text = report.PipelineLevel;
|
||||
}
|
||||
}
|
||||
Bookmark pipelineLength = doc.Range.Bookmarks["PipelineLength"];
|
||||
if (pipelineLength != null)
|
||||
{
|
||||
pipelineLength.Text = report.PipelineLength;
|
||||
if (report.PipelineLength != null)
|
||||
{
|
||||
pipelineLength.Text = report.PipelineLength;
|
||||
}
|
||||
}
|
||||
Bookmark designUnit = doc.Range.Bookmarks["DesignUnit"];
|
||||
if (designUnit != null)
|
||||
|
||||
+18
@@ -275,6 +275,15 @@ namespace FineUIPro.Web.JGZL
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtConstructionUnit;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// lblRemark 控件。
|
||||
/// </summary>
|
||||
@@ -284,6 +293,15 @@ namespace FineUIPro.Web.JGZL
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lblRemark;
|
||||
|
||||
/// <summary>
|
||||
/// Label2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label2;
|
||||
|
||||
/// <summary>
|
||||
/// drpRemark 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -0,0 +1,237 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LeakageVacuum.aspx.cs" Inherits="FineUIPro.Web.JGZL.LeakageVacuum" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>管道系统泄漏性/真空试验条件确认与试验记录</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||
<Items>
|
||||
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||
EnableCollapse="true" Width="220px" Title="管道系统泄漏性/真空试验条件确认与试验记录" ShowBorder="true" Layout="VBox"
|
||||
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelAlign="Right" AutoPostBack="true" EnableEdit="true"
|
||||
OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged" LabelWidth="50px">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Tree ID="tvControlItem" ShowHeader="false" Title="管道系统泄漏性/真空试验条件确认与试验记录" OnNodeCommand="tvControlItem_NodeCommand"
|
||||
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
|
||||
AutoLeafIdentification="true" EnableSingleExpand="true" EnableTextSelection="true">
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
|
||||
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="管道系统泄漏性/真空试验条件确认与试验记录"
|
||||
TitleToolTip="管道系统泄漏性/真空试验条件确认与试验记录" AutoScroll="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<%--<f:DropDownList ID="drpIsoNoS" runat="server" Label="管道编号" LabelAlign="Right" AutoPostBack="true" OnSelectedIndexChanged="drpIsoNoS_SelectedIndexChanged" EnableMultiSelect="true" EnableCheckBoxSelect="true" AutoSelectFirstItem="false" Width="500px"></f:DropDownList>--%>
|
||||
<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>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出Word" Icon="FolderUp"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtSystemName" Label="系统名称" runat="server" LabelWidth="80px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtSystemCode" Label="系统编号" runat="server" LabelWidth="80px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
<f:SimpleForm ID="SimpleForm2" runat="server" BodyPadding="10px"
|
||||
ShowHeader="false" ShowBorder="false" EnableTableStyle="true" MessageTarget="Qtip">
|
||||
<Items>
|
||||
|
||||
<f:Form ID="Form2" ShowBorder="true" ShowHeader="false" AutoScroll="true" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label Label="Label2" runat="server" Text="检查项目与要求" ShowLabel="false" CssStyle="text-align:center;"></f:Label>
|
||||
<f:Label Label="Label5" runat="server" Text="检查结果" ShowLabel="false" CssStyle="text-align:center;"></f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label Label="Label1" runat="server" Text="管道压力试验合格" ShowLabel="false"></f:Label>
|
||||
<f:DropDownList ID="drpCheckResult1" runat="server">
|
||||
<f:ListItem Value="合格" Text="合格" Selected="true" />
|
||||
<f:ListItem Value="不合格" Text="不合格" />
|
||||
<f:ListItem Value="/" Text="/" />
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label Label="Label1" runat="server" Text="压力试验采用的临时法兰、螺栓、垫片等均已更换" ShowLabel="false"></f:Label>
|
||||
<f:DropDownList ID="drpCheckResult2" runat="server">
|
||||
<f:ListItem Value="合格" Text="合格" Selected="true" />
|
||||
<f:ListItem Value="不合格" Text="不合格" />
|
||||
<f:ListItem Value="/" Text="/" />
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label Label="Label1" runat="server" Text="未参与压力试验的安全附件及仪表等已安装复位" ShowLabel="false"></f:Label>
|
||||
<f:DropDownList ID="drpCheckResult3" runat="server">
|
||||
<f:ListItem Value="合格" Text="合格" Selected="true" />
|
||||
<f:ListItem Value="不合格" Text="不合格" />
|
||||
<f:ListItem Value="/" Text="/" />
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label Label="Label1" runat="server" Text="试验管道系统的阀门已全部开启" ShowLabel="false"></f:Label>
|
||||
<f:DropDownList ID="drpCheckResult4" runat="server">
|
||||
<f:ListItem Value="合格" Text="合格" Selected="true" />
|
||||
<f:ListItem Value="不合格" Text="不合格" />
|
||||
<f:ListItem Value="/" Text="/" />
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label Label="Label1" runat="server" Text="试压用压力表、精度等级、检定状态符合规范要求" ShowLabel="false"></f:Label>
|
||||
<f:DropDownList ID="drpCheckResult5" runat="server">
|
||||
<f:ListItem Value="合格" Text="合格" Selected="true" />
|
||||
<f:ListItem Value="不合格" Text="不合格" />
|
||||
<f:ListItem Value="/" Text="/" />
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:SimpleForm>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="试验记录" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="LeakageVacuumTestRecordId" AllowCellEditing="true"
|
||||
EnableColumnLines="true" ClicksToEdit="1" DataIDField="LeakageVacuumTestRecordId" AllowSorting="true"
|
||||
SortField="PipelineCode" SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true"
|
||||
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableTextSelection="True" AutoScroll="true" OnPreDataBound="Grid1_PreDataBound">
|
||||
<Columns>
|
||||
<f:RenderField HeaderText="管道编号/单线号" ColumnID="PipelineCode" DataField="PipelineCode" SortField="PipelineCode"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="200px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtPipelineCode" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="设计压力MPa" ColumnID="DesignPressure" DataField="DesignPressure" SortField="DesignPressure"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtDesignPressure" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="设计温度℃" ColumnID="DesignTem" DataField="DesignTem" SortField="DesignTem"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtDesignTem" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="试验环境温度℃" ColumnID="TestAmbientTemp" DataField="TestAmbientTemp" SortField="TestAmbientTemp"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtTestAmbientTemp" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="试验介质温度℃
|
||||
"
|
||||
ColumnID="TestMediumTemp" DataField="TestMediumTemp" SortField="TestMediumTemp"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtTestMediumTemp" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:GroupField HeaderText="泄漏性试验" runat="server" TextAlign="Center" HeaderTextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField HeaderText="压力MPa" ColumnID="LeakPressure" DataField="LeakPressure" SortField="LeakPressure"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtLeakPressure" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="介质" ColumnID="LeakMedium" DataField="LeakMedium" SortField="LeakMedium"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtLeakMedium" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:GroupField HeaderText="真空试验" runat="server" TextAlign="Center" HeaderTextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField HeaderText="压力MPa" ColumnID="VacuumPressure" DataField="VacuumPressure" SortField="VacuumPressure"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtVacuumPressure" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="介质" ColumnID="VacuumMedium" DataField="VacuumMedium" SortField="VacuumMedium"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtVacuumMedium" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:LinkButtonField ColumnID="Delete3" Width="60px" EnablePostBack="false" Icon="Delete"
|
||||
HeaderTextAlign="Center" HeaderText="删除" />
|
||||
<f:RenderField HeaderText="主键" ColumnID="LeakageVacuumTestRecordId" DataField="LeakageVacuumTestRecordId" SortField="LeakageVacuumTestRecordId"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="140px" Hidden="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="管线Id" ColumnID="PipelineId" DataField="PipelineId" SortField="PipelineId"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="140px" Hidden="true">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<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="WindowPrint" Title="打印管道吹扫/清洗检验记录" Hidden="true" EnableIFrame="true" EnableMaximize="false"
|
||||
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
|
||||
Height="600px">
|
||||
</f:Window>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,802 @@
|
||||
using Aspose.Words;
|
||||
using Aspose.Words.Tables;
|
||||
using BLL;
|
||||
using FastReport.DevComponents.DotNetBar;
|
||||
using Model;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.DirectoryServices.ActiveDirectory;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
public partial class LeakageVacuum : PageBase
|
||||
{
|
||||
#region 定义项
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
private string LeakageVacuumTestRecordId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["LeakageVacuumTestRecordId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["LeakageVacuumTestRecordId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 项目Id
|
||||
/// </summary>
|
||||
private string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ProjectId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ProjectId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 外键—LeakageVacuumId
|
||||
/// </summary>
|
||||
public string LeakageVacuumId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["LeakageVacuumId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["LeakageVacuumId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 定义集合
|
||||
/// </summary>
|
||||
private static List<Model.JGZL_LeakageVacuumTestRecord> itemLists = new List<JGZL_LeakageVacuumTestRecord>();
|
||||
#endregion
|
||||
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
|
||||
this.drpProjectId.DataTextField = "ProjectCode";
|
||||
this.drpProjectId.DataValueField = "ProjectId";
|
||||
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||
this.drpProjectId.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpProjectId);
|
||||
|
||||
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
|
||||
this.InitTreeMenu();//加载树
|
||||
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
||||
this.ProjectId = this.tvControlItem.SelectedNodeID;
|
||||
|
||||
DataIsoInfo();
|
||||
}
|
||||
}
|
||||
|
||||
private void DataIsoInfo()
|
||||
{
|
||||
this.txtSystemCode.Text = string.Empty;
|
||||
this.txtSystemName.Text = string.Empty;
|
||||
this.drpCheckResult1.SelectedValue = "合格";
|
||||
this.drpCheckResult2.SelectedValue = "合格";
|
||||
this.drpCheckResult3.SelectedValue = "合格";
|
||||
this.drpCheckResult4.SelectedValue = "合格";
|
||||
this.drpCheckResult5.SelectedValue = "合格";
|
||||
itemLists.Clear();
|
||||
if (!string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
var isoInfos = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.ProjectId);
|
||||
var record = BLL.LeakageVacuumService.GetLeakageVacuumByProjectId(this.ProjectId);
|
||||
if (record != null)
|
||||
{
|
||||
this.LeakageVacuumId = record.LeakageVacuumId;
|
||||
this.txtSystemCode.Text = record.SystemCode;
|
||||
this.txtSystemName.Text = record.SystemName;
|
||||
this.drpCheckResult1.SelectedValue = record.CheckItemResult1;
|
||||
this.drpCheckResult2.SelectedValue = record.CheckItemResult2;
|
||||
this.drpCheckResult3.SelectedValue = record.CheckItemResult3;
|
||||
this.drpCheckResult4.SelectedValue = record.CheckItemResult4;
|
||||
this.drpCheckResult5.SelectedValue = record.CheckItemResult5;
|
||||
|
||||
itemLists = BLL.LeakageVacuumTestRecordServic.GetLeakageVacuumTestRecordByLeakageVacuumId(this.LeakageVacuumId);
|
||||
if (itemLists.Count > 0)
|
||||
{
|
||||
foreach (var item in isoInfos)
|
||||
{
|
||||
var iso = itemLists.Where(x => x.PipelineId != null && !string.IsNullOrEmpty(x.PipelineId) && x.PipelineId == item.ISO_ID).FirstOrDefault();
|
||||
if (iso == null)
|
||||
{
|
||||
Model.JGZL_LeakageVacuumTestRecord newIso = new JGZL_LeakageVacuumTestRecord();
|
||||
newIso.LeakageVacuumTestRecordId = SQLHelper.GetNewID(typeof(Model.JGZL_LeakageVacuumTestRecord));
|
||||
newIso.PipelineId = item.ISO_ID;
|
||||
newIso.PipelineCode = item.ISO_IsoNo;
|
||||
newIso.DesignPressure = item.ISO_DesignPress.HasValue ? item.ISO_DesignPress.Value.ToString("0.##########") : "";
|
||||
newIso.DesignTem = item.ISO_DesignTemperature.HasValue ? item.ISO_DesignTemperature.Value.ToString("0.##########") : "";
|
||||
newIso.LeakPressure = item.LeakageTest.ToString();
|
||||
itemLists.Add(newIso);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (var item in isoInfos)
|
||||
{
|
||||
Model.JGZL_LeakageVacuumTestRecord newItem = new JGZL_LeakageVacuumTestRecord();
|
||||
newItem.LeakageVacuumTestRecordId = SQLHelper.GetNewID(typeof(Model.JGZL_LeakageVacuumTestRecord));
|
||||
newItem.PipelineId = item.ISO_ID;
|
||||
newItem.PipelineCode = item.ISO_IsoNo;
|
||||
newItem.DesignPressure = item.ISO_DesignPress.HasValue ? item.ISO_DesignPress.Value.ToString("0.##########") : "";
|
||||
newItem.DesignTem = item.ISO_DesignTemperature.HasValue ? item.ISO_DesignTemperature.Value.ToString("0.##########") : "";
|
||||
newItem.LeakPressure = item.LeakageTest.ToString();
|
||||
itemLists.Add(newItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (var item in isoInfos)
|
||||
{
|
||||
Model.JGZL_LeakageVacuumTestRecord newItem = new JGZL_LeakageVacuumTestRecord();
|
||||
newItem.LeakageVacuumTestRecordId = SQLHelper.GetNewID(typeof(Model.JGZL_LeakageVacuumTestRecord));
|
||||
newItem.PipelineId = item.ISO_ID;
|
||||
newItem.PipelineCode = item.ISO_IsoNo;
|
||||
newItem.DesignPressure = item.ISO_DesignPress.HasValue ? item.ISO_DesignPress.Value.ToString("0.##########") : "";
|
||||
newItem.DesignTem = item.ISO_DesignTemperature.HasValue ? item.ISO_DesignTemperature.Value.ToString("0.##########") : "";
|
||||
newItem.LeakPressure = item.LeakageTest.ToString();
|
||||
itemLists.Add(newItem);
|
||||
}
|
||||
}
|
||||
this.Grid1.DataSource = itemLists;
|
||||
this.Grid1.DataBind();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载树项目
|
||||
/// <summary>
|
||||
/// 加载树
|
||||
/// </summary>
|
||||
private void InitTreeMenu()
|
||||
{
|
||||
this.tvControlItem.Nodes.Clear();
|
||||
TreeNode rootNode = new TreeNode();
|
||||
rootNode.Text = "项目";
|
||||
rootNode.ToolTip = "项目";
|
||||
rootNode.NodeID = "0";
|
||||
rootNode.Expanded = true;
|
||||
this.tvControlItem.Nodes.Add(rootNode);
|
||||
|
||||
List<Model.Base_Project> projects = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||
if (this.drpProjectId.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
projects = projects.Where(e => e.ProjectId == this.drpProjectId.SelectedValue).ToList();
|
||||
}
|
||||
foreach (var item in projects)
|
||||
{
|
||||
TreeNode rootProjectNode = new TreeNode();//定义根节点
|
||||
rootProjectNode.Text = item.ProjectCode;
|
||||
rootProjectNode.NodeID = item.ProjectId;
|
||||
rootProjectNode.EnableClickEvent = true;
|
||||
rootProjectNode.Expanded = true;
|
||||
rootProjectNode.ToolTip = item.ProjectName;
|
||||
rootProjectNode.CommandName = "项目名称";
|
||||
rootNode.Nodes.Add(rootProjectNode);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 点击TreeView
|
||||
/// <summary>
|
||||
/// 点击TreeView
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||
{
|
||||
if (this.tvControlItem.SelectedNodeID != "0")
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 数据绑定
|
||||
/// <summary>
|
||||
/// 数据绑定
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
//string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1");
|
||||
string strSql = @"SELECT * from JGZL_LeakageVacuumTestRecord m left join JGZL_LeakageVacuum b on b.LeakageVacuumId = m.LeakageVacuumId where 1=1";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
strSql += " AND b.ProjectId = @ProjectId";
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
|
||||
}
|
||||
//else
|
||||
//{
|
||||
// strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 ";
|
||||
// listStr.Add(new SqlParameter("@ProjectId", projectIds));
|
||||
//}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
// 2.获取当前分页数据
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 分页排序
|
||||
#region 页索引改变事件
|
||||
/// <summary>
|
||||
/// 页索引改变事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 排序
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 分页选择下拉改变事件
|
||||
/// <summary>
|
||||
/// 分页选择下拉改变事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 查询
|
||||
///<summary>
|
||||
///查询
|
||||
///</summary>
|
||||
///<param name="sender"></param>
|
||||
///<param name="e"></param>
|
||||
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
||||
this.ProjectId = this.tvControlItem.SelectedNodeID;
|
||||
this.InitTreeMenu();
|
||||
DataIsoInfo();
|
||||
}
|
||||
|
||||
/// <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 btnAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(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
|
||||
{
|
||||
{ "LeakageVacuumTestRecordId", Guid.NewGuid() },
|
||||
{ "LeakageVacuumId", this.LeakageVacuumId },
|
||||
{ "PipelineId", "" },
|
||||
{ "PipelineCode", "" },
|
||||
{ "DesignPressure", "" },
|
||||
{ "DesignTem", "" },
|
||||
{ "TestAmbientTemp", "" },
|
||||
{ "TestMediumTemp", "" },
|
||||
{ "LeakPressure", "" },
|
||||
{ "LeakMedium", "" },
|
||||
{ "VacuumPressure", "" },
|
||||
{ "VacuumMedium", "" },
|
||||
{
|
||||
"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("PressureTestOfPipelineSystemRecordEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
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);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 保存
|
||||
/// <summary>
|
||||
/// 保存按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId,
|
||||
Const.JGZL_LeakageVacuumMenuId, Const.BtnSave))
|
||||
{
|
||||
Model.JGZL_LeakageVacuum newRecord = new JGZL_LeakageVacuum();
|
||||
newRecord.SystemCode = this.txtSystemCode.Text;
|
||||
newRecord.SystemName = this.txtSystemName.Text;
|
||||
newRecord.CheckItemResult1 = this.drpCheckResult1.SelectedValue;
|
||||
newRecord.CheckItemResult2 = this.drpCheckResult2.SelectedValue;
|
||||
newRecord.CheckItemResult3 = this.drpCheckResult3.SelectedValue;
|
||||
newRecord.CheckItemResult4 = this.drpCheckResult4.SelectedValue;
|
||||
newRecord.CheckItemResult5 = this.drpCheckResult5.SelectedValue;
|
||||
if (!string.IsNullOrEmpty(this.LeakageVacuumId))
|
||||
{
|
||||
newRecord.LeakageVacuumId = this.LeakageVacuumId;
|
||||
BLL.LeakageVacuumService.UpdateLeakageVacuum(newRecord);
|
||||
}
|
||||
else
|
||||
{
|
||||
newRecord.ProjectId = this.tvControlItem.SelectedNodeID;
|
||||
newRecord.LeakageVacuumId = SQLHelper.GetNewID(typeof(Model.JGZL_LeakageVacuum));
|
||||
this.LeakageVacuumId = newRecord.LeakageVacuumId;
|
||||
BLL.LeakageVacuumService.AddLeakageVacuum(newRecord);
|
||||
}
|
||||
saveItem();
|
||||
BindGrid();
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void saveItem()
|
||||
{
|
||||
itemLists.Clear();
|
||||
BLL.LeakageVacuumTestRecordServic.DeleteLeakageVacuumTestRecordByLeakageVacuumId(this.LeakageVacuumId);
|
||||
JArray teamGroupData = Grid1.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
{
|
||||
JObject values = teamGroupRow.Value<JObject>("values");
|
||||
int rowIndex = teamGroupRow.Value<int>("index");
|
||||
Model.JGZL_LeakageVacuumTestRecord newDetail = new Model.JGZL_LeakageVacuumTestRecord
|
||||
{
|
||||
LeakageVacuumTestRecordId = values.Value<string>("LeakageVacuumTestRecordId"),
|
||||
LeakageVacuumId = this.LeakageVacuumId,
|
||||
PipelineId = values.Value<string>("PipelineId"),
|
||||
PipelineCode = values.Value<string>("PipelineCode"),
|
||||
DesignPressure = values.Value<string>("DesignPressure"),
|
||||
DesignTem = values.Value<string>("DesignTem"),
|
||||
TestAmbientTemp = values.Value<string>("TestAmbientTemp"),
|
||||
TestMediumTemp = values.Value<string>("TestMediumTemp"),
|
||||
LeakPressure = values.Value<string>("LeakPressure"),
|
||||
LeakMedium = values.Value<string>("LeakMedium"),
|
||||
VacuumPressure = values.Value<string>("VacuumPressure"),
|
||||
VacuumMedium = values.Value<string>("VacuumMedium"),
|
||||
};
|
||||
itemLists.Add(newDetail);
|
||||
}
|
||||
try
|
||||
{
|
||||
if (itemLists.Count > 0)
|
||||
{
|
||||
Funs.DB.JGZL_LeakageVacuumTestRecord.InsertAllOnSubmit(itemLists);
|
||||
}
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 打印
|
||||
/// <summary>
|
||||
/// 打印
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnPrint_Click(object sender, EventArgs e)
|
||||
{
|
||||
string projectId = this.tvControlItem.SelectedNodeID;
|
||||
|
||||
if (projectId != null)
|
||||
{
|
||||
string initTemplatePath = "";
|
||||
string rootPath = Server.MapPath("~/");
|
||||
BLL.Common.FastReportService.ResetData();
|
||||
|
||||
var report = BLL.LeakageVacuumService.GetLeakageVacuumByProjectId(projectId);
|
||||
if (report != null)
|
||||
{
|
||||
DataTable dt = new DataTable();
|
||||
dt.TableName = "MainData";
|
||||
dt.Columns.Add("ProjectName");
|
||||
dt.Columns.Add("SystemName");
|
||||
dt.Columns.Add("SystemCode");
|
||||
dt.Columns.Add("CheckItemResult1");
|
||||
dt.Columns.Add("CheckItemResult2");
|
||||
dt.Columns.Add("CheckItemResult3");
|
||||
dt.Columns.Add("CheckItemResult4");
|
||||
dt.Columns.Add("CheckItemResult5");
|
||||
dt.Columns.Add("Conclusion");
|
||||
|
||||
var newRow = dt.NewRow();
|
||||
newRow["ProjectName"] = BLL.Base_ProjectService.GetProjectByProjectId(report.ProjectId).ProjectName;
|
||||
newRow["SystemName"] = this.txtSystemName.Text.Trim();
|
||||
newRow["SystemCode"] = this.txtSystemCode.Text.Trim();
|
||||
newRow["CheckItemResult1"] = report.CheckItemResult1;
|
||||
newRow["CheckItemResult2"] = report.CheckItemResult2;
|
||||
newRow["CheckItemResult3"] = report.CheckItemResult3;
|
||||
newRow["CheckItemResult4"] = report.CheckItemResult4;
|
||||
newRow["CheckItemResult5"] = report.CheckItemResult5;
|
||||
newRow["Conclusion"] = report.Conclusion;
|
||||
dt.Rows.Add(newRow);
|
||||
BLL.Common.FastReportService.AddFastreportTable(dt);
|
||||
|
||||
var recordLists = BLL.LeakageVacuumTestRecordServic.GetLeakageVacuumTestRecordByLeakageVacuumId(report.LeakageVacuumId);
|
||||
if (recordLists.Count == Grid1.GetMergedData().Count)
|
||||
{
|
||||
DataTable itemdt = new DataTable();
|
||||
itemdt.TableName = "Data";
|
||||
itemdt.Columns.Add("PipelineNo");
|
||||
itemdt.Columns.Add("DesignPressure");
|
||||
itemdt.Columns.Add("DesignTem");
|
||||
itemdt.Columns.Add("TestAmbientTemp");
|
||||
itemdt.Columns.Add("TestMediumTemp");
|
||||
itemdt.Columns.Add("LeakPressure");
|
||||
itemdt.Columns.Add("LeakMedium");
|
||||
itemdt.Columns.Add("VacuumPressure");
|
||||
itemdt.Columns.Add("VacuumMedium");
|
||||
|
||||
foreach (var item in recordLists)
|
||||
{
|
||||
var newRow2 = itemdt.NewRow();
|
||||
newRow2["PipelineNo"] = item.PipelineCode;
|
||||
newRow2["DesignPressure"] = item.DesignPressure;
|
||||
newRow2["DesignTem"] = item.DesignTem;
|
||||
newRow2["TestAmbientTemp"] = item.TestAmbientTemp;
|
||||
newRow2["TestMediumTemp"] = item.TestMediumTemp;
|
||||
newRow2["LeakPressure"] = item.LeakPressure;
|
||||
newRow2["LeakMedium"] = item.LeakMedium;
|
||||
newRow2["VacuumPressure"] = item.VacuumPressure;
|
||||
newRow2["VacuumMedium"] = item.VacuumMedium;
|
||||
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;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 导出按钮
|
||||
/// 导出按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnOut_Click(object sender, EventArgs e)
|
||||
{
|
||||
string rootPath = Server.MapPath("~/");
|
||||
string initTemplatePath = Const.JGZL_LeakageVacuumUrl;
|
||||
string projectId = this.tvControlItem.SelectedNodeID;
|
||||
|
||||
if (string.IsNullOrEmpty(projectId))
|
||||
{
|
||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
var report = BLL.LeakageVacuumService.GetLeakageVacuumByProjectId(projectId);
|
||||
if (report == null)
|
||||
{
|
||||
Alert.ShowInTop("请先保存数据!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
var lists = BLL.LeakageVacuumTestRecordServic.GetLeakageVacuumTestRecordByLeakageVacuumId(report.LeakageVacuumId);
|
||||
if (lists.Count != Grid1.GetMergedData().Count)
|
||||
{
|
||||
Alert.ShowInTop("请先保存数据!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
string templateFullPath = Path.Combine(rootPath, initTemplatePath);
|
||||
if (!File.Exists(templateFullPath))
|
||||
{
|
||||
Alert.ShowInTop("导出模板文件不存在!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
Document doc = new Aspose.Words.Document(templateFullPath);
|
||||
Aspose.Words.Tables.Table table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, 0, true);
|
||||
|
||||
#region 顶层书签赋值(工程名称、系统、检查项)
|
||||
SafeSetBookmarkText(doc, "ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(report.ProjectId)?.ProjectName);
|
||||
SafeSetBookmarkText(doc, "SystemName", report.SystemName);
|
||||
SafeSetBookmarkText(doc, "SystemCode", report.SystemCode);
|
||||
SafeSetBookmarkText(doc, "CheckItemResult1", report.CheckItemResult1);
|
||||
SafeSetBookmarkText(doc, "CheckItemResult2", report.CheckItemResult2);
|
||||
SafeSetBookmarkText(doc, "CheckItemResult3", report.CheckItemResult3);
|
||||
SafeSetBookmarkText(doc, "CheckItemResult4", report.CheckItemResult4);
|
||||
SafeSetBookmarkText(doc, "CheckItemResult5", report.CheckItemResult5);
|
||||
#endregion
|
||||
|
||||
#region 表头跨页重复设置
|
||||
for (int r = 0; r <= 10; r++)
|
||||
{
|
||||
table.Rows[r].RowFormat.HeadingFormat = true;
|
||||
}
|
||||
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
|
||||
table.AllowAutoFit = false;
|
||||
table.Alignment = TableAlignment.Center;
|
||||
#endregion
|
||||
|
||||
var recordLists = BLL.LeakageVacuumTestRecordServic.GetLeakageVacuumTestRecordByLeakageVacuumId(report.LeakageVacuumId);
|
||||
Aspose.Words.Tables.Row templateDataRow = table.Rows[11];
|
||||
|
||||
if (recordLists.Count > 0)
|
||||
{
|
||||
foreach (var item in recordLists)
|
||||
{
|
||||
Aspose.Words.Tables.Row newDataRow = (Aspose.Words.Tables.Row)templateDataRow.Clone(true);
|
||||
|
||||
SafeSetRowBookmarkText(newDataRow, "Bk_PipelineCode", item.PipelineCode);
|
||||
SafeSetRowBookmarkText(newDataRow, "Bk_DesignPressure", item.DesignPressure);
|
||||
SafeSetRowBookmarkText(newDataRow, "Bk_DesignTem", item.DesignTem);
|
||||
SafeSetRowBookmarkText(newDataRow, "Bk_TestAmbientTemp", item.TestAmbientTemp);
|
||||
SafeSetRowBookmarkText(newDataRow, "Bk_TestMediumTemp", item.TestMediumTemp);
|
||||
SafeSetRowBookmarkText(newDataRow, "Bk_LeakPressure", item.LeakPressure);
|
||||
SafeSetRowBookmarkText(newDataRow, "Bk_LeakMedium", item.LeakMedium);
|
||||
SafeSetRowBookmarkText(newDataRow, "Bk_VacuumPressure", item.VacuumPressure);
|
||||
SafeSetRowBookmarkText(newDataRow, "Bk_VacuumMedium", item.VacuumMedium);
|
||||
|
||||
table.InsertBefore(newDataRow, templateDataRow);
|
||||
}
|
||||
}
|
||||
|
||||
#region 补充空白行填满每页8行
|
||||
int rowsPerPage = 8;
|
||||
int totalDataRows = recordLists.Count;
|
||||
int remainder = totalDataRows % rowsPerPage;
|
||||
int needBlankRows = remainder == 0 ? 0 : rowsPerPage - remainder;
|
||||
|
||||
for (int i = 0; i < needBlankRows; i++)
|
||||
{
|
||||
Aspose.Words.Tables.Row blankRow = (Aspose.Words.Tables.Row)templateDataRow.Clone(true);
|
||||
SafeSetRowBookmarkText(blankRow, "Bk_PipelineCode", "");
|
||||
SafeSetRowBookmarkText(blankRow, "Bk_DesignPressure", "");
|
||||
SafeSetRowBookmarkText(blankRow, "Bk_DesignTem", "");
|
||||
SafeSetRowBookmarkText(blankRow, "Bk_TestAmbientTemp", "");
|
||||
SafeSetRowBookmarkText(blankRow, "Bk_TestMediumTemp", "");
|
||||
SafeSetRowBookmarkText(blankRow, "Bk_LeakPressure", "");
|
||||
SafeSetRowBookmarkText(blankRow, "Bk_LeakMedium", "");
|
||||
SafeSetRowBookmarkText(blankRow, "Bk_VacuumPressure", "");
|
||||
SafeSetRowBookmarkText(blankRow, "Bk_VacuumMedium", "");
|
||||
|
||||
table.InsertBefore(blankRow, templateDataRow);
|
||||
}
|
||||
#endregion
|
||||
|
||||
templateDataRow.Remove();
|
||||
|
||||
using (MemoryStream ms = new MemoryStream())
|
||||
{
|
||||
doc.Save(ms, Aspose.Words.SaveFormat.Docx);
|
||||
ms.Position = 0;
|
||||
|
||||
Response.Clear();
|
||||
Response.ContentType = "application/x-zip-compressed";
|
||||
string downloadFileName = "管道系统泄漏性试验记录.docx";
|
||||
Response.AddHeader("Content-Disposition", $"attachment;filename={System.Web.HttpUtility.UrlEncode(downloadFileName, System.Text.Encoding.UTF8)}");
|
||||
Response.BinaryWrite(ms.ToArray());
|
||||
Response.Flush();
|
||||
Response.End();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置文档全局书签文本
|
||||
/// </summary>
|
||||
private static void SafeSetBookmarkText(Document doc, string bookmarkName, string text)
|
||||
{
|
||||
Bookmark bm = doc.Range.Bookmarks[bookmarkName];
|
||||
if (bm == null) return;
|
||||
bm.Text = text ?? "";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 在指定Row行节点范围内查找书签并赋值
|
||||
/// </summary>
|
||||
private static void SafeSetRowBookmarkText(Row row, string bookmarkName, string text)
|
||||
{
|
||||
text = text ?? "";
|
||||
BookmarkStart bkStart = null;
|
||||
NodeCollection childNodes = row.GetChildNodes(NodeType.BookmarkStart, true);
|
||||
foreach (Node childNode in childNodes)
|
||||
{
|
||||
BookmarkStart bs = childNode as BookmarkStart;
|
||||
if (bs != null && bs.Name == bookmarkName)
|
||||
{
|
||||
bkStart = bs;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (bkStart == null) return;
|
||||
|
||||
Node cur = bkStart.NextSibling;
|
||||
while (cur != null && cur.NodeType != NodeType.BookmarkEnd)
|
||||
{
|
||||
Node next = cur.NextSibling;
|
||||
cur.Remove();
|
||||
cur = next;
|
||||
}
|
||||
Run run = new Run(row.Document, text);
|
||||
bkStart.ParentNode.InsertAfter(run, bkStart);
|
||||
}
|
||||
|
||||
|
||||
public static Cell CreateCell(String value, Document doc, double cellWidth, string cellMerge = "", string CenterPage = "", string cellUnitLeft = "")
|
||||
{
|
||||
Cell cell = new Cell(doc);
|
||||
Paragraph p = new Paragraph(doc);
|
||||
if (!string.IsNullOrEmpty(cellMerge))
|
||||
{
|
||||
if (cellMerge == "0")
|
||||
{
|
||||
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;//竖直方向合并的第一个单元格
|
||||
}
|
||||
else
|
||||
{
|
||||
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;//竖直方向合并的第一个单元格
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(CenterPage))
|
||||
{
|
||||
//序号
|
||||
value = " " + value;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(cellUnitLeft))
|
||||
{
|
||||
p.ParagraphFormat.Alignment = ParagraphAlignment.Left;//表格中字体居左
|
||||
}
|
||||
else
|
||||
{
|
||||
p.ParagraphFormat.Alignment = ParagraphAlignment.Center;//表格中字体居中
|
||||
}
|
||||
|
||||
|
||||
p.AppendChild(new Run(doc, value));
|
||||
|
||||
cell.CellFormat.Width = cellWidth;
|
||||
|
||||
cell.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;
|
||||
|
||||
cell.CellFormat.Borders.LineWidth = 0.75;
|
||||
|
||||
cell.AppendChild(p);
|
||||
return cell;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,359 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
|
||||
|
||||
public partial class LeakageVacuum
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnPrint 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnPrint;
|
||||
|
||||
/// <summary>
|
||||
/// btnOut 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnOut;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// txtSystemName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSystemName;
|
||||
|
||||
/// <summary>
|
||||
/// txtSystemCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSystemCode;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.SimpleForm SimpleForm2;
|
||||
|
||||
/// <summary>
|
||||
/// Form2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form2;
|
||||
|
||||
/// <summary>
|
||||
/// drpCheckResult1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpCheckResult1;
|
||||
|
||||
/// <summary>
|
||||
/// drpCheckResult2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpCheckResult2;
|
||||
|
||||
/// <summary>
|
||||
/// drpCheckResult3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpCheckResult3;
|
||||
|
||||
/// <summary>
|
||||
/// drpCheckResult4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpCheckResult4;
|
||||
|
||||
/// <summary>
|
||||
/// drpCheckResult5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpCheckResult5;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// txtPipelineCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPipelineCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtDesignPressure 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDesignPressure;
|
||||
|
||||
/// <summary>
|
||||
/// txtDesignTem 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDesignTem;
|
||||
|
||||
/// <summary>
|
||||
/// txtTestAmbientTemp 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTestAmbientTemp;
|
||||
|
||||
/// <summary>
|
||||
/// txtTestMediumTemp 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTestMediumTemp;
|
||||
|
||||
/// <summary>
|
||||
/// txtLeakPressure 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtLeakPressure;
|
||||
|
||||
/// <summary>
|
||||
/// txtLeakMedium 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtLeakMedium;
|
||||
|
||||
/// <summary>
|
||||
/// txtVacuumPressure 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtVacuumPressure;
|
||||
|
||||
/// <summary>
|
||||
/// txtVacuumMedium 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtVacuumMedium;
|
||||
|
||||
/// <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>
|
||||
/// WindowPrint 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowPrint;
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,7 @@
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="新增" OnClick="btnAdd_Click"></f:Button>
|
||||
<f:Button ID="btnPrint" Text="打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
<f:Button ID="btnPrint" Text="预览" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出Word" Icon="FolderUp"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
@@ -81,16 +81,21 @@
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpIsoId" runat="server" Label="管线号" LabelAlign="Right" LabelWidth="170px" EnableEdit="true" EnableMultiSelect="true" Required="true" ShowRedStar="true" AutoPostBack="true" OnSelectedIndexChanged="drpIsoId_SelectedIndexChanged"></f:DropDownList>
|
||||
<f:DropDownList ID="drpIsoId" runat="server" Label="管线号" LabelAlign="Right" LabelWidth="170px" EnableEdit="true" EnableMultiSelect="true" Required="true" ShowRedStar="true" AutoPostBack="true" OnSelectedIndexChanged="drpIsoId_SelectedIndexChanged" AutoSelectFirstItem="false"></f:DropDownList>
|
||||
<f:TextBox ID="txtPipeLength" runat="server" Label="管道长度" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtPipeCategory" runat="server" Label="管道类别" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
|
||||
<%--<f:TextBox ID="txtPipeCategory" runat="server" Label="管道类别" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>--%>
|
||||
<f:DropDownList ID="drpPipeCategory" runat="server" Label="管道类别" LabelAlign="Right" LabelWidth="170px">
|
||||
<f:ListItem Value="GC1" Text="GC1" Selected="true" />
|
||||
<f:ListItem Value="GC2" Text="GC2" />
|
||||
<f:ListItem Value="GC3" Text="GC3" />
|
||||
</f:DropDownList>
|
||||
<f:CheckBoxList ID="cblConCategory" Label="施工类别" runat="server" LabelWidth="170px" LabelAlign="Right">
|
||||
<Items>
|
||||
<f:CheckItem Text="改造" Value="改造" />
|
||||
<f:CheckItem Text="改造" Value="改造" Selected="true"/>
|
||||
<f:CheckItem Text="重大维修" Value="重大维修" />
|
||||
<f:CheckItem Text="维修" Value="维修" />
|
||||
</Items>
|
||||
@@ -138,7 +143,7 @@
|
||||
<f:DatePicker ID="txtCompletionDate" runat="server" Label="竣工日期" LabelAlign="Right" LabelWidth="170px" DateFormatString="yyyy年MM月dd日"></f:DatePicker>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<%-- <f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="Label2" runat="server"></f:Label>
|
||||
<f:TextBox ID="txtQC_Inspector" runat="server" Label="质检员" LabelAlign="Right" LabelWidth="170px"></f:TextBox>
|
||||
@@ -149,7 +154,7 @@
|
||||
<f:Label ID="Label3" runat="server"></f:Label>
|
||||
<f:TextBox ID="txtQA_Engineer" runat="server" Label="质量保证工程师" LabelAlign="Right" LabelWidth="170px"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</f:FormRow>--%>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
<%--<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="工业管道安装质量证明书 (改造、修理)" EnableCollapse="true"
|
||||
|
||||
@@ -88,8 +88,8 @@ namespace FineUIPro.Web.JGZL
|
||||
txtNotificationCode.Text = string.Empty;
|
||||
drpIsoId.SelectedValue = string.Empty;
|
||||
txtPipeLength.Text = string.Empty;
|
||||
txtPipeCategory.Text = string.Empty;
|
||||
cblConCategory.SelectedValueArray = null;
|
||||
drpPipeCategory.SelectedIndex = 0;
|
||||
cblConCategory.SelectedIndexArray[0] = 0;
|
||||
txtUseUnit.Text = string.Empty;
|
||||
txtUseUSCC.Text = string.Empty;
|
||||
txtUseAddress.Text = string.Empty;
|
||||
@@ -98,8 +98,8 @@ namespace FineUIPro.Web.JGZL
|
||||
txtDesignLicenseCode.Text = string.Empty;
|
||||
txtModRepairProject.Text = string.Empty;
|
||||
txtCompletionDate.Text = string.Empty;
|
||||
txtQC_Inspector.Text = string.Empty;
|
||||
txtQA_Engineer.Text = string.Empty;
|
||||
//txtQC_Inspector.Text = string.Empty;
|
||||
//txtQA_Engineer.Text = string.Empty;
|
||||
}
|
||||
|
||||
private void PageData()
|
||||
@@ -126,7 +126,7 @@ namespace FineUIPro.Web.JGZL
|
||||
this.drpIsoId.SelectedValueArray = report.ISO_ID.Split(',');
|
||||
}
|
||||
this.txtPipeLength.Text = report.PipeLength;
|
||||
this.txtPipeCategory.Text = report.PipeCategory;
|
||||
this.drpPipeCategory.Text = report.PipeCategory;
|
||||
this.cblConCategory.SelectedValueArray = report.ConCategory.Split(',');
|
||||
this.txtUseUnit.Text = report.UseUnit;
|
||||
this.txtUseUSCC.Text = report.UseUSCC;
|
||||
@@ -136,17 +136,28 @@ namespace FineUIPro.Web.JGZL
|
||||
this.txtDesignLicenseCode.Text = report.DesignLicenseCode;
|
||||
this.txtModRepairProject.Text = report.ModRepairProject;
|
||||
this.txtCompletionDate.Text = report.CompletionDate.HasValue ? string.Format("{0:yyyy年MM月dd日}", report.CompletionDate) : "";
|
||||
this.txtQC_Inspector.Text = report.QC_Inspector;
|
||||
this.txtQA_Engineer.Text = report.QA_Engineer;
|
||||
//this.txtQC_Inspector.Text = report.QC_Inspector;
|
||||
//this.txtQA_Engineer.Text = report.QA_Engineer;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.QualityCertificateId = string.Empty;
|
||||
//this.txtInstallationInspection.Text = "浙江省特种设备研究院";
|
||||
//this.txtConstructionUnit.Text = "浙江石油化工有限公司";
|
||||
//this.txtSpecialEquipmentProductionLicenseCode.Text = "TS3833339-2028";
|
||||
////this.txtRemark.Text = "GB50517-2023";
|
||||
//this.txtPipelineLength.Text = BLL.HJGL_PW_IsoInfoService.GetPipeLineLengthList(this.tvControlItem.SelectedNodeID).Value.ToString(".##");
|
||||
this.txtQualityCertificateCode.Text = "0XXX-91330921MA2A2R3F6G-" + DateTime.Now.Year + "-XX";
|
||||
this.txtConUnit.Text = "浙江鼎盛石化工程有限公司";
|
||||
this.txtConUnitUSCC.Text = "91330921MA2A2R3F6G";
|
||||
this.txtLicenseCode.Text = "TS383339-2028";
|
||||
this.txtLicenseScope.Text = "GC1";
|
||||
this.txtNotificationCode.Text = "0XXX-91330921MA2A2R3F6G-" + DateTime.Now.Year;
|
||||
this.txtUseUnit.Text = "浙江石油化工有限公司";
|
||||
this.txtUseUSCC.Text = "913309003440581426";
|
||||
string installationName = string.Empty;
|
||||
var install = Funs.DB.Project_Installation.FirstOrDefault(x => x.ProjectId == projectId);
|
||||
if(install!=null)
|
||||
{
|
||||
installationName = install.InstallationName;
|
||||
}
|
||||
this.txtUseAddress.Text = "浙江石油化工有限公司4000万吨/年炼化本项目" + installationName;
|
||||
this.txtModRepairProject.Text = "压力管道(" + pro.ProjectName + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -602,7 +613,7 @@ namespace FineUIPro.Web.JGZL
|
||||
newReport.ISO_ID = ids;
|
||||
newReport.PipelineCode = names;
|
||||
newReport.PipeLength = this.txtPipeLength.Text.Trim();
|
||||
newReport.PipeCategory = this.txtPipeCategory.Text.Trim();
|
||||
newReport.PipeCategory = this.drpPipeCategory.SelectedValue.Trim();
|
||||
newReport.ConCategory = this.cblConCategory.SelectedValueArray[0];
|
||||
newReport.UseUnit = this.txtUseUnit.Text.Trim();
|
||||
newReport.UseUSCC = this.txtUseUSCC.Text.Trim();
|
||||
@@ -613,8 +624,8 @@ namespace FineUIPro.Web.JGZL
|
||||
newReport.ModRepairProject = this.txtModRepairProject.Text.Trim();
|
||||
newReport.Remark = this.lblRemark.Text.Trim();
|
||||
newReport.CompletionDate = Funs.GetNewDateTime(this.txtCompletionDate.Text.Trim());
|
||||
newReport.QC_Inspector = this.txtQC_Inspector.Text.Trim();
|
||||
newReport.QA_Engineer = this.txtQA_Engineer.Text.Trim();
|
||||
//newReport.QC_Inspector = this.txtQC_Inspector.Text.Trim();
|
||||
//newReport.QA_Engineer = this.txtQA_Engineer.Text.Trim();
|
||||
if (!string.IsNullOrEmpty(this.QualityCertificateId))
|
||||
{
|
||||
newReport.QualityCertificateId = this.QualityCertificateId;
|
||||
@@ -796,16 +807,16 @@ namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
completionDate.Text = report.CompletionDate.HasValue ? string.Format("{0:yyyy年MM月dd日}", report.CompletionDate) : "";
|
||||
}
|
||||
Bookmark inspector = doc.Range.Bookmarks["QC_Inspector"];
|
||||
if (inspector != null)
|
||||
{
|
||||
inspector.Text = report.QC_Inspector;
|
||||
}
|
||||
Bookmark engineer = doc.Range.Bookmarks["QA_Engineer"];
|
||||
if (engineer != null)
|
||||
{
|
||||
engineer.Text = report.QA_Engineer;
|
||||
}
|
||||
//Bookmark inspector = doc.Range.Bookmarks["QC_Inspector"];
|
||||
//if (inspector != null)
|
||||
//{
|
||||
// inspector.Text = report.QC_Inspector;
|
||||
//}
|
||||
//Bookmark engineer = doc.Range.Bookmarks["QA_Engineer"];
|
||||
//if (engineer != null)
|
||||
//{
|
||||
// engineer.Text = report.QA_Engineer;
|
||||
//}
|
||||
|
||||
doc.Save(newUrl);
|
||||
|
||||
|
||||
@@ -240,13 +240,13 @@ namespace FineUIPro.Web.JGZL
|
||||
protected global::FineUIPro.TextBox txtPipeLength;
|
||||
|
||||
/// <summary>
|
||||
/// txtPipeCategory 控件。
|
||||
/// drpPipeCategory 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPipeCategory;
|
||||
protected global::FineUIPro.DropDownList drpPipeCategory;
|
||||
|
||||
/// <summary>
|
||||
/// cblConCategory 控件。
|
||||
@@ -347,42 +347,6 @@ namespace FineUIPro.Web.JGZL
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtCompletionDate;
|
||||
|
||||
/// <summary>
|
||||
/// Label2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label2;
|
||||
|
||||
/// <summary>
|
||||
/// txtQC_Inspector 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtQC_Inspector;
|
||||
|
||||
/// <summary>
|
||||
/// Label3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label3;
|
||||
|
||||
/// <summary>
|
||||
/// txtQA_Engineer 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtQA_Engineer;
|
||||
|
||||
/// <summary>
|
||||
/// WindowPrint 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<%--<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>--%>
|
||||
<f:Button ID="btnPrint" Text="特种设备安装改造维修告知书打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
<f:Button ID="btnPrint" Text="预览" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出Word" Icon="FolderUp"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
|
||||
@@ -19,17 +19,19 @@
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="true" EnableCheckBoxSelect="true"
|
||||
KeepCurrentSelection="true" runat="server" BoxFlex="1" DataKeyNames="BakeRecordsId"
|
||||
DataIDField="BakeRecordsId" AllowSorting="true" SortField="BakeDate" SortDirection="DESC"
|
||||
OnSort="Grid1_Sort" EnableTextSelection="True">
|
||||
OnSort="Grid1_Sort" EnableTextSelection="True" AllowPaging="true" IsDatabasePaging="true" PageSize="50"
|
||||
OnPageIndexChange="Grid1_PageIndexChange" >
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar3" Position="Top" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelWidth="50px" Width="265px"
|
||||
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelWidth="50px" Width="200px"
|
||||
EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
<f:DatePicker ID="txtStartDate" runat="server" Label="烘烤日期" EmptyText="开始时间" Width="220px" LabelAlign="Right"></f:DatePicker>
|
||||
<f:Label ID="Label1" runat="server" Text="-"></f:Label>
|
||||
<f:DatePicker ID="txtEndDate" runat="server" EmptyText="结束时间" Width="120px"></f:DatePicker>
|
||||
<f:TextBox runat="server" Label="焊材牌号" ID="txtBrand" EmptyText="输入查询条件" Width="300px" LabelAlign="right"></f:TextBox>
|
||||
<f:DropDownList ID="drpUnitStore" runat="server" Label="焊材库" LabelAlign="Right" Width="320px" LabelWidth="80px"></f:DropDownList>
|
||||
<f:TextBox runat="server" Label="焊材牌号" ID="txtBrand" EmptyText="输入查询条件" Width="220px" LabelAlign="right"></f:TextBox>
|
||||
<f:Button ID="btnSearch" runat="server" Text="查询" Icon="SystemSearch" OnClick="btnSearch_Click"></f:Button>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
|
||||
@@ -33,7 +33,10 @@ namespace FineUIPro.Web.JGZL
|
||||
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectList("1");
|
||||
this.drpProjectId.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpProjectId);
|
||||
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
|
||||
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
|
||||
|
||||
BLL.UnitStoreService.InitUnitStoreDropDownList(drpUnitStore, null, true);
|
||||
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
@@ -86,13 +89,18 @@ namespace FineUIPro.Web.JGZL
|
||||
strSql += " AND BakeRecords.BakeDate <= @endDate";
|
||||
listStr.Add(new SqlParameter("@endDate", this.txtEndDate.Text.Trim()));
|
||||
}
|
||||
if (this.drpUnitStore.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpUnitStore.SelectedValue))
|
||||
{
|
||||
strSql += " AND BakeRecords.UnitStoreId =@unitStoreId ";
|
||||
listStr.Add(new SqlParameter("@unitStoreId", this.drpUnitStore.SelectedValue));
|
||||
}
|
||||
strSql += " order by BakeRecords.BakeDate desc";
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
//var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = tb;
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
#endregion
|
||||
@@ -111,6 +119,19 @@ namespace FineUIPro.Web.JGZL
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 页索引改变事件
|
||||
/// <summary>
|
||||
/// 页索引改变事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
Grid1.PageIndex = e.NewPageIndex;
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 提交
|
||||
/// <summary>
|
||||
/// 确定按钮
|
||||
@@ -229,7 +250,7 @@ namespace FineUIPro.Web.JGZL
|
||||
|
||||
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
||||
BLL.Common.FastReportService.AddFastreportTable(dt);
|
||||
initTemplatePath = "File\\Fastreport\\JGZL\\焊条烘烤记录.frx";
|
||||
initTemplatePath = "File\\Fastreport\\焊条烘烤记录.frx";
|
||||
|
||||
if (File.Exists(rootPath + initTemplatePath))
|
||||
{
|
||||
|
||||
@@ -104,6 +104,15 @@ namespace FineUIPro.Web.JGZL
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtEndDate;
|
||||
|
||||
/// <summary>
|
||||
/// drpUnitStore 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnitStore;
|
||||
|
||||
/// <summary>
|
||||
/// txtBrand 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<FineUIPro DebugMode="false" Theme="Cupertino"/>
|
||||
<appSettings>
|
||||
<!--连接字符串-->
|
||||
<add key="ConnectionString" value="Server=.\MSSQLSERVER2022;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
|
||||
<add key="ConnectionString" value="Server=.\SQL2022;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
|
||||
<!--系统名称-->
|
||||
<add key="SystemName" value="诺必达焊接管理系统"/>
|
||||
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
|
||||
@@ -67,7 +67,7 @@
|
||||
<add path="ChartImg.axd" verb="GET,POST,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
|
||||
<add path="FastReport.Export.axd" verb="*" type="FastReport.Web.Handlers.WebExport"/>
|
||||
</httpHandlers>
|
||||
<compilation debug="true" targetFramework="4.6.1">
|
||||
<compilation debug="false" targetFramework="4.6.1">
|
||||
<assemblies>
|
||||
<add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||
</assemblies>
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
HeaderText="使用位置" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" ColumnID="IsSteelStru" DataField="IsSteelStru" FieldType="String"
|
||||
HeaderText="是否钢结构" HeaderTextAlign="Center" TextAlign="Center">
|
||||
HeaderText="是否管道焊接" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="STE_Name" DataField="STE_Name" FieldType="String"
|
||||
HeaderText="焊件材质" HeaderTextAlign="Center" TextAlign="Center">
|
||||
|
||||
@@ -141,7 +141,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan
|
||||
string strSql = @"SELECT UsingPlan.UsingPlanId, UsingPlan.WeldId, UsingPlan.ProjectId, UsingPlan.UsePosition,TeamGroupId,UsingPlan.STE_Name,UnitStore.UnitStoreName,
|
||||
unit.UnitName AS UsingUnit,UsingPlan.Amount, UsingPlan.UsingManOne, UsingPlan.InPutDate,
|
||||
CONVERT(varchar(100), UsingPlan.OrderDate, 23)+' '+UsingPlan.OrderTime as OrderTime, UsingPlan.CancelDate,UsingPlan.IsNeedConfirm,
|
||||
(CASE UsingPlan.IsSteelStru WHEN 1 THEN '是' WHEN 0 THEN '否' ELSE '' END) AS IsSteelStru,
|
||||
(CASE UsingPlan.IsSteelStru WHEN 1 THEN '否' WHEN 0 THEN '是' ELSE '' END) AS IsSteelStru,
|
||||
(CASE UsingPlan.IsSubmit WHEN 1 THEN '是' WHEN 0 THEN '否' ELSE '' END) AS IsSubmit,
|
||||
(CASE UsingPlan.IsCancel WHEN 1 THEN '是' WHEN 0 THEN '否' ELSE '' END) AS IsCancel,
|
||||
Weld.WeldCode,Weld.WeldName,Weld.WeldSpec,WeldType.WeldUnit,WeldType.WeldTypeName,
|
||||
|
||||
@@ -61,9 +61,9 @@
|
||||
|
||||
<f:FormRow ColumnWidths="50% 45% 5%">
|
||||
<Items>
|
||||
<f:DropDownList ID="drpIsSteelStru" runat="server" Label="是否钢结构" LabelAlign="Right" Required="true" ShowRedStar="true" >
|
||||
<f:ListItem Text="否" Value="0" />
|
||||
<f:ListItem Text="是" Value="1" />
|
||||
<f:DropDownList ID="drpIsSteelStru" runat="server" Label="是否管道焊接" LabelAlign="Right" LabelWidth="120px" Required="true" ShowRedStar="true" >
|
||||
<f:ListItem Text="是" Value="0" />
|
||||
<f:ListItem Text="否" Value="1" />
|
||||
</f:DropDownList>
|
||||
|
||||
<f:TextBox ID="txtUsingManOne" runat="server" Label="领料人" LabelAlign="Right" Readonly="true"
|
||||
|
||||
@@ -88,7 +88,9 @@
|
||||
<f:RenderField Width="120px" ColumnID="ProjectCode" DataField="ProjectCode" FieldType="String"
|
||||
HeaderText="施工号" HeaderTextAlign="Center" TextAlign="Center" SortField="ProjectCode">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField Width="120px" ColumnID="ProjectName" DataField="ProjectName" FieldType="String"
|
||||
HeaderText="项目名称" HeaderTextAlign="Center" TextAlign="Center" SortField="ProjectName">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="WeldName" DataField="WeldName" FieldType="String"
|
||||
HeaderText="焊材牌号" HeaderTextAlign="Center" TextAlign="Center" SortField="WeldName">
|
||||
</f:RenderField>
|
||||
|
||||
@@ -343,7 +343,7 @@ namespace FineUIPro.Web.WeldMat.UsingSentMat
|
||||
BindGrid();
|
||||
foreach (GridColumn column in grid.Columns)
|
||||
{
|
||||
if (column.ColumnIndex < 24)
|
||||
if (column.ColumnIndex < 25)
|
||||
{
|
||||
sb.AppendFormat("<td>{0}</td>", column.HeaderText);
|
||||
}
|
||||
@@ -355,7 +355,7 @@ namespace FineUIPro.Web.WeldMat.UsingSentMat
|
||||
sb.Append("<tr>");
|
||||
foreach (GridColumn column in grid.Columns)
|
||||
{
|
||||
if (column.ColumnIndex < 24)
|
||||
if (column.ColumnIndex < 25)
|
||||
{
|
||||
string html = row.Values[column.ColumnIndex].ToString();
|
||||
if (column.ColumnID == "tfNumber")
|
||||
|
||||
@@ -57,9 +57,17 @@
|
||||
<f:TextBox ID="txtClassS" runat="server" Label="焊工等级" EmptyText="输入查询条件" AutoPostBack="true" OnTextChanged="TextBox_TextChanged"
|
||||
Width="170px" LabelWidth="70px">
|
||||
</f:TextBox>
|
||||
<f:RadioButtonList runat="server" ID="rblIsSelfCreate" Width="260px" AutoPostBack="true" Label="焊工类型" LabelAlign="Right"
|
||||
OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
<f:RadioItem Selected="true" Value="2" Text="全部" />
|
||||
<f:RadioItem Value="1" Text="自建" />
|
||||
<f:RadioItem Value="0" Text="外协" />
|
||||
</f:RadioButtonList>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnSync" Text="同步" Icon="PackageIn" runat="server" OnClick="btnSync_Click" ToolTip="从OA同步焊工信息及焊工合格项目">
|
||||
</f:Button>
|
||||
<f:Button ID="btnSync2" Text="同步2" Icon="PackageIn" runat="server" OnClick="btnSync2_Click" ToolTip="从OA同步焊工信息及焊工合格项目" Hidden="true">
|
||||
</f:Button>
|
||||
<f:Button ID="btnNew" Text="增加" Icon="Add" runat="server" OnClick="btnNew_Click" Hidden="true">
|
||||
</f:Button>
|
||||
<f:Button ID="btnIn" Text="导入" Icon="PackageIn" runat="server" OnClick="btnIn_Click" Hidden="true">
|
||||
|
||||
@@ -119,7 +119,11 @@ namespace FineUIPro.Web.Welder
|
||||
strSql += " AND Welder.WED_Class LIKE @WED_Class";
|
||||
listStr.Add(new SqlParameter("@WED_Class", "%" + this.txtClassS.Text.Trim() + "%"));
|
||||
}
|
||||
|
||||
if (this.rblIsSelfCreate.SelectedValue != "2")
|
||||
{
|
||||
strSql += " AND Welder.IsSelfCreate = @IsSelfCreate";
|
||||
listStr.Add(new SqlParameter("@IsSelfCreate", this.rblIsSelfCreate.SelectedValue));
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
@@ -158,6 +162,42 @@ namespace FineUIPro.Web.Welder
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void btnSync2_Click(object sender, EventArgs e)
|
||||
{
|
||||
var welders = from x in Funs.DB.OAM_User select x;
|
||||
foreach (var q in welders)
|
||||
{
|
||||
var s = from x in Funs.DB.HJGL_BS_Welder where x.IdentityCard == q.MID_IdentityCard select x;
|
||||
var u = BLL.Base_UnitService.GetUnit2(q.MID_Unit);
|
||||
if (u != null)
|
||||
{
|
||||
Model.HJGL_BS_Welder newWelder = new Model.HJGL_BS_Welder();
|
||||
newWelder.WED_Code = q.MID_Code;
|
||||
newWelder.WED_Name = q.MID_Name;
|
||||
newWelder.WED_Unit = u.UnitId;
|
||||
newWelder.WED_Sex = q.MID_Sex;
|
||||
newWelder.IdentityCard = q.MID_IdentityCard;
|
||||
newWelder.WED_WorkCode = q.MID_WordCode;
|
||||
newWelder.WED_IfOnGuard = q.MID_IfOnGuard;
|
||||
newWelder.WED_Remark = q.MID_Remark;
|
||||
|
||||
newWelder.MaxHanTiao = q.MID_HanTiao;
|
||||
newWelder.MaxWeldingWire = q.MID_WeldingWire;
|
||||
newWelder.IsOAM = true;
|
||||
newWelder.IsSelfCreate = q.IsSelfCreate;
|
||||
if (s.Count() > 0)
|
||||
{
|
||||
newWelder.WED_ID = s.First().WED_ID;
|
||||
BLL.HJGL_PersonManageService.UpdateBSWelder(newWelder);
|
||||
}
|
||||
else
|
||||
{
|
||||
BLL.HJGL_PersonManageService.AddBSWelder(newWelder);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnSync_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.Welder_WelderMenuId, Const.BtnSync))
|
||||
@@ -203,6 +243,7 @@ namespace FineUIPro.Web.Welder
|
||||
newWelder.MaxHanTiao = q.MID_HanTiao;
|
||||
newWelder.MaxWeldingWire = q.MID_WeldingWire;
|
||||
newWelder.IsOAM = true;
|
||||
newWelder.IsSelfCreate = q.IsSelfCreate;
|
||||
if (s.Count() > 0)
|
||||
{
|
||||
a++;
|
||||
@@ -241,7 +282,7 @@ namespace FineUIPro.Web.Welder
|
||||
{
|
||||
if (!string.IsNullOrEmpty(q.MIDWelder_QualifiedProjectCode))
|
||||
{
|
||||
if (q.MIDWelder_QualifiedProjectCode.Contains("+") || q.MIDWelder_QualifiedProjectCode.Contains("+")|| q.MIDWelder_QualifiedProjectCode.Contains("和"))
|
||||
if (q.MIDWelder_QualifiedProjectCode.Contains("+") || q.MIDWelder_QualifiedProjectCode.Contains("+") || q.MIDWelder_QualifiedProjectCode.Contains("和"))
|
||||
{
|
||||
string[] codes = null;
|
||||
if (q.MIDWelder_QualifiedProjectCode.Contains("+"))
|
||||
@@ -747,7 +788,7 @@ namespace FineUIPro.Web.Welder
|
||||
{
|
||||
foreach (var q in quas)
|
||||
{
|
||||
if (q.MIDWelder_QualifiedProjectCode.Contains("+") || q.MIDWelder_QualifiedProjectCode.Contains("+")|| q.MIDWelder_QualifiedProjectCode.Contains("和"))
|
||||
if (q.MIDWelder_QualifiedProjectCode.Contains("+") || q.MIDWelder_QualifiedProjectCode.Contains("+") || q.MIDWelder_QualifiedProjectCode.Contains("和"))
|
||||
{
|
||||
string[] codes = null;
|
||||
if (q.MIDWelder_QualifiedProjectCode.Contains("+"))
|
||||
@@ -983,7 +1024,7 @@ namespace FineUIPro.Web.Welder
|
||||
this.InitTreeMenu();
|
||||
this.BindGrid();
|
||||
}
|
||||
|
||||
|
||||
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
|
||||
@@ -147,6 +147,15 @@ namespace FineUIPro.Web.Welder {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtClassS;
|
||||
|
||||
/// <summary>
|
||||
/// rblIsSelfCreate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.RadioButtonList rblIsSelfCreate;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
@@ -165,6 +174,15 @@ namespace FineUIPro.Web.Welder {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSync;
|
||||
|
||||
/// <summary>
|
||||
/// btnSync2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSync2;
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -85,13 +85,13 @@
|
||||
<publishTime>04/12/2024 09:54:20</publishTime>
|
||||
</File>
|
||||
<File Include="bin/BLL.dll">
|
||||
<publishTime>09/10/2026 10:23:02</publishTime>
|
||||
<publishTime>09/23/2026 09:02:17</publishTime>
|
||||
</File>
|
||||
<File Include="bin/BLL.dll.config">
|
||||
<publishTime>12/31/2025 16:32:37</publishTime>
|
||||
</File>
|
||||
<File Include="bin/BLL.pdb">
|
||||
<publishTime>09/10/2026 10:23:02</publishTime>
|
||||
<publishTime>09/23/2026 09:02:17</publishTime>
|
||||
</File>
|
||||
<File Include="bin/BouncyCastle.Crypto.dll">
|
||||
<publishTime>12/17/2020 21:32:28</publishTime>
|
||||
@@ -121,10 +121,10 @@
|
||||
<publishTime>07/25/2012 11:48:56</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Model.dll">
|
||||
<publishTime>09/10/2026 10:23:01</publishTime>
|
||||
<publishTime>09/23/2026 09:02:10</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Model.pdb">
|
||||
<publishTime>09/10/2026 10:23:01</publishTime>
|
||||
<publishTime>09/23/2026 09:02:10</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Newtonsoft.Json.dll">
|
||||
<publishTime>11/28/2018 02:07:34</publishTime>
|
||||
@@ -295,13 +295,13 @@
|
||||
<publishTime>05/24/2018 13:38:24</publishTime>
|
||||
</File>
|
||||
<File Include="bin/SgManager.AI.dll">
|
||||
<publishTime>09/10/2026 10:23:03</publishTime>
|
||||
<publishTime>09/23/2026 09:02:22</publishTime>
|
||||
</File>
|
||||
<File Include="bin/SgManager.AI.dll.config">
|
||||
<publishTime>07/28/2025 11:00:31</publishTime>
|
||||
</File>
|
||||
<File Include="bin/SgManager.AI.pdb">
|
||||
<publishTime>09/10/2026 10:23:03</publishTime>
|
||||
<publishTime>09/23/2026 09:02:22</publishTime>
|
||||
</File>
|
||||
<File Include="bin/System.Net.Http.Formatting.dll">
|
||||
<publishTime>02/01/2018 12:17:18</publishTime>
|
||||
@@ -337,10 +337,10 @@
|
||||
<publishTime>06/29/2015 16:49:52</publishTime>
|
||||
</File>
|
||||
<File Include="bin/WebAPI.dll">
|
||||
<publishTime>09/10/2026 10:23:04</publishTime>
|
||||
<publishTime>09/23/2026 09:02:27</publishTime>
|
||||
</File>
|
||||
<File Include="bin/WebAPI.pdb">
|
||||
<publishTime>09/10/2026 10:23:04</publishTime>
|
||||
<publishTime>09/23/2026 09:02:27</publishTime>
|
||||
</File>
|
||||
<File Include="bin/WebGrease.dll">
|
||||
<publishTime>01/23/2014 13:57:34</publishTime>
|
||||
@@ -466,7 +466,7 @@
|
||||
<publishTime>07/03/2024 11:01:07</publishTime>
|
||||
</File>
|
||||
<File Include="Web.config">
|
||||
<publishTime>09/10/2026 10:23:37</publishTime>
|
||||
<publishTime>09/23/2026 09:02:39</publishTime>
|
||||
</File>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
||||
<NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
<Use64BitIISExpress />
|
||||
|
||||
Reference in New Issue
Block a user