parent
2529b4c36d
commit
8ec205e2cb
|
|
@ -0,0 +1,290 @@
|
|||
|
||||
|
||||
--交工资料
|
||||
|
||||
/**********菜单************************************************************/
|
||||
|
||||
--26、管道系统压力试验条件确认记录
|
||||
IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = 'C1E0F7E9-7786-49B8-89BA-4BD12DF7F50E')
|
||||
BEGIN
|
||||
INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
|
||||
VALUES ('C1E0F7E9-7786-49B8-89BA-4BD12DF7F50E','管道系统压力试验条件确认记录','JGZL/PressureTestOfPipelineSystemConfirmationRecord.aspx',260,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
|
||||
END
|
||||
GO
|
||||
IF NOT EXISTS (SELECT * FROM ButtonToMenu WHERE MenuId = 'C1E0F7E9-7786-49B8-89BA-4BD12DF7F50E')
|
||||
BEGIN
|
||||
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES ('6E4DCE61-6A33-4BD0-8008-13B7DDFD4156','C1E0F7E9-7786-49B8-89BA-4BD12DF7F50E','增加',1)
|
||||
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES ('58B3FFF1-CE29-4EB3-92CC-B5B274EDB182','C1E0F7E9-7786-49B8-89BA-4BD12DF7F50E','修改',2)
|
||||
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES ('4EC3C837-3BF9-42E1-B06F-2AEA074DF52D','C1E0F7E9-7786-49B8-89BA-4BD12DF7F50E','删除',3)
|
||||
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES ('139EEC34-7E29-47AA-919F-F9989211BD69','C1E0F7E9-7786-49B8-89BA-4BD12DF7F50E','保存',4)
|
||||
END
|
||||
GO
|
||||
|
||||
--27、管道系统压力试验记录
|
||||
IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = 'B8A07C4A-E480-4658-A5BF-2A2CEE829622')
|
||||
BEGIN
|
||||
INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
|
||||
VALUES ('B8A07C4A-E480-4658-A5BF-2A2CEE829622','管道系统压力试验记录','JGZL/PressureTestOfPipelineSystemRecord.aspx',270,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
|
||||
END
|
||||
GO
|
||||
IF NOT EXISTS (SELECT * FROM ButtonToMenu WHERE MenuId = 'B8A07C4A-E480-4658-A5BF-2A2CEE829622')
|
||||
BEGIN
|
||||
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES ('87CD243B-A206-4B67-AD14-2BD9F1C91D97','B8A07C4A-E480-4658-A5BF-2A2CEE829622','增加',1)
|
||||
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES ('2C23E5CC-2CAE-46D8-B890-36CDFE7C64A2','B8A07C4A-E480-4658-A5BF-2A2CEE829622','修改',2)
|
||||
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES ('E6FB0C23-6A6A-4890-9553-01C157AED2CE','B8A07C4A-E480-4658-A5BF-2A2CEE829622','删除',3)
|
||||
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES ('48F71436-346A-459F-9A6F-596F9F6F66AC','B8A07C4A-E480-4658-A5BF-2A2CEE829622','保存',4)
|
||||
END
|
||||
GO
|
||||
|
||||
--28、管道系统泄漏性试验记录
|
||||
IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = 'FF56CCBE-0B8C-4AF6-832E-EC6ED1584C94')
|
||||
BEGIN
|
||||
INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
|
||||
VALUES ('FF56CCBE-0B8C-4AF6-832E-EC6ED1584C94','管道系统泄漏性试验记录','JGZL/LeakTestOfPipelineSystemRecord.aspx',280,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
|
||||
END
|
||||
GO
|
||||
IF NOT EXISTS (SELECT * FROM ButtonToMenu WHERE MenuId = 'FF56CCBE-0B8C-4AF6-832E-EC6ED1584C94')
|
||||
BEGIN
|
||||
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES ('9BD5A7CF-E829-42FF-A99F-380E6CF613C7','FF56CCBE-0B8C-4AF6-832E-EC6ED1584C94','增加',1)
|
||||
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES ('C946AA1A-F7C5-422B-88DD-53614F5C9E1B','FF56CCBE-0B8C-4AF6-832E-EC6ED1584C94','修改',2)
|
||||
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES ('1092A6E7-7FE2-4F96-A269-5A192CC98BAA','FF56CCBE-0B8C-4AF6-832E-EC6ED1584C94','删除',3)
|
||||
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES ('D66ADB7B-DC0C-49C5-B190-CB66DC0CB1EF','FF56CCBE-0B8C-4AF6-832E-EC6ED1584C94','保存',4)
|
||||
END
|
||||
GO
|
||||
|
||||
/**********数据表************************************************************/
|
||||
|
||||
--26、管道系统压力试验条件确认记录
|
||||
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_PressureTestOfPipelineSystemConfirmationRecord') AND type = N'U')
|
||||
BEGIN
|
||||
|
||||
CREATE TABLE [dbo].[JGZL_PressureTestOfPipelineSystemConfirmationRecord](
|
||||
[RecordId] [nvarchar](50) NOT NULL,
|
||||
[ProjectId] [nvarchar](50) NULL,
|
||||
[SystemName] [nvarchar](50) NULL,
|
||||
[SystemCode] [nvarchar](50) NULL,
|
||||
[CheckItem1] [nvarchar](50) NULL,
|
||||
[CheckItem2] [nvarchar](50) NULL,
|
||||
[CheckItem3] [nvarchar](50) NULL,
|
||||
[CheckItem4] [nvarchar](50) NULL,
|
||||
[CheckItem5] [nvarchar](50) NULL,
|
||||
[CheckItem6] [nvarchar](50) NULL,
|
||||
[CheckItem7] [nvarchar](50) NULL,
|
||||
[CheckItem8] [nvarchar](50) NULL,
|
||||
[CheckItem9] [nvarchar](50) NULL,
|
||||
[CheckItem10] [nvarchar](50) NULL,
|
||||
[CheckItem11] [nvarchar](50) NULL,
|
||||
[CheckItem12] [nvarchar](50) NULL,
|
||||
[Remark] [nvarchar](500) NULL,
|
||||
[CompileMan] [nvarchar](50) NULL,
|
||||
[CompileDate] [datetime] NULL,
|
||||
[Reviewer] [nvarchar](50) NULL,
|
||||
[RevieweDate] [datetime] NULL,
|
||||
CONSTRAINT [PK_JGZL_PressureTestOfPipelineSystemConfirmationRecord] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[RecordId] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||
) ON [PRIMARY]
|
||||
ALTER TABLE [dbo].[JGZL_PressureTestOfPipelineSystemConfirmationRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_PressureTestOfPipelineSystemConfirmationRecord_Base_Project] FOREIGN KEY([ProjectId])
|
||||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||||
ALTER TABLE [dbo].[JGZL_PressureTestOfPipelineSystemConfirmationRecord] CHECK CONSTRAINT [FK_JGZL_PressureTestOfPipelineSystemConfirmationRecord_Base_Project]
|
||||
ALTER TABLE [dbo].[JGZL_PressureTestOfPipelineSystemConfirmationRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_PressureTestOfPipelineSystemConfirmationRecord_Sys_User] FOREIGN KEY([CompileMan])
|
||||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||||
ALTER TABLE [dbo].[JGZL_PressureTestOfPipelineSystemConfirmationRecord] CHECK CONSTRAINT [FK_JGZL_PressureTestOfPipelineSystemConfirmationRecord_Sys_User]
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'RecordId'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'系统名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'SystemName'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'系统编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'SystemCode'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管道安装符合设计文件和规范要求' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem1'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管道组成件复验合格' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem2'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'焊接工作记录齐全' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem3'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'无损检测结果符合设计文件和规范要求' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem4'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'热处理结果符合设计文件和规范要求' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem5'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'支、吊架安装正确' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem6'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'合金钢管道材质标记清楚' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem7'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'不参与管道系统试验的安全附件、仪表已按规定拆除或隔离,参与试压的系统内的阀门全部开启' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem8'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'临时加固措施、盲板位置与标识符合施工方案要求' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem9'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'焊接接头及需要检验的部位未被覆盖' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem10'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试压用压力表量程、精度等级、检定状态符合规范要求' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem11'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'不锈钢管道试验用水符合规范要求、附水质分析报告' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CheckItem12'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'Remark'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审核人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'Reviewer'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审核日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord', @level2type=N'COLUMN',@level2name=N'RevieweDate'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管道系统压力试验条件确认记录' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemConfirmationRecord'
|
||||
|
||||
END
|
||||
|
||||
GO
|
||||
|
||||
|
||||
--27、管道系统压力试验记录
|
||||
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_PressureTestOfPipelineSystemRecord') AND type = N'U')
|
||||
BEGIN
|
||||
|
||||
CREATE TABLE [dbo].[JGZL_PressureTestOfPipelineSystemRecord](
|
||||
[RecordId] [nvarchar](50) NOT NULL,
|
||||
[ProjectId] [nvarchar](50) NULL,
|
||||
[SystemName] [nvarchar](50) NULL,
|
||||
[SystemCode] [nvarchar](50) NULL,
|
||||
[TestConclusion] [nvarchar](2000) NULL,
|
||||
[Remark] [nvarchar](500) NULL,
|
||||
[CompileMan] [nvarchar](50) NULL,
|
||||
[CompileDate] [datetime] NULL,
|
||||
[Reviewer] [nvarchar](50) NULL,
|
||||
[RevieweDate] [datetime] NULL,
|
||||
CONSTRAINT [PK_JGZL_PressureTestOfPipelineSystemRecord] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[RecordId] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||
) ON [PRIMARY]
|
||||
ALTER TABLE [dbo].[JGZL_PressureTestOfPipelineSystemRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_PressureTestOfPipelineSystemRecord_Base_Project] FOREIGN KEY([ProjectId])
|
||||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||||
ALTER TABLE [dbo].[JGZL_PressureTestOfPipelineSystemRecord] CHECK CONSTRAINT [FK_JGZL_PressureTestOfPipelineSystemRecord_Base_Project]
|
||||
ALTER TABLE [dbo].[JGZL_PressureTestOfPipelineSystemRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_PressureTestOfPipelineSystemRecord_Sys_User] FOREIGN KEY([CompileMan])
|
||||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||||
ALTER TABLE [dbo].[JGZL_PressureTestOfPipelineSystemRecord] CHECK CONSTRAINT [FK_JGZL_PressureTestOfPipelineSystemRecord_Sys_User]
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'RecordId'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键记录Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'RecordId'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'系统名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'SystemName'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'系统编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'SystemCode'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试验结论' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'TestConclusion'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'Remark'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审核人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'Reviewer'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审核日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'RevieweDate'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管道系统压力试验记录' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecord'
|
||||
|
||||
END
|
||||
|
||||
GO
|
||||
|
||||
--管道系统压力试验记录项
|
||||
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_PressureTestOfPipelineSystemRecordItem') AND type = N'U')
|
||||
BEGIN
|
||||
|
||||
CREATE TABLE [dbo].[JGZL_PressureTestOfPipelineSystemRecordItem](
|
||||
[Id] [nvarchar](50) NOT NULL,
|
||||
[RecordId] [nvarchar](50) NOT NULL,
|
||||
[PipelineNo] [nvarchar](50) NULL,
|
||||
[DesignPressure] [nvarchar](50) NULL,
|
||||
[DesignTemperature] [nvarchar](50) NULL,
|
||||
[TestTemperature] [nvarchar](50) NULL,
|
||||
[TestMedium] [nvarchar](50) NULL,
|
||||
[TestMediumTemperature] [nvarchar](50) NULL,
|
||||
[TestPressure] [nvarchar](50) NULL,
|
||||
[VoltageStabilizationTime] [nvarchar](50) NULL,
|
||||
CONSTRAINT [PK_JGZL_PressureTestOfPipelineSystemRecordItem] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[Id] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||
) ON [PRIMARY]
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'Id'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键记录Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'RecordId'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管道编号/单线号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'PipelineNo'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计压力(MPa)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'DesignPressure'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计温度(℃)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'DesignTemperature'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试验环境温度(℃)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'TestTemperature'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试验介质' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'TestMedium'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试验介质温度(℃)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'TestMediumTemperature'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试验压力(MPa)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'TestPressure'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'稳压时间(min)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'VoltageStabilizationTime'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管道系统压力试验记录' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PressureTestOfPipelineSystemRecordItem'
|
||||
|
||||
END
|
||||
|
||||
GO
|
||||
|
||||
--28、管道系统泄漏性试验记录
|
||||
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_LeakTestOfPipelineSystemRecord') AND type = N'U')
|
||||
BEGIN
|
||||
|
||||
CREATE TABLE [dbo].[JGZL_LeakTestOfPipelineSystemRecord](
|
||||
[RecordId] [nvarchar](50) NOT NULL,
|
||||
[ProjectId] [nvarchar](50) NULL,
|
||||
[SystemName] [nvarchar](50) NULL,
|
||||
[SystemCode] [nvarchar](50) NULL,
|
||||
[TestConclusion] [nvarchar](2000) NULL,
|
||||
[Remark] [nvarchar](500) NULL,
|
||||
[CompileMan] [nvarchar](50) NULL,
|
||||
[CompileDate] [datetime] NULL,
|
||||
[Reviewer] [nvarchar](50) NULL,
|
||||
[RevieweDate] [datetime] NULL,
|
||||
CONSTRAINT [PK_JGZL_LeakTestOfPipelineSystemRecord] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[RecordId] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||
) ON [PRIMARY]
|
||||
ALTER TABLE [dbo].[JGZL_LeakTestOfPipelineSystemRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_LeakTestOfPipelineSystemRecord_Base_Project] FOREIGN KEY([ProjectId])
|
||||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||||
ALTER TABLE [dbo].[JGZL_LeakTestOfPipelineSystemRecord] CHECK CONSTRAINT [FK_JGZL_LeakTestOfPipelineSystemRecord_Base_Project]
|
||||
ALTER TABLE [dbo].[JGZL_LeakTestOfPipelineSystemRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_LeakTestOfPipelineSystemRecord_Sys_User] FOREIGN KEY([CompileMan])
|
||||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||||
ALTER TABLE [dbo].[JGZL_LeakTestOfPipelineSystemRecord] CHECK CONSTRAINT [FK_JGZL_LeakTestOfPipelineSystemRecord_Sys_User]
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'RecordId'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键记录Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'RecordId'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'系统名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'SystemName'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'系统编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'SystemCode'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试验结论' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'TestConclusion'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'Remark'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审核人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'Reviewer'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审核日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecord', @level2type=N'COLUMN',@level2name=N'RevieweDate'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管道系统压力试验记录' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecord'
|
||||
|
||||
END
|
||||
|
||||
GO
|
||||
|
||||
--管道系统泄漏性试验记录项
|
||||
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_LeakTestOfPipelineSystemRecordItem') AND type = N'U')
|
||||
BEGIN
|
||||
|
||||
CREATE TABLE [dbo].[JGZL_LeakTestOfPipelineSystemRecordItem](
|
||||
[Id] [nvarchar](50) NOT NULL,
|
||||
[RecordId] [nvarchar](50) NOT NULL,
|
||||
[PipelineNo] [nvarchar](50) NULL,
|
||||
[DesignPressure] [nvarchar](50) NULL,
|
||||
[DesignTemperature] [nvarchar](50) NULL,
|
||||
[TestTemperature] [nvarchar](50) NULL,
|
||||
--[TestMedium] [nvarchar](50) NULL,
|
||||
[TestMediumTemperature] [nvarchar](50) NULL,
|
||||
[TestPressure] [nvarchar](50) NULL,
|
||||
[VoltageStabilizationTime] [nvarchar](50) NULL,
|
||||
CONSTRAINT [PK_JGZL_LeakTestOfPipelineSystemRecordItem] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[Id] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||
) ON [PRIMARY]
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'Id'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键记录Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'RecordId'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管道编号/单线号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'PipelineNo'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计压力(MPa)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'DesignPressure'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计温度(℃)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'DesignTemperature'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试验环境温度(℃)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'TestTemperature'
|
||||
--EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试验介质' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'TestMedium'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试验介质温度(℃)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'TestMediumTemperature'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试验压力(MPa)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'TestPressure'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'稳压时间(min)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem', @level2type=N'COLUMN',@level2name=N'VoltageStabilizationTime'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管道系统压力试验记录' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_LeakTestOfPipelineSystemRecordItem'
|
||||
|
||||
END
|
||||
|
||||
GO
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -247,7 +247,12 @@
|
|||
<Compile Include="HJGL\WeldingManage\WelderOKRateStatisticsService.cs" />
|
||||
<Compile Include="HJGL\WeldingManage\WeldRecordInService.cs" />
|
||||
<Compile Include="JGZL\AcceptanceCertificateService.cs" />
|
||||
<Compile Include="JGZL\LeakTestOfPipelineSystemRecordItemService.cs" />
|
||||
<Compile Include="JGZL\PressureTestOfPipelineSystemRecordItemService.cs" />
|
||||
<Compile Include="JGZL\AnticorrosionEngineeringInspectionRecordItemService.cs" />
|
||||
<Compile Include="JGZL\LeakTestOfPipelineSystemRecordService.cs" />
|
||||
<Compile Include="JGZL\PressureTestOfPipelineSystemConfirmationRecordService.cs" />
|
||||
<Compile Include="JGZL\PressureTestOfPipelineSystemRecordService.cs" />
|
||||
<Compile Include="JGZL\AnticorrosionEngineeringInspectionRecordService.cs" />
|
||||
<Compile Include="JGZL\BlowingCleaningItemService.cs" />
|
||||
<Compile Include="JGZL\BlowingCleaningService.cs" />
|
||||
|
|
|
|||
|
|
@ -1845,6 +1845,21 @@ namespace BLL
|
|||
/// </summary>
|
||||
public const string JGZL_PipeFittingInspectionRecordMenuId = "4A4FD28C-6B6B-4BDE-9CE0-73955FCACF5A";
|
||||
|
||||
/// <summary>
|
||||
/// 管道系统压力试验条件确认记录
|
||||
/// </summary>
|
||||
public const string JGZL_PressureTestOfPipelineSystemConfirmationRecordMenuId = "C1E0F7E9-7786-49B8-89BA-4BD12DF7F50E";
|
||||
|
||||
/// <summary>
|
||||
/// 管道系统压力试验记录
|
||||
/// </summary>
|
||||
public const string JGZL_PressureTestOfPipelineSystemRecordMenuId = "B8A07C4A-E480-4658-A5BF-2A2CEE829622";
|
||||
|
||||
/// <summary>
|
||||
/// 管道系统泄漏性试验记录
|
||||
/// </summary>
|
||||
public const string JGZL_LeakTestOfPipelineSystemRecordMenuId = "FF56CCBE-0B8C-4AF6-832E-EC6ED1584C94";
|
||||
|
||||
/// <summary>
|
||||
/// 工序交接记录
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,107 @@
|
|||
using System.Collections.Generic;
|
||||
using Model;
|
||||
using System.Linq;
|
||||
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class LeakTestOfPipelineSystemRecordItemService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取管道系统泄漏性试验记录子表
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.JGZL_LeakTestOfPipelineSystemRecordItem GetItemById(string Id)
|
||||
{
|
||||
return Funs.DB.JGZL_LeakTestOfPipelineSystemRecordItem.FirstOrDefault(e => e.Id == Id);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取管道系统泄漏性试验记录子表
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.JGZL_LeakTestOfPipelineSystemRecordItem> GetItemByRecordId(string recordId)
|
||||
{
|
||||
return Funs.DB.JGZL_LeakTestOfPipelineSystemRecordItem.Where(e =>
|
||||
e.RecordId == recordId).ToList();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 添加管道系统泄漏性试验记录子表
|
||||
/// </summary>
|
||||
/// <param name="item"></param>
|
||||
public static void AddItem(Model.JGZL_LeakTestOfPipelineSystemRecordItem item)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_LeakTestOfPipelineSystemRecordItem newItem = new Model.JGZL_LeakTestOfPipelineSystemRecordItem();
|
||||
newItem.Id = item.Id;
|
||||
newItem.RecordId = item.RecordId;
|
||||
newItem.PipelineNo = item.PipelineNo;
|
||||
newItem.DesignPressure = item.DesignPressure;
|
||||
newItem.DesignTemperature = item.DesignTemperature;
|
||||
newItem.TestTemperature = item.TestTemperature;
|
||||
//newItem.TestMedium = item.TestMedium;
|
||||
newItem.TestMediumTemperature = item.TestMediumTemperature;
|
||||
newItem.TestPressure = item.TestPressure;
|
||||
newItem.VoltageStabilizationTime = item.VoltageStabilizationTime;
|
||||
db.JGZL_LeakTestOfPipelineSystemRecordItem.InsertOnSubmit(newItem);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改管道系统泄漏性试验记录子表
|
||||
/// </summary>
|
||||
/// <param name="item"></param>
|
||||
public static void UpdateItem(Model.JGZL_LeakTestOfPipelineSystemRecordItem item)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_LeakTestOfPipelineSystemRecordItem newItem = db.JGZL_LeakTestOfPipelineSystemRecordItem.FirstOrDefault(e => e.Id == item.Id);
|
||||
if (newItem != null)
|
||||
{
|
||||
newItem.PipelineNo = item.PipelineNo;
|
||||
newItem.DesignPressure = item.DesignPressure;
|
||||
newItem.DesignTemperature = item.DesignTemperature;
|
||||
newItem.TestTemperature = item.TestTemperature;
|
||||
//newItem.TestMedium = item.TestMedium;
|
||||
newItem.TestMediumTemperature = item.TestMediumTemperature;
|
||||
newItem.TestPressure = item.TestPressure;
|
||||
newItem.VoltageStabilizationTime = item.VoltageStabilizationTime;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除管道系统泄漏性试验记录子表
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
public static void DeleteItemById(string Id)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_LeakTestOfPipelineSystemRecordItem item = db.JGZL_LeakTestOfPipelineSystemRecordItem.FirstOrDefault(e => e.Id == Id);
|
||||
if (item != null)
|
||||
{
|
||||
db.JGZL_LeakTestOfPipelineSystemRecordItem.DeleteOnSubmit(item);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主表删除管道系统泄漏性试验记录子表
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
public static void DeleteItemByRecordId(string recordId)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
List<Model.JGZL_LeakTestOfPipelineSystemRecordItem> items = db.JGZL_LeakTestOfPipelineSystemRecordItem.Where(e => e.RecordId == recordId).ToList();
|
||||
if (items != null)
|
||||
{
|
||||
db.JGZL_LeakTestOfPipelineSystemRecordItem.DeleteAllOnSubmit(items);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,72 @@
|
|||
using Model;
|
||||
using System.Linq;
|
||||
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class LeakTestOfPipelineSystemRecordService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取管道系统泄漏性试验记录
|
||||
/// </summary>
|
||||
/// <param name="recordId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.JGZL_LeakTestOfPipelineSystemRecord GetLeakTestOfPipelineSystemRecordById(string recordId)
|
||||
{
|
||||
return Funs.DB.JGZL_LeakTestOfPipelineSystemRecord.FirstOrDefault(e => e.RecordId == recordId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加管道系统泄漏性试验记录
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
public static void AddLeakTestOfPipelineSystemRecord(Model.JGZL_LeakTestOfPipelineSystemRecord model)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_LeakTestOfPipelineSystemRecord newModel = new Model.JGZL_LeakTestOfPipelineSystemRecord();
|
||||
newModel.RecordId = model.RecordId;
|
||||
newModel.ProjectId = model.ProjectId;
|
||||
newModel.SystemName = model.SystemName;
|
||||
newModel.SystemCode = model.SystemCode;
|
||||
newModel.TestConclusion = model.TestConclusion;
|
||||
newModel.Remark = model.Remark;
|
||||
newModel.CompileMan = model.CompileMan;
|
||||
newModel.CompileDate = model.CompileDate;
|
||||
db.JGZL_LeakTestOfPipelineSystemRecord.InsertOnSubmit(newModel);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改管道系统泄漏性试验记录
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
public static void UpdateLeakTestOfPipelineSystemRecord(Model.JGZL_LeakTestOfPipelineSystemRecord model)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_LeakTestOfPipelineSystemRecord newModel = db.JGZL_LeakTestOfPipelineSystemRecord.FirstOrDefault(e => e.RecordId == model.RecordId);
|
||||
if (newModel != null)
|
||||
{
|
||||
newModel.SystemName = model.SystemName;
|
||||
newModel.SystemCode = model.SystemCode;
|
||||
newModel.TestConclusion = model.TestConclusion;
|
||||
newModel.Remark = model.Remark;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除管道系统泄漏性试验记录
|
||||
/// </summary>
|
||||
/// <param name="recordId"></param>
|
||||
public static void DeleteLeakTestOfPipelineSystemRecordById(string recordId)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_LeakTestOfPipelineSystemRecord model = db.JGZL_LeakTestOfPipelineSystemRecord.FirstOrDefault(e => e.RecordId == recordId);
|
||||
if (model != null)
|
||||
{
|
||||
db.JGZL_LeakTestOfPipelineSystemRecord.DeleteOnSubmit(model);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,94 @@
|
|||
using Model;
|
||||
using System.Linq;
|
||||
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class PressureTestOfPipelineSystemConfirmationRecordService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取管道系统压力试验条件确认记录
|
||||
/// </summary>
|
||||
/// <param name="recordId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.JGZL_PressureTestOfPipelineSystemConfirmationRecord GetPressureTestOfPipelineSystemConfirmationRecordById(string recordId)
|
||||
{
|
||||
return Funs.DB.JGZL_PressureTestOfPipelineSystemConfirmationRecord.FirstOrDefault(e => e.RecordId == recordId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加管道系统压力试验条件确认记录
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
public static void AddPressureTestOfPipelineSystemConfirmationRecord(Model.JGZL_PressureTestOfPipelineSystemConfirmationRecord model)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_PressureTestOfPipelineSystemConfirmationRecord newModel = new Model.JGZL_PressureTestOfPipelineSystemConfirmationRecord();
|
||||
newModel.RecordId = model.RecordId;
|
||||
newModel.ProjectId = model.ProjectId;
|
||||
newModel.SystemName = model.SystemName;
|
||||
newModel.SystemCode = model.SystemCode;
|
||||
newModel.CheckItem1 = model.CheckItem1;
|
||||
newModel.CheckItem2 = model.CheckItem2;
|
||||
newModel.CheckItem3 = model.CheckItem3;
|
||||
newModel.CheckItem4 = model.CheckItem4;
|
||||
newModel.CheckItem5 = model.CheckItem5;
|
||||
newModel.CheckItem6 = model.CheckItem6;
|
||||
newModel.CheckItem7 = model.CheckItem7;
|
||||
newModel.CheckItem8 = model.CheckItem8;
|
||||
newModel.CheckItem9 = model.CheckItem9;
|
||||
newModel.CheckItem10 = model.CheckItem10;
|
||||
newModel.CheckItem11 = model.CheckItem11;
|
||||
newModel.CheckItem12 = model.CheckItem12;
|
||||
newModel.Remark = model.Remark;
|
||||
newModel.CompileMan = model.CompileMan;
|
||||
newModel.CompileDate = model.CompileDate;
|
||||
db.JGZL_PressureTestOfPipelineSystemConfirmationRecord.InsertOnSubmit(newModel);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改管道系统压力试验条件确认记录
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
public static void UpdatePressureTestOfPipelineSystemConfirmationRecord(Model.JGZL_PressureTestOfPipelineSystemConfirmationRecord model)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_PressureTestOfPipelineSystemConfirmationRecord newModel = db.JGZL_PressureTestOfPipelineSystemConfirmationRecord.FirstOrDefault(e => e.RecordId == model.RecordId);
|
||||
if (newModel != null)
|
||||
{
|
||||
newModel.SystemName = model.SystemName;
|
||||
newModel.SystemCode = model.SystemCode;
|
||||
newModel.CheckItem1 = model.CheckItem1;
|
||||
newModel.CheckItem2 = model.CheckItem2;
|
||||
newModel.CheckItem3 = model.CheckItem3;
|
||||
newModel.CheckItem4 = model.CheckItem4;
|
||||
newModel.CheckItem5 = model.CheckItem5;
|
||||
newModel.CheckItem6 = model.CheckItem6;
|
||||
newModel.CheckItem7 = model.CheckItem7;
|
||||
newModel.CheckItem8 = model.CheckItem8;
|
||||
newModel.CheckItem9 = model.CheckItem9;
|
||||
newModel.CheckItem10 = model.CheckItem10;
|
||||
newModel.CheckItem11 = model.CheckItem11;
|
||||
newModel.CheckItem12 = model.CheckItem12;
|
||||
newModel.Remark = model.Remark;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除管道系统压力试验条件确认记录
|
||||
/// </summary>
|
||||
/// <param name="recordId"></param>
|
||||
public static void DeletePressureTestOfPipelineSystemConfirmationRecordById(string recordId)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_PressureTestOfPipelineSystemConfirmationRecord model = db.JGZL_PressureTestOfPipelineSystemConfirmationRecord.FirstOrDefault(e => e.RecordId == recordId);
|
||||
if (model != null)
|
||||
{
|
||||
db.JGZL_PressureTestOfPipelineSystemConfirmationRecord.DeleteOnSubmit(model);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,107 @@
|
|||
using System.Collections.Generic;
|
||||
using Model;
|
||||
using System.Linq;
|
||||
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class PressureTestOfPipelineSystemRecordItemService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取管道系统压力试验记录子表
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.JGZL_PressureTestOfPipelineSystemRecordItem GetItemById(string Id)
|
||||
{
|
||||
return Funs.DB.JGZL_PressureTestOfPipelineSystemRecordItem.FirstOrDefault(e => e.Id == Id);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取管道系统压力试验记录子表
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.JGZL_PressureTestOfPipelineSystemRecordItem> GetItemByRecordId(string recordId)
|
||||
{
|
||||
return Funs.DB.JGZL_PressureTestOfPipelineSystemRecordItem.Where(e =>
|
||||
e.RecordId == recordId).ToList();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 添加管道系统压力试验记录子表
|
||||
/// </summary>
|
||||
/// <param name="item"></param>
|
||||
public static void AddItem(Model.JGZL_PressureTestOfPipelineSystemRecordItem item)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_PressureTestOfPipelineSystemRecordItem newItem = new Model.JGZL_PressureTestOfPipelineSystemRecordItem();
|
||||
newItem.Id = item.Id;
|
||||
newItem.RecordId = item.RecordId;
|
||||
newItem.PipelineNo = item.PipelineNo;
|
||||
newItem.DesignPressure = item.DesignPressure;
|
||||
newItem.DesignTemperature = item.DesignTemperature;
|
||||
newItem.TestTemperature = item.TestTemperature;
|
||||
newItem.TestMedium = item.TestMedium;
|
||||
newItem.TestMediumTemperature = item.TestMediumTemperature;
|
||||
newItem.TestPressure = item.TestPressure;
|
||||
newItem.VoltageStabilizationTime = item.VoltageStabilizationTime;
|
||||
db.JGZL_PressureTestOfPipelineSystemRecordItem.InsertOnSubmit(newItem);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改管道系统压力试验记录子表
|
||||
/// </summary>
|
||||
/// <param name="item"></param>
|
||||
public static void UpdateItem(Model.JGZL_PressureTestOfPipelineSystemRecordItem item)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_PressureTestOfPipelineSystemRecordItem newItem = db.JGZL_PressureTestOfPipelineSystemRecordItem.FirstOrDefault(e => e.Id == item.Id);
|
||||
if (newItem != null)
|
||||
{
|
||||
newItem.PipelineNo = item.PipelineNo;
|
||||
newItem.DesignPressure = item.DesignPressure;
|
||||
newItem.DesignTemperature = item.DesignTemperature;
|
||||
newItem.TestTemperature = item.TestTemperature;
|
||||
newItem.TestMedium = item.TestMedium;
|
||||
newItem.TestMediumTemperature = item.TestMediumTemperature;
|
||||
newItem.TestPressure = item.TestPressure;
|
||||
newItem.VoltageStabilizationTime = item.VoltageStabilizationTime;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除管道系统压力试验记录子表
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
public static void DeleteItemById(string Id)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_PressureTestOfPipelineSystemRecordItem item = db.JGZL_PressureTestOfPipelineSystemRecordItem.FirstOrDefault(e => e.Id == Id);
|
||||
if (item != null)
|
||||
{
|
||||
db.JGZL_PressureTestOfPipelineSystemRecordItem.DeleteOnSubmit(item);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主表删除管道系统压力试验记录子表
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
public static void DeleteItemByRecordId(string recordId)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
List<Model.JGZL_PressureTestOfPipelineSystemRecordItem> items = db.JGZL_PressureTestOfPipelineSystemRecordItem.Where(e => e.RecordId == recordId).ToList();
|
||||
if (items != null)
|
||||
{
|
||||
db.JGZL_PressureTestOfPipelineSystemRecordItem.DeleteAllOnSubmit(items);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,72 @@
|
|||
using Model;
|
||||
using System.Linq;
|
||||
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class PressureTestOfPipelineSystemRecordService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取管道系统压力试验记录
|
||||
/// </summary>
|
||||
/// <param name="recordId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.JGZL_PressureTestOfPipelineSystemRecord GetPressureTestOfPipelineSystemRecordById(string recordId)
|
||||
{
|
||||
return Funs.DB.JGZL_PressureTestOfPipelineSystemRecord.FirstOrDefault(e => e.RecordId == recordId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加管道系统压力试验记录
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
public static void AddPressureTestOfPipelineSystemRecord(Model.JGZL_PressureTestOfPipelineSystemRecord model)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_PressureTestOfPipelineSystemRecord newModel = new Model.JGZL_PressureTestOfPipelineSystemRecord();
|
||||
newModel.RecordId = model.RecordId;
|
||||
newModel.ProjectId = model.ProjectId;
|
||||
newModel.SystemName = model.SystemName;
|
||||
newModel.SystemCode = model.SystemCode;
|
||||
newModel.TestConclusion = model.TestConclusion;
|
||||
newModel.Remark = model.Remark;
|
||||
newModel.CompileMan = model.CompileMan;
|
||||
newModel.CompileDate = model.CompileDate;
|
||||
db.JGZL_PressureTestOfPipelineSystemRecord.InsertOnSubmit(newModel);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改管道系统压力试验记录
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
public static void UpdatePressureTestOfPipelineSystemRecord(Model.JGZL_PressureTestOfPipelineSystemRecord model)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_PressureTestOfPipelineSystemRecord newModel = db.JGZL_PressureTestOfPipelineSystemRecord.FirstOrDefault(e => e.RecordId == model.RecordId);
|
||||
if (newModel != null)
|
||||
{
|
||||
newModel.SystemName = model.SystemName;
|
||||
newModel.SystemCode = model.SystemCode;
|
||||
newModel.TestConclusion = model.TestConclusion;
|
||||
newModel.Remark = model.Remark;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除管道系统压力试验记录
|
||||
/// </summary>
|
||||
/// <param name="recordId"></param>
|
||||
public static void DeletePressureTestOfPipelineSystemRecordById(string recordId)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_PressureTestOfPipelineSystemRecord model = db.JGZL_PressureTestOfPipelineSystemRecord.FirstOrDefault(e => e.RecordId == recordId);
|
||||
if (model != null)
|
||||
{
|
||||
db.JGZL_PressureTestOfPipelineSystemRecord.DeleteOnSubmit(model);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1243,7 +1243,13 @@
|
|||
<Content Include="Images\wrong.jpg" />
|
||||
<Content Include="JGZL\AcceptanceCertificate.aspx" />
|
||||
<Content Include="JGZL\AcceptanceCertificateEdit.aspx" />
|
||||
<Content Include="JGZL\PressureTestOfPipelineSystemConfirmationRecord.aspx" />
|
||||
<Content Include="JGZL\LeakTestOfPipelineSystemRecord.aspx" />
|
||||
<Content Include="JGZL\PressureTestOfPipelineSystemConfirmationRecordEdit.aspx" />
|
||||
<Content Include="JGZL\PressureTestOfPipelineSystemRecord.aspx" />
|
||||
<Content Include="JGZL\AnticorrosionEngineeringInspectionRecord.aspx" />
|
||||
<Content Include="JGZL\LeakTestOfPipelineSystemRecordEdit.aspx" />
|
||||
<Content Include="JGZL\PressureTestOfPipelineSystemRecordEdit.aspx" />
|
||||
<Content Include="JGZL\AnticorrosionEngineeringInspectionRecordEdit.aspx" />
|
||||
<Content Include="JGZL\BlowingCleaning.aspx" />
|
||||
<Content Include="JGZL\BlowingCleaningEdit.aspx" />
|
||||
|
|
@ -6596,6 +6602,34 @@
|
|||
<Compile Include="JGZL\AcceptanceCertificateEdit.aspx.designer.cs">
|
||||
<DependentUpon>AcceptanceCertificateEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\PressureTestOfPipelineSystemConfirmationRecord.aspx.cs">
|
||||
<DependentUpon>PressureTestOfPipelineSystemConfirmationRecord.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\PressureTestOfPipelineSystemConfirmationRecord.aspx.designer.cs">
|
||||
<DependentUpon>PressureTestOfPipelineSystemConfirmationRecord.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\LeakTestOfPipelineSystemRecord.aspx.cs">
|
||||
<DependentUpon>LeakTestOfPipelineSystemRecord.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\LeakTestOfPipelineSystemRecord.aspx.designer.cs">
|
||||
<DependentUpon>LeakTestOfPipelineSystemRecord.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\PressureTestOfPipelineSystemConfirmationRecordEdit.aspx.cs">
|
||||
<DependentUpon>PressureTestOfPipelineSystemConfirmationRecordEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\PressureTestOfPipelineSystemConfirmationRecordEdit.aspx.designer.cs">
|
||||
<DependentUpon>PressureTestOfPipelineSystemConfirmationRecordEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\PressureTestOfPipelineSystemRecord.aspx.cs">
|
||||
<DependentUpon>PressureTestOfPipelineSystemRecord.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\PressureTestOfPipelineSystemRecord.aspx.designer.cs">
|
||||
<DependentUpon>PressureTestOfPipelineSystemRecord.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\AnticorrosionEngineeringInspectionRecord.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>AnticorrosionEngineeringInspectionRecord.aspx</DependentUpon>
|
||||
|
|
@ -6603,6 +6637,20 @@
|
|||
<Compile Include="JGZL\AnticorrosionEngineeringInspectionRecord.aspx.designer.cs">
|
||||
<DependentUpon>AnticorrosionEngineeringInspectionRecord.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\LeakTestOfPipelineSystemRecordEdit.aspx.cs">
|
||||
<DependentUpon>LeakTestOfPipelineSystemRecordEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\LeakTestOfPipelineSystemRecordEdit.aspx.designer.cs">
|
||||
<DependentUpon>LeakTestOfPipelineSystemRecordEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\PressureTestOfPipelineSystemRecordEdit.aspx.cs">
|
||||
<DependentUpon>PressureTestOfPipelineSystemRecordEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\PressureTestOfPipelineSystemRecordEdit.aspx.designer.cs">
|
||||
<DependentUpon>PressureTestOfPipelineSystemRecordEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\AnticorrosionEngineeringInspectionRecordEdit.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>AnticorrosionEngineeringInspectionRecordEdit.aspx</DependentUpon>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,115 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LeakTestOfPipelineSystemRecord.aspx.cs" Inherits="FineUIPro.Web.JGZL.LeakTestOfPipelineSystemRecord" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>管道系统泄漏性试验记录</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server"/>
|
||||
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||
<Items>
|
||||
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||
EnableCollapse="true" Width="220px" Title="管道系统泄漏性试验记录" ShowBorder="true" Layout="VBox"
|
||||
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelAlign="Right" AutoPostBack="true" EnableEdit="true"
|
||||
OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged" LabelWidth="50px">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Tree ID="tvControlItem" ShowHeader="false" Title="管道系统泄漏性试验记录节点树" OnNodeCommand="tvControlItem_NodeCommand"
|
||||
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
|
||||
AutoLeafIdentification="true" EnableSingleExpand="true" EnableTextSelection="true">
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
|
||||
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="管道系统泄漏性试验记录"
|
||||
TitleToolTip="管道系统泄漏性试验记录" AutoScroll="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>
|
||||
<f:Button ID="btnPrint" Text="管道系统泄漏性试验记录打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="管道系统泄漏性试验记录" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="RecordId" AllowCellEditing="true"
|
||||
EnableColumnLines="true" ClicksToEdit="1" DataIDField="RecordId" AllowSorting="true"
|
||||
SortField="CompileDate" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true"
|
||||
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableTextSelection="True" AutoScroll="true" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center"/>
|
||||
<f:RenderField HeaderText="系统名称" ColumnID="SystemName" DataField="SystemName" SortField="SystemName"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="200px" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="系统编号" ColumnID="SystemCode" DataField="SystemCode" SortField="SystemCode"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="180px" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="试验结论" ColumnID="TestConclusion" DataField="TestConclusion" SortField="TestConclusion"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="360px" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu"/>
|
||||
</Listeners>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
<f:ListItem Text="10" Value="10"/>
|
||||
<f:ListItem Text="15" Value="15"/>
|
||||
<f:ListItem Text="20" Value="20"/>
|
||||
<f:ListItem Text="25" Value="25"/>
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="管道系统泄漏性试验记录" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||
Width="1280px" Height="780px">
|
||||
</f:Window>
|
||||
<f:Window ID="WindowPrint" Title="打印管道系统泄漏性试验记录" Hidden="true" EnableIFrame="true" EnableMaximize="false"
|
||||
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
|
||||
Height="600px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
||||
runat="server" Text="编辑" Icon="TableEdit">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
|
||||
</f:MenuButton>
|
||||
</f:Menu>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
var menuID = '<%= Menu1.ClientID %>';
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,397 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
public partial class LeakTestOfPipelineSystemRecord : PageBase
|
||||
{
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
|
||||
this.drpProjectId.DataTextField = "ProjectCode";
|
||||
this.drpProjectId.DataValueField = "ProjectId";
|
||||
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||
this.drpProjectId.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpProjectId);
|
||||
// 默认显示选中的项目
|
||||
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||
{
|
||||
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
|
||||
}
|
||||
|
||||
this.InitTreeMenu();//加载树
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载树项目
|
||||
/// <summary>
|
||||
/// 加载树
|
||||
/// </summary>
|
||||
private void InitTreeMenu()
|
||||
{
|
||||
this.tvControlItem.Nodes.Clear();
|
||||
TreeNode rootNode = new TreeNode();
|
||||
rootNode.Text = "项目";
|
||||
rootNode.ToolTip = "项目";
|
||||
rootNode.NodeID = "0";
|
||||
rootNode.Expanded = true;
|
||||
this.tvControlItem.Nodes.Add(rootNode);
|
||||
|
||||
List<Model.Base_Project> projects = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||
|
||||
// 默认显示选中的项目
|
||||
string selectedProjectId = this.drpProjectId.SelectedValue;
|
||||
if (!string.IsNullOrEmpty(selectedProjectId) && selectedProjectId != BLL.Const._Null)
|
||||
{
|
||||
projects = projects.Where(e => e.ProjectId == selectedProjectId).ToList();
|
||||
|
||||
// 如果项目存在,则选中该节点
|
||||
if (projects.Any())
|
||||
{
|
||||
this.tvControlItem.SelectedNodeID = selectedProjectId;
|
||||
}
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
if (this.tvControlItem.SelectedNodeID != "0")
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 点击TreeView
|
||||
/// <summary>
|
||||
/// 点击TreeView
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||
{
|
||||
if (this.tvControlItem.SelectedNodeID != "0")
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 数据绑定
|
||||
/// <summary>
|
||||
/// 数据绑定
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string strSql = @"SELECT * from JGZL_LeakTestOfPipelineSystemRecord where 1=1";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
strSql += " AND ProjectId = @ProjectId";
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
|
||||
}
|
||||
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 分页排序
|
||||
#region 页索引改变事件
|
||||
/// <summary>
|
||||
/// 页索引改变事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 排序
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 分页选择下拉改变事件
|
||||
/// <summary>
|
||||
/// 分页选择下拉改变事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 查询
|
||||
///<summary>
|
||||
///查询
|
||||
///</summary>
|
||||
///<param name="sender"></param>
|
||||
///<param name="e"></param>
|
||||
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.InitTreeMenu();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 打印
|
||||
/// <summary>
|
||||
/// 打印
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnPrint_Click(object sender, EventArgs e)
|
||||
{
|
||||
string projectId = this.tvControlItem.SelectedNodeID;
|
||||
|
||||
if (projectId != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||
{
|
||||
string initTemplatePath = "";
|
||||
string rootPath = Server.MapPath("~/");
|
||||
BLL.Common.FastReportService.ResetData();
|
||||
|
||||
var report = BLL.LeakTestOfPipelineSystemRecordService.GetLeakTestOfPipelineSystemRecordById(this.Grid1.SelectedRowID);
|
||||
if (report != null)
|
||||
{
|
||||
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
|
||||
keyValuePairs.Add("SystemName", report.SystemName);
|
||||
keyValuePairs.Add("SystemCode", report.SystemCode);
|
||||
keyValuePairs.Add("TestConclusion", report.TestConclusion);
|
||||
keyValuePairs.Add("Remark", report.Remark);
|
||||
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
||||
}
|
||||
initTemplatePath = "File\\Fastreport\\JGZL\\管道系统泄漏性试验记录.frx";
|
||||
if (File.Exists(rootPath + initTemplatePath))
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 维护
|
||||
/// <summary>
|
||||
/// 增加
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("LeakTestOfPipelineSystemRecordEdit.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_LeakTestOfPipelineSystemRecordMenuId, BLL.Const.BtnModify))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("LeakTestOfPipelineSystemRecordEdit.aspx?recordId={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_LeakTestOfPipelineSystemRecordMenuId, BLL.Const.BtnModify))
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("LeakTestOfPipelineSystemRecordEdit.aspx?recordId={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_LeakTestOfPipelineSystemRecordMenuId, 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.LeakTestOfPipelineSystemRecordItemService.DeleteItemByRecordId(rowID);
|
||||
BLL.LeakTestOfPipelineSystemRecordService.DeleteLeakTestOfPipelineSystemRecordById(rowID);
|
||||
BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除管道系统泄漏性试验记录");
|
||||
}
|
||||
}
|
||||
if (isDelete)
|
||||
{
|
||||
ShowNotify("删除成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
this.BindGrid();
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
#region 判断是否可删除
|
||||
/// <summary>
|
||||
/// 判断是否可以删除
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private bool judgementDelete(string id, bool isShow)
|
||||
{
|
||||
string content = string.Empty;
|
||||
|
||||
if (string.IsNullOrEmpty(content))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (isShow)
|
||||
{
|
||||
Alert.ShowInTop(content, MessageBoxIcon.Error);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 关闭弹出窗口及刷新页面
|
||||
/// <summary>
|
||||
/// 关闭弹出窗口
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
this.InitTreeMenu();//加载树
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
206
HJGL_DS/FineUIPro.Web/JGZL/LeakTestOfPipelineSystemRecord.aspx.designer.cs
generated
Normal file
206
HJGL_DS/FineUIPro.Web/JGZL/LeakTestOfPipelineSystemRecord.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,206 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
|
||||
|
||||
public partial class LeakTestOfPipelineSystemRecord
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// panelLeftRegion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelLeftRegion;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// drpProjectId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpProjectId;
|
||||
|
||||
/// <summary>
|
||||
/// tvControlItem 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree tvControlItem;
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnAdd 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAdd;
|
||||
|
||||
/// <summary>
|
||||
/// btnPrint 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnPrint;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// WindowPrint 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowPrint;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,150 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LeakTestOfPipelineSystemRecordEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.LeakTestOfPipelineSystemRecordEdit" %>
|
||||
|
||||
<!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="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="Left">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnSave" Text="保存" ToolTip="保存" Icon="SystemSave" runat="server" OnClick="btnSave_Click">
|
||||
</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="txtSystemCode" runat="server" Label="系统编号" LabelAlign="Right" LabelWidth="110px" MaxLength="100" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtSystemName" runat="server" Label="系统名称" LabelAlign="Right" LabelWidth="110px" MaxLength="100" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtTestConclusion" runat="server" Label="试验结论" LabelAlign="Right" LabelWidth="110px" MaxLength="1000"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtRemark" runat="server" Label="备注" LabelAlign="Right" LabelWidth="110px" MaxLength="500"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="管道系统泄漏性试验记录" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="Id" EnableColumnLines="true"
|
||||
AllowCellEditing="true" ClicksToEdit="1" DataIDField="Id" AllowSorting="true"
|
||||
SortDirection="ASC" OnSort="Grid1_Sort" OnPreDataBound="Grid3_PreDataBound"
|
||||
AllowPaging="false" IsDatabasePaging="true" PageSize="10000"
|
||||
EnableTextSelection="True" AutoScroll="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="Button3" Icon="Add" runat="server" ToolTip="新增" Text="新增" OnClick="btnAddGrid1_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField ColumnID="Id" DataField="Id" Hidden="True"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="Id">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="管道编号/单线号" ColumnID="PipelineNo" DataField="PipelineNo" SortField="PipelineNo"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtPipelineNo" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="设计压力(MPa)" ColumnID="DesignPressure" DataField="DesignPressure"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtDesignPressure" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="设计温度(℃)" ColumnID="DesignTemperature" DataField="DesignTemperature"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtDesignTemperature" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="试验环境温度(℃)" ColumnID="TestTemperature" DataField="TestTemperature"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtTestTemperature" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<%--<f:RenderField HeaderText="试验介质" ColumnID="TestMedium" DataField="TestMedium"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtTestMedium" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>--%>
|
||||
<f:RenderField HeaderText="试验介质温度(℃)" ColumnID="TestMediumTemperature" DataField="TestMediumTemperature"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px" ExpandUnusedSpace="true">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtTestMediumTemperature" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="试验压力(MPa)" ColumnID="TestPressure" DataField="TestPressure"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px" ExpandUnusedSpace="true">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtTestPressure" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="稳压时间(min)" ColumnID="VoltageStabilizationTime" DataField="VoltageStabilizationTime"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px" ExpandUnusedSpace="true">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtVoltageStabilizationTime" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:LinkButtonField ColumnID="Delete3" Width="60px" EnablePostBack="false" Icon="Delete"
|
||||
HeaderTextAlign="Center" HeaderText="删除" />
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
</Listeners>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<%-- <f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true" Icon="Delete" --%>
|
||||
<%-- ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除"> --%>
|
||||
<%-- </f:MenuButton> --%>
|
||||
</f:Menu>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
var menuID = '<%= Menu1.ClientID %>';
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
F(menuID).show();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,229 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
public partial class LeakTestOfPipelineSystemRecordEdit : PageBase
|
||||
{
|
||||
#region 定义项
|
||||
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
private string RecordId
|
||||
{
|
||||
get { return (string)ViewState["RecordId"]; }
|
||||
set { ViewState["RecordId"] = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 项目Id
|
||||
/// </summary>
|
||||
private string ProjectId
|
||||
{
|
||||
get { return (string)ViewState["ProjectId"]; }
|
||||
set { ViewState["ProjectId"] = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 加载页面
|
||||
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.ProjectId = Request.Params["projectId"];
|
||||
this.RecordId = Request.Params["recordId"];
|
||||
if (!string.IsNullOrEmpty(this.RecordId))
|
||||
{
|
||||
var report = BLL.LeakTestOfPipelineSystemRecordService.GetLeakTestOfPipelineSystemRecordById(this.RecordId);
|
||||
if (report != null)
|
||||
{
|
||||
this.txtSystemCode.Text = report.SystemCode;
|
||||
this.txtSystemName.Text = report.SystemName;
|
||||
this.txtTestConclusion.Text = report.TestConclusion;
|
||||
this.txtRemark.Text = report.Remark;
|
||||
|
||||
var items = BLL.LeakTestOfPipelineSystemRecordItemService.GetItemByRecordId(this.RecordId);
|
||||
if (items != null)
|
||||
{
|
||||
Grid1.DataSource = items;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#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_LeakTestOfPipelineSystemRecordMenuId, Const.BtnSave))
|
||||
{
|
||||
Model.JGZL_LeakTestOfPipelineSystemRecord newReport = new Model.JGZL_LeakTestOfPipelineSystemRecord();
|
||||
newReport.SystemCode = this.txtSystemCode.Text.Trim();
|
||||
newReport.SystemName = this.txtSystemName.Text.Trim();
|
||||
newReport.TestConclusion = this.txtTestConclusion.Text;
|
||||
newReport.Remark = this.txtRemark.Text;
|
||||
if (!string.IsNullOrEmpty(this.RecordId))
|
||||
{
|
||||
newReport.RecordId = this.RecordId;
|
||||
BLL.LeakTestOfPipelineSystemRecordService.UpdateLeakTestOfPipelineSystemRecord(newReport);
|
||||
}
|
||||
else
|
||||
{
|
||||
newReport.ProjectId = this.ProjectId;
|
||||
newReport.CompileMan = this.CurrUser.UserId;
|
||||
newReport.CompileDate = DateTime.Now;
|
||||
newReport.RecordId = SQLHelper.GetNewID(typeof(Model.JGZL_LeakTestOfPipelineSystemRecord));
|
||||
this.RecordId = newReport.RecordId;
|
||||
BLL.LeakTestOfPipelineSystemRecordService.AddLeakTestOfPipelineSystemRecord(newReport);
|
||||
}
|
||||
//保存明细
|
||||
saveItem();
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 数据行
|
||||
|
||||
protected void btnAddGrid1_Click(object sender, EventArgs e)
|
||||
{
|
||||
Grid1.Hidden = false;
|
||||
|
||||
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
|
||||
{
|
||||
{ "Id", Guid.NewGuid() },
|
||||
{ "RecordId", RecordId },
|
||||
{ "Part", "" },
|
||||
{ "MaterialName", "" },
|
||||
{ "Grade", "" },
|
||||
{ "Manufacturer", "" },
|
||||
{ "PlanFilmThickness", "" },
|
||||
{ "ActualFilmThickness", "" },
|
||||
{
|
||||
"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();
|
||||
}
|
||||
|
||||
protected void Grid3_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 Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
{
|
||||
// List<Model.BlowingCleaningItem> GetBlowingCleaningItem = this.CollectGridJointInfo();
|
||||
// this.BindGrid(GetBlowingCleaningItem);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取Grid数据
|
||||
|
||||
|
||||
void saveItem()
|
||||
{
|
||||
List<Model.JGZL_LeakTestOfPipelineSystemRecordItem> detailLists = new List<Model.JGZL_LeakTestOfPipelineSystemRecordItem>();
|
||||
JArray teamGroupData = Grid1.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
{
|
||||
JObject values = teamGroupRow.Value<JObject>("values");
|
||||
int rowIndex = teamGroupRow.Value<int>("index");
|
||||
Model.JGZL_LeakTestOfPipelineSystemRecordItem newDetail = new Model.JGZL_LeakTestOfPipelineSystemRecordItem
|
||||
{
|
||||
Id = values.Value<string>("Id"),
|
||||
RecordId = RecordId,
|
||||
PipelineNo = values.Value<string>("PipelineNo"),
|
||||
DesignPressure = values.Value<string>("DesignPressure"),
|
||||
DesignTemperature = values.Value<string>("DesignTemperature"),
|
||||
TestTemperature = values.Value<string>("TestTemperature"),
|
||||
//TestMedium = values.Value<string>("TestMedium"),
|
||||
TestMediumTemperature = values.Value<string>("TestMediumTemperature"),
|
||||
TestPressure = values.Value<string>("TestPressure"),
|
||||
VoltageStabilizationTime = values.Value<string>("VoltageStabilizationTime"),
|
||||
};
|
||||
detailLists.Add(newDetail);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
var result = Funs.DB.JGZL_LeakTestOfPipelineSystemRecordItem.Where(a => a.RecordId == RecordId);
|
||||
Funs.DB.JGZL_LeakTestOfPipelineSystemRecordItem.DeleteAllOnSubmit(result);
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
Funs.DB.JGZL_LeakTestOfPipelineSystemRecordItem.InsertAllOnSubmit(detailLists);
|
||||
}
|
||||
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
224
HJGL_DS/FineUIPro.Web/JGZL/LeakTestOfPipelineSystemRecordEdit.aspx.designer.cs
generated
Normal file
224
HJGL_DS/FineUIPro.Web/JGZL/LeakTestOfPipelineSystemRecordEdit.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,224 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
|
||||
|
||||
public partial class LeakTestOfPipelineSystemRecordEdit
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// 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>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// txtSystemCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSystemCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtSystemName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSystemName;
|
||||
|
||||
/// <summary>
|
||||
/// txtTestConclusion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtTestConclusion;
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtRemark;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// Button3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button Button3;
|
||||
|
||||
/// <summary>
|
||||
/// txtPipelineNo 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPipelineNo;
|
||||
|
||||
/// <summary>
|
||||
/// txtDesignPressure 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDesignPressure;
|
||||
|
||||
/// <summary>
|
||||
/// txtDesignTemperature 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDesignTemperature;
|
||||
|
||||
/// <summary>
|
||||
/// txtTestTemperature 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTestTemperature;
|
||||
|
||||
/// <summary>
|
||||
/// txtTestMediumTemperature 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTestMediumTemperature;
|
||||
|
||||
/// <summary>
|
||||
/// txtTestPressure 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTestPressure;
|
||||
|
||||
/// <summary>
|
||||
/// txtVoltageStabilizationTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtVoltageStabilizationTime;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,115 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PressureTestOfPipelineSystemConfirmationRecord.aspx.cs" Inherits="FineUIPro.Web.JGZL.PressureTestOfPipelineSystemConfirmationRecord" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>管道系统压力试验条件确认记录</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server"/>
|
||||
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||
<Items>
|
||||
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||
EnableCollapse="true" Width="220px" Title="管道系统压力试验条件确认记录" ShowBorder="true" Layout="VBox"
|
||||
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelAlign="Right" AutoPostBack="true" EnableEdit="true"
|
||||
OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged" LabelWidth="50px">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Tree ID="tvControlItem" ShowHeader="false" Title="管道系统压力试验条件确认记录节点树" OnNodeCommand="tvControlItem_NodeCommand"
|
||||
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
|
||||
AutoLeafIdentification="true" EnableSingleExpand="true" EnableTextSelection="true">
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
|
||||
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="管道系统压力试验条件确认记录"
|
||||
TitleToolTip="管道系统压力试验条件确认记录" AutoScroll="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>
|
||||
<f:Button ID="btnPrint" Text="管道系统压力试验条件确认记录打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="管道系统压力试验条件确认记录" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="RecordId" AllowCellEditing="true"
|
||||
EnableColumnLines="true" ClicksToEdit="1" DataIDField="RecordId" AllowSorting="true"
|
||||
SortField="CompileDate" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true"
|
||||
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableTextSelection="True" AutoScroll="true" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center"/>
|
||||
<f:RenderField HeaderText="系统名称" ColumnID="SystemName" DataField="SystemName" SortField="SystemName"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="200px" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="系统编号" ColumnID="SystemCode" DataField="SystemCode" SortField="SystemCode"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="180px" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="备注" ColumnID="Remark" DataField="Remark" SortField="Remark"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="360px" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu"/>
|
||||
</Listeners>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
<f:ListItem Text="10" Value="10"/>
|
||||
<f:ListItem Text="15" Value="15"/>
|
||||
<f:ListItem Text="20" Value="20"/>
|
||||
<f:ListItem Text="25" Value="25"/>
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="管道系统压力试验条件确认记录" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||
Width="1280px" Height="780px">
|
||||
</f:Window>
|
||||
<f:Window ID="WindowPrint" Title="打印管道系统压力试验条件确认记录" Hidden="true" EnableIFrame="true" EnableMaximize="false"
|
||||
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
|
||||
Height="600px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
||||
runat="server" Text="编辑" Icon="TableEdit">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
|
||||
</f:MenuButton>
|
||||
</f:Menu>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
var menuID = '<%= Menu1.ClientID %>';
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,408 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
public partial class PressureTestOfPipelineSystemConfirmationRecord : PageBase
|
||||
{
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
|
||||
this.drpProjectId.DataTextField = "ProjectCode";
|
||||
this.drpProjectId.DataValueField = "ProjectId";
|
||||
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||
this.drpProjectId.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpProjectId);
|
||||
// 默认显示选中的项目
|
||||
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||
{
|
||||
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
|
||||
}
|
||||
|
||||
this.InitTreeMenu();//加载树
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载树项目
|
||||
/// <summary>
|
||||
/// 加载树
|
||||
/// </summary>
|
||||
private void InitTreeMenu()
|
||||
{
|
||||
this.tvControlItem.Nodes.Clear();
|
||||
TreeNode rootNode = new TreeNode();
|
||||
rootNode.Text = "项目";
|
||||
rootNode.ToolTip = "项目";
|
||||
rootNode.NodeID = "0";
|
||||
rootNode.Expanded = true;
|
||||
this.tvControlItem.Nodes.Add(rootNode);
|
||||
|
||||
List<Model.Base_Project> projects = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||
|
||||
// 默认显示选中的项目
|
||||
string selectedProjectId = this.drpProjectId.SelectedValue;
|
||||
if (!string.IsNullOrEmpty(selectedProjectId) && selectedProjectId != BLL.Const._Null)
|
||||
{
|
||||
projects = projects.Where(e => e.ProjectId == selectedProjectId).ToList();
|
||||
|
||||
// 如果项目存在,则选中该节点
|
||||
if (projects.Any())
|
||||
{
|
||||
this.tvControlItem.SelectedNodeID = selectedProjectId;
|
||||
}
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
if (this.tvControlItem.SelectedNodeID != "0")
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 点击TreeView
|
||||
/// <summary>
|
||||
/// 点击TreeView
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||
{
|
||||
if (this.tvControlItem.SelectedNodeID != "0")
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 数据绑定
|
||||
/// <summary>
|
||||
/// 数据绑定
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string strSql = @"SELECT * from JGZL_PressureTestOfPipelineSystemConfirmationRecord where 1=1";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
strSql += " AND ProjectId = @ProjectId";
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
|
||||
}
|
||||
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 分页排序
|
||||
#region 页索引改变事件
|
||||
/// <summary>
|
||||
/// 页索引改变事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 排序
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 分页选择下拉改变事件
|
||||
/// <summary>
|
||||
/// 分页选择下拉改变事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 查询
|
||||
///<summary>
|
||||
///查询
|
||||
///</summary>
|
||||
///<param name="sender"></param>
|
||||
///<param name="e"></param>
|
||||
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.InitTreeMenu();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 打印
|
||||
/// <summary>
|
||||
/// 打印
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnPrint_Click(object sender, EventArgs e)
|
||||
{
|
||||
string projectId = this.tvControlItem.SelectedNodeID;
|
||||
|
||||
if (projectId != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||
{
|
||||
string initTemplatePath = "";
|
||||
string rootPath = Server.MapPath("~/");
|
||||
BLL.Common.FastReportService.ResetData();
|
||||
|
||||
var report = BLL.PressureTestOfPipelineSystemConfirmationRecordService.GetPressureTestOfPipelineSystemConfirmationRecordById(this.Grid1.SelectedRowID);
|
||||
if (report != null)
|
||||
{
|
||||
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
|
||||
keyValuePairs.Add("SystemName", report.SystemName);
|
||||
keyValuePairs.Add("SystemCode", report.SystemCode);
|
||||
keyValuePairs.Add("CheckItem1", report.CheckItem1);
|
||||
keyValuePairs.Add("CheckItem2", report.CheckItem2);
|
||||
keyValuePairs.Add("CheckItem3", report.CheckItem3);
|
||||
keyValuePairs.Add("CheckItem4", report.CheckItem4);
|
||||
keyValuePairs.Add("CheckItem5", report.CheckItem5);
|
||||
keyValuePairs.Add("CheckItem6", report.CheckItem6);
|
||||
keyValuePairs.Add("CheckItem7", report.CheckItem7);
|
||||
keyValuePairs.Add("CheckItem8", report.CheckItem8);
|
||||
keyValuePairs.Add("CheckItem9", report.CheckItem9);
|
||||
keyValuePairs.Add("CheckItem10", report.CheckItem10);
|
||||
keyValuePairs.Add("CheckItem11", report.CheckItem11);
|
||||
keyValuePairs.Add("CheckItem12", report.CheckItem12);
|
||||
//keyValuePairs.Add("TestConclusion", report.TestConclusion);
|
||||
keyValuePairs.Add("Remark", report.Remark);
|
||||
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
||||
}
|
||||
initTemplatePath = "File\\Fastreport\\JGZL\\管道系统压力试验条件确认记录.frx";
|
||||
if (File.Exists(rootPath + initTemplatePath))
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 维护
|
||||
/// <summary>
|
||||
/// 增加
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PressureTestOfPipelineSystemConfirmationRecordEdit.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_PressureTestOfPipelineSystemConfirmationRecordMenuId, BLL.Const.BtnModify))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PressureTestOfPipelineSystemConfirmationRecordEdit.aspx?recordId={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_PressureTestOfPipelineSystemConfirmationRecordMenuId, BLL.Const.BtnModify))
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PressureTestOfPipelineSystemConfirmationRecordEdit.aspx?recordId={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_PressureTestOfPipelineSystemConfirmationRecordMenuId, 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.PressureTestOfPipelineSystemConfirmationRecordService.DeletePressureTestOfPipelineSystemConfirmationRecordById(rowID);
|
||||
BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除管道系统压力试验条件确认记录");
|
||||
}
|
||||
}
|
||||
if (isDelete)
|
||||
{
|
||||
ShowNotify("删除成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
this.BindGrid();
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
#region 判断是否可删除
|
||||
/// <summary>
|
||||
/// 判断是否可以删除
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private bool judgementDelete(string id, bool isShow)
|
||||
{
|
||||
string content = string.Empty;
|
||||
|
||||
if (string.IsNullOrEmpty(content))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (isShow)
|
||||
{
|
||||
Alert.ShowInTop(content, MessageBoxIcon.Error);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 关闭弹出窗口及刷新页面
|
||||
/// <summary>
|
||||
/// 关闭弹出窗口
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
this.InitTreeMenu();//加载树
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
206
HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecord.aspx.designer.cs
generated
Normal file
206
HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecord.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,206 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
|
||||
|
||||
public partial class PressureTestOfPipelineSystemConfirmationRecord
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// panelLeftRegion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelLeftRegion;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// drpProjectId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpProjectId;
|
||||
|
||||
/// <summary>
|
||||
/// tvControlItem 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree tvControlItem;
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnAdd 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAdd;
|
||||
|
||||
/// <summary>
|
||||
/// btnPrint 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnPrint;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// WindowPrint 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowPrint;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,118 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PressureTestOfPipelineSystemConfirmationRecordEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.PressureTestOfPipelineSystemConfirmationRecordEdit" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>编辑管道系统压力试验条件确认记录</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Form ID="Form2" ShowBorder="true" ShowHeader="false" AutoScroll="true" BodyPadding="10px"
|
||||
runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill2" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="Button1" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtSystemCode" runat="server" Label="系统编号" LabelAlign="Right" LabelWidth="110px" MaxLength="100" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtSystemName" runat="server" Label="系统名称" LabelAlign="Right" LabelWidth="110px" MaxLength="100" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtRemark" runat="server" Label="备注" LabelAlign="Right" LabelWidth="110px" MaxLength="500"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel" Title="检查项目与要求(填写检查结果)" runat="server" EnableCollapse="true">
|
||||
<Items>
|
||||
<f:Form ID="Form3" ShowBorder="false" ShowHeader="false" runat="server">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtCheckItem1" runat="server" Label="管道安装符合设计文件和规范要求" LabelAlign="Right" LabelWidth="420px" EmptyText="请填写检查结果" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtCheckItem2" runat="server" Label="管道组成件复验合格" LabelAlign="Right" LabelWidth="420px" EmptyText="请填写检查结果" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtCheckItem3" runat="server" Label="焊接工作记录齐全" LabelAlign="Right" LabelWidth="420px" EmptyText="请填写检查结果" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtCheckItem4" runat="server" Label="无损检测结果符合设计文件和规范要求" LabelAlign="Right" LabelWidth="420px" EmptyText="请填写检查结果" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtCheckItem5" runat="server" Label="热处理结果符合设计文件和规范要求" LabelAlign="Right" LabelWidth="420px" EmptyText="请填写检查结果" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtCheckItem6" runat="server" Label="支、吊架安装正确" LabelAlign="Right" LabelWidth="420px" EmptyText="请填写检查结果" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtCheckItem7" runat="server" Label="合金钢管道材质标记清楚" LabelAlign="Right" LabelWidth="420px" EmptyText="请填写检查结果" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtCheckItem8" runat="server" Label="不参与管道系统试验的安全附件、仪表已按规定拆除或隔离,参与试压的系统内的阀门全部开启" LabelAlign="Right" LabelWidth="420px" EmptyText="请填写检查结果" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtCheckItem9" runat="server" Label="临时加固措施、盲板位置与标识符合施工方案要求" LabelAlign="Right" LabelWidth="420px" EmptyText="请填写检查结果" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtCheckItem10" runat="server" Label="焊接接头及需要检验的部位未被覆盖" LabelAlign="Right" LabelWidth="420px" EmptyText="请填写检查结果" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtCheckItem11" runat="server" Label="试压用压力表量程、精度等级、检定状态符合规范要求" LabelAlign="Right" LabelWidth="420px" EmptyText="请填写检查结果" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtCheckItem12" runat="server" Label="不锈钢管道试验用水符合规范要求、附水质分析报告" LabelAlign="Right" LabelWidth="420px" EmptyText="请填写检查结果" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,128 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
public partial class PressureTestOfPipelineSystemConfirmationRecordEdit : PageBase
|
||||
{
|
||||
#region 定义项
|
||||
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
private string RecordId
|
||||
{
|
||||
get { return (string)ViewState["RecordId"]; }
|
||||
set { ViewState["RecordId"] = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 项目Id
|
||||
/// </summary>
|
||||
private string ProjectId
|
||||
{
|
||||
get { return (string)ViewState["ProjectId"]; }
|
||||
set { ViewState["ProjectId"] = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 加载页面
|
||||
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.ProjectId = Request.Params["projectId"];
|
||||
this.RecordId = Request.Params["recordId"];
|
||||
if (!string.IsNullOrEmpty(this.RecordId))
|
||||
{
|
||||
var report = BLL.PressureTestOfPipelineSystemConfirmationRecordService.GetPressureTestOfPipelineSystemConfirmationRecordById(this.RecordId);
|
||||
if (report != null)
|
||||
{
|
||||
this.txtSystemCode.Text = report.SystemCode;
|
||||
this.txtSystemName.Text = report.SystemName;
|
||||
this.txtCheckItem1.Text = report.CheckItem1;
|
||||
this.txtCheckItem2.Text = report.CheckItem2;
|
||||
this.txtCheckItem3.Text = report.CheckItem3;
|
||||
this.txtCheckItem4.Text = report.CheckItem4;
|
||||
this.txtCheckItem5.Text = report.CheckItem5;
|
||||
this.txtCheckItem6.Text = report.CheckItem6;
|
||||
this.txtCheckItem7.Text = report.CheckItem7;
|
||||
this.txtCheckItem8.Text = report.CheckItem8;
|
||||
this.txtCheckItem9.Text = report.CheckItem9;
|
||||
this.txtCheckItem10.Text = report.CheckItem10;
|
||||
this.txtCheckItem11.Text = report.CheckItem11;
|
||||
this.txtCheckItem12.Text = report.CheckItem12;
|
||||
this.txtRemark.Text = report.Remark;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#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_PressureTestOfPipelineSystemConfirmationRecordMenuId, Const.BtnSave))
|
||||
{
|
||||
Model.JGZL_PressureTestOfPipelineSystemConfirmationRecord newReport = new Model.JGZL_PressureTestOfPipelineSystemConfirmationRecord();
|
||||
newReport.SystemCode = this.txtSystemCode.Text.Trim();
|
||||
newReport.SystemName = this.txtSystemName.Text.Trim();
|
||||
newReport.CheckItem1 = this.txtCheckItem1.Text.Trim();
|
||||
newReport.CheckItem2 = this.txtCheckItem2.Text.Trim();
|
||||
newReport.CheckItem3 = this.txtCheckItem3.Text.Trim();
|
||||
newReport.CheckItem4 = this.txtCheckItem4.Text.Trim();
|
||||
newReport.CheckItem5 = this.txtCheckItem5.Text.Trim();
|
||||
newReport.CheckItem6 = this.txtCheckItem6.Text.Trim();
|
||||
newReport.CheckItem7 = this.txtCheckItem7.Text.Trim();
|
||||
newReport.CheckItem8 = this.txtCheckItem8.Text.Trim();
|
||||
newReport.CheckItem9 = this.txtCheckItem9.Text.Trim();
|
||||
newReport.CheckItem10 = this.txtCheckItem10.Text.Trim();
|
||||
newReport.CheckItem11 = this.txtCheckItem11.Text.Trim();
|
||||
newReport.CheckItem12 = this.txtCheckItem12.Text.Trim();
|
||||
newReport.Remark = this.txtRemark.Text;
|
||||
if (!string.IsNullOrEmpty(this.RecordId))
|
||||
{
|
||||
newReport.RecordId = this.RecordId;
|
||||
BLL.PressureTestOfPipelineSystemConfirmationRecordService.UpdatePressureTestOfPipelineSystemConfirmationRecord(newReport);
|
||||
}
|
||||
else
|
||||
{
|
||||
newReport.ProjectId = this.ProjectId;
|
||||
newReport.CompileMan = this.CurrUser.UserId;
|
||||
newReport.CompileDate = DateTime.Now;
|
||||
newReport.RecordId = SQLHelper.GetNewID(typeof(Model.JGZL_PressureTestOfPipelineSystemConfirmationRecord));
|
||||
this.RecordId = newReport.RecordId;
|
||||
BLL.PressureTestOfPipelineSystemConfirmationRecordService.AddPressureTestOfPipelineSystemConfirmationRecord(newReport);
|
||||
}
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
224
HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecordEdit.aspx.designer.cs
generated
Normal file
224
HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecordEdit.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,224 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
|
||||
|
||||
public partial class PressureTestOfPipelineSystemConfirmationRecordEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Form2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form2;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill2;
|
||||
|
||||
/// <summary>
|
||||
/// Button1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button Button1;
|
||||
|
||||
/// <summary>
|
||||
/// txtSystemCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSystemCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtSystemName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSystemName;
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtRemark;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel;
|
||||
|
||||
/// <summary>
|
||||
/// Form3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form3;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckItem1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckItem1;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckItem2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckItem2;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckItem3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckItem3;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckItem4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckItem4;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckItem5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckItem5;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckItem6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckItem6;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckItem7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckItem7;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckItem8 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckItem8;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckItem9 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckItem9;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckItem10 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckItem10;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckItem11 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckItem11;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckItem12 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckItem12;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,115 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PressureTestOfPipelineSystemRecord.aspx.cs" Inherits="FineUIPro.Web.JGZL.PressureTestOfPipelineSystemRecord" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>管道系统压力试验记录</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server"/>
|
||||
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||
<Items>
|
||||
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||
EnableCollapse="true" Width="220px" Title="管道系统压力试验记录" ShowBorder="true" Layout="VBox"
|
||||
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelAlign="Right" AutoPostBack="true" EnableEdit="true"
|
||||
OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged" LabelWidth="50px">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Tree ID="tvControlItem" ShowHeader="false" Title="管道系统压力试验记录节点树" OnNodeCommand="tvControlItem_NodeCommand"
|
||||
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
|
||||
AutoLeafIdentification="true" EnableSingleExpand="true" EnableTextSelection="true">
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
|
||||
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="管道系统压力试验记录"
|
||||
TitleToolTip="管道系统压力试验记录" AutoScroll="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>
|
||||
<f:Button ID="btnPrint" Text="管道系统压力试验记录打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="管道系统压力试验记录" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="RecordId" AllowCellEditing="true"
|
||||
EnableColumnLines="true" ClicksToEdit="1" DataIDField="RecordId" AllowSorting="true"
|
||||
SortField="CompileDate" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true"
|
||||
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableTextSelection="True" AutoScroll="true" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center"/>
|
||||
<f:RenderField HeaderText="系统名称" ColumnID="SystemName" DataField="SystemName" SortField="SystemName"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="200px" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="系统编号" ColumnID="SystemCode" DataField="SystemCode" SortField="SystemCode"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="180px" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="试验结论" ColumnID="TestConclusion" DataField="TestConclusion" SortField="TestConclusion"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="360px" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu"/>
|
||||
</Listeners>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
<f:ListItem Text="10" Value="10"/>
|
||||
<f:ListItem Text="15" Value="15"/>
|
||||
<f:ListItem Text="20" Value="20"/>
|
||||
<f:ListItem Text="25" Value="25"/>
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="管道系统压力试验记录" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||
Width="1280px" Height="780px">
|
||||
</f:Window>
|
||||
<f:Window ID="WindowPrint" Title="打印管道系统压力试验记录" Hidden="true" EnableIFrame="true" EnableMaximize="false"
|
||||
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
|
||||
Height="600px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
||||
runat="server" Text="编辑" Icon="TableEdit">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
|
||||
</f:MenuButton>
|
||||
</f:Menu>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
var menuID = '<%= Menu1.ClientID %>';
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,397 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
public partial class PressureTestOfPipelineSystemRecord : PageBase
|
||||
{
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
|
||||
this.drpProjectId.DataTextField = "ProjectCode";
|
||||
this.drpProjectId.DataValueField = "ProjectId";
|
||||
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||
this.drpProjectId.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpProjectId);
|
||||
// 默认显示选中的项目
|
||||
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||
{
|
||||
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
|
||||
}
|
||||
|
||||
this.InitTreeMenu();//加载树
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载树项目
|
||||
/// <summary>
|
||||
/// 加载树
|
||||
/// </summary>
|
||||
private void InitTreeMenu()
|
||||
{
|
||||
this.tvControlItem.Nodes.Clear();
|
||||
TreeNode rootNode = new TreeNode();
|
||||
rootNode.Text = "项目";
|
||||
rootNode.ToolTip = "项目";
|
||||
rootNode.NodeID = "0";
|
||||
rootNode.Expanded = true;
|
||||
this.tvControlItem.Nodes.Add(rootNode);
|
||||
|
||||
List<Model.Base_Project> projects = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||
|
||||
// 默认显示选中的项目
|
||||
string selectedProjectId = this.drpProjectId.SelectedValue;
|
||||
if (!string.IsNullOrEmpty(selectedProjectId) && selectedProjectId != BLL.Const._Null)
|
||||
{
|
||||
projects = projects.Where(e => e.ProjectId == selectedProjectId).ToList();
|
||||
|
||||
// 如果项目存在,则选中该节点
|
||||
if (projects.Any())
|
||||
{
|
||||
this.tvControlItem.SelectedNodeID = selectedProjectId;
|
||||
}
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
if (this.tvControlItem.SelectedNodeID != "0")
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 点击TreeView
|
||||
/// <summary>
|
||||
/// 点击TreeView
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||
{
|
||||
if (this.tvControlItem.SelectedNodeID != "0")
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 数据绑定
|
||||
/// <summary>
|
||||
/// 数据绑定
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string strSql = @"SELECT * from JGZL_PressureTestOfPipelineSystemRecord where 1=1";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
strSql += " AND ProjectId = @ProjectId";
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
|
||||
}
|
||||
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 分页排序
|
||||
#region 页索引改变事件
|
||||
/// <summary>
|
||||
/// 页索引改变事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 排序
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 分页选择下拉改变事件
|
||||
/// <summary>
|
||||
/// 分页选择下拉改变事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 查询
|
||||
///<summary>
|
||||
///查询
|
||||
///</summary>
|
||||
///<param name="sender"></param>
|
||||
///<param name="e"></param>
|
||||
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.InitTreeMenu();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 打印
|
||||
/// <summary>
|
||||
/// 打印
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnPrint_Click(object sender, EventArgs e)
|
||||
{
|
||||
string projectId = this.tvControlItem.SelectedNodeID;
|
||||
|
||||
if (projectId != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||
{
|
||||
string initTemplatePath = "";
|
||||
string rootPath = Server.MapPath("~/");
|
||||
BLL.Common.FastReportService.ResetData();
|
||||
|
||||
var report = BLL.PressureTestOfPipelineSystemRecordService.GetPressureTestOfPipelineSystemRecordById(this.Grid1.SelectedRowID);
|
||||
if (report != null)
|
||||
{
|
||||
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
|
||||
keyValuePairs.Add("SystemName", report.SystemName);
|
||||
keyValuePairs.Add("SystemCode", report.SystemCode);
|
||||
keyValuePairs.Add("TestConclusion", report.TestConclusion);
|
||||
keyValuePairs.Add("Remark", report.Remark);
|
||||
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
||||
}
|
||||
initTemplatePath = "File\\Fastreport\\JGZL\\管道系统压力试验记录.frx";
|
||||
if (File.Exists(rootPath + initTemplatePath))
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 维护
|
||||
/// <summary>
|
||||
/// 增加
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PressureTestOfPipelineSystemRecordEdit.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_PressureTestOfPipelineSystemRecordMenuId, BLL.Const.BtnModify))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PressureTestOfPipelineSystemRecordEdit.aspx?recordId={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_PressureTestOfPipelineSystemRecordMenuId, BLL.Const.BtnModify))
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PressureTestOfPipelineSystemRecordEdit.aspx?recordId={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_PressureTestOfPipelineSystemRecordMenuId, 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.PressureTestOfPipelineSystemRecordItemService.DeleteItemByRecordId(rowID);
|
||||
BLL.PressureTestOfPipelineSystemRecordService.DeletePressureTestOfPipelineSystemRecordById(rowID);
|
||||
BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除管道系统压力试验记录");
|
||||
}
|
||||
}
|
||||
if (isDelete)
|
||||
{
|
||||
ShowNotify("删除成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
this.BindGrid();
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
#region 判断是否可删除
|
||||
/// <summary>
|
||||
/// 判断是否可以删除
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private bool judgementDelete(string id, bool isShow)
|
||||
{
|
||||
string content = string.Empty;
|
||||
|
||||
if (string.IsNullOrEmpty(content))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (isShow)
|
||||
{
|
||||
Alert.ShowInTop(content, MessageBoxIcon.Error);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 关闭弹出窗口及刷新页面
|
||||
/// <summary>
|
||||
/// 关闭弹出窗口
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
this.InitTreeMenu();//加载树
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
206
HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemRecord.aspx.designer.cs
generated
Normal file
206
HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemRecord.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,206 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
|
||||
|
||||
public partial class PressureTestOfPipelineSystemRecord
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// panelLeftRegion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelLeftRegion;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// drpProjectId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpProjectId;
|
||||
|
||||
/// <summary>
|
||||
/// tvControlItem 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree tvControlItem;
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnAdd 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAdd;
|
||||
|
||||
/// <summary>
|
||||
/// btnPrint 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnPrint;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// WindowPrint 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowPrint;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,150 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PressureTestOfPipelineSystemRecordEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.PressureTestOfPipelineSystemRecordEdit" %>
|
||||
|
||||
<!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="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="Left">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnSave" Text="保存" ToolTip="保存" Icon="SystemSave" runat="server" OnClick="btnSave_Click">
|
||||
</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="txtSystemCode" runat="server" Label="系统编号" LabelAlign="Right" LabelWidth="110px" MaxLength="100" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtSystemName" runat="server" Label="系统名称" LabelAlign="Right" LabelWidth="110px" MaxLength="100" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtTestConclusion" runat="server" Label="试验结论" LabelAlign="Right" LabelWidth="110px" MaxLength="1000"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtRemark" runat="server" Label="备注" LabelAlign="Right" LabelWidth="110px" MaxLength="500"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="管道系统压力试验记录" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="Id" EnableColumnLines="true"
|
||||
AllowCellEditing="true" ClicksToEdit="1" DataIDField="Id" AllowSorting="true"
|
||||
SortDirection="ASC" OnSort="Grid1_Sort" OnPreDataBound="Grid3_PreDataBound"
|
||||
AllowPaging="false" IsDatabasePaging="true" PageSize="10000"
|
||||
EnableTextSelection="True" AutoScroll="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="Button3" Icon="Add" runat="server" ToolTip="新增" Text="新增" OnClick="btnAddGrid1_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField ColumnID="Id" DataField="Id" Hidden="True"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="Id">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="管道编号/单线号" ColumnID="PipelineNo" DataField="PipelineNo" SortField="PipelineNo"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtPipelineNo" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="设计压力(MPa)" ColumnID="DesignPressure" DataField="DesignPressure"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtDesignPressure" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="设计温度(℃)" ColumnID="DesignTemperature" DataField="DesignTemperature"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtDesignTemperature" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="试验环境温度(℃)" ColumnID="TestTemperature" DataField="TestTemperature"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtTestTemperature" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="试验介质" ColumnID="TestMedium" DataField="TestMedium"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtTestMedium" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="试验介质温度(℃)" ColumnID="TestMediumTemperature" DataField="TestMediumTemperature"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px" ExpandUnusedSpace="true">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtTestMediumTemperature" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="试验压力(MPa)" ColumnID="TestPressure" DataField="TestPressure"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px" ExpandUnusedSpace="true">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtTestPressure" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="稳压时间(min)" ColumnID="VoltageStabilizationTime" DataField="VoltageStabilizationTime"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px" ExpandUnusedSpace="true">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtVoltageStabilizationTime" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:LinkButtonField ColumnID="Delete3" Width="60px" EnablePostBack="false" Icon="Delete"
|
||||
HeaderTextAlign="Center" HeaderText="删除" />
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
</Listeners>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<%-- <f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true" Icon="Delete" --%>
|
||||
<%-- ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除"> --%>
|
||||
<%-- </f:MenuButton> --%>
|
||||
</f:Menu>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
var menuID = '<%= Menu1.ClientID %>';
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
F(menuID).show();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,229 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
public partial class PressureTestOfPipelineSystemRecordEdit : PageBase
|
||||
{
|
||||
#region 定义项
|
||||
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
private string RecordId
|
||||
{
|
||||
get { return (string)ViewState["RecordId"]; }
|
||||
set { ViewState["RecordId"] = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 项目Id
|
||||
/// </summary>
|
||||
private string ProjectId
|
||||
{
|
||||
get { return (string)ViewState["ProjectId"]; }
|
||||
set { ViewState["ProjectId"] = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 加载页面
|
||||
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.ProjectId = Request.Params["projectId"];
|
||||
this.RecordId = Request.Params["recordId"];
|
||||
if (!string.IsNullOrEmpty(this.RecordId))
|
||||
{
|
||||
var report = BLL.PressureTestOfPipelineSystemRecordService.GetPressureTestOfPipelineSystemRecordById(this.RecordId);
|
||||
if (report != null)
|
||||
{
|
||||
this.txtSystemCode.Text = report.SystemCode;
|
||||
this.txtSystemName.Text = report.SystemName;
|
||||
this.txtTestConclusion.Text = report.TestConclusion;
|
||||
this.txtRemark.Text = report.Remark;
|
||||
|
||||
var items = BLL.PressureTestOfPipelineSystemRecordItemService.GetItemByRecordId(this.RecordId);
|
||||
if (items != null)
|
||||
{
|
||||
Grid1.DataSource = items;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#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_PressureTestOfPipelineSystemRecordMenuId, Const.BtnSave))
|
||||
{
|
||||
Model.JGZL_PressureTestOfPipelineSystemRecord newReport = new Model.JGZL_PressureTestOfPipelineSystemRecord();
|
||||
newReport.SystemCode = this.txtSystemCode.Text.Trim();
|
||||
newReport.SystemName = this.txtSystemName.Text.Trim();
|
||||
newReport.TestConclusion = this.txtTestConclusion.Text;
|
||||
newReport.Remark = this.txtRemark.Text;
|
||||
if (!string.IsNullOrEmpty(this.RecordId))
|
||||
{
|
||||
newReport.RecordId = this.RecordId;
|
||||
BLL.PressureTestOfPipelineSystemRecordService.UpdatePressureTestOfPipelineSystemRecord(newReport);
|
||||
}
|
||||
else
|
||||
{
|
||||
newReport.ProjectId = this.ProjectId;
|
||||
newReport.CompileMan = this.CurrUser.UserId;
|
||||
newReport.CompileDate = DateTime.Now;
|
||||
newReport.RecordId = SQLHelper.GetNewID(typeof(Model.JGZL_PressureTestOfPipelineSystemRecord));
|
||||
this.RecordId = newReport.RecordId;
|
||||
BLL.PressureTestOfPipelineSystemRecordService.AddPressureTestOfPipelineSystemRecord(newReport);
|
||||
}
|
||||
//保存明细
|
||||
saveItem();
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 数据行
|
||||
|
||||
protected void btnAddGrid1_Click(object sender, EventArgs e)
|
||||
{
|
||||
Grid1.Hidden = false;
|
||||
|
||||
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
|
||||
{
|
||||
{ "Id", Guid.NewGuid() },
|
||||
{ "RecordId", RecordId },
|
||||
{ "Part", "" },
|
||||
{ "MaterialName", "" },
|
||||
{ "Grade", "" },
|
||||
{ "Manufacturer", "" },
|
||||
{ "PlanFilmThickness", "" },
|
||||
{ "ActualFilmThickness", "" },
|
||||
{
|
||||
"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();
|
||||
}
|
||||
|
||||
protected void Grid3_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 Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
{
|
||||
// List<Model.BlowingCleaningItem> GetBlowingCleaningItem = this.CollectGridJointInfo();
|
||||
// this.BindGrid(GetBlowingCleaningItem);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取Grid数据
|
||||
|
||||
|
||||
void saveItem()
|
||||
{
|
||||
List<Model.JGZL_PressureTestOfPipelineSystemRecordItem> detailLists = new List<Model.JGZL_PressureTestOfPipelineSystemRecordItem>();
|
||||
JArray teamGroupData = Grid1.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
{
|
||||
JObject values = teamGroupRow.Value<JObject>("values");
|
||||
int rowIndex = teamGroupRow.Value<int>("index");
|
||||
Model.JGZL_PressureTestOfPipelineSystemRecordItem newDetail = new Model.JGZL_PressureTestOfPipelineSystemRecordItem
|
||||
{
|
||||
Id = values.Value<string>("Id"),
|
||||
RecordId = RecordId,
|
||||
PipelineNo = values.Value<string>("PipelineNo"),
|
||||
DesignPressure = values.Value<string>("DesignPressure"),
|
||||
DesignTemperature = values.Value<string>("DesignTemperature"),
|
||||
TestTemperature = values.Value<string>("TestTemperature"),
|
||||
TestMedium = values.Value<string>("TestMedium"),
|
||||
TestMediumTemperature = values.Value<string>("TestMediumTemperature"),
|
||||
TestPressure = values.Value<string>("TestPressure"),
|
||||
VoltageStabilizationTime = values.Value<string>("VoltageStabilizationTime"),
|
||||
};
|
||||
detailLists.Add(newDetail);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
var result = Funs.DB.JGZL_PressureTestOfPipelineSystemRecordItem.Where(a => a.RecordId == RecordId);
|
||||
Funs.DB.JGZL_PressureTestOfPipelineSystemRecordItem.DeleteAllOnSubmit(result);
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
Funs.DB.JGZL_PressureTestOfPipelineSystemRecordItem.InsertAllOnSubmit(detailLists);
|
||||
}
|
||||
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
233
HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemRecordEdit.aspx.designer.cs
generated
Normal file
233
HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemRecordEdit.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,233 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
|
||||
|
||||
public partial class PressureTestOfPipelineSystemRecordEdit
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// 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>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// txtSystemCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSystemCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtSystemName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSystemName;
|
||||
|
||||
/// <summary>
|
||||
/// txtTestConclusion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtTestConclusion;
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtRemark;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// Button3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button Button3;
|
||||
|
||||
/// <summary>
|
||||
/// txtPipelineNo 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPipelineNo;
|
||||
|
||||
/// <summary>
|
||||
/// txtDesignPressure 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDesignPressure;
|
||||
|
||||
/// <summary>
|
||||
/// txtDesignTemperature 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDesignTemperature;
|
||||
|
||||
/// <summary>
|
||||
/// txtTestTemperature 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTestTemperature;
|
||||
|
||||
/// <summary>
|
||||
/// txtTestMedium 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTestMedium;
|
||||
|
||||
/// <summary>
|
||||
/// txtTestMediumTemperature 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTestMediumTemperature;
|
||||
|
||||
/// <summary>
|
||||
/// txtTestPressure 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTestPressure;
|
||||
|
||||
/// <summary>
|
||||
/// txtVoltageStabilizationTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtVoltageStabilizationTime;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
}
|
||||
}
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
<FineUIPro DebugMode="false" Theme="Cupertino"/>
|
||||
<appSettings>
|
||||
<!--连接字符串-->
|
||||
<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="ConnectionString" value="Server=.;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="false" targetFramework="4.6.1">
|
||||
<compilation debug="true" targetFramework="4.6.1">
|
||||
<assemblies>
|
||||
<add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||
</assemblies>
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue