parent
f70b4eb2cd
commit
e78630ea13
|
|
@ -0,0 +1,231 @@
|
||||||
|
|
||||||
|
|
||||||
|
--交工资料
|
||||||
|
|
||||||
|
/**********菜单************************************************************/
|
||||||
|
|
||||||
|
--39、管件宏观检查验收记录表
|
||||||
|
IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = '4A4FD28C-6B6B-4BDE-9CE0-73955FCACF5A')
|
||||||
|
BEGIN
|
||||||
|
INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
|
||||||
|
VALUES ('4A4FD28C-6B6B-4BDE-9CE0-73955FCACF5A','管件宏观检查验收记录表','JGZL/PipeFittingInspectionRecord.aspx',390,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
|
||||||
|
END
|
||||||
|
GO
|
||||||
|
IF NOT EXISTS (SELECT * FROM ButtonToMenu WHERE MenuId = '4A4FD28C-6B6B-4BDE-9CE0-73955FCACF5A')
|
||||||
|
BEGIN
|
||||||
|
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES ('AEC7CEF7-58EE-427D-B5C6-0956CA782452','4A4FD28C-6B6B-4BDE-9CE0-73955FCACF5A','增加',1)
|
||||||
|
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES ('5E6C100C-601D-4B22-9488-7858CA41F6BB','4A4FD28C-6B6B-4BDE-9CE0-73955FCACF5A','修改',2)
|
||||||
|
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES ('70735927-7B4E-489B-B750-3A89BC0C88F0','4A4FD28C-6B6B-4BDE-9CE0-73955FCACF5A','删除',3)
|
||||||
|
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES ('F0E81BE1-778F-430D-B175-900625EABECC','4A4FD28C-6B6B-4BDE-9CE0-73955FCACF5A','保存',4)
|
||||||
|
END
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
--40、工序交接记录
|
||||||
|
IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = '13258273-4445-4C0A-8213-59DEA1C315C6')
|
||||||
|
BEGIN
|
||||||
|
INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
|
||||||
|
VALUES ('13258273-4445-4C0A-8213-59DEA1C315C6','工序交接记录','JGZL/ProcessHandoverRecord.aspx',400,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
|
||||||
|
END
|
||||||
|
GO
|
||||||
|
IF NOT EXISTS (SELECT * FROM ButtonToMenu WHERE MenuId = '13258273-4445-4C0A-8213-59DEA1C315C6')
|
||||||
|
BEGIN
|
||||||
|
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES ('6DF8CB67-672A-435B-AB2A-63BA1167E3DF','13258273-4445-4C0A-8213-59DEA1C315C6','增加',1)
|
||||||
|
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES ('E7E6BD98-1E13-4391-BD3C-6F4C6E14D034','13258273-4445-4C0A-8213-59DEA1C315C6','修改',2)
|
||||||
|
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES ('861F749B-7713-4842-BCBB-E510F987C9DB','13258273-4445-4C0A-8213-59DEA1C315C6','删除',3)
|
||||||
|
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES ('DAB14E57-8C00-4215-9B16-93BEF79F905E','13258273-4445-4C0A-8213-59DEA1C315C6','保存',4)
|
||||||
|
END
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
--41、管道预制施工检查记录
|
||||||
|
IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = 'CFE63BEA-A1D4-4477-B8E7-86B5E3F7FF84')
|
||||||
|
BEGIN
|
||||||
|
INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
|
||||||
|
VALUES ('CFE63BEA-A1D4-4477-B8E7-86B5E3F7FF84','管道预制施工检查记录','JGZL/PipelinePrefabricationConstructionInspectionRecord.aspx',410,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
|
||||||
|
END
|
||||||
|
GO
|
||||||
|
IF NOT EXISTS (SELECT * FROM ButtonToMenu WHERE MenuId = 'CFE63BEA-A1D4-4477-B8E7-86B5E3F7FF84')
|
||||||
|
BEGIN
|
||||||
|
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES ('6692F885-9EC7-41A6-B862-B4EC45A871A1','CFE63BEA-A1D4-4477-B8E7-86B5E3F7FF84','增加',1)
|
||||||
|
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES ('094516C5-9DBC-44C0-A756-6BF650545321','CFE63BEA-A1D4-4477-B8E7-86B5E3F7FF84','修改',2)
|
||||||
|
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES ('3678946F-1FE4-419E-A70D-46674D5977E4','CFE63BEA-A1D4-4477-B8E7-86B5E3F7FF84','删除',3)
|
||||||
|
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES ('A6A7B06F-0652-421A-91AE-F111FF1D5DAF','CFE63BEA-A1D4-4477-B8E7-86B5E3F7FF84','保存',4)
|
||||||
|
END
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**********数据表************************************************************/
|
||||||
|
|
||||||
|
--39、管件宏观检查验收记录表
|
||||||
|
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_PipeFittingInspectionRecord') AND type = N'U')
|
||||||
|
BEGIN
|
||||||
|
|
||||||
|
CREATE TABLE [dbo].[JGZL_PipeFittingInspectionRecord](
|
||||||
|
[RecordId] [nvarchar](50) NOT NULL,
|
||||||
|
[ProjectId] [nvarchar](50) NULL,
|
||||||
|
[ContractNo] [nvarchar](50) NULL,
|
||||||
|
[Name] [nvarchar](50) NULL,
|
||||||
|
[ArrivalNum] [int] NULL,
|
||||||
|
[ArrivalUnit] [nvarchar](50) NULL,
|
||||||
|
[MaterialCertificateNumber] [nvarchar](50) NULL,
|
||||||
|
[Material] [nvarchar](50) NULL,
|
||||||
|
[Specifications] [nvarchar](50) NULL,
|
||||||
|
[InspectionNum] [int] NULL,
|
||||||
|
[ODVariation] [nvarchar](50) NULL,
|
||||||
|
[IDVariation] [nvarchar](50) NULL,
|
||||||
|
[WallVariation] [nvarchar](50) NULL,
|
||||||
|
[OtherVariation] [nvarchar](50) NULL,
|
||||||
|
[AppearanceQuality] [nvarchar](50) NULL,
|
||||||
|
[Result] [nvarchar](2000) NULL,
|
||||||
|
[Remark] [nvarchar](500) NULL,
|
||||||
|
[CompileMan] [nvarchar](50) NULL,
|
||||||
|
[CompileDate] [datetime] NULL,
|
||||||
|
[Reviewer] [nvarchar](50) NULL,
|
||||||
|
[RevieweDate] [datetime] NULL,
|
||||||
|
CONSTRAINT [PK_JGZL_PipeFittingInspectionRecord] 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_PipeFittingInspectionRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_PipeFittingInspectionRecord_Base_Project] FOREIGN KEY([ProjectId])
|
||||||
|
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||||||
|
ALTER TABLE [dbo].[JGZL_PipeFittingInspectionRecord] CHECK CONSTRAINT [FK_JGZL_PipeFittingInspectionRecord_Base_Project]
|
||||||
|
ALTER TABLE [dbo].[JGZL_PipeFittingInspectionRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_PipeFittingInspectionRecord_Sys_User] FOREIGN KEY([CompileMan])
|
||||||
|
REFERENCES [dbo].[Sys_User] ([UserId])
|
||||||
|
ALTER TABLE [dbo].[JGZL_PipeFittingInspectionRecord] CHECK CONSTRAINT [FK_JGZL_PipeFittingInspectionRecord_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_PipeFittingInspectionRecord', @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_PipeFittingInspectionRecord', @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_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'ContractNo'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'Name'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'到货数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'ArrivalNum'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'到货单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'ArrivalUnit'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'材质证编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'MaterialCertificateNumber'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'材质' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'Material'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'规格' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'Specifications'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'检验数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'InspectionNum'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'外径偏差' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'ODVariation'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'内径偏差' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'IDVariation'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'壁厚偏差' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'WallVariation'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'其他偏差' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'OtherVariation'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'外观质量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'AppearanceQuality'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'结果' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @level2type=N'COLUMN',@level2name=N'Result'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipeFittingInspectionRecord', @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_PipeFittingInspectionRecord', @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_PipeFittingInspectionRecord', @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_PipeFittingInspectionRecord', @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_PipeFittingInspectionRecord', @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_PipeFittingInspectionRecord'
|
||||||
|
|
||||||
|
END
|
||||||
|
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
--40、工序交接记录
|
||||||
|
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_ProcessHandoverRecord') AND type = N'U')
|
||||||
|
BEGIN
|
||||||
|
|
||||||
|
CREATE TABLE [dbo].[JGZL_ProcessHandoverRecord](
|
||||||
|
[RecordId] [nvarchar](50) NOT NULL,
|
||||||
|
[ProjectId] [nvarchar](50) NULL,
|
||||||
|
[ExecutionStandard] [nvarchar](50) NULL,
|
||||||
|
[OrganizationalUnit] [nvarchar](50) NULL,
|
||||||
|
[HandoverUnit] [nvarchar](50) NULL,
|
||||||
|
[ReceivingUnit] [nvarchar](50) NULL,
|
||||||
|
[InspectionResults] [nvarchar](2000) NULL,
|
||||||
|
[ReceivingUnitOpinions] [nvarchar](2000) NULL,
|
||||||
|
[Remark] [nvarchar](500) NULL,
|
||||||
|
[CompileMan] [nvarchar](50) NULL,
|
||||||
|
[CompileDate] [datetime] NULL,
|
||||||
|
[Reviewer] [nvarchar](50) NULL,
|
||||||
|
[RevieweDate] [datetime] NULL,
|
||||||
|
CONSTRAINT [PK_JGZL_ProcessHandoverRecord] 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_ProcessHandoverRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_ProcessHandoverRecord_Base_Project] FOREIGN KEY([ProjectId])
|
||||||
|
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||||||
|
ALTER TABLE [dbo].[JGZL_ProcessHandoverRecord] CHECK CONSTRAINT [FK_JGZL_ProcessHandoverRecord_Base_Project]
|
||||||
|
ALTER TABLE [dbo].[JGZL_ProcessHandoverRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_ProcessHandoverRecord_Sys_User] FOREIGN KEY([CompileMan])
|
||||||
|
REFERENCES [dbo].[Sys_User] ([UserId])
|
||||||
|
ALTER TABLE [dbo].[JGZL_ProcessHandoverRecord] CHECK CONSTRAINT [FK_JGZL_ProcessHandoverRecord_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_ProcessHandoverRecord', @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_ProcessHandoverRecord', @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_ProcessHandoverRecord', @level2type=N'COLUMN',@level2name=N'ExecutionStandard'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'组织单位/部门' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ProcessHandoverRecord', @level2type=N'COLUMN',@level2name=N'OrganizationalUnit'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'交出单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ProcessHandoverRecord', @level2type=N'COLUMN',@level2name=N'HandoverUnit'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'接收单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ProcessHandoverRecord', @level2type=N'COLUMN',@level2name=N'ReceivingUnit'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'交出内容及自检结果' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ProcessHandoverRecord', @level2type=N'COLUMN',@level2name=N'InspectionResults'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'接收单位意见' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ProcessHandoverRecord', @level2type=N'COLUMN',@level2name=N'ReceivingUnitOpinions'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ProcessHandoverRecord', @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_ProcessHandoverRecord', @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_ProcessHandoverRecord', @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_ProcessHandoverRecord', @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_ProcessHandoverRecord', @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_ProcessHandoverRecord'
|
||||||
|
|
||||||
|
END
|
||||||
|
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
--41、管道预制施工检查记录
|
||||||
|
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_PipelinePrefabricationConstructionInspectionRecord') AND type = N'U')
|
||||||
|
BEGIN
|
||||||
|
|
||||||
|
CREATE TABLE [dbo].[JGZL_PipelinePrefabricationConstructionInspectionRecord](
|
||||||
|
[RecordId] [nvarchar](50) NOT NULL,
|
||||||
|
[ProjectId] [nvarchar](50) NULL,
|
||||||
|
[ProfessionalEngineering] [nvarchar](50) NULL,
|
||||||
|
[DrawingNumber] [nvarchar](50) NULL,
|
||||||
|
[InspectionResults] [nvarchar](2000) NULL,
|
||||||
|
[Remark] [nvarchar](500) NULL,
|
||||||
|
[CompileMan] [nvarchar](50) NULL,
|
||||||
|
[CompileDate] [datetime] NULL,
|
||||||
|
[Reviewer] [nvarchar](50) NULL,
|
||||||
|
[RevieweDate] [datetime] NULL,
|
||||||
|
CONSTRAINT [PK_JGZL_PipelinePrefabricationConstructionInspectionRecord] 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_PipelinePrefabricationConstructionInspectionRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_PipelinePrefabricationConstructionInspectionRecord_Base_Project] FOREIGN KEY([ProjectId])
|
||||||
|
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||||||
|
ALTER TABLE [dbo].[JGZL_PipelinePrefabricationConstructionInspectionRecord] CHECK CONSTRAINT [FK_JGZL_PipelinePrefabricationConstructionInspectionRecord_Base_Project]
|
||||||
|
ALTER TABLE [dbo].[JGZL_PipelinePrefabricationConstructionInspectionRecord] WITH CHECK ADD CONSTRAINT [FK_JGZL_PipelinePrefabricationConstructionInspectionRecord_Sys_User] FOREIGN KEY([CompileMan])
|
||||||
|
REFERENCES [dbo].[Sys_User] ([UserId])
|
||||||
|
ALTER TABLE [dbo].[JGZL_PipelinePrefabricationConstructionInspectionRecord] CHECK CONSTRAINT [FK_JGZL_PipelinePrefabricationConstructionInspectionRecord_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_PipelinePrefabricationConstructionInspectionRecord', @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_PipelinePrefabricationConstructionInspectionRecord', @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_PipelinePrefabricationConstructionInspectionRecord', @level2type=N'COLUMN',@level2name=N'ProfessionalEngineering'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'施工图号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipelinePrefabricationConstructionInspectionRecord', @level2type=N'COLUMN',@level2name=N'DrawingNumber'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'检查结果' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipelinePrefabricationConstructionInspectionRecord', @level2type=N'COLUMN',@level2name=N'InspectionResults'
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_PipelinePrefabricationConstructionInspectionRecord', @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_PipelinePrefabricationConstructionInspectionRecord', @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_PipelinePrefabricationConstructionInspectionRecord', @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_PipelinePrefabricationConstructionInspectionRecord', @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_PipelinePrefabricationConstructionInspectionRecord', @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_PipelinePrefabricationConstructionInspectionRecord'
|
||||||
|
|
||||||
|
END
|
||||||
|
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
@ -250,6 +250,9 @@
|
||||||
<Compile Include="JGZL\BlowingCleaningItemService.cs" />
|
<Compile Include="JGZL\BlowingCleaningItemService.cs" />
|
||||||
<Compile Include="JGZL\BlowingCleaningService.cs" />
|
<Compile Include="JGZL\BlowingCleaningService.cs" />
|
||||||
<Compile Include="JGZL\CommencementReportService.cs" />
|
<Compile Include="JGZL\CommencementReportService.cs" />
|
||||||
|
<Compile Include="JGZL\PipeFittingInspectionRecordService.cs" />
|
||||||
|
<Compile Include="JGZL\ProcessHandoverRecordService.cs" />
|
||||||
|
<Compile Include="JGZL\PipelinePrefabricationConstructionInspectionRecordService.cs" />
|
||||||
<Compile Include="JGZL\ValveInspectionTestRecordService.cs" />
|
<Compile Include="JGZL\ValveInspectionTestRecordService.cs" />
|
||||||
<Compile Include="JGZL\ValveTestConfirmationFormService.cs" />
|
<Compile Include="JGZL\ValveTestConfirmationFormService.cs" />
|
||||||
<Compile Include="JGZL\IndustrialPipelineInstallationSummaryService.cs" />
|
<Compile Include="JGZL\IndustrialPipelineInstallationSummaryService.cs" />
|
||||||
|
|
|
||||||
|
|
@ -1822,6 +1822,21 @@ namespace BLL
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string JGZL_PipelineInstallationInspectionRecordMenuId = "32B46F24-DA2A-40BC-9DB8-29D0A1A382B1";
|
public const string JGZL_PipelineInstallationInspectionRecordMenuId = "32B46F24-DA2A-40BC-9DB8-29D0A1A382B1";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 管道预制施工检查记录
|
||||||
|
/// </summary>
|
||||||
|
public const string JGZL_PipelinePrefabricationConstructionInspectionRecordMenuId = "CFE63BEA-A1D4-4477-B8E7-86B5E3F7FF84";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 管件宏观检查验收记录表
|
||||||
|
/// </summary>
|
||||||
|
public const string JGZL_PipeFittingInspectionRecordMenuId = "4A4FD28C-6B6B-4BDE-9CE0-73955FCACF5A";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 工序交接记录
|
||||||
|
/// </summary>
|
||||||
|
public const string JGZL_ProcessHandoverRecordMenuId = "13258273-4445-4C0A-8213-59DEA1C315C6";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 隐蔽工程验收记录
|
/// 隐蔽工程验收记录
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,98 @@
|
||||||
|
using Model;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
|
namespace BLL
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 管件宏观检查验收记录表
|
||||||
|
/// </summary>
|
||||||
|
public class PipeFittingInspectionRecordService
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 根据主键获取管件宏观检查验收记录表
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="Id"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static Model.JGZL_PipeFittingInspectionRecord GetPipeFittingInspectionRecordById(string Id)
|
||||||
|
{
|
||||||
|
return Funs.DB.JGZL_PipeFittingInspectionRecord.FirstOrDefault(e => e.RecordId == Id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 添加管件宏观检查验收记录表
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="model"></param>
|
||||||
|
public static void AddPipeFittingInspectionRecord(Model.JGZL_PipeFittingInspectionRecord model)
|
||||||
|
{
|
||||||
|
SGGLDB db = Funs.DB;
|
||||||
|
Model.JGZL_PipeFittingInspectionRecord newModel = new JGZL_PipeFittingInspectionRecord();
|
||||||
|
newModel.RecordId = model.RecordId;
|
||||||
|
newModel.ProjectId = model.ProjectId;
|
||||||
|
newModel.ContractNo = model.ContractNo;
|
||||||
|
newModel.Name = model.Name;
|
||||||
|
newModel.ArrivalNum = model.ArrivalNum;
|
||||||
|
newModel.ArrivalUnit = model.ArrivalUnit;
|
||||||
|
newModel.MaterialCertificateNumber = model.MaterialCertificateNumber;
|
||||||
|
newModel.Material = model.Material;
|
||||||
|
newModel.Specifications = model.Specifications;
|
||||||
|
newModel.InspectionNum = model.InspectionNum;
|
||||||
|
newModel.ODVariation = model.ODVariation;
|
||||||
|
newModel.IDVariation = model.IDVariation;
|
||||||
|
newModel.WallVariation = model.WallVariation;
|
||||||
|
newModel.OtherVariation = model.OtherVariation;
|
||||||
|
newModel.AppearanceQuality = model.AppearanceQuality;
|
||||||
|
newModel.Result = model.Result;
|
||||||
|
newModel.Remark = model.Remark;
|
||||||
|
newModel.CompileMan = model.CompileMan;
|
||||||
|
newModel.CompileDate = model.CompileDate;
|
||||||
|
newModel.Reviewer = model.Reviewer;
|
||||||
|
newModel.RevieweDate = model.RevieweDate;
|
||||||
|
db.JGZL_PipeFittingInspectionRecord.InsertOnSubmit(newModel);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 修改管件宏观检查验收记录表
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="model"></param>
|
||||||
|
public static void UpdatePipeFittingInspectionRecord(Model.JGZL_PipeFittingInspectionRecord model)
|
||||||
|
{
|
||||||
|
SGGLDB db = Funs.DB;
|
||||||
|
Model.JGZL_PipeFittingInspectionRecord newModel = db.JGZL_PipeFittingInspectionRecord.FirstOrDefault(e => e.RecordId == model.RecordId);
|
||||||
|
if (newModel != null)
|
||||||
|
{
|
||||||
|
newModel.ContractNo = model.ContractNo;
|
||||||
|
newModel.Name = model.Name;
|
||||||
|
newModel.ArrivalNum = model.ArrivalNum;
|
||||||
|
newModel.ArrivalUnit = model.ArrivalUnit;
|
||||||
|
newModel.MaterialCertificateNumber = model.MaterialCertificateNumber;
|
||||||
|
newModel.Material = model.Material;
|
||||||
|
newModel.Specifications = model.Specifications;
|
||||||
|
newModel.InspectionNum = model.InspectionNum;
|
||||||
|
newModel.ODVariation = model.ODVariation;
|
||||||
|
newModel.IDVariation = model.IDVariation;
|
||||||
|
newModel.WallVariation = model.WallVariation;
|
||||||
|
newModel.OtherVariation = model.OtherVariation;
|
||||||
|
newModel.AppearanceQuality = model.AppearanceQuality;
|
||||||
|
newModel.Result = model.Result;
|
||||||
|
newModel.Remark = model.Remark;
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 根据主键删除管件宏观检查验收记录表
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="Id"></param>
|
||||||
|
public static void DeletePipeFittingInspectionRecordById(string Id)
|
||||||
|
{
|
||||||
|
SGGLDB db = Funs.DB;
|
||||||
|
Model.JGZL_PipeFittingInspectionRecord model = db.JGZL_PipeFittingInspectionRecord.FirstOrDefault(e => e.RecordId == Id);
|
||||||
|
if (model != null)
|
||||||
|
{
|
||||||
|
db.JGZL_PipeFittingInspectionRecord.DeleteOnSubmit(model);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,76 @@
|
||||||
|
using Model;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
|
namespace BLL
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 管道预制施工检查记录
|
||||||
|
/// </summary>
|
||||||
|
public class PipelinePrefabricationConstructionInspectionRecordService
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 根据主键获取管道预制施工检查记录
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="Id"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static Model.JGZL_PipelinePrefabricationConstructionInspectionRecord GetPipelinePrefabricationConstructionInspectionRecordById(string Id)
|
||||||
|
{
|
||||||
|
return Funs.DB.JGZL_PipelinePrefabricationConstructionInspectionRecord.FirstOrDefault(e => e.RecordId == Id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 添加管道预制施工检查记录
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="model"></param>
|
||||||
|
public static void AddPipelinePrefabricationConstructionInspectionRecord(Model.JGZL_PipelinePrefabricationConstructionInspectionRecord model)
|
||||||
|
{
|
||||||
|
SGGLDB db = Funs.DB;
|
||||||
|
Model.JGZL_PipelinePrefabricationConstructionInspectionRecord newModel = new JGZL_PipelinePrefabricationConstructionInspectionRecord();
|
||||||
|
newModel.RecordId = model.RecordId;
|
||||||
|
newModel.ProjectId = model.ProjectId;
|
||||||
|
newModel.ProfessionalEngineering = model.ProfessionalEngineering;
|
||||||
|
newModel.DrawingNumber = model.DrawingNumber;
|
||||||
|
newModel.InspectionResults = model.InspectionResults;
|
||||||
|
newModel.Remark = model.Remark;
|
||||||
|
newModel.CompileMan = model.CompileMan;
|
||||||
|
newModel.CompileDate = model.CompileDate;
|
||||||
|
newModel.Reviewer = model.Reviewer;
|
||||||
|
newModel.RevieweDate = model.RevieweDate;
|
||||||
|
db.JGZL_PipelinePrefabricationConstructionInspectionRecord.InsertOnSubmit(newModel);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 修改管道预制施工检查记录
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="model"></param>
|
||||||
|
public static void UpdatePipelinePrefabricationConstructionInspectionRecord(Model.JGZL_PipelinePrefabricationConstructionInspectionRecord model)
|
||||||
|
{
|
||||||
|
SGGLDB db = Funs.DB;
|
||||||
|
Model.JGZL_PipelinePrefabricationConstructionInspectionRecord newModel = db.JGZL_PipelinePrefabricationConstructionInspectionRecord.FirstOrDefault(e => e.RecordId == model.RecordId);
|
||||||
|
if (newModel != null)
|
||||||
|
{
|
||||||
|
newModel.ProfessionalEngineering = model.ProfessionalEngineering;
|
||||||
|
newModel.DrawingNumber = model.DrawingNumber;
|
||||||
|
newModel.InspectionResults = model.InspectionResults;
|
||||||
|
newModel.Remark = model.Remark;
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 根据主键删除管道预制施工检查记录
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="Id"></param>
|
||||||
|
public static void DeletePipelinePrefabricationConstructionInspectionRecordById(string Id)
|
||||||
|
{
|
||||||
|
SGGLDB db = Funs.DB;
|
||||||
|
Model.JGZL_PipelinePrefabricationConstructionInspectionRecord model = db.JGZL_PipelinePrefabricationConstructionInspectionRecord.FirstOrDefault(e => e.RecordId == Id);
|
||||||
|
if (model != null)
|
||||||
|
{
|
||||||
|
db.JGZL_PipelinePrefabricationConstructionInspectionRecord.DeleteOnSubmit(model);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,82 @@
|
||||||
|
using Model;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
|
namespace BLL
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 工序交接记录
|
||||||
|
/// </summary>
|
||||||
|
public class ProcessHandoverRecordService
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 根据主键获取工序交接记录
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="Id"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static Model.JGZL_ProcessHandoverRecord GetProcessHandoverRecordById(string Id)
|
||||||
|
{
|
||||||
|
return Funs.DB.JGZL_ProcessHandoverRecord.FirstOrDefault(e => e.RecordId == Id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 添加工序交接记录
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="model"></param>
|
||||||
|
public static void AddProcessHandoverRecord(Model.JGZL_ProcessHandoverRecord model)
|
||||||
|
{
|
||||||
|
SGGLDB db = Funs.DB;
|
||||||
|
Model.JGZL_ProcessHandoverRecord newModel = new JGZL_ProcessHandoverRecord();
|
||||||
|
newModel.RecordId = model.RecordId;
|
||||||
|
newModel.ProjectId = model.ProjectId;
|
||||||
|
newModel.ExecutionStandard = model.ExecutionStandard;
|
||||||
|
newModel.OrganizationalUnit = model.OrganizationalUnit;
|
||||||
|
newModel.HandoverUnit = model.HandoverUnit;
|
||||||
|
newModel.ReceivingUnit = model.ReceivingUnit;
|
||||||
|
newModel.InspectionResults = model.InspectionResults;
|
||||||
|
newModel.ReceivingUnitOpinions = model.ReceivingUnitOpinions;
|
||||||
|
newModel.Remark = model.Remark;
|
||||||
|
newModel.CompileMan = model.CompileMan;
|
||||||
|
newModel.CompileDate = model.CompileDate;
|
||||||
|
newModel.Reviewer = model.Reviewer;
|
||||||
|
newModel.RevieweDate = model.RevieweDate;
|
||||||
|
db.JGZL_ProcessHandoverRecord.InsertOnSubmit(newModel);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 修改工序交接记录
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="model"></param>
|
||||||
|
public static void UpdateProcessHandoverRecord(Model.JGZL_ProcessHandoverRecord model)
|
||||||
|
{
|
||||||
|
SGGLDB db = Funs.DB;
|
||||||
|
Model.JGZL_ProcessHandoverRecord newModel = db.JGZL_ProcessHandoverRecord.FirstOrDefault(e => e.RecordId == model.RecordId);
|
||||||
|
if (newModel != null)
|
||||||
|
{
|
||||||
|
newModel.ExecutionStandard = model.ExecutionStandard;
|
||||||
|
newModel.OrganizationalUnit = model.OrganizationalUnit;
|
||||||
|
newModel.HandoverUnit = model.HandoverUnit;
|
||||||
|
newModel.ReceivingUnit = model.ReceivingUnit;
|
||||||
|
newModel.InspectionResults = model.InspectionResults;
|
||||||
|
newModel.ReceivingUnitOpinions = model.ReceivingUnitOpinions;
|
||||||
|
newModel.Remark = model.Remark;
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 根据主键删除工序交接记录
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="Id"></param>
|
||||||
|
public static void DeleteProcessHandoverRecordById(string Id)
|
||||||
|
{
|
||||||
|
SGGLDB db = Funs.DB;
|
||||||
|
Model.JGZL_ProcessHandoverRecord model = db.JGZL_ProcessHandoverRecord.FirstOrDefault(e => e.RecordId == Id);
|
||||||
|
if (model != null)
|
||||||
|
{
|
||||||
|
db.JGZL_ProcessHandoverRecord.DeleteOnSubmit(model);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1248,6 +1248,12 @@
|
||||||
<Content Include="JGZL\BlowingCleaningSearch.aspx" />
|
<Content Include="JGZL\BlowingCleaningSearch.aspx" />
|
||||||
<Content Include="JGZL\CommencementReport.aspx" />
|
<Content Include="JGZL\CommencementReport.aspx" />
|
||||||
<Content Include="JGZL\CommencementReportEdit.aspx" />
|
<Content Include="JGZL\CommencementReportEdit.aspx" />
|
||||||
|
<Content Include="JGZL\PipeFittingInspectionRecord.aspx" />
|
||||||
|
<Content Include="JGZL\PipeFittingInspectionRecordEdit.aspx" />
|
||||||
|
<Content Include="JGZL\ProcessHandoverRecord.aspx" />
|
||||||
|
<Content Include="JGZL\ProcessHandoverRecordEdit.aspx" />
|
||||||
|
<Content Include="JGZL\PipelinePrefabricationConstructionInspectionRecord.aspx" />
|
||||||
|
<Content Include="JGZL\PipelinePrefabricationConstructionInspectionRecordEdit.aspx" />
|
||||||
<Content Include="JGZL\ValveInspectionTestRecord.aspx" />
|
<Content Include="JGZL\ValveInspectionTestRecord.aspx" />
|
||||||
<Content Include="JGZL\ValveInspectionTestRecordEdit.aspx" />
|
<Content Include="JGZL\ValveInspectionTestRecordEdit.aspx" />
|
||||||
<Content Include="JGZL\ValveTestConfirmationForm.aspx" />
|
<Content Include="JGZL\ValveTestConfirmationForm.aspx" />
|
||||||
|
|
@ -6618,6 +6624,48 @@
|
||||||
<Compile Include="JGZL\CommencementReportEdit.aspx.designer.cs">
|
<Compile Include="JGZL\CommencementReportEdit.aspx.designer.cs">
|
||||||
<DependentUpon>CommencementReportEdit.aspx</DependentUpon>
|
<DependentUpon>CommencementReportEdit.aspx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="JGZL\PipeFittingInspectionRecord.aspx.cs">
|
||||||
|
<DependentUpon>PipeFittingInspectionRecord.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="JGZL\PipeFittingInspectionRecord.aspx.designer.cs">
|
||||||
|
<DependentUpon>PipeFittingInspectionRecord.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="JGZL\PipeFittingInspectionRecordEdit.aspx.cs">
|
||||||
|
<DependentUpon>PipeFittingInspectionRecordEdit.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="JGZL\PipeFittingInspectionRecordEdit.aspx.designer.cs">
|
||||||
|
<DependentUpon>PipeFittingInspectionRecordEdit.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="JGZL\ProcessHandoverRecord.aspx.cs">
|
||||||
|
<DependentUpon>ProcessHandoverRecord.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="JGZL\ProcessHandoverRecord.aspx.designer.cs">
|
||||||
|
<DependentUpon>ProcessHandoverRecord.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="JGZL\ProcessHandoverRecordEdit.aspx.cs">
|
||||||
|
<DependentUpon>ProcessHandoverRecordEdit.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="JGZL\ProcessHandoverRecordEdit.aspx.designer.cs">
|
||||||
|
<DependentUpon>ProcessHandoverRecordEdit.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="JGZL\PipelinePrefabricationConstructionInspectionRecord.aspx.cs">
|
||||||
|
<DependentUpon>PipelinePrefabricationConstructionInspectionRecord.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="JGZL\PipelinePrefabricationConstructionInspectionRecord.aspx.designer.cs">
|
||||||
|
<DependentUpon>PipelinePrefabricationConstructionInspectionRecord.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="JGZL\PipelinePrefabricationConstructionInspectionRecordEdit.aspx.cs">
|
||||||
|
<DependentUpon>PipelinePrefabricationConstructionInspectionRecordEdit.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="JGZL\PipelinePrefabricationConstructionInspectionRecordEdit.aspx.designer.cs">
|
||||||
|
<DependentUpon>PipelinePrefabricationConstructionInspectionRecordEdit.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="JGZL\ValveInspectionTestRecord.aspx.cs">
|
<Compile Include="JGZL\ValveInspectionTestRecord.aspx.cs">
|
||||||
<DependentUpon>ValveInspectionTestRecord.aspx</DependentUpon>
|
<DependentUpon>ValveInspectionTestRecord.aspx</DependentUpon>
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,159 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PipeFittingInspectionRecord.aspx.cs" Inherits="FineUIPro.Web.JGZL.PipeFittingInspectionRecord" %>
|
||||||
|
|
||||||
|
<!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="ContractNo" 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="ContractNo" DataField="ContractNo" SortField="ContractNo"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="160px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="名称" ColumnID="Name" DataField="Name" SortField="Name"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="180px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:GroupField EnableLock="true" HeaderText="到货数量" TextAlign="Center">
|
||||||
|
<Columns>
|
||||||
|
<f:RenderField HeaderText="单位" ColumnID="ArrivalUnit" DataField="ArrivalUnit" SortField="ArrivalUnit"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="80px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="数量" ColumnID="ArrivalNum" DataField="ArrivalNum" SortField="ArrivalNum"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="80px">
|
||||||
|
</f:RenderField>
|
||||||
|
</Columns>
|
||||||
|
</f:GroupField>
|
||||||
|
<f:RenderField HeaderText="材质证编号" ColumnID="MaterialCertificateNumber" DataField="MaterialCertificateNumber" SortField="MaterialCertificateNumber"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="160px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="材质" ColumnID="Material" DataField="Material" SortField="Material"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="160px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="规格" ColumnID="Specifications" DataField="Specifications" SortField="Specifications"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="200px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="检验数量" ColumnID="InspectionNum" DataField="InspectionNum" SortField="InspectionNum"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="120px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:GroupField EnableLock="true" HeaderText="几何尺寸" TextAlign="Center">
|
||||||
|
<Columns>
|
||||||
|
<f:RenderField HeaderText="外径偏差" ColumnID="ODVariation" DataField="ODVariation" SortField="ODVariation"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="80px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="内径偏差" ColumnID="IDVariation" DataField="IDVariation" SortField="IDVariation"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="80px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="壁厚偏差" ColumnID="WallVariation" DataField="WallVariation" SortField="WallVariation"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="80px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="其他" ColumnID="OtherVariation" DataField="OtherVariation" SortField="OtherVariation"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="80px">
|
||||||
|
</f:RenderField>
|
||||||
|
</Columns>
|
||||||
|
</f:GroupField>
|
||||||
|
<f:RenderField HeaderText="外观质量" ColumnID="AppearanceQuality" DataField="AppearanceQuality" SortField="AppearanceQuality"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="180px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="结果" ColumnID="Result" DataField="Result" SortField="Result"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="120px">
|
||||||
|
</f:RenderField>
|
||||||
|
<%--<f:RenderField HeaderText="备注" ColumnID="Remark" DataField="Remark" SortField="Remark"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="180px">
|
||||||
|
</f:RenderField>--%>
|
||||||
|
</Columns>
|
||||||
|
<Listeners>
|
||||||
|
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||||
|
</Listeners>
|
||||||
|
<PageItems>
|
||||||
|
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||||
|
</f:ToolbarSeparator>
|
||||||
|
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||||
|
</f:ToolbarText>
|
||||||
|
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||||
|
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||||
|
<f:ListItem Text="10" Value="10" />
|
||||||
|
<f:ListItem Text="15" Value="15" />
|
||||||
|
<f:ListItem Text="20" Value="20" />
|
||||||
|
<f:ListItem Text="25" Value="25" />
|
||||||
|
</f:DropDownList>
|
||||||
|
</PageItems>
|
||||||
|
</f:Grid>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
<f:Window ID="Window1" Title="管件宏观检查验收记录表" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
|
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||||
|
Width="900px" Height="600px">
|
||||||
|
</f:Window>
|
||||||
|
<f:Window ID="WindowPrint" Title="打印管件宏观检查验收记录表" Hidden="true" EnableIFrame="true" EnableMaximize="false"
|
||||||
|
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
|
||||||
|
Height="600px">
|
||||||
|
</f:Window>
|
||||||
|
<f:Menu ID="Menu1" runat="server">
|
||||||
|
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
||||||
|
runat="server" Text="编辑" Icon="TableEdit">
|
||||||
|
</f:MenuButton>
|
||||||
|
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||||
|
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
|
||||||
|
</f:MenuButton>
|
||||||
|
</f:Menu>
|
||||||
|
</form>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var menuID = '<%= Menu1.ClientID %>';
|
||||||
|
// 返回false,来阻止浏览器右键菜单
|
||||||
|
function onRowContextMenu(event, rowId) {
|
||||||
|
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,401 @@
|
||||||
|
using BLL;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Data.SqlClient;
|
||||||
|
using System.Data;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.JGZL
|
||||||
|
{
|
||||||
|
public partial class PipeFittingInspectionRecord : PageBase
|
||||||
|
{
|
||||||
|
#region 加载页面
|
||||||
|
/// <summary>
|
||||||
|
/// 加载页面
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||||
|
|
||||||
|
this.drpProjectId.DataTextField = "ProjectCode";
|
||||||
|
this.drpProjectId.DataValueField = "ProjectId";
|
||||||
|
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||||
|
this.drpProjectId.DataBind();
|
||||||
|
Funs.FineUIPleaseSelect(this.drpProjectId);
|
||||||
|
|
||||||
|
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
|
||||||
|
this.InitTreeMenu();//加载树
|
||||||
|
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 加载树项目
|
||||||
|
/// <summary>
|
||||||
|
/// 加载树
|
||||||
|
/// </summary>
|
||||||
|
private void InitTreeMenu()
|
||||||
|
{
|
||||||
|
this.tvControlItem.Nodes.Clear();
|
||||||
|
TreeNode rootNode = new TreeNode();
|
||||||
|
rootNode.Text = "项目";
|
||||||
|
rootNode.ToolTip = "项目";
|
||||||
|
rootNode.NodeID = "0";
|
||||||
|
rootNode.Expanded = true;
|
||||||
|
this.tvControlItem.Nodes.Add(rootNode);
|
||||||
|
|
||||||
|
List<Model.Base_Project> projects = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||||
|
if (this.drpProjectId.SelectedValue != BLL.Const._Null)
|
||||||
|
{
|
||||||
|
projects = projects.Where(e => e.ProjectId == this.drpProjectId.SelectedValue).ToList();
|
||||||
|
}
|
||||||
|
foreach (var item in projects)
|
||||||
|
{
|
||||||
|
TreeNode rootProjectNode = new TreeNode();//定义根节点
|
||||||
|
rootProjectNode.Text = item.ProjectCode;
|
||||||
|
rootProjectNode.NodeID = item.ProjectId;
|
||||||
|
rootProjectNode.EnableClickEvent = true;
|
||||||
|
rootProjectNode.Expanded = true;
|
||||||
|
rootProjectNode.ToolTip = item.ProjectName;
|
||||||
|
rootProjectNode.CommandName = "项目名称";
|
||||||
|
rootNode.Nodes.Add(rootProjectNode);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 点击TreeView
|
||||||
|
/// <summary>
|
||||||
|
/// 点击TreeView
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||||
|
{
|
||||||
|
if (this.tvControlItem.SelectedNodeID != "0")
|
||||||
|
{
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 数据绑定
|
||||||
|
/// <summary>
|
||||||
|
/// 数据绑定
|
||||||
|
/// </summary>
|
||||||
|
private void BindGrid()
|
||||||
|
{
|
||||||
|
//string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1");
|
||||||
|
string strSql = @"SELECT * from JGZL_PipeFittingInspectionRecord where 1=1";
|
||||||
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
|
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||||
|
{
|
||||||
|
strSql += " AND ProjectId = @ProjectId";
|
||||||
|
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
|
||||||
|
}
|
||||||
|
//else
|
||||||
|
//{
|
||||||
|
// strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 ";
|
||||||
|
// listStr.Add(new SqlParameter("@ProjectId", projectIds));
|
||||||
|
//}
|
||||||
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
|
// 2.获取当前分页数据
|
||||||
|
Grid1.RecordCount = tb.Rows.Count;
|
||||||
|
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||||
|
var table = this.GetPagedDataTable(Grid1, tb);
|
||||||
|
Grid1.DataSource = table;
|
||||||
|
Grid1.DataBind();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 分页排序
|
||||||
|
#region 页索引改变事件
|
||||||
|
/// <summary>
|
||||||
|
/// 页索引改变事件
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 排序
|
||||||
|
/// <summary>
|
||||||
|
/// 排序
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 分页选择下拉改变事件
|
||||||
|
/// <summary>
|
||||||
|
/// 分页选择下拉改变事件
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 查询
|
||||||
|
///<summary>
|
||||||
|
///查询
|
||||||
|
///</summary>
|
||||||
|
///<param name="sender"></param>
|
||||||
|
///<param name="e"></param>
|
||||||
|
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.InitTreeMenu();
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查询
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 打印
|
||||||
|
/// <summary>
|
||||||
|
/// 打印
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnPrint_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string projectId = this.tvControlItem.SelectedNodeID;
|
||||||
|
|
||||||
|
if (projectId != null)
|
||||||
|
{
|
||||||
|
string initTemplatePath = "";
|
||||||
|
string rootPath = Server.MapPath("~/");
|
||||||
|
BLL.Common.FastReportService.ResetData();
|
||||||
|
|
||||||
|
string strSql = @"SELECT * from JGZL_PipeFittingInspectionRecord where ProjectId = @ProjectId order by DrawingNumber desc";
|
||||||
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
|
listStr.Add(new SqlParameter("@ProjectId", projectId));
|
||||||
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
|
|
||||||
|
DataTable dt = new DataTable();
|
||||||
|
dt.TableName = "Data";
|
||||||
|
dt.Columns.Add("Num");
|
||||||
|
dt.Columns.Add("ConcealedWorks");
|
||||||
|
dt.Columns.Add("DrawingNumber");
|
||||||
|
dt.Columns.Add("ConcealedContentAndDiagram");
|
||||||
|
dt.Columns.Add("InspectionResults");
|
||||||
|
dt.Columns.Add("Remark");
|
||||||
|
|
||||||
|
DataRow[] rows = tb.DefaultView.ToTable().Select();
|
||||||
|
int i = 0;
|
||||||
|
foreach (var row in rows)
|
||||||
|
{
|
||||||
|
var newRow = dt.NewRow();
|
||||||
|
newRow["Num"] = (i + 1).ToString();
|
||||||
|
newRow["ConcealedWorks"] = row["ConcealedWorks"].ToString();
|
||||||
|
newRow["DrawingNumber"] = row["DrawingNumber"].ToString();
|
||||||
|
newRow["ConcealedContentAndDiagram"] = row["ConcealedContentAndDiagram"].ToString();
|
||||||
|
newRow["Remark"] = row["Remark"].ToString();
|
||||||
|
dt.Rows.Add(newRow);
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
BLL.Common.FastReportService.AddFastreportTable(dt);
|
||||||
|
|
||||||
|
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||||
|
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
|
||||||
|
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
||||||
|
|
||||||
|
initTemplatePath = "File\\Fastreport\\JGZL\\管件宏观检查验收记录表.frx";
|
||||||
|
if (File.Exists(rootPath + initTemplatePath))
|
||||||
|
{
|
||||||
|
PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#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("PipeFittingInspectionRecordEdit.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_PipeFittingInspectionRecordMenuId, BLL.Const.BtnModify))
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||||
|
{
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PipeFittingInspectionRecordEdit.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_PipeFittingInspectionRecordMenuId, BLL.Const.BtnModify))
|
||||||
|
{
|
||||||
|
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PipeFittingInspectionRecordEdit.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_PipeFittingInspectionRecordMenuId, 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.PipeFittingInspectionRecordService.DeletePipeFittingInspectionRecordById(rowID);
|
||||||
|
BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除管件宏观检查验收记录表");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (isDelete)
|
||||||
|
{
|
||||||
|
ShowNotify("删除成功!", MessageBoxIcon.Success);
|
||||||
|
}
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#region 判断是否可删除
|
||||||
|
/// <summary>
|
||||||
|
/// 判断是否可以删除
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
private bool judgementDelete(string id, bool isShow)
|
||||||
|
{
|
||||||
|
string content = string.Empty;
|
||||||
|
|
||||||
|
if (string.IsNullOrEmpty(content))
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (isShow)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop(content, MessageBoxIcon.Error);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 关闭弹出窗口及刷新页面
|
||||||
|
/// <summary>
|
||||||
|
/// 关闭弹出窗口
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||||
|
{
|
||||||
|
this.InitTreeMenu();//加载树
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,206 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.JGZL
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class PipeFittingInspectionRecord
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <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,98 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PipeFittingInspectionRecordEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.PipeFittingInspectionRecordEdit" %>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head runat="server">
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<title>编辑管件宏观检查验收记录表</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||||
|
<f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true" BodyPadding="10px"
|
||||||
|
runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar1" Position="Bottom" runat="server" ToolbarAlign="Right">
|
||||||
|
<Items>
|
||||||
|
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||||
|
</f:ToolbarFill>
|
||||||
|
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
|
||||||
|
OnClick="btnSave_Click">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtContractNo" runat="server" Label="合同编号" LabelAlign="Right" LabelWidth="150px" MaxLength="20" Required="true" ShowRedStar="true"></f:TextBox>
|
||||||
|
<f:TextBox ID="txtName" runat="server" Label="名称" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:NumberBox ID="txtArrivalNum" runat="server" Label="到货数量" LabelWidth="150px" LabelAlign="Right" NoDecimal="false"
|
||||||
|
NoNegative="true" EmptyText="0">
|
||||||
|
</f:NumberBox>
|
||||||
|
<f:TextBox ID="txtArrivalUnit" runat="server" Label="到货单位" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtMaterialCertificateNumber" runat="server" Label="材质证编号" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
|
||||||
|
<f:TextBox ID="txtMaterial" runat="server" Label="材质" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtSpecifications" runat="server" Label="规格" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
|
||||||
|
<f:NumberBox ID="txtInspectionNum" runat="server" Label="检验数量" LabelWidth="150px" LabelAlign="Right" NoDecimal="false"
|
||||||
|
NoNegative="true" EmptyText="0">
|
||||||
|
</f:NumberBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:GroupPanel ID="GroupPanel" Title="几何偏差" runat="server" EnableCollapse="true">
|
||||||
|
<Items>
|
||||||
|
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" runat="server">
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtODVariation" runat="server" Label="外径偏差" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
|
||||||
|
<f:TextBox ID="txtIDVariation" runat="server" Label="内径偏差" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtWallVariation" runat="server" Label="壁厚偏差" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
|
||||||
|
<f:TextBox ID="txtOtherVariation" runat="server" Label="其他偏差" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
</f:Form>
|
||||||
|
</Items>
|
||||||
|
</f:GroupPanel>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtAppearanceQuality" runat="server" Label="外观质量" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtResult" runat="server" Label="结果" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtRemark" runat="server" Label="备注" LabelAlign="Right" LabelWidth="150px" MaxLength="500"></f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
</f:Form>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,132 @@
|
||||||
|
using BLL;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.JGZL
|
||||||
|
{
|
||||||
|
public partial class PipeFittingInspectionRecordEdit : 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.PipeFittingInspectionRecordService.GetPipeFittingInspectionRecordById(this.RecordId);
|
||||||
|
if (report != null)
|
||||||
|
{
|
||||||
|
this.txtContractNo.Text = report.ContractNo;
|
||||||
|
this.txtName.Text = report.Name;
|
||||||
|
this.txtArrivalNum.Text = report.ArrivalNum.ToString();
|
||||||
|
this.txtArrivalUnit.Text = report.ArrivalUnit;
|
||||||
|
this.txtMaterialCertificateNumber.Text = report.MaterialCertificateNumber;
|
||||||
|
this.txtMaterial.Text = report.Material;
|
||||||
|
this.txtSpecifications.Text = report.Specifications;
|
||||||
|
this.txtInspectionNum.Text = report.InspectionNum.ToString();
|
||||||
|
this.txtODVariation.Text = report.ODVariation;
|
||||||
|
this.txtIDVariation.Text = report.IDVariation;
|
||||||
|
this.txtWallVariation.Text = report.WallVariation;
|
||||||
|
this.txtOtherVariation.Text = report.OtherVariation;
|
||||||
|
this.txtAppearanceQuality.Text = report.AppearanceQuality;
|
||||||
|
this.txtResult.Text = report.Result;
|
||||||
|
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_PipeFittingInspectionRecordMenuId, Const.BtnSave))
|
||||||
|
{
|
||||||
|
Model.JGZL_PipeFittingInspectionRecord newReport = new Model.JGZL_PipeFittingInspectionRecord();
|
||||||
|
newReport.ContractNo = this.txtContractNo.Text.Trim();
|
||||||
|
newReport.Name = this.txtName.Text.Trim();
|
||||||
|
newReport.ArrivalNum = Funs.GetNewIntOrZero(this.txtArrivalNum.Text.Trim());
|
||||||
|
newReport.ArrivalUnit = this.txtArrivalUnit.Text.Trim();
|
||||||
|
newReport.MaterialCertificateNumber = this.txtMaterialCertificateNumber.Text.Trim();
|
||||||
|
newReport.Material = this.txtMaterial.Text.Trim();
|
||||||
|
newReport.Specifications = this.txtSpecifications.Text.Trim();
|
||||||
|
newReport.InspectionNum = Funs.GetNewIntOrZero(this.txtInspectionNum.Text.Trim());
|
||||||
|
newReport.ODVariation = this.txtODVariation.Text.Trim();
|
||||||
|
newReport.IDVariation = this.txtIDVariation.Text.Trim();
|
||||||
|
newReport.WallVariation = this.txtWallVariation.Text.Trim();
|
||||||
|
newReport.OtherVariation = this.txtOtherVariation.Text.Trim();
|
||||||
|
newReport.AppearanceQuality = this.txtAppearanceQuality.Text.Trim();
|
||||||
|
newReport.Result = this.txtResult.Text.Trim();
|
||||||
|
newReport.Remark = this.txtRemark.Text.Trim();
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(this.RecordId))
|
||||||
|
{
|
||||||
|
newReport.RecordId = this.RecordId;
|
||||||
|
BLL.PipeFittingInspectionRecordService.UpdatePipeFittingInspectionRecord(newReport);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
newReport.ProjectId = this.ProjectId;
|
||||||
|
newReport.CompileMan = this.CurrUser.UserId;
|
||||||
|
newReport.CompileDate = DateTime.Now;
|
||||||
|
newReport.Reviewer = this.CurrUser.UserId;
|
||||||
|
newReport.RevieweDate = DateTime.Now;
|
||||||
|
newReport.RecordId = SQLHelper.GetNewID(typeof(Model.JGZL_PipeFittingInspectionRecord));
|
||||||
|
this.RecordId = newReport.RecordId;
|
||||||
|
BLL.PipeFittingInspectionRecordService.AddPipeFittingInspectionRecord(newReport);
|
||||||
|
}
|
||||||
|
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||||
|
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
224
HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecordEdit.aspx.designer.cs
generated
Normal file
224
HJGL_DS/FineUIPro.Web/JGZL/PipeFittingInspectionRecordEdit.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,224 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.JGZL
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class PipeFittingInspectionRecordEdit
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// form1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// PageManager1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.PageManager PageManager1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// SimpleForm1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Form SimpleForm1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ToolbarFill1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnSave 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnSave;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtContractNo 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtContractNo;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtName 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtName;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtArrivalNum 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.NumberBox txtArrivalNum;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtArrivalUnit 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtArrivalUnit;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtMaterialCertificateNumber 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtMaterialCertificateNumber;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtMaterial 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtMaterial;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtSpecifications 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtSpecifications;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtInspectionNum 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.NumberBox txtInspectionNum;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GroupPanel 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.GroupPanel GroupPanel;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Form2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Form Form2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtODVariation 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtODVariation;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtIDVariation 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtIDVariation;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtWallVariation 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtWallVariation;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOtherVariation 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtOtherVariation;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtAppearanceQuality 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtAppearanceQuality;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtResult 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtResult;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtRemark 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtRemark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -64,7 +64,7 @@
|
||||||
<f:RenderField HeaderText="检查项目" ColumnID="InspectionItems" DataField="InspectionItems" SortField="InspectionItems"
|
<f:RenderField HeaderText="检查项目" ColumnID="InspectionItems" DataField="InspectionItems" SortField="InspectionItems"
|
||||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="280px">
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="280px">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
<f:RenderField HeaderText="检查结论" ColumnID="InspectionResults" DataField="InspectionResults" SortField="InspectionResults"
|
<f:RenderField HeaderText="检查结果" ColumnID="InspectionResults" DataField="InspectionResults" SortField="InspectionResults"
|
||||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="220px">
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="220px">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
<f:RenderField HeaderText="备注" ColumnID="Remark" DataField="Remark" SortField="Remark"
|
<f:RenderField HeaderText="备注" ColumnID="Remark" DataField="Remark" SortField="Remark"
|
||||||
|
|
|
||||||
|
|
@ -229,7 +229,7 @@ namespace FineUIPro.Web.JGZL
|
||||||
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
|
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
|
||||||
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
||||||
|
|
||||||
initTemplatePath = "File\\Fastreport\\JGZL\\隐蔽工程验收记录.frx";
|
initTemplatePath = "File\\Fastreport\\JGZL\\管道安装检查记录.frx";
|
||||||
if (File.Exists(rootPath + initTemplatePath))
|
if (File.Exists(rootPath + initTemplatePath))
|
||||||
{
|
{
|
||||||
PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
|
PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
|
||||||
|
|
@ -345,7 +345,7 @@ namespace FineUIPro.Web.JGZL
|
||||||
{
|
{
|
||||||
isDelete = true;
|
isDelete = true;
|
||||||
BLL.PipelineInstallationInspectionRecordService.DeletePipelineInstallationInspectionRecordById(rowID);
|
BLL.PipelineInstallationInspectionRecordService.DeletePipelineInstallationInspectionRecordById(rowID);
|
||||||
BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除隐蔽工程验收记录");
|
BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除管道安装检查记录");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isDelete)
|
if (isDelete)
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,118 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PipelinePrefabricationConstructionInspectionRecord.aspx.cs" Inherits="FineUIPro.Web.JGZL.PipelinePrefabricationConstructionInspectionRecord" %>
|
||||||
|
|
||||||
|
<!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="DrawingNumber" 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="ProfessionalEngineering" DataField="ProfessionalEngineering" SortField="ProfessionalEngineering"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="220px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="施工图号" ColumnID="DrawingNumber" DataField="DrawingNumber" SortField="DrawingNumber"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="220px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="检查结果" ColumnID="InspectionResults" DataField="InspectionResults" SortField="InspectionResults"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="260px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="备注" ColumnID="Remark" DataField="Remark" SortField="Remark"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="220px">
|
||||||
|
</f:RenderField>
|
||||||
|
</Columns>
|
||||||
|
<Listeners>
|
||||||
|
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||||
|
</Listeners>
|
||||||
|
<PageItems>
|
||||||
|
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||||
|
</f:ToolbarSeparator>
|
||||||
|
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||||
|
</f:ToolbarText>
|
||||||
|
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||||
|
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||||
|
<f:ListItem Text="10" Value="10" />
|
||||||
|
<f:ListItem Text="15" Value="15" />
|
||||||
|
<f:ListItem Text="20" Value="20" />
|
||||||
|
<f:ListItem Text="25" Value="25" />
|
||||||
|
</f:DropDownList>
|
||||||
|
</PageItems>
|
||||||
|
</f:Grid>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
<f:Window ID="Window1" Title="管道预制施工检查记录" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
|
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||||
|
Width="900px" Height="600px">
|
||||||
|
</f:Window>
|
||||||
|
<f:Window ID="WindowPrint" Title="打印管道预制施工检查记录" Hidden="true" EnableIFrame="true" EnableMaximize="false"
|
||||||
|
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
|
||||||
|
Height="600px">
|
||||||
|
</f:Window>
|
||||||
|
<f:Menu ID="Menu1" runat="server">
|
||||||
|
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
||||||
|
runat="server" Text="编辑" Icon="TableEdit">
|
||||||
|
</f:MenuButton>
|
||||||
|
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||||
|
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
|
||||||
|
</f:MenuButton>
|
||||||
|
</f:Menu>
|
||||||
|
</form>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var menuID = '<%= Menu1.ClientID %>';
|
||||||
|
// 返回false,来阻止浏览器右键菜单
|
||||||
|
function onRowContextMenu(event, rowId) {
|
||||||
|
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,401 @@
|
||||||
|
using BLL;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Data.SqlClient;
|
||||||
|
using System.Data;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.JGZL
|
||||||
|
{
|
||||||
|
public partial class PipelinePrefabricationConstructionInspectionRecord : PageBase
|
||||||
|
{
|
||||||
|
#region 加载页面
|
||||||
|
/// <summary>
|
||||||
|
/// 加载页面
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||||
|
|
||||||
|
this.drpProjectId.DataTextField = "ProjectCode";
|
||||||
|
this.drpProjectId.DataValueField = "ProjectId";
|
||||||
|
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||||
|
this.drpProjectId.DataBind();
|
||||||
|
Funs.FineUIPleaseSelect(this.drpProjectId);
|
||||||
|
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
|
||||||
|
this.InitTreeMenu();//加载树
|
||||||
|
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
||||||
|
this.BindGrid();
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 加载树项目
|
||||||
|
/// <summary>
|
||||||
|
/// 加载树
|
||||||
|
/// </summary>
|
||||||
|
private void InitTreeMenu()
|
||||||
|
{
|
||||||
|
this.tvControlItem.Nodes.Clear();
|
||||||
|
TreeNode rootNode = new TreeNode();
|
||||||
|
rootNode.Text = "项目";
|
||||||
|
rootNode.ToolTip = "项目";
|
||||||
|
rootNode.NodeID = "0";
|
||||||
|
rootNode.Expanded = true;
|
||||||
|
this.tvControlItem.Nodes.Add(rootNode);
|
||||||
|
|
||||||
|
List<Model.Base_Project> projects = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||||
|
if (this.drpProjectId.SelectedValue != BLL.Const._Null)
|
||||||
|
{
|
||||||
|
projects = projects.Where(e => e.ProjectId == this.drpProjectId.SelectedValue).ToList();
|
||||||
|
}
|
||||||
|
foreach (var item in projects)
|
||||||
|
{
|
||||||
|
TreeNode rootProjectNode = new TreeNode();//定义根节点
|
||||||
|
rootProjectNode.Text = item.ProjectCode;
|
||||||
|
rootProjectNode.NodeID = item.ProjectId;
|
||||||
|
rootProjectNode.EnableClickEvent = true;
|
||||||
|
rootProjectNode.Expanded = true;
|
||||||
|
rootProjectNode.ToolTip = item.ProjectName;
|
||||||
|
rootProjectNode.CommandName = "项目名称";
|
||||||
|
rootNode.Nodes.Add(rootProjectNode);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 点击TreeView
|
||||||
|
/// <summary>
|
||||||
|
/// 点击TreeView
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||||
|
{
|
||||||
|
if (this.tvControlItem.SelectedNodeID != "0")
|
||||||
|
{
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 数据绑定
|
||||||
|
/// <summary>
|
||||||
|
/// 数据绑定
|
||||||
|
/// </summary>
|
||||||
|
private void BindGrid()
|
||||||
|
{
|
||||||
|
//string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1");
|
||||||
|
string strSql = @"SELECT * from JGZL_PipelinePrefabricationConstructionInspectionRecord where 1=1";
|
||||||
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
|
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||||
|
{
|
||||||
|
strSql += " AND ProjectId = @ProjectId";
|
||||||
|
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
|
||||||
|
}
|
||||||
|
//else
|
||||||
|
//{
|
||||||
|
// strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 ";
|
||||||
|
// listStr.Add(new SqlParameter("@ProjectId", projectIds));
|
||||||
|
//}
|
||||||
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
|
// 2.获取当前分页数据
|
||||||
|
Grid1.RecordCount = tb.Rows.Count;
|
||||||
|
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||||
|
var table = this.GetPagedDataTable(Grid1, tb);
|
||||||
|
Grid1.DataSource = table;
|
||||||
|
Grid1.DataBind();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 分页排序
|
||||||
|
#region 页索引改变事件
|
||||||
|
/// <summary>
|
||||||
|
/// 页索引改变事件
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 排序
|
||||||
|
/// <summary>
|
||||||
|
/// 排序
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 分页选择下拉改变事件
|
||||||
|
/// <summary>
|
||||||
|
/// 分页选择下拉改变事件
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 查询
|
||||||
|
///<summary>
|
||||||
|
///查询
|
||||||
|
///</summary>
|
||||||
|
///<param name="sender"></param>
|
||||||
|
///<param name="e"></param>
|
||||||
|
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.InitTreeMenu();
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查询
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 打印
|
||||||
|
/// <summary>
|
||||||
|
/// 打印
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnPrint_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string projectId = this.tvControlItem.SelectedNodeID;
|
||||||
|
|
||||||
|
if (projectId != null)
|
||||||
|
{
|
||||||
|
string initTemplatePath = "";
|
||||||
|
string rootPath = Server.MapPath("~/");
|
||||||
|
BLL.Common.FastReportService.ResetData();
|
||||||
|
|
||||||
|
string strSql = @"SELECT * from JGZL_PipelinePrefabricationConstructionInspectionRecord where ProjectId = @ProjectId order by DrawingNumber desc";
|
||||||
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
|
listStr.Add(new SqlParameter("@ProjectId", projectId));
|
||||||
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
|
|
||||||
|
DataTable dt = new DataTable();
|
||||||
|
dt.TableName = "Data";
|
||||||
|
dt.Columns.Add("Num");
|
||||||
|
dt.Columns.Add("ConcealedWorks");
|
||||||
|
dt.Columns.Add("DrawingNumber");
|
||||||
|
dt.Columns.Add("ConcealedContentAndDiagram");
|
||||||
|
dt.Columns.Add("InspectionResults");
|
||||||
|
dt.Columns.Add("Remark");
|
||||||
|
|
||||||
|
DataRow[] rows = tb.DefaultView.ToTable().Select();
|
||||||
|
int i = 0;
|
||||||
|
foreach (var row in rows)
|
||||||
|
{
|
||||||
|
var newRow = dt.NewRow();
|
||||||
|
newRow["Num"] = (i + 1).ToString();
|
||||||
|
newRow["ConcealedWorks"] = row["ConcealedWorks"].ToString();
|
||||||
|
newRow["DrawingNumber"] = row["DrawingNumber"].ToString();
|
||||||
|
newRow["ConcealedContentAndDiagram"] = row["ConcealedContentAndDiagram"].ToString();
|
||||||
|
newRow["Remark"] = row["Remark"].ToString();
|
||||||
|
dt.Rows.Add(newRow);
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
BLL.Common.FastReportService.AddFastreportTable(dt);
|
||||||
|
|
||||||
|
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||||
|
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
|
||||||
|
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
||||||
|
|
||||||
|
initTemplatePath = "File\\Fastreport\\JGZL\\管道预制施工检查记录.frx";
|
||||||
|
if (File.Exists(rootPath + initTemplatePath))
|
||||||
|
{
|
||||||
|
PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#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("PipelinePrefabricationConstructionInspectionRecordEdit.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_PipelinePrefabricationConstructionInspectionRecordMenuId, BLL.Const.BtnModify))
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||||
|
{
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PipelinePrefabricationConstructionInspectionRecordEdit.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_PipelinePrefabricationConstructionInspectionRecordMenuId, BLL.Const.BtnModify))
|
||||||
|
{
|
||||||
|
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PipelinePrefabricationConstructionInspectionRecordEdit.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_PipelinePrefabricationConstructionInspectionRecordMenuId, 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.PipelinePrefabricationConstructionInspectionRecordService.DeletePipelinePrefabricationConstructionInspectionRecordById(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/PipelinePrefabricationConstructionInspectionRecord.aspx.designer.cs
generated
Normal file
206
HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecord.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,206 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.JGZL
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class PipelinePrefabricationConstructionInspectionRecord
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <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,51 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PipelinePrefabricationConstructionInspectionRecordEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.PipelinePrefabricationConstructionInspectionRecordEdit" %>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head runat="server">
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<title>编辑管道预制施工检查记录</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||||
|
<f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true" BodyPadding="10px"
|
||||||
|
runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar1" Position="Bottom" runat="server" ToolbarAlign="Right">
|
||||||
|
<Items>
|
||||||
|
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||||
|
</f:ToolbarFill>
|
||||||
|
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
|
||||||
|
OnClick="btnSave_Click">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtDrawingNumber" runat="server" Label="施工图号" LabelAlign="Right" LabelWidth="150px" MaxLength="20" Required="true" ShowRedStar="true"></f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtProfessionalEngineering" runat="server" Label="专业工程" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtInspectionResults" runat="server" Label="检查结果" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Height="120px"></f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtRemark" runat="server" Label="备注" LabelAlign="Right" LabelWidth="150px" MaxLength="500"></f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
</f:Form>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,110 @@
|
||||||
|
using BLL;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.JGZL
|
||||||
|
{
|
||||||
|
public partial class PipelinePrefabricationConstructionInspectionRecordEdit : 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.PipelinePrefabricationConstructionInspectionRecordService.GetPipelinePrefabricationConstructionInspectionRecordById(this.RecordId);
|
||||||
|
if (report != null)
|
||||||
|
{
|
||||||
|
this.txtDrawingNumber.Text = report.DrawingNumber;
|
||||||
|
this.txtProfessionalEngineering.Text = report.ProfessionalEngineering;
|
||||||
|
this.txtInspectionResults.Text = report.InspectionResults;
|
||||||
|
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_PipelinePrefabricationConstructionInspectionRecordMenuId, Const.BtnSave))
|
||||||
|
{
|
||||||
|
Model.JGZL_PipelinePrefabricationConstructionInspectionRecord newReport = new Model.JGZL_PipelinePrefabricationConstructionInspectionRecord();
|
||||||
|
newReport.DrawingNumber = this.txtDrawingNumber.Text.Trim();
|
||||||
|
newReport.ProfessionalEngineering = this.txtProfessionalEngineering.Text.Trim();
|
||||||
|
newReport.InspectionResults = this.txtInspectionResults.Text.Trim();
|
||||||
|
newReport.Remark = this.txtRemark.Text.Trim();
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(this.RecordId))
|
||||||
|
{
|
||||||
|
newReport.RecordId = this.RecordId;
|
||||||
|
BLL.PipelinePrefabricationConstructionInspectionRecordService.UpdatePipelinePrefabricationConstructionInspectionRecord(newReport);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
newReport.ProjectId = this.ProjectId;
|
||||||
|
newReport.CompileMan = this.CurrUser.UserId;
|
||||||
|
newReport.CompileDate = DateTime.Now;
|
||||||
|
newReport.Reviewer = this.CurrUser.UserId;
|
||||||
|
newReport.RevieweDate = DateTime.Now;
|
||||||
|
newReport.RecordId = SQLHelper.GetNewID(typeof(Model.JGZL_PipelinePrefabricationConstructionInspectionRecord));
|
||||||
|
this.RecordId = newReport.RecordId;
|
||||||
|
BLL.PipelinePrefabricationConstructionInspectionRecordService.AddPipelinePrefabricationConstructionInspectionRecord(newReport);
|
||||||
|
}
|
||||||
|
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||||
|
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
107
HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecordEdit.aspx.designer.cs
generated
Normal file
107
HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecordEdit.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,107 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.JGZL
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class PipelinePrefabricationConstructionInspectionRecordEdit
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// form1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// PageManager1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.PageManager PageManager1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// SimpleForm1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Form SimpleForm1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ToolbarFill1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnSave 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnSave;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtDrawingNumber 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtDrawingNumber;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtProfessionalEngineering 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtProfessionalEngineering;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtInspectionResults 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtInspectionResults;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtRemark 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtRemark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,127 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProcessHandoverRecord.aspx.cs" Inherits="FineUIPro.Web.JGZL.ProcessHandoverRecord" %>
|
||||||
|
|
||||||
|
<!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="ExecutionStandard" DataField="ExecutionStandard" SortField="ExecutionStandard"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="200px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="组织单位/部门" ColumnID="OrganizationalUnit" DataField="OrganizationalUnit" SortField="OrganizationalUnit"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="200px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="交出单位" ColumnID="HandoverUnit" DataField="HandoverUnit" SortField="HandoverUnit"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="220px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="接收单位" ColumnID="ReceivingUnit" DataField="ReceivingUnit" SortField="ReceivingUnit"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="220px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="交出内容及自检结果" ColumnID="InspectionResults" DataField="InspectionResults" SortField="InspectionResults"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="220px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="接收单位意见" ColumnID="ReceivingUnitOpinions" DataField="ReceivingUnitOpinions" SortField="ReceivingUnitOpinions"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="220px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="备注" ColumnID="Remark" DataField="Remark" SortField="Remark"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="180px">
|
||||||
|
</f:RenderField>
|
||||||
|
</Columns>
|
||||||
|
<Listeners>
|
||||||
|
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||||
|
</Listeners>
|
||||||
|
<PageItems>
|
||||||
|
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||||
|
</f:ToolbarSeparator>
|
||||||
|
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||||
|
</f:ToolbarText>
|
||||||
|
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||||
|
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||||
|
<f:ListItem Text="10" Value="10" />
|
||||||
|
<f:ListItem Text="15" Value="15" />
|
||||||
|
<f:ListItem Text="20" Value="20" />
|
||||||
|
<f:ListItem Text="25" Value="25" />
|
||||||
|
</f:DropDownList>
|
||||||
|
</PageItems>
|
||||||
|
</f:Grid>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
<f:Window ID="Window1" Title="工序交接记录" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
|
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||||
|
Width="900px" Height="600px">
|
||||||
|
</f:Window>
|
||||||
|
<f:Window ID="WindowPrint" Title="打印工序交接记录" Hidden="true" EnableIFrame="true" EnableMaximize="false"
|
||||||
|
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
|
||||||
|
Height="600px">
|
||||||
|
</f:Window>
|
||||||
|
<f:Menu ID="Menu1" runat="server">
|
||||||
|
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
||||||
|
runat="server" Text="编辑" Icon="TableEdit">
|
||||||
|
</f:MenuButton>
|
||||||
|
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||||
|
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
|
||||||
|
</f:MenuButton>
|
||||||
|
</f:Menu>
|
||||||
|
</form>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var menuID = '<%= Menu1.ClientID %>';
|
||||||
|
// 返回false,来阻止浏览器右键菜单
|
||||||
|
function onRowContextMenu(event, rowId) {
|
||||||
|
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,401 @@
|
||||||
|
using BLL;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Data.SqlClient;
|
||||||
|
using System.Data;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.JGZL
|
||||||
|
{
|
||||||
|
public partial class ProcessHandoverRecord : PageBase
|
||||||
|
{
|
||||||
|
#region 加载页面
|
||||||
|
/// <summary>
|
||||||
|
/// 加载页面
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||||
|
|
||||||
|
this.drpProjectId.DataTextField = "ProjectCode";
|
||||||
|
this.drpProjectId.DataValueField = "ProjectId";
|
||||||
|
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||||
|
this.drpProjectId.DataBind();
|
||||||
|
Funs.FineUIPleaseSelect(this.drpProjectId);
|
||||||
|
|
||||||
|
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
|
||||||
|
this.InitTreeMenu();//加载树
|
||||||
|
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 加载树项目
|
||||||
|
/// <summary>
|
||||||
|
/// 加载树
|
||||||
|
/// </summary>
|
||||||
|
private void InitTreeMenu()
|
||||||
|
{
|
||||||
|
this.tvControlItem.Nodes.Clear();
|
||||||
|
TreeNode rootNode = new TreeNode();
|
||||||
|
rootNode.Text = "项目";
|
||||||
|
rootNode.ToolTip = "项目";
|
||||||
|
rootNode.NodeID = "0";
|
||||||
|
rootNode.Expanded = true;
|
||||||
|
this.tvControlItem.Nodes.Add(rootNode);
|
||||||
|
|
||||||
|
List<Model.Base_Project> projects = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||||
|
if (this.drpProjectId.SelectedValue != BLL.Const._Null)
|
||||||
|
{
|
||||||
|
projects = projects.Where(e => e.ProjectId == this.drpProjectId.SelectedValue).ToList();
|
||||||
|
}
|
||||||
|
foreach (var item in projects)
|
||||||
|
{
|
||||||
|
TreeNode rootProjectNode = new TreeNode();//定义根节点
|
||||||
|
rootProjectNode.Text = item.ProjectCode;
|
||||||
|
rootProjectNode.NodeID = item.ProjectId;
|
||||||
|
rootProjectNode.EnableClickEvent = true;
|
||||||
|
rootProjectNode.Expanded = true;
|
||||||
|
rootProjectNode.ToolTip = item.ProjectName;
|
||||||
|
rootProjectNode.CommandName = "项目名称";
|
||||||
|
rootNode.Nodes.Add(rootProjectNode);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 点击TreeView
|
||||||
|
/// <summary>
|
||||||
|
/// 点击TreeView
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||||
|
{
|
||||||
|
if (this.tvControlItem.SelectedNodeID != "0")
|
||||||
|
{
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 数据绑定
|
||||||
|
/// <summary>
|
||||||
|
/// 数据绑定
|
||||||
|
/// </summary>
|
||||||
|
private void BindGrid()
|
||||||
|
{
|
||||||
|
//string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1");
|
||||||
|
string strSql = @"SELECT * from JGZL_ProcessHandoverRecord where 1=1";
|
||||||
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
|
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||||
|
{
|
||||||
|
strSql += " AND ProjectId = @ProjectId";
|
||||||
|
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
|
||||||
|
}
|
||||||
|
//else
|
||||||
|
//{
|
||||||
|
// strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 ";
|
||||||
|
// listStr.Add(new SqlParameter("@ProjectId", projectIds));
|
||||||
|
//}
|
||||||
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
|
// 2.获取当前分页数据
|
||||||
|
Grid1.RecordCount = tb.Rows.Count;
|
||||||
|
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||||
|
var table = this.GetPagedDataTable(Grid1, tb);
|
||||||
|
Grid1.DataSource = table;
|
||||||
|
Grid1.DataBind();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 分页排序
|
||||||
|
#region 页索引改变事件
|
||||||
|
/// <summary>
|
||||||
|
/// 页索引改变事件
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 排序
|
||||||
|
/// <summary>
|
||||||
|
/// 排序
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 分页选择下拉改变事件
|
||||||
|
/// <summary>
|
||||||
|
/// 分页选择下拉改变事件
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 查询
|
||||||
|
///<summary>
|
||||||
|
///查询
|
||||||
|
///</summary>
|
||||||
|
///<param name="sender"></param>
|
||||||
|
///<param name="e"></param>
|
||||||
|
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.InitTreeMenu();
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查询
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 打印
|
||||||
|
/// <summary>
|
||||||
|
/// 打印
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnPrint_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string projectId = this.tvControlItem.SelectedNodeID;
|
||||||
|
|
||||||
|
if (projectId != null)
|
||||||
|
{
|
||||||
|
string initTemplatePath = "";
|
||||||
|
string rootPath = Server.MapPath("~/");
|
||||||
|
BLL.Common.FastReportService.ResetData();
|
||||||
|
|
||||||
|
string strSql = @"SELECT * from JGZL_ProcessHandoverRecord where ProjectId = @ProjectId order by DrawingNumber desc";
|
||||||
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
|
listStr.Add(new SqlParameter("@ProjectId", projectId));
|
||||||
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
|
|
||||||
|
DataTable dt = new DataTable();
|
||||||
|
dt.TableName = "Data";
|
||||||
|
dt.Columns.Add("Num");
|
||||||
|
dt.Columns.Add("ConcealedWorks");
|
||||||
|
dt.Columns.Add("DrawingNumber");
|
||||||
|
dt.Columns.Add("ConcealedContentAndDiagram");
|
||||||
|
dt.Columns.Add("InspectionResults");
|
||||||
|
dt.Columns.Add("Remark");
|
||||||
|
|
||||||
|
DataRow[] rows = tb.DefaultView.ToTable().Select();
|
||||||
|
int i = 0;
|
||||||
|
foreach (var row in rows)
|
||||||
|
{
|
||||||
|
var newRow = dt.NewRow();
|
||||||
|
newRow["Num"] = (i + 1).ToString();
|
||||||
|
newRow["ConcealedWorks"] = row["ConcealedWorks"].ToString();
|
||||||
|
newRow["DrawingNumber"] = row["DrawingNumber"].ToString();
|
||||||
|
newRow["ConcealedContentAndDiagram"] = row["ConcealedContentAndDiagram"].ToString();
|
||||||
|
newRow["Remark"] = row["Remark"].ToString();
|
||||||
|
dt.Rows.Add(newRow);
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
BLL.Common.FastReportService.AddFastreportTable(dt);
|
||||||
|
|
||||||
|
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||||
|
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
|
||||||
|
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
||||||
|
|
||||||
|
initTemplatePath = "File\\Fastreport\\JGZL\\工序交接记录.frx";
|
||||||
|
if (File.Exists(rootPath + initTemplatePath))
|
||||||
|
{
|
||||||
|
PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#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("ProcessHandoverRecordEdit.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_ProcessHandoverRecordMenuId, BLL.Const.BtnModify))
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||||
|
{
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ProcessHandoverRecordEdit.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_ProcessHandoverRecordMenuId, BLL.Const.BtnModify))
|
||||||
|
{
|
||||||
|
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ProcessHandoverRecordEdit.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_ProcessHandoverRecordMenuId, 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.ProcessHandoverRecordService.DeleteProcessHandoverRecordById(rowID);
|
||||||
|
BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除工序交接记录");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (isDelete)
|
||||||
|
{
|
||||||
|
ShowNotify("删除成功!", MessageBoxIcon.Success);
|
||||||
|
}
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#region 判断是否可删除
|
||||||
|
/// <summary>
|
||||||
|
/// 判断是否可以删除
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
private bool judgementDelete(string id, bool isShow)
|
||||||
|
{
|
||||||
|
string content = string.Empty;
|
||||||
|
|
||||||
|
if (string.IsNullOrEmpty(content))
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (isShow)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop(content, MessageBoxIcon.Error);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 关闭弹出窗口及刷新页面
|
||||||
|
/// <summary>
|
||||||
|
/// 关闭弹出窗口
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||||
|
{
|
||||||
|
this.InitTreeMenu();//加载树
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,206 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.JGZL
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class ProcessHandoverRecord
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <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,66 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProcessHandoverRecordEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.ProcessHandoverRecordEdit" %>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head runat="server">
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<title>编辑工序交接记录</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||||
|
<f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true" BodyPadding="10px"
|
||||||
|
runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar1" Position="Bottom" runat="server" ToolbarAlign="Right">
|
||||||
|
<Items>
|
||||||
|
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||||
|
</f:ToolbarFill>
|
||||||
|
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
|
||||||
|
OnClick="btnSave_Click">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtExecutionStandard" runat="server" Label="执行标准" LabelAlign="Right" LabelWidth="150px" MaxLength="20" Required="true" ShowRedStar="true"></f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtOrganizationalUnit" runat="server" Label="组织单位/部门" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtHandoverUnit" runat="server" Label="交出单位" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtReceivingUnit" runat="server" Label="接收单位" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtInspectionResults" runat="server" Label="交出内容及自检结果" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Height="150px"></f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtReceivingUnitOpinions" runat="server" Label="接收单位意见" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Height="100px"></f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtRemark" runat="server" Label="备注" LabelAlign="Right" LabelWidth="150px" MaxLength="500"></f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
</f:Form>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,116 @@
|
||||||
|
using BLL;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.JGZL
|
||||||
|
{
|
||||||
|
public partial class ProcessHandoverRecordEdit : 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.ProcessHandoverRecordService.GetProcessHandoverRecordById(this.RecordId);
|
||||||
|
if (report != null)
|
||||||
|
{
|
||||||
|
this.txtExecutionStandard.Text = report.ExecutionStandard;
|
||||||
|
this.txtOrganizationalUnit.Text = report.OrganizationalUnit;
|
||||||
|
this.txtHandoverUnit.Text = report.HandoverUnit;
|
||||||
|
this.txtReceivingUnit.Text = report.ReceivingUnit;
|
||||||
|
this.txtInspectionResults.Text = report.InspectionResults;
|
||||||
|
this.txtReceivingUnitOpinions.Text = report.ReceivingUnitOpinions;
|
||||||
|
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_ProcessHandoverRecordMenuId, Const.BtnSave))
|
||||||
|
{
|
||||||
|
Model.JGZL_ProcessHandoverRecord newReport = new Model.JGZL_ProcessHandoverRecord();
|
||||||
|
newReport.ExecutionStandard = this.txtExecutionStandard.Text.Trim();
|
||||||
|
newReport.OrganizationalUnit = this.txtOrganizationalUnit.Text.Trim();
|
||||||
|
newReport.HandoverUnit = this.txtHandoverUnit.Text.Trim();
|
||||||
|
newReport.ReceivingUnit = this.txtReceivingUnit.Text.Trim();
|
||||||
|
newReport.InspectionResults = this.txtInspectionResults.Text.Trim();
|
||||||
|
newReport.ReceivingUnitOpinions = this.txtReceivingUnitOpinions.Text.Trim();
|
||||||
|
newReport.Remark = this.txtRemark.Text.Trim();
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(this.RecordId))
|
||||||
|
{
|
||||||
|
newReport.RecordId = this.RecordId;
|
||||||
|
BLL.ProcessHandoverRecordService.UpdateProcessHandoverRecord(newReport);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
newReport.ProjectId = this.ProjectId;
|
||||||
|
newReport.CompileMan = this.CurrUser.UserId;
|
||||||
|
newReport.CompileDate = DateTime.Now;
|
||||||
|
newReport.Reviewer = this.CurrUser.UserId;
|
||||||
|
newReport.RevieweDate = DateTime.Now;
|
||||||
|
newReport.RecordId = SQLHelper.GetNewID(typeof(Model.JGZL_ProcessHandoverRecord));
|
||||||
|
this.RecordId = newReport.RecordId;
|
||||||
|
BLL.ProcessHandoverRecordService.AddProcessHandoverRecord(newReport);
|
||||||
|
}
|
||||||
|
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||||
|
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,134 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.JGZL
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class ProcessHandoverRecordEdit
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// form1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// PageManager1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.PageManager PageManager1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// SimpleForm1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Form SimpleForm1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ToolbarFill1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnSave 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnSave;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtExecutionStandard 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtExecutionStandard;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOrganizationalUnit 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtOrganizationalUnit;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtHandoverUnit 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtHandoverUnit;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtReceivingUnit 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtReceivingUnit;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtInspectionResults 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtInspectionResults;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtReceivingUnitOpinions 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtReceivingUnitOpinions;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtRemark 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtRemark;
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue