提交代码
This commit is contained in:
parent
47f9a0e959
commit
42d3d45c5c
|
@ -0,0 +1,393 @@
|
||||||
|
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||||
|
VALUES('2E58D4F1-2FF1-450E-8A00-1CE3BBCF8D4B','动火作业票','HSSE/License/FireWork.aspx',10,'473A87D2-1365-4A68-BD38-06F312F81BC2','Menu_HSSE',0,1,1)
|
||||||
|
GO
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('8DB0EAED-B67D-423A-BA13-E7872A11727A','2E58D4F1-2FF1-450E-8A00-1CE3BBCF8D4B','增加',1)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('F0283058-2CCF-4195-AEBC-878A2AE5067F','2E58D4F1-2FF1-450E-8A00-1CE3BBCF8D4B','修改',2)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('2C3CD3AA-C07D-439F-97BE-FEA20CE512CB','2E58D4F1-2FF1-450E-8A00-1CE3BBCF8D4B','删除',3)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('BBB22814-70D3-4188-A7F8-8C0FD4557A27','2E58D4F1-2FF1-450E-8A00-1CE3BBCF8D4B','保存',4)
|
||||||
|
GO
|
||||||
|
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||||
|
VALUES('DA1CAE8E-B5BF-4AC0-9996-AF6CAA412CA9','高处作业票','HSSE/License/HeightWork.aspx',20,'473A87D2-1365-4A68-BD38-06F312F81BC2','Menu_HSSE',0,1,1)
|
||||||
|
GO
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('B3CD11DC-D359-4D60-8DB4-BD095CE52C17','DA1CAE8E-B5BF-4AC0-9996-AF6CAA412CA9','增加',1)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('6D9B6919-0677-4892-9C73-CDD6C124B855','DA1CAE8E-B5BF-4AC0-9996-AF6CAA412CA9','修改',2)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('044C6FF2-2A30-4E08-88A6-9D85722AD89C','DA1CAE8E-B5BF-4AC0-9996-AF6CAA412CA9','删除',3)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('7C06CD77-402A-4F8C-A41B-1C69301707E5','DA1CAE8E-B5BF-4AC0-9996-AF6CAA412CA9','保存',4)
|
||||||
|
GO
|
||||||
|
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||||
|
VALUES('AEC9166D-1C91-45F0-8BFE-D3D0479A28C7','受限空间作业票','HSSE/License/LimitedSpace.aspx',30,'473A87D2-1365-4A68-BD38-06F312F81BC2','Menu_HSSE',0,1,1)
|
||||||
|
GO
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('904FD3D2-1520-48FB-BD8F-6BAA000653B7','AEC9166D-1C91-45F0-8BFE-D3D0479A28C7','增加',1)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('7F372BE4-E264-48FB-ACA6-8E7EE41393EC','AEC9166D-1C91-45F0-8BFE-D3D0479A28C7','修改',2)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('BE6D9AE8-069A-421A-8E3D-F3DDC18FCDB4','AEC9166D-1C91-45F0-8BFE-D3D0479A28C7','删除',3)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('8CC252A0-F098-4FE3-AF21-4A7A7030DC5E','AEC9166D-1C91-45F0-8BFE-D3D0479A28C7','保存',4)
|
||||||
|
GO
|
||||||
|
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||||
|
VALUES('F72FF20B-D3EB-46A5-97F7-C99B2473A140','射线作业票','HSSE/License/RadialWork.aspx',40,'473A87D2-1365-4A68-BD38-06F312F81BC2','Menu_HSSE',0,1,1)
|
||||||
|
GO
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('107EA8EA-4D8D-410B-B3DE-F0C29E9C3EDC','F72FF20B-D3EB-46A5-97F7-C99B2473A140','增加',1)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('89010EF9-9E77-49EB-A00D-3142B9FBC29E','F72FF20B-D3EB-46A5-97F7-C99B2473A140','修改',2)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('F5EFEB84-7CCC-406D-ACFA-CA36CB6A8A1D','F72FF20B-D3EB-46A5-97F7-C99B2473A140','删除',3)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('982333DA-42A2-40A3-8F3D-52BA7DE4E19D','F72FF20B-D3EB-46A5-97F7-C99B2473A140','保存',4)
|
||||||
|
GO
|
||||||
|
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||||
|
VALUES('4E607E83-41FC-4F49-B26F-A21CFE38328F','断路(占道)作业票','HSSE/License/OpenCircuit.aspx',60,'473A87D2-1365-4A68-BD38-06F312F81BC2','Menu_HSSE',0,1,1)
|
||||||
|
GO
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('6D90E4CD-D932-454A-8A8B-54FA3CC22FD4','4E607E83-41FC-4F49-B26F-A21CFE38328F','增加',1)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('53BF21A8-38DA-4853-A527-8D392B901554','4E607E83-41FC-4F49-B26F-A21CFE38328F','修改',2)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('06F8CEAB-7AF8-40C5-B6D0-6A91AE562AD7','4E607E83-41FC-4F49-B26F-A21CFE38328F','删除',3)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('C8BE46DF-2553-4A64-BE79-B69712C297A5','4E607E83-41FC-4F49-B26F-A21CFE38328F','保存',4)
|
||||||
|
GO
|
||||||
|
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||||
|
VALUES('755C6AC9-2E38-4D4F-AF33-33CB1744A907','动土作业票','HSSE/License/BreakGround.aspx',70,'473A87D2-1365-4A68-BD38-06F312F81BC2','Menu_HSSE',0,1,1)
|
||||||
|
GO
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('F3D52EF3-104F-42CF-B48A-443FCE5C800D','755C6AC9-2E38-4D4F-AF33-33CB1744A907','增加',1)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('7DFD6886-0F8B-4DA1-9C4B-1847A8B286AF','755C6AC9-2E38-4D4F-AF33-33CB1744A907','修改',2)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('F5F93A18-438F-4A19-982B-7E9E38EB6AE2','755C6AC9-2E38-4D4F-AF33-33CB1744A907','删除',3)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('32937824-9F35-4C4E-8E13-984E784F8E9C','755C6AC9-2E38-4D4F-AF33-33CB1744A907','保存',4)
|
||||||
|
GO
|
||||||
|
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||||
|
VALUES('7BBAE649-7B00-4475-A911-BFE3A37AC55B','夜间施工作业票','HSSE/License/NightWork.aspx',80,'473A87D2-1365-4A68-BD38-06F312F81BC2','Menu_HSSE',0,1,1)
|
||||||
|
GO
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('B040C80B-4216-4AF8-B9C9-A1303E31CFAC','7BBAE649-7B00-4475-A911-BFE3A37AC55B','增加',1)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('60241503-BF4B-4159-AFA2-41186CD9329B','7BBAE649-7B00-4475-A911-BFE3A37AC55B','修改',2)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('3A192DC6-2338-4038-ADAD-46FA7364E20F','7BBAE649-7B00-4475-A911-BFE3A37AC55B','删除',3)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('6239BB95-33AF-4B36-97CB-787EF553D35A','7BBAE649-7B00-4475-A911-BFE3A37AC55B','保存',4)
|
||||||
|
GO
|
||||||
|
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||||
|
VALUES('A1BE3AB6-9D4A-41E7-8870-E73423165451','吊装作业票','HSSE/License/LiftingWork.aspx',80,'473A87D2-1365-4A68-BD38-06F312F81BC2','Menu_HSSE',0,1,1)
|
||||||
|
GO
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('BDC9E201-0C51-4C02-9151-B6DF86CE4C27','A1BE3AB6-9D4A-41E7-8870-E73423165451','增加',1)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('36EBA247-3051-4213-BD95-89DC948006E1','A1BE3AB6-9D4A-41E7-8870-E73423165451','修改',2)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('46A93981-2D60-49C3-877A-7B66EBCBC927','A1BE3AB6-9D4A-41E7-8870-E73423165451','删除',3)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('3C5F18F7-459A-4666-B497-9400E637C975','A1BE3AB6-9D4A-41E7-8870-E73423165451','保存',4)
|
||||||
|
GO
|
||||||
|
|
||||||
|
update sys_menu set menuname='HSSE事故处理' where menuname ='HSSE事故(含未遂)处理'
|
||||||
|
|
||||||
|
--增加动火作业表字段
|
||||||
|
--单项工程
|
||||||
|
ALTER TABLE License_FireWork
|
||||||
|
ADD WorkAreaId nvarchar(500) null;
|
||||||
|
--动火原因
|
||||||
|
ALTER TABLE License_FireWork
|
||||||
|
ADD Reason nvarchar(500) null;
|
||||||
|
--动火作业级别
|
||||||
|
ALTER TABLE License_FireWork
|
||||||
|
ADD FireLevel nvarchar(20) null;
|
||||||
|
|
||||||
|
|
||||||
|
--受限空间
|
||||||
|
--单项工程
|
||||||
|
ALTER TABLE License_LimitedSpace
|
||||||
|
ADD WorkAreaId nvarchar(500) null;
|
||||||
|
--空间内介质描述
|
||||||
|
ALTER TABLE License_LimitedSpace
|
||||||
|
ADD LimitedDescribe nvarchar(500) null;
|
||||||
|
--是否存在其它介质
|
||||||
|
ALTER TABLE License_LimitedSpace
|
||||||
|
ADD IsBoolOther bit null;
|
||||||
|
--作业是否耗氧或产生其它有毒有害气体
|
||||||
|
ALTER TABLE License_LimitedSpace
|
||||||
|
ADD IsBoolHarmfulGas bit null;
|
||||||
|
--氧含量测试结果
|
||||||
|
ALTER TABLE License_LimitedSpace
|
||||||
|
ADD TestResult nvarchar(500) null;
|
||||||
|
--测试时间
|
||||||
|
ALTER TABLE License_LimitedSpace
|
||||||
|
ADD TestDate datetime null;
|
||||||
|
--测试人
|
||||||
|
ALTER TABLE License_LimitedSpace
|
||||||
|
ADD TestPerson nvarchar(100) null;
|
||||||
|
--通风措施
|
||||||
|
ALTER TABLE License_LimitedSpace
|
||||||
|
ADD VenStep nvarchar(20) null;
|
||||||
|
|
||||||
|
|
||||||
|
--动土作业票
|
||||||
|
--单项工程
|
||||||
|
ALTER TABLE License_BreakGround
|
||||||
|
ADD WorkAreaId nvarchar(500) null;
|
||||||
|
--原因
|
||||||
|
ALTER TABLE License_BreakGround
|
||||||
|
ADD Reason nvarchar(500) null;
|
||||||
|
--监护人姓名
|
||||||
|
ALTER TABLE License_BreakGround
|
||||||
|
ADD FireWatchManName nvarchar(500) null;
|
||||||
|
|
||||||
|
|
||||||
|
--高处作业票
|
||||||
|
--单项工程
|
||||||
|
ALTER TABLE License_HeightWork
|
||||||
|
ADD WorkAreaId nvarchar(500) null;
|
||||||
|
--作业点高度
|
||||||
|
ALTER TABLE License_HeightWork
|
||||||
|
ADD WorkHeight nvarchar(20) null;
|
||||||
|
--高处作业级别
|
||||||
|
ALTER TABLE License_HeightWork
|
||||||
|
ADD HeightLevel nvarchar(20) null;
|
||||||
|
--监护人姓名
|
||||||
|
ALTER TABLE License_HeightWork
|
||||||
|
ADD FireWatchManName nvarchar(500) null;
|
||||||
|
|
||||||
|
--负责人姓名
|
||||||
|
ALTER TABLE License_HeightWork
|
||||||
|
ADD WorkLeaderName nvarchar(200) null;
|
||||||
|
--负责人电话
|
||||||
|
ALTER TABLE License_HeightWork
|
||||||
|
ADD WorkLeaderTel nvarchar(200) null;
|
||||||
|
|
||||||
|
--吊装
|
||||||
|
--单项工程
|
||||||
|
ALTER TABLE License_LiftingWork
|
||||||
|
ADD WorkAreaId nvarchar(500) null;
|
||||||
|
--吊装高度
|
||||||
|
ALTER TABLE License_LiftingWork
|
||||||
|
ADD LiftingHeight nvarchar(20) null;
|
||||||
|
|
||||||
|
--监护人姓名
|
||||||
|
ALTER TABLE License_LiftingWork
|
||||||
|
ADD FireWatchManName nvarchar(500) null;
|
||||||
|
|
||||||
|
--负责人姓名
|
||||||
|
ALTER TABLE License_LiftingWork
|
||||||
|
ADD WorkLeaderName nvarchar(200) null;
|
||||||
|
--负责人电话
|
||||||
|
ALTER TABLE License_LiftingWork
|
||||||
|
ADD WorkLeaderTel nvarchar(200) null;
|
||||||
|
|
||||||
|
--起重工姓名
|
||||||
|
ALTER TABLE License_LiftingWork
|
||||||
|
ADD QzgName nvarchar(200) null;
|
||||||
|
--起重工电话
|
||||||
|
ALTER TABLE License_LiftingWork
|
||||||
|
ADD QzgPhone nvarchar(200) null;
|
||||||
|
|
||||||
|
--断路作业
|
||||||
|
--单项工程
|
||||||
|
ALTER TABLE License_OpenCircuit
|
||||||
|
ADD WorkAreaId nvarchar(500) null;
|
||||||
|
--断路作业原因
|
||||||
|
ALTER TABLE License_OpenCircuit
|
||||||
|
ADD Reason nvarchar(500) null;
|
||||||
|
--监护人姓名
|
||||||
|
ALTER TABLE License_OpenCircuit
|
||||||
|
ADD FireWatchManName nvarchar(500) null;
|
||||||
|
|
||||||
|
|
||||||
|
--射线作业
|
||||||
|
--单项工程
|
||||||
|
ALTER TABLE License_RadialWork
|
||||||
|
ADD WorkAreaId nvarchar(500) null;
|
||||||
|
|
||||||
|
--增加临时用电菜单
|
||||||
|
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||||
|
VALUES('48F64E0F-38B2-4BDC-9B61-6200BD02CBF5','临时用电作业票','HSSE/License/Electricity.aspx',50,'473A87D2-1365-4A68-BD38-06F312F81BC2','Menu_HSSE',0,1,1)
|
||||||
|
GO
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('4D6FE464-B5D7-48BE-B68D-C55C9E8E6202','48F64E0F-38B2-4BDC-9B61-6200BD02CBF5','增加',1)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('0086D338-3864-4C90-BEDB-7E752622837D','48F64E0F-38B2-4BDC-9B61-6200BD02CBF5','修改',2)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('184C6276-C8B6-421B-B0F9-A74CDCBA53E9','48F64E0F-38B2-4BDC-9B61-6200BD02CBF5','删除',3)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('065EC96A-1AF4-457F-AA13-CEEAB5A0BD7C','48F64E0F-38B2-4BDC-9B61-6200BD02CBF5','保存',4)
|
||||||
|
GO
|
||||||
|
CREATE TABLE [dbo].[License_Electricity](
|
||||||
|
[ElectricityId] [nvarchar](50) NOT NULL,
|
||||||
|
[ProjectId] [nvarchar](50) NULL,
|
||||||
|
[LicenseCode] [nvarchar](50) NULL,
|
||||||
|
[ApplyUnitId] [nvarchar](50) NULL,
|
||||||
|
[ApplyManId] [nvarchar](50) NULL,
|
||||||
|
[ApplyDate] [datetime] NULL,
|
||||||
|
[WorkPalce] [nvarchar](300) NULL,
|
||||||
|
[WorkDepth] [nvarchar](50) NULL,
|
||||||
|
[ValidityStartTime] [datetime] NULL,
|
||||||
|
[ValidityEndTime] [datetime] NULL,
|
||||||
|
[WorkMeasures] [nvarchar](500) NULL,
|
||||||
|
[CancelManId] [nvarchar](50) NULL,
|
||||||
|
[CancelReasons] [nvarchar](200) NULL,
|
||||||
|
[CancelTime] [datetime] NULL,
|
||||||
|
[CloseManId] [nvarchar](50) NULL,
|
||||||
|
[CloseReasons] [nvarchar](200) NULL,
|
||||||
|
[CloseTime] [datetime] NULL,
|
||||||
|
[States] [varchar](2) NULL,
|
||||||
|
[NextManId] [nvarchar](500) NULL,
|
||||||
|
[OldLicenseId] [nvarchar](50) NULL,
|
||||||
|
[WorkAreaId] [nvarchar](500) NULL,
|
||||||
|
[Reason] [nvarchar](500) NULL,
|
||||||
|
[FireWatchManName] [nvarchar](500) NULL,
|
||||||
|
CONSTRAINT [PK_License_Electricity] PRIMARY KEY CLUSTERED
|
||||||
|
(
|
||||||
|
[ElectricityId] ASC
|
||||||
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||||
|
) ON [PRIMARY]
|
||||||
|
|
||||||
|
GO
|
||||||
|
|
||||||
|
SET ANSI_PADDING OFF
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[License_Electricity] WITH CHECK ADD CONSTRAINT [FK_License_Electricity_Base_Project] FOREIGN KEY([ProjectId])
|
||||||
|
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[License_Electricity] CHECK CONSTRAINT [FK_License_Electricity_Base_Project]
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[License_Electricity] WITH CHECK ADD CONSTRAINT [FK_License_Electricity_Base_Unit] FOREIGN KEY([ApplyUnitId])
|
||||||
|
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[License_Electricity] CHECK CONSTRAINT [FK_License_Electricity_Base_Unit]
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[License_Electricity] WITH CHECK ADD CONSTRAINT [FK_License_Electricity_Sys_User] FOREIGN KEY([ApplyManId])
|
||||||
|
REFERENCES [dbo].[Sys_User] ([UserId])
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[License_Electricity] CHECK CONSTRAINT [FK_License_Electricity_Sys_User]
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[License_Electricity] WITH CHECK ADD CONSTRAINT [FK_License_Electricity_Sys_User2] FOREIGN KEY([CancelManId])
|
||||||
|
REFERENCES [dbo].[Sys_User] ([UserId])
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[License_Electricity] CHECK CONSTRAINT [FK_License_Electricity_Sys_User2]
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[License_Electricity] WITH CHECK ADD CONSTRAINT [FK_License_Electricity_Sys_User3] FOREIGN KEY([CloseManId])
|
||||||
|
REFERENCES [dbo].[Sys_User] ([UserId])
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[License_Electricity] CHECK CONSTRAINT [FK_License_Electricity_Sys_User3]
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity', @level2type=N'COLUMN',@level2name=N'ElectricityId'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity', @level2type=N'COLUMN',@level2name=N'LicenseCode'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'申请单ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity', @level2type=N'COLUMN',@level2name=N'ApplyUnitId'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'申请人ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity', @level2type=N'COLUMN',@level2name=N'ApplyManId'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'申请时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity', @level2type=N'COLUMN',@level2name=N'ApplyDate'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'作业地点' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity', @level2type=N'COLUMN',@level2name=N'WorkPalce'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'开挖深度' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity', @level2type=N'COLUMN',@level2name=N'WorkDepth'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'有效期开始时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity', @level2type=N'COLUMN',@level2name=N'ValidityStartTime'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'有效期结束时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity', @level2type=N'COLUMN',@level2name=N'ValidityEndTime'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'作业内容、机具及安全措施' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity', @level2type=N'COLUMN',@level2name=N'WorkMeasures'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'取消人ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity', @level2type=N'COLUMN',@level2name=N'CancelManId'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'取消原因' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity', @level2type=N'COLUMN',@level2name=N'CancelReasons'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'取消时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity', @level2type=N'COLUMN',@level2name=N'CancelTime'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'关闭人ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity', @level2type=N'COLUMN',@level2name=N'CloseManId'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'关闭原因' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity', @level2type=N'COLUMN',@level2name=N'CloseReasons'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'关闭时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity', @level2type=N'COLUMN',@level2name=N'CloseTime'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'状态(0-待提交;1-审核中;2-审核完成;3-关闭;-1取消)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity', @level2type=N'COLUMN',@level2name=N'States'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'下步办理人ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity', @level2type=N'COLUMN',@level2name=N'NextManId'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'原许可证ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity', @level2type=N'COLUMN',@level2name=N'OldLicenseId'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'动土作业票表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'License_Electricity'
|
||||||
|
GO
|
||||||
|
|
||||||
|
--临时用电安装人姓名
|
||||||
|
ALTER TABLE License_Electricity
|
||||||
|
ADD WorkLeaderName nvarchar(200) null;
|
||||||
|
--临时用电安装人电话
|
||||||
|
ALTER TABLE License_Electricity
|
||||||
|
ADD WorkLeaderTel nvarchar(200) null;
|
||||||
|
|
||||||
|
--临时作业票审批流程
|
||||||
|
INSERT Sys_MenuFlowOperate(FlowOperateId,MenuId,FlowStep,GroupNum,OrderNum,AuditFlowName,IsFlowEnd)
|
||||||
|
VALUES('48F64E0F-38B2-4BDC-9B61-6200BD02CBF51','48F64E0F-38B2-4BDC-9B61-6200BD02CBF5',1,1,1,'施工单位安全人员意见',0)
|
||||||
|
INSERT Sys_MenuFlowOperate(FlowOperateId,MenuId,FlowStep,GroupNum,OrderNum,AuditFlowName,IsFlowEnd)
|
||||||
|
VALUES('48F64E0F-38B2-4BDC-9B61-6200BD02CBF52','48F64E0F-38B2-4BDC-9B61-6200BD02CBF5',2,1,1,'总包单位安全人员意见',0)
|
||||||
|
INSERT Sys_MenuFlowOperate(FlowOperateId,MenuId,FlowStep,GroupNum,OrderNum,AuditFlowName,IsFlowEnd)
|
||||||
|
VALUES('48F64E0F-38B2-4BDC-9B61-6200BD02CBF53','48F64E0F-38B2-4BDC-9B61-6200BD02CBF5',3,1,1,'总包单位专业工程师意见',0)
|
||||||
|
INSERT Sys_MenuFlowOperate(FlowOperateId,MenuId,FlowStep,GroupNum,OrderNum,AuditFlowName,IsFlowEnd)
|
||||||
|
VALUES('48F64E0F-38B2-4BDC-9B61-6200BD02CBF54','48F64E0F-38B2-4BDC-9B61-6200BD02CBF5',3,1,2,'总包单位施工经理意见',0)
|
||||||
|
INSERT Sys_MenuFlowOperate(FlowOperateId,MenuId,FlowStep,GroupNum,OrderNum,AuditFlowName,IsFlowEnd)
|
||||||
|
VALUES('48F64E0F-38B2-4BDC-9B61-6200BD02CBF55','48F64E0F-38B2-4BDC-9B61-6200BD02CBF5',3,2,1,'监理单位意见',0)
|
||||||
|
INSERT Sys_MenuFlowOperate(FlowOperateId,MenuId,FlowStep,GroupNum,OrderNum,AuditFlowName,IsFlowEnd)
|
||||||
|
VALUES('48F64E0F-38B2-4BDC-9B61-6200BD02CBF56','48F64E0F-38B2-4BDC-9B61-6200BD02CBF5',3,2,2,'业主单位意见',0)
|
||||||
|
INSERT Sys_MenuFlowOperate(FlowOperateId,MenuId,FlowStep,GroupNum,OrderNum,AuditFlowName,IsFlowEnd)
|
||||||
|
VALUES('48F64E0F-38B2-4BDC-9B61-6200BD02CBF57','48F64E0F-38B2-4BDC-9B61-6200BD02CBF5',4,1,1,'完成',1)
|
||||||
|
|
||||||
|
--添加作业类型
|
||||||
|
insert into Sys_Const(id,ConstValue,ConstText,SortIndex,GroupId)
|
||||||
|
values('8A1DF18E-4CE6-4AA1-AD2C-625823BC4D8E','48F64E0F-38B2-4BDC-9B61-6200BD02CBF5','临时用电作业票',9,'LicenseType')
|
||||||
|
|
||||||
|
--修所有作业审批流(一人审批)
|
||||||
|
delete from Sys_MenuFlowOperate where flowStep!=1
|
||||||
|
update Sys_MenuFlowOperate set auditflowname='审批人意见'
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -237,7 +237,7 @@ namespace BLL
|
||||||
|
|
||||||
CheckItemDetailSetId = x.CheckItemSetId,
|
CheckItemDetailSetId = x.CheckItemSetId,
|
||||||
CheckItemDetailContent = x.CheckItemSetContent,
|
CheckItemDetailContent = x.CheckItemSetContent,
|
||||||
Rectification_Date = x.Rectification_Date
|
Rectification_Date = string.Format("{0:yyyy-MM-dd}", x.Rectification_Date),
|
||||||
};
|
};
|
||||||
return getInfo.ToList();
|
return getInfo.ToList();
|
||||||
}
|
}
|
||||||
|
@ -289,7 +289,7 @@ namespace BLL
|
||||||
|
|
||||||
CheckItemDetailSetId=x.CheckItemSetId,
|
CheckItemDetailSetId=x.CheckItemSetId,
|
||||||
CheckItemDetailContent=x.CheckItemSetContent,
|
CheckItemDetailContent=x.CheckItemSetContent,
|
||||||
Rectification_Date=x.Rectification_Date
|
Rectification_Date= string.Format("{0:yyyy-MM-dd}", x.Rectification_Date),
|
||||||
};
|
};
|
||||||
return getInfo.First();
|
return getInfo.First();
|
||||||
}
|
}
|
||||||
|
@ -328,7 +328,7 @@ namespace BLL
|
||||||
//整改日期、检查内容、检查内容id
|
//整改日期、检查内容、检查内容id
|
||||||
CheckItemSetId= newDetail.CheckItemDetailSetId,
|
CheckItemSetId= newDetail.CheckItemDetailSetId,
|
||||||
CheckItemSetContent= newDetail.CheckItemDetailContent,
|
CheckItemSetContent= newDetail.CheckItemDetailContent,
|
||||||
Rectification_Date=newDetail.Rectification_Date
|
Rectification_Date = Funs.GetNewDateTime(newDetail.Rectification_Date)
|
||||||
};
|
};
|
||||||
if (newCheckSpecialDetail.CompleteStatus == false && newCheckSpecialDetail.HandleStep.Contains("1") && string.IsNullOrEmpty(newCheckSpecialDetail.HiddenHazardType))
|
if (newCheckSpecialDetail.CompleteStatus == false && newCheckSpecialDetail.HandleStep.Contains("1") && string.IsNullOrEmpty(newCheckSpecialDetail.HiddenHazardType))
|
||||||
{
|
{
|
||||||
|
@ -374,7 +374,7 @@ namespace BLL
|
||||||
//整改日期、检查内容、检查内容id
|
//整改日期、检查内容、检查内容id
|
||||||
updateDetail.CheckItemSetId = newDetail.CheckItemDetailSetId;
|
updateDetail.CheckItemSetId = newDetail.CheckItemDetailSetId;
|
||||||
updateDetail.CheckItemSetContent = newDetail.CheckItemDetailContent;
|
updateDetail.CheckItemSetContent = newDetail.CheckItemDetailContent;
|
||||||
updateDetail.Rectification_Date = newDetail.Rectification_Date;
|
updateDetail.Rectification_Date = Funs.GetNewDateTime(newDetail.Rectification_Date);
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
////保存附件
|
////保存附件
|
||||||
|
|
|
@ -58,6 +58,11 @@ namespace BLL
|
||||||
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.FireWorkId).AttachUrl.Replace('\\', '/'),
|
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.FireWorkId).AttachUrl.Replace('\\', '/'),
|
||||||
States = x.States,
|
States = x.States,
|
||||||
OldLicenseId = x.OldLicenseId,
|
OldLicenseId = x.OldLicenseId,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
Reason = x.Reason,
|
||||||
|
FireLevel = x.FireLevel
|
||||||
}).FirstOrDefault();
|
}).FirstOrDefault();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -96,6 +101,14 @@ namespace BLL
|
||||||
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.HeightWorkId).AttachUrl.Replace('\\', '/'),
|
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.HeightWorkId).AttachUrl.Replace('\\', '/'),
|
||||||
States = x.States,
|
States = x.States,
|
||||||
OldLicenseId = x.OldLicenseId,
|
OldLicenseId = x.OldLicenseId,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
WorkHeight = x.WorkHeight,
|
||||||
|
HeightLevel = x.HeightLevel,
|
||||||
|
FireWatchManName = x.FireWatchManName,
|
||||||
|
WorkLeaderName = x.WorkLeaderName,
|
||||||
|
WorkLeaderTel = x.WorkLeaderTel,
|
||||||
}).FirstOrDefault();
|
}).FirstOrDefault();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -134,6 +147,16 @@ namespace BLL
|
||||||
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.LimitedSpaceId).AttachUrl.Replace('\\', '/'),
|
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.LimitedSpaceId).AttachUrl.Replace('\\', '/'),
|
||||||
States = x.States,
|
States = x.States,
|
||||||
OldLicenseId = x.OldLicenseId,
|
OldLicenseId = x.OldLicenseId,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
LimitedDescribe = x.LimitedDescribe,
|
||||||
|
IsBoolOther = x.IsBoolOther,
|
||||||
|
IsBoolHarmfulGas = x.IsBoolHarmfulGas,
|
||||||
|
TestResult = x.TestResult,
|
||||||
|
TestDate = string.Format("{0:yyyy-MM-dd HH:mm}", x.TestDate),
|
||||||
|
TestPerson = x.TestPerson,
|
||||||
|
VenStep = x.VenStep,
|
||||||
}).FirstOrDefault();
|
}).FirstOrDefault();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -177,6 +200,9 @@ namespace BLL
|
||||||
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.RadialWorkId).AttachUrl.Replace('\\', '/'),
|
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.RadialWorkId).AttachUrl.Replace('\\', '/'),
|
||||||
States = x.States,
|
States = x.States,
|
||||||
OldLicenseId = x.OldLicenseId,
|
OldLicenseId = x.OldLicenseId,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
}).FirstOrDefault();
|
}).FirstOrDefault();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -215,6 +241,11 @@ namespace BLL
|
||||||
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.OpenCircuitId).AttachUrl.Replace('\\', '/'),
|
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.OpenCircuitId).AttachUrl.Replace('\\', '/'),
|
||||||
States = x.States,
|
States = x.States,
|
||||||
OldLicenseId = x.OldLicenseId,
|
OldLicenseId = x.OldLicenseId,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
Reason = x.Reason,
|
||||||
|
FireWatchManName = x.FireWatchManName,
|
||||||
}).FirstOrDefault();
|
}).FirstOrDefault();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -252,6 +283,11 @@ namespace BLL
|
||||||
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.BreakGroundId).AttachUrl.Replace('\\', '/'),
|
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.BreakGroundId).AttachUrl.Replace('\\', '/'),
|
||||||
States = x.States,
|
States = x.States,
|
||||||
OldLicenseId = x.OldLicenseId,
|
OldLicenseId = x.OldLicenseId,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
Reason = x.Reason,
|
||||||
|
FireWatchManName = x.FireWatchManName,
|
||||||
}).FirstOrDefault();
|
}).FirstOrDefault();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -332,6 +368,60 @@ namespace BLL
|
||||||
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.LiftingWorkId).AttachUrl.Replace('\\', '/'),
|
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.LiftingWorkId).AttachUrl.Replace('\\', '/'),
|
||||||
States = x.States,
|
States = x.States,
|
||||||
OldLicenseId = x.OldLicenseId,
|
OldLicenseId = x.OldLicenseId,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
LiftingHeight = x.LiftingHeight,
|
||||||
|
FireWatchManName = x.FireWatchManName,
|
||||||
|
WorkLeaderName = x.WorkLeaderName,
|
||||||
|
WorkLeaderTel = x.WorkLeaderTel,
|
||||||
|
QzgName = x.QzgName,
|
||||||
|
QzgPhone = x.QzgPhone,
|
||||||
|
}).FirstOrDefault();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 临时用电作业票
|
||||||
|
if (strMenuId == Const.ProjectElectricityMenuId)
|
||||||
|
{
|
||||||
|
getInfo = (from x in db.License_Electricity
|
||||||
|
where x.ElectricityId == id
|
||||||
|
select new Model.LicenseDataItem
|
||||||
|
{
|
||||||
|
LicenseId = x.ElectricityId,
|
||||||
|
MenuId = strMenuId,
|
||||||
|
ProjectId = x.ProjectId,
|
||||||
|
LicenseCode = x.LicenseCode,
|
||||||
|
ApplyUnitId = x.ApplyUnitId,
|
||||||
|
ApplyUnitName = db.Base_Unit.First(u => u.UnitId == x.ApplyUnitId).UnitName,
|
||||||
|
ApplyManId = x.ApplyManId,
|
||||||
|
ApplyManName = db.Sys_User.First(u => u.UserId == x.ApplyManId).UserName,
|
||||||
|
ApplyDate = string.Format("{0:yyyy-MM-dd HH:mm}", x.ApplyDate),
|
||||||
|
WorkPalce = x.WorkPalce,
|
||||||
|
WorkDepth = x.WorkDepth,
|
||||||
|
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
||||||
|
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
||||||
|
WorkMeasures = x.WorkMeasures,
|
||||||
|
CancelManId = x.CancelManId,
|
||||||
|
CancelManName = db.Sys_User.First(u => u.UserId == x.CancelManId).UserName,
|
||||||
|
CancelReasons = x.CancelReasons,
|
||||||
|
CancelTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CancelTime),
|
||||||
|
CloseManId = x.CloseManId,
|
||||||
|
CloseManName = db.Sys_User.First(u => u.UserId == x.CloseManId).UserName,
|
||||||
|
CloseReasons = x.CloseReasons,
|
||||||
|
CloseTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CloseTime),
|
||||||
|
NextManId = x.NextManId,
|
||||||
|
NextManName = db.Sys_User.First(u => u.UserId == x.NextManId).UserName,
|
||||||
|
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.ElectricityId).AttachUrl.Replace('\\', '/'),
|
||||||
|
States = x.States,
|
||||||
|
OldLicenseId = x.OldLicenseId,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
Reason = x.Reason,
|
||||||
|
FireWatchManName = x.FireWatchManName,
|
||||||
|
WorkLeaderName=x.WorkLeaderName,
|
||||||
|
WorkLeaderTel=x.WorkLeaderTel
|
||||||
}).FirstOrDefault();
|
}).FirstOrDefault();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -419,6 +509,11 @@ namespace BLL
|
||||||
CloseReasons = x.CloseReasons,
|
CloseReasons = x.CloseReasons,
|
||||||
CloseTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CloseTime),
|
CloseTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CloseTime),
|
||||||
States = x.States,
|
States = x.States,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
Reason=x.Reason,
|
||||||
|
FireLevel=x.FireLevel
|
||||||
}).ToList();
|
}).ToList();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -455,6 +550,15 @@ namespace BLL
|
||||||
CloseReasons = x.CloseReasons,
|
CloseReasons = x.CloseReasons,
|
||||||
CloseTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CloseTime),
|
CloseTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CloseTime),
|
||||||
States = x.States,
|
States = x.States,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
WorkHeight=x.WorkHeight,
|
||||||
|
HeightLevel=x.HeightLevel,
|
||||||
|
FireWatchManName=x.FireWatchManName,
|
||||||
|
WorkLeaderName=x.WorkLeaderName,
|
||||||
|
WorkLeaderTel=x.WorkLeaderTel,
|
||||||
|
|
||||||
}).ToList();
|
}).ToList();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -491,6 +595,20 @@ namespace BLL
|
||||||
CloseReasons = x.CloseReasons,
|
CloseReasons = x.CloseReasons,
|
||||||
CloseTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CloseTime),
|
CloseTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CloseTime),
|
||||||
States = x.States,
|
States = x.States,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
LimitedDescribe=x.LimitedDescribe,
|
||||||
|
IsBoolOther=x.IsBoolOther,
|
||||||
|
IsBoolHarmfulGas=x.IsBoolHarmfulGas,
|
||||||
|
TestResult=x.TestResult,
|
||||||
|
TestDate= string.Format("{0:yyyy-MM-dd HH:mm}", x.TestDate),
|
||||||
|
TestPerson=x.TestPerson,
|
||||||
|
VenStep=x.VenStep,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}).ToList();
|
}).ToList();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -534,6 +652,10 @@ namespace BLL
|
||||||
NextManId = x.NextManId,
|
NextManId = x.NextManId,
|
||||||
NextManName = db.Sys_User.First(u => u.UserId == x.NextManId).UserName,
|
NextManName = db.Sys_User.First(u => u.UserId == x.NextManId).UserName,
|
||||||
States = x.States,
|
States = x.States,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
|
||||||
}).ToList();
|
}).ToList();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -570,6 +692,12 @@ namespace BLL
|
||||||
CloseReasons = x.CloseReasons,
|
CloseReasons = x.CloseReasons,
|
||||||
CloseTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CloseTime),
|
CloseTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CloseTime),
|
||||||
States = x.States,
|
States = x.States,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
Reason=x.Reason,
|
||||||
|
FireWatchManName=x.FireWatchManName,
|
||||||
|
|
||||||
}).ToList();
|
}).ToList();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -605,6 +733,12 @@ namespace BLL
|
||||||
CloseReasons = x.CloseReasons,
|
CloseReasons = x.CloseReasons,
|
||||||
CloseTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CloseTime),
|
CloseTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CloseTime),
|
||||||
States = x.States,
|
States = x.States,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
Reason=x.Reason,
|
||||||
|
FireWatchManName=x.FireWatchManName,
|
||||||
|
|
||||||
}).ToList();
|
}).ToList();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -685,6 +819,60 @@ namespace BLL
|
||||||
NextManId = x.NextManId,
|
NextManId = x.NextManId,
|
||||||
NextManName = db.Sys_User.First(u => u.UserId == x.NextManId).UserName,
|
NextManName = db.Sys_User.First(u => u.UserId == x.NextManId).UserName,
|
||||||
States = x.States,
|
States = x.States,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
LiftingHeight=x.LiftingHeight,
|
||||||
|
FireWatchManName=x.FireWatchManName,
|
||||||
|
WorkLeaderName=x.WorkLeaderName,
|
||||||
|
WorkLeaderTel=x.WorkLeaderTel,
|
||||||
|
QzgName=x.QzgName,
|
||||||
|
QzgPhone=x.QzgPhone,
|
||||||
|
|
||||||
|
}).ToList();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 临时用电作业票
|
||||||
|
if (strMenuId == Const.ProjectElectricityMenuId)
|
||||||
|
{
|
||||||
|
getInfoList = (from x in db.License_Electricity
|
||||||
|
where x.ProjectId == projectId && (x.ApplyUnitId == unitId || unitId == null)
|
||||||
|
&& (states == null || x.States == states)
|
||||||
|
orderby x.LicenseCode descending
|
||||||
|
select new Model.LicenseDataItem
|
||||||
|
{
|
||||||
|
LicenseId = x.ElectricityId,
|
||||||
|
MenuId = strMenuId,
|
||||||
|
ProjectId = x.ProjectId,
|
||||||
|
LicenseCode = x.LicenseCode,
|
||||||
|
ApplyUnitId = x.ApplyUnitId,
|
||||||
|
ApplyUnitName = db.Base_Unit.First(u => u.UnitId == x.ApplyUnitId).UnitName,
|
||||||
|
ApplyManId = x.ApplyManId,
|
||||||
|
ApplyManName = db.Sys_User.First(u => u.UserId == x.ApplyManId).UserName,
|
||||||
|
ApplyDate = string.Format("{0:yyyy-MM-dd HH:mm}", x.ApplyDate),
|
||||||
|
WorkPalce = x.WorkPalce,
|
||||||
|
WorkDepth = x.WorkDepth,
|
||||||
|
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
||||||
|
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
||||||
|
WorkMeasures = x.WorkMeasures,
|
||||||
|
CancelManId = x.CancelManId,
|
||||||
|
CancelManName = db.Sys_User.First(u => u.UserId == x.CancelManId).UserName,
|
||||||
|
CancelReasons = x.CancelReasons,
|
||||||
|
CancelTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CancelTime),
|
||||||
|
CloseManId = x.CloseManId,
|
||||||
|
CloseManName = db.Sys_User.First(u => u.UserId == x.CloseManId).UserName,
|
||||||
|
CloseReasons = x.CloseReasons,
|
||||||
|
CloseTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CloseTime),
|
||||||
|
States = x.States,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
Reason = x.Reason,
|
||||||
|
FireWatchManName = x.FireWatchManName,
|
||||||
|
WorkLeaderName=x.WorkLeaderName,
|
||||||
|
WorkLeaderTel=x.WorkLeaderTel,
|
||||||
|
|
||||||
}).ToList();
|
}).ToList();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -760,6 +948,11 @@ namespace BLL
|
||||||
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
||||||
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
||||||
States = x.States,
|
States = x.States,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
Reason = x.Reason,
|
||||||
|
FireLevel = x.FireLevel
|
||||||
}).ToList();
|
}).ToList();
|
||||||
if (getFireWork.Count() > 0)
|
if (getFireWork.Count() > 0)
|
||||||
{
|
{
|
||||||
|
@ -788,6 +981,14 @@ namespace BLL
|
||||||
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
||||||
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
||||||
States = x.States,
|
States = x.States,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
WorkHeight = x.WorkHeight,
|
||||||
|
HeightLevel = x.HeightLevel,
|
||||||
|
FireWatchManName = x.FireWatchManName,
|
||||||
|
WorkLeaderName = x.WorkLeaderName,
|
||||||
|
WorkLeaderTel = x.WorkLeaderTel,
|
||||||
}).ToList();
|
}).ToList();
|
||||||
if (getHeightWork.Count() > 0)
|
if (getHeightWork.Count() > 0)
|
||||||
{
|
{
|
||||||
|
@ -815,6 +1016,17 @@ namespace BLL
|
||||||
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
||||||
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
||||||
States = x.States,
|
States = x.States,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
LimitedDescribe = x.LimitedDescribe,
|
||||||
|
IsBoolOther = x.IsBoolOther,
|
||||||
|
IsBoolHarmfulGas = x.IsBoolHarmfulGas,
|
||||||
|
TestResult = x.TestResult,
|
||||||
|
TestDate = string.Format("{0:yyyy-MM-dd HH:mm}", x.TestDate),
|
||||||
|
TestPerson = x.TestPerson,
|
||||||
|
VenStep = x.VenStep,
|
||||||
|
|
||||||
}).ToList();
|
}).ToList();
|
||||||
if (getLimitedSpace.Count() > 0)
|
if (getLimitedSpace.Count() > 0)
|
||||||
{
|
{
|
||||||
|
@ -843,6 +1055,9 @@ namespace BLL
|
||||||
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
||||||
WorkPalce = x.WorkPalce,
|
WorkPalce = x.WorkPalce,
|
||||||
States = x.States,
|
States = x.States,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
}).ToList();
|
}).ToList();
|
||||||
if (getRadialWork.Count() > 0)
|
if (getRadialWork.Count() > 0)
|
||||||
{
|
{
|
||||||
|
@ -871,6 +1086,11 @@ namespace BLL
|
||||||
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
||||||
RoadName = x.RoadName,
|
RoadName = x.RoadName,
|
||||||
States = x.States,
|
States = x.States,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
Reason = x.Reason,
|
||||||
|
FireWatchManName = x.FireWatchManName,
|
||||||
}).ToList();
|
}).ToList();
|
||||||
if (getOpenCircuit.Count() > 0)
|
if (getOpenCircuit.Count() > 0)
|
||||||
{
|
{
|
||||||
|
@ -899,6 +1119,11 @@ namespace BLL
|
||||||
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
||||||
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
||||||
States = x.States,
|
States = x.States,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
Reason = x.Reason,
|
||||||
|
FireWatchManName = x.FireWatchManName,
|
||||||
}).ToList();
|
}).ToList();
|
||||||
if (getBreakGround.Count() > 0)
|
if (getBreakGround.Count() > 0)
|
||||||
{
|
{
|
||||||
|
@ -954,6 +1179,15 @@ namespace BLL
|
||||||
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
||||||
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
||||||
States = x.States,
|
States = x.States,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
LiftingHeight = x.LiftingHeight,
|
||||||
|
FireWatchManName = x.FireWatchManName,
|
||||||
|
WorkLeaderName = x.WorkLeaderName,
|
||||||
|
WorkLeaderTel = x.WorkLeaderTel,
|
||||||
|
QzgName = x.QzgName,
|
||||||
|
QzgPhone = x.QzgPhone,
|
||||||
}).ToList();
|
}).ToList();
|
||||||
if (getLiftingWork.Count() > 0)
|
if (getLiftingWork.Count() > 0)
|
||||||
{
|
{
|
||||||
|
@ -961,6 +1195,41 @@ namespace BLL
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region 临时用电作业票
|
||||||
|
var getElectricity = (from x in db.License_Electricity
|
||||||
|
where x.ProjectId == projectId && (x.ApplyUnitId == unitId || unitId == null)
|
||||||
|
&& (states == null || x.States == states)
|
||||||
|
select new Model.LicenseDataItem
|
||||||
|
{
|
||||||
|
LicenseId = x.ElectricityId,
|
||||||
|
MenuId = Const.ProjectElectricityMenuId,
|
||||||
|
MenuName = "临时用电",
|
||||||
|
ProjectId = x.ProjectId,
|
||||||
|
LicenseCode = x.LicenseCode,
|
||||||
|
ApplyUnitId = x.ApplyUnitId,
|
||||||
|
ApplyUnitName = db.Base_Unit.First(u => u.UnitId == x.ApplyUnitId).UnitName,
|
||||||
|
ApplyManId = x.ApplyManId,
|
||||||
|
ApplyManName = db.Sys_User.First(u => u.UserId == x.ApplyManId).UserName,
|
||||||
|
ApplyDate = string.Format("{0:yyyy-MM-dd HH:mm}", x.ApplyDate),
|
||||||
|
WorkPalce = x.WorkPalce,
|
||||||
|
WorkDepth = x.WorkDepth,
|
||||||
|
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
||||||
|
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
||||||
|
States = x.States,
|
||||||
|
|
||||||
|
WorkAreaId = x.WorkAreaId,
|
||||||
|
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||||
|
Reason = x.Reason,
|
||||||
|
FireWatchManName = x.FireWatchManName,
|
||||||
|
WorkLeaderName=x.WorkLeaderName,
|
||||||
|
WorkLeaderTel=x.WorkLeaderTel,
|
||||||
|
}).ToList();
|
||||||
|
if (getElectricity.Count() > 0)
|
||||||
|
{
|
||||||
|
getInfoList.AddRange(getElectricity);
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region 作业票【定稿 】"待开工"="1";"作业中"="2";"已关闭"="3";"已取消"="-1"
|
#region 作业票【定稿 】"待开工"="1";"作业中"="2";"已关闭"="3";"已取消"="-1"
|
||||||
var getLicenseManager = (from x in db.License_LicenseManager
|
var getLicenseManager = (from x in db.License_LicenseManager
|
||||||
where x.ProjectId == projectId && (x.UnitId == unitId || unitId == null)
|
where x.ProjectId == projectId && (x.UnitId == unitId || unitId == null)
|
||||||
|
@ -1106,6 +1375,10 @@ namespace BLL
|
||||||
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
||||||
NextManId = newItem.NextManId,
|
NextManId = newItem.NextManId,
|
||||||
States = newItem.States,
|
States = newItem.States,
|
||||||
|
|
||||||
|
WorkAreaId=newItem.WorkAreaId,
|
||||||
|
Reason=newItem.Reason,
|
||||||
|
FireLevel=newItem.FireLevel
|
||||||
};
|
};
|
||||||
|
|
||||||
if (newItem.States == Const.State_0)
|
if (newItem.States == Const.State_0)
|
||||||
|
@ -1156,6 +1429,10 @@ namespace BLL
|
||||||
updateFireWork.WorkMeasures = newFireWork.WorkMeasures;
|
updateFireWork.WorkMeasures = newFireWork.WorkMeasures;
|
||||||
updateFireWork.NextManId = newFireWork.NextManId;
|
updateFireWork.NextManId = newFireWork.NextManId;
|
||||||
updateFireWork.States = newFireWork.States;
|
updateFireWork.States = newFireWork.States;
|
||||||
|
|
||||||
|
updateFireWork.WorkAreaId = newItem.WorkAreaId;
|
||||||
|
updateFireWork.Reason = newItem.Reason;
|
||||||
|
updateFireWork.FireLevel = newItem.FireLevel;
|
||||||
}
|
}
|
||||||
updateFireWork.States = newFireWork.States;
|
updateFireWork.States = newFireWork.States;
|
||||||
}
|
}
|
||||||
|
@ -1186,6 +1463,15 @@ namespace BLL
|
||||||
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
||||||
NextManId = newItem.NextManId,
|
NextManId = newItem.NextManId,
|
||||||
States = newItem.States,
|
States = newItem.States,
|
||||||
|
|
||||||
|
WorkAreaId=newItem.WorkAreaId,
|
||||||
|
WorkHeight=newItem.WorkHeight,
|
||||||
|
HeightLevel=newItem.HeightLevel,
|
||||||
|
FireWatchManName=newItem.FireWatchManName,
|
||||||
|
WorkLeaderName=newItem.WorkLeaderName,
|
||||||
|
WorkLeaderTel=newItem.WorkLeaderTel,
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
if (newItem.States == Const.State_0)
|
if (newItem.States == Const.State_0)
|
||||||
{
|
{
|
||||||
|
@ -1236,6 +1522,12 @@ namespace BLL
|
||||||
updateHeightWork.EquipmentTools = newHeightWork.EquipmentTools;
|
updateHeightWork.EquipmentTools = newHeightWork.EquipmentTools;
|
||||||
updateHeightWork.NextManId = newHeightWork.NextManId;
|
updateHeightWork.NextManId = newHeightWork.NextManId;
|
||||||
updateHeightWork.States = newHeightWork.States;
|
updateHeightWork.States = newHeightWork.States;
|
||||||
|
updateHeightWork.WorkAreaId = newItem.WorkAreaId;
|
||||||
|
updateHeightWork.WorkHeight = newItem.WorkHeight;
|
||||||
|
updateHeightWork.HeightLevel = newItem.HeightLevel;
|
||||||
|
updateHeightWork.FireWatchManName = newItem.FireWatchManName;
|
||||||
|
updateHeightWork.WorkLeaderName = newItem.WorkLeaderName;
|
||||||
|
updateHeightWork.WorkLeaderTel = newItem.WorkLeaderTel;
|
||||||
}
|
}
|
||||||
updateHeightWork.States = newHeightWork.States;
|
updateHeightWork.States = newHeightWork.States;
|
||||||
}
|
}
|
||||||
|
@ -1266,6 +1558,14 @@ namespace BLL
|
||||||
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
||||||
NextManId = newItem.NextManId,
|
NextManId = newItem.NextManId,
|
||||||
States = newItem.States,
|
States = newItem.States,
|
||||||
|
|
||||||
|
LimitedDescribe=newItem.LimitedDescribe,
|
||||||
|
IsBoolOther=newItem.IsBoolOther,
|
||||||
|
IsBoolHarmfulGas=newItem.IsBoolHarmfulGas,
|
||||||
|
TestResult=newItem.TestResult,
|
||||||
|
TestDate= Funs.GetNewDateTime(newItem.TestDate),
|
||||||
|
TestPerson=newItem.TestPerson,
|
||||||
|
VenStep=newItem.VenStep
|
||||||
};
|
};
|
||||||
if (newItem.States == Const.State_0)
|
if (newItem.States == Const.State_0)
|
||||||
{
|
{
|
||||||
|
@ -1315,6 +1615,14 @@ namespace BLL
|
||||||
updateLimitedSpace.WorkMeasures = newLimitedSpace.WorkMeasures;
|
updateLimitedSpace.WorkMeasures = newLimitedSpace.WorkMeasures;
|
||||||
updateLimitedSpace.NextManId = newLimitedSpace.NextManId;
|
updateLimitedSpace.NextManId = newLimitedSpace.NextManId;
|
||||||
updateLimitedSpace.States = newLimitedSpace.States;
|
updateLimitedSpace.States = newLimitedSpace.States;
|
||||||
|
|
||||||
|
updateLimitedSpace.LimitedDescribe = newItem.LimitedDescribe;
|
||||||
|
updateLimitedSpace.IsBoolOther = newItem.IsBoolOther;
|
||||||
|
updateLimitedSpace.IsBoolHarmfulGas = newItem.IsBoolHarmfulGas;
|
||||||
|
updateLimitedSpace.TestResult = newItem.TestResult;
|
||||||
|
updateLimitedSpace.TestDate = Funs.GetNewDateTime(newItem.TestDate);
|
||||||
|
updateLimitedSpace.TestPerson = newItem.TestPerson;
|
||||||
|
updateLimitedSpace.VenStep = newItem.VenStep;
|
||||||
}
|
}
|
||||||
updateLimitedSpace.States = newLimitedSpace.States;
|
updateLimitedSpace.States = newLimitedSpace.States;
|
||||||
}
|
}
|
||||||
|
@ -1348,6 +1656,8 @@ namespace BLL
|
||||||
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
||||||
NextManId = newItem.NextManId,
|
NextManId = newItem.NextManId,
|
||||||
States = newItem.States,
|
States = newItem.States,
|
||||||
|
|
||||||
|
WorkAreaId=newItem.WorkAreaId
|
||||||
};
|
};
|
||||||
if (newItem.States == Const.State_0)
|
if (newItem.States == Const.State_0)
|
||||||
{
|
{
|
||||||
|
@ -1400,6 +1710,7 @@ namespace BLL
|
||||||
updateRadialWork.WatchManContact = newRadialWork.WatchManContact;
|
updateRadialWork.WatchManContact = newRadialWork.WatchManContact;
|
||||||
updateRadialWork.NextManId = newRadialWork.NextManId;
|
updateRadialWork.NextManId = newRadialWork.NextManId;
|
||||||
updateRadialWork.States = newRadialWork.States;
|
updateRadialWork.States = newRadialWork.States;
|
||||||
|
updateRadialWork.WorkAreaId = newItem.WorkAreaId;
|
||||||
}
|
}
|
||||||
updateRadialWork.States = newRadialWork.States;
|
updateRadialWork.States = newRadialWork.States;
|
||||||
}
|
}
|
||||||
|
@ -1430,6 +1741,11 @@ namespace BLL
|
||||||
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
||||||
NextManId = newItem.NextManId,
|
NextManId = newItem.NextManId,
|
||||||
States = newItem.States,
|
States = newItem.States,
|
||||||
|
|
||||||
|
WorkAreaId=newItem.WorkAreaId,
|
||||||
|
Reason=newItem.Reason,
|
||||||
|
FireWatchManName=newItem.FireWatchManName,
|
||||||
|
|
||||||
};
|
};
|
||||||
if (newItem.States == Const.State_0)
|
if (newItem.States == Const.State_0)
|
||||||
{
|
{
|
||||||
|
@ -1479,6 +1795,10 @@ namespace BLL
|
||||||
updateOpenCircuit.SafeMeasures = newOpenCircuit.SafeMeasures;
|
updateOpenCircuit.SafeMeasures = newOpenCircuit.SafeMeasures;
|
||||||
updateOpenCircuit.NextManId = newOpenCircuit.NextManId;
|
updateOpenCircuit.NextManId = newOpenCircuit.NextManId;
|
||||||
updateOpenCircuit.States = newOpenCircuit.States;
|
updateOpenCircuit.States = newOpenCircuit.States;
|
||||||
|
|
||||||
|
updateOpenCircuit.WorkAreaId = newItem.WorkAreaId;
|
||||||
|
updateOpenCircuit.Reason = newItem.Reason;
|
||||||
|
updateOpenCircuit.FireWatchManName = newItem.FireWatchManName;
|
||||||
}
|
}
|
||||||
updateOpenCircuit.States = newOpenCircuit.States;
|
updateOpenCircuit.States = newOpenCircuit.States;
|
||||||
}
|
}
|
||||||
|
@ -1508,6 +1828,10 @@ namespace BLL
|
||||||
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
||||||
NextManId = newItem.NextManId,
|
NextManId = newItem.NextManId,
|
||||||
States = newItem.States,
|
States = newItem.States,
|
||||||
|
|
||||||
|
WorkAreaId=newItem.WorkAreaId,
|
||||||
|
Reason=newItem.Reason,
|
||||||
|
FireWatchManName=newItem.FireWatchManName
|
||||||
};
|
};
|
||||||
if (newItem.States == Const.State_0)
|
if (newItem.States == Const.State_0)
|
||||||
{
|
{
|
||||||
|
@ -1556,6 +1880,10 @@ namespace BLL
|
||||||
updateBreakGround.WorkMeasures = newBreakGround.WorkMeasures;
|
updateBreakGround.WorkMeasures = newBreakGround.WorkMeasures;
|
||||||
updateBreakGround.NextManId = newBreakGround.NextManId;
|
updateBreakGround.NextManId = newBreakGround.NextManId;
|
||||||
updateBreakGround.States = newBreakGround.States;
|
updateBreakGround.States = newBreakGround.States;
|
||||||
|
|
||||||
|
updateBreakGround.WorkAreaId = newItem.WorkAreaId;
|
||||||
|
updateBreakGround.Reason = newItem.Reason;
|
||||||
|
updateBreakGround.FireWatchManName = newItem.FireWatchManName;
|
||||||
}
|
}
|
||||||
updateBreakGround.States = newBreakGround.States;
|
updateBreakGround.States = newBreakGround.States;
|
||||||
}
|
}
|
||||||
|
@ -1669,6 +1997,15 @@ namespace BLL
|
||||||
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
||||||
NextManId = newItem.NextManId,
|
NextManId = newItem.NextManId,
|
||||||
States = newItem.States,
|
States = newItem.States,
|
||||||
|
|
||||||
|
WorkAreaId=newItem.WorkAreaId,
|
||||||
|
LiftingHeight=newItem.LiftingHeight,
|
||||||
|
FireWatchManName=newItem.FireWatchManName,
|
||||||
|
WorkLeaderName=newItem.WorkLeaderName,
|
||||||
|
WorkLeaderTel=newItem.WorkLeaderTel,
|
||||||
|
QzgName=newItem.QzgName,
|
||||||
|
QzgPhone=newItem.QzgPhone,
|
||||||
|
|
||||||
};
|
};
|
||||||
if (newItem.States == Const.State_0)
|
if (newItem.States == Const.State_0)
|
||||||
{
|
{
|
||||||
|
@ -1718,12 +2055,112 @@ namespace BLL
|
||||||
updateLiftingWork.CraneCapacity = newLiftingWork.CraneCapacity;
|
updateLiftingWork.CraneCapacity = newLiftingWork.CraneCapacity;
|
||||||
updateLiftingWork.NextManId = newLiftingWork.NextManId;
|
updateLiftingWork.NextManId = newLiftingWork.NextManId;
|
||||||
updateLiftingWork.States = newLiftingWork.States;
|
updateLiftingWork.States = newLiftingWork.States;
|
||||||
|
|
||||||
|
updateLiftingWork.WorkAreaId = newItem.WorkAreaId;
|
||||||
|
updateLiftingWork.LiftingHeight = newItem.LiftingHeight;
|
||||||
|
updateLiftingWork.FireWatchManName = newItem.FireWatchManName;
|
||||||
|
updateLiftingWork.WorkLeaderName = newItem.WorkLeaderName;
|
||||||
|
updateLiftingWork.WorkLeaderTel = newItem.WorkLeaderTel;
|
||||||
|
updateLiftingWork.QzgName = newItem.QzgName;
|
||||||
|
updateLiftingWork.QzgPhone = newItem.QzgPhone;
|
||||||
}
|
}
|
||||||
updateLiftingWork.States = newLiftingWork.States;
|
updateLiftingWork.States = newLiftingWork.States;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region 临时用电作业票
|
||||||
|
if (newItem.MenuId == Const.ProjectElectricityMenuId)
|
||||||
|
{
|
||||||
|
Model.License_Electricity newElectricity = new Model.License_Electricity
|
||||||
|
{
|
||||||
|
ElectricityId = strLicenseId,
|
||||||
|
ProjectId = projectId,
|
||||||
|
LicenseCode = newItem.LicenseCode,
|
||||||
|
ApplyUnitId = newItem.ApplyUnitId,
|
||||||
|
ApplyManId = newItem.ApplyManId,
|
||||||
|
ApplyDate = Funs.GetNewDateTime(newItem.ApplyDate),
|
||||||
|
WorkPalce = newItem.WorkPalce,
|
||||||
|
WorkDepth = newItem.WorkDepth,
|
||||||
|
ValidityStartTime = Funs.GetNewDateTime(newItem.ValidityStartTime),
|
||||||
|
ValidityEndTime = Funs.GetNewDateTime(newItem.ValidityEndTime),
|
||||||
|
WorkMeasures = newItem.WorkMeasures,
|
||||||
|
CancelManId = newItem.CancelManId,
|
||||||
|
CancelReasons = newItem.CancelReasons,
|
||||||
|
CancelTime = Funs.GetNewDateTime(newItem.CancelTime),
|
||||||
|
CloseManId = newItem.CloseManId,
|
||||||
|
CloseReasons = newItem.CloseReasons,
|
||||||
|
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
||||||
|
NextManId = newItem.NextManId,
|
||||||
|
States = newItem.States,
|
||||||
|
|
||||||
|
WorkAreaId = newItem.WorkAreaId,
|
||||||
|
Reason = newItem.Reason,
|
||||||
|
FireWatchManName = newItem.FireWatchManName,
|
||||||
|
WorkLeaderName= newItem.WorkLeaderName,
|
||||||
|
WorkLeaderTel = newItem.WorkLeaderTel
|
||||||
|
};
|
||||||
|
if (newItem.States == Const.State_0)
|
||||||
|
{
|
||||||
|
newElectricity.NextManId = newItem.ApplyManId;
|
||||||
|
}
|
||||||
|
////保存
|
||||||
|
var updateElectricity = db.License_Electricity.FirstOrDefault(x => x.ElectricityId == strLicenseId);
|
||||||
|
if (updateElectricity == null)
|
||||||
|
{
|
||||||
|
newElectricity.ApplyDate = DateTime.Now;
|
||||||
|
strLicenseId = newElectricity.ElectricityId = SQLHelper.GetNewID();
|
||||||
|
newElectricity.OldLicenseId = newItem.OldLicenseId;
|
||||||
|
newItem.LicenseCode = newElectricity.LicenseCode = CodeRecordsService.ReturnCodeByMenuIdProjectId(Const.ProjectElectricityMenuId, newElectricity.ProjectId, newElectricity.ApplyUnitId);
|
||||||
|
db.License_Electricity.InsertOnSubmit(newElectricity);
|
||||||
|
////增加一条编码记录
|
||||||
|
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectElectricityMenuId, newElectricity.ProjectId, newElectricity.ApplyUnitId, newElectricity.ElectricityId, newElectricity.ApplyDate);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (newItem.States == Const.State_3)
|
||||||
|
{
|
||||||
|
updateElectricity.CloseManId = newElectricity.CloseManId;
|
||||||
|
updateElectricity.CloseReasons = newElectricity.CloseReasons;
|
||||||
|
updateElectricity.CloseTime = DateTime.Now;
|
||||||
|
if (newElectricity.ValidityEndTime.HasValue && newElectricity.ValidityEndTime < DateTime.Now)
|
||||||
|
{
|
||||||
|
updateElectricity.CloseTime = newElectricity.ValidityEndTime;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (newItem.States == Const.State_R)
|
||||||
|
{
|
||||||
|
updateElectricity.CancelManId = newElectricity.CancelManId;
|
||||||
|
updateElectricity.CancelReasons = newElectricity.CancelReasons;
|
||||||
|
updateElectricity.CancelTime = DateTime.Now;
|
||||||
|
if (newElectricity.ValidityEndTime.HasValue && newElectricity.ValidityEndTime < DateTime.Now)
|
||||||
|
{
|
||||||
|
updateElectricity.CancelTime = newElectricity.ValidityEndTime;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
updateElectricity.WorkPalce = newElectricity.WorkPalce;
|
||||||
|
updateElectricity.WorkDepth = newElectricity.WorkDepth;
|
||||||
|
updateElectricity.ValidityStartTime = newElectricity.ValidityStartTime;
|
||||||
|
updateElectricity.ValidityEndTime = newElectricity.ValidityEndTime;
|
||||||
|
updateElectricity.WorkMeasures = newElectricity.WorkMeasures;
|
||||||
|
updateElectricity.NextManId = newElectricity.NextManId;
|
||||||
|
updateElectricity.States = newElectricity.States;
|
||||||
|
|
||||||
|
updateElectricity.WorkAreaId = newItem.WorkAreaId;
|
||||||
|
updateElectricity.Reason = newItem.Reason;
|
||||||
|
updateElectricity.FireWatchManName = newItem.FireWatchManName;
|
||||||
|
updateElectricity.WorkLeaderName = newItem.WorkLeaderName;
|
||||||
|
updateElectricity.WorkLeaderTel = newItem.WorkLeaderTel;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
updateElectricity.States = newElectricity.States;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region 作业票【定稿】
|
#region 作业票【定稿】
|
||||||
if (newItem.MenuId == Const.ProjectLicenseManagerMenuId)
|
if (newItem.MenuId == Const.ProjectLicenseManagerMenuId)
|
||||||
{
|
{
|
||||||
|
@ -1880,23 +2317,26 @@ namespace BLL
|
||||||
#region 新增下一步审核记录
|
#region 新增下一步审核记录
|
||||||
if (newItem.IsAgree == true)
|
if (newItem.IsAgree == true)
|
||||||
{
|
{
|
||||||
var getCloseAllOperate = db.License_FlowOperate.FirstOrDefault(x => x.DataId == updateFlowOperate.DataId && (!x.IsClosed.HasValue || x.IsClosed == false) && (!x.IsFlowEnd.HasValue || x.IsFlowEnd == false));
|
//修改只需要一个人审批直接通过
|
||||||
if (getCloseAllOperate == null)
|
|
||||||
{
|
//var getCloseAllOperate = db.License_FlowOperate.FirstOrDefault(x => x.DataId == updateFlowOperate.DataId && (!x.IsClosed.HasValue || x.IsClosed == false) && (!x.IsFlowEnd.HasValue || x.IsFlowEnd == false));
|
||||||
var getNextFlowOperate = db.License_FlowOperate.FirstOrDefault(x => x.DataId == updateFlowOperate.DataId && x.IsFlowEnd == true);
|
//if (getCloseAllOperate == null)
|
||||||
////判断审核步骤是否结束
|
//{
|
||||||
if (getNextFlowOperate != null)
|
//var getNextFlowOperate = db.License_FlowOperate.FirstOrDefault(x => x.DataId == updateFlowOperate.DataId && x.IsFlowEnd == true);
|
||||||
{
|
var getNextFlowOperate = db.License_FlowOperate.FirstOrDefault(x => x.DataId == updateFlowOperate.DataId);
|
||||||
/////最后一步是关闭所有 步骤
|
// ////判断审核步骤是否结束
|
||||||
getNextFlowOperate.IsClosed = true;
|
// if (getNextFlowOperate != null)
|
||||||
|
// {
|
||||||
|
/////最后一步是关闭所有 步骤
|
||||||
|
getNextFlowOperate.IsClosed = true;
|
||||||
getNextFlowOperate.OperaterTime = DateTime.Now;
|
getNextFlowOperate.OperaterTime = DateTime.Now;
|
||||||
getNextFlowOperate.IsAgree = true;
|
getNextFlowOperate.IsAgree = true;
|
||||||
getNextFlowOperate.OperaterId = newItem.OperaterId;
|
getNextFlowOperate.OperaterId = newItem.OperaterId;
|
||||||
getNextFlowOperate.Opinion = "审核完成!";
|
getNextFlowOperate.Opinion = "审核完成!";
|
||||||
boolIsFlowEnd = true;
|
boolIsFlowEnd = true;
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
#region 动火作业票
|
#region 动火作业票
|
||||||
if (strMenuId == Const.ProjectFireWorkMenuId)
|
if (strMenuId == Const.ProjectFireWorkMenuId)
|
||||||
|
@ -2163,6 +2603,39 @@ namespace BLL
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region 临时用电作业票
|
||||||
|
if (strMenuId == Const.ProjectElectricityMenuId)
|
||||||
|
{
|
||||||
|
var getElectricity = db.License_Electricity.FirstOrDefault(x => x.ElectricityId == updateFlowOperate.DataId);
|
||||||
|
if (getElectricity != null)
|
||||||
|
{
|
||||||
|
getElectricity.NextManId = newItem.NextOperaterId;
|
||||||
|
if (newItem.IsAgree == true)
|
||||||
|
{
|
||||||
|
if (boolIsFlowEnd == true)
|
||||||
|
{
|
||||||
|
getElectricity.NextManId = null;
|
||||||
|
getElectricity.States = Const.State_2;
|
||||||
|
if (getElectricity.ValidityStartTime.HasValue && getElectricity.ValidityStartTime < DateTime.Now)
|
||||||
|
{
|
||||||
|
int days = 7;
|
||||||
|
if (getElectricity.ValidityEndTime.HasValue)
|
||||||
|
{
|
||||||
|
days = Convert.ToInt32((getElectricity.ValidityEndTime - getElectricity.ValidityStartTime).Value.TotalDays);
|
||||||
|
}
|
||||||
|
getElectricity.ValidityStartTime = DateTime.Now;
|
||||||
|
getElectricity.ValidityEndTime = DateTime.Now.AddDays(days);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
getElectricity.States = Const.State_0;
|
||||||
|
}
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
if (!boolIsFlowEnd && !string.IsNullOrEmpty(newItem.NextOperaterId))
|
if (!boolIsFlowEnd && !string.IsNullOrEmpty(newItem.NextOperaterId))
|
||||||
{
|
{
|
||||||
List<string> getUserIds = Funs.GetStrListByStr(newItem.NextOperaterId, ',');
|
List<string> getUserIds = Funs.GetStrListByStr(newItem.NextOperaterId, ',');
|
||||||
|
@ -2291,6 +2764,7 @@ namespace BLL
|
||||||
var getAllFlows = from x in db.License_FlowOperate
|
var getAllFlows = from x in db.License_FlowOperate
|
||||||
where x.DataId == licenseInfo.LicenseId && (!x.IsFlowEnd.HasValue || x.IsFlowEnd == false)
|
where x.DataId == licenseInfo.LicenseId && (!x.IsFlowEnd.HasValue || x.IsFlowEnd == false)
|
||||||
select x;
|
select x;
|
||||||
|
|
||||||
if (licenseInfo == null || string.IsNullOrEmpty(licenseInfo.LicenseId) || getAllFlows.Count() == 0)
|
if (licenseInfo == null || string.IsNullOrEmpty(licenseInfo.LicenseId) || getAllFlows.Count() == 0)
|
||||||
{
|
{
|
||||||
getFlowOperate = (from x in db.Sys_MenuFlowOperate
|
getFlowOperate = (from x in db.Sys_MenuFlowOperate
|
||||||
|
@ -2617,6 +3091,17 @@ namespace BLL
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region 临时用电作业票
|
||||||
|
else if (newItem.MenuId == Const.ProjectElectricityMenuId)
|
||||||
|
{
|
||||||
|
var updateElectricity = db.License_Electricity.FirstOrDefault(x => x.ElectricityId == strLicenseId);
|
||||||
|
if (updateElectricity == null)
|
||||||
|
{
|
||||||
|
updateElectricity.NextManId = null;
|
||||||
|
updateElectricity.States = Const.State_C;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -291,6 +291,11 @@ namespace BLL
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string WorkPost_SafetyManager = "e426e560-9906-4aba-843e-2daef9ebeb05";
|
public static string WorkPost_SafetyManager = "e426e560-9906-4aba-843e-2daef9ebeb05";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// HSE副经理岗位Id
|
||||||
|
/// </summary>
|
||||||
|
public static string WorkPost_SafetyManagerFu = "46AA7960-1D35-4D5B-8C8F-AA4C874D63C8";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 无损检测工岗位Id
|
/// 无损检测工岗位Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1946,6 +1951,10 @@ namespace BLL
|
||||||
/// 吊装作业票
|
/// 吊装作业票
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string ProjectLiftingWorkMenuId = "A1BE3AB6-9D4A-41E7-8870-E73423165451";
|
public const string ProjectLiftingWorkMenuId = "A1BE3AB6-9D4A-41E7-8870-E73423165451";
|
||||||
|
/// <summary>
|
||||||
|
/// 临时用电作业票
|
||||||
|
/// </summary>
|
||||||
|
public const string ProjectElectricityMenuId = "48F64E0F-38B2-4BDC-9B61-6200BD02CBF5";
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region HSSE检查管理
|
#region HSSE检查管理
|
||||||
|
|
|
@ -76,6 +76,11 @@ namespace BLL
|
||||||
CloseTime = fireWork.CloseTime,
|
CloseTime = fireWork.CloseTime,
|
||||||
NextManId=fireWork.NextManId,
|
NextManId=fireWork.NextManId,
|
||||||
States = fireWork.States,
|
States = fireWork.States,
|
||||||
|
|
||||||
|
WorkAreaId=fireWork.WorkAreaId,
|
||||||
|
Reason=fireWork.Reason,
|
||||||
|
FireLevel=fireWork.FireLevel,
|
||||||
|
|
||||||
};
|
};
|
||||||
db.License_FireWork.InsertOnSubmit(newFireWork);
|
db.License_FireWork.InsertOnSubmit(newFireWork);
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
|
@ -105,7 +110,11 @@ namespace BLL
|
||||||
newFireWork.CloseReasons = fireWork.CloseReasons;
|
newFireWork.CloseReasons = fireWork.CloseReasons;
|
||||||
newFireWork.CloseTime = fireWork.CloseTime;
|
newFireWork.CloseTime = fireWork.CloseTime;
|
||||||
newFireWork.NextManId = fireWork.NextManId;
|
newFireWork.NextManId = fireWork.NextManId;
|
||||||
newFireWork.States = fireWork.States;
|
newFireWork.States = fireWork.States;
|
||||||
|
|
||||||
|
newFireWork.WorkAreaId = fireWork.WorkAreaId;
|
||||||
|
newFireWork.Reason = fireWork.Reason;
|
||||||
|
newFireWork.FireLevel = fireWork.FireLevel;
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -172,6 +181,14 @@ namespace BLL
|
||||||
CloseTime = heightWork.CloseTime,
|
CloseTime = heightWork.CloseTime,
|
||||||
NextManId = heightWork.NextManId,
|
NextManId = heightWork.NextManId,
|
||||||
States = heightWork.States,
|
States = heightWork.States,
|
||||||
|
|
||||||
|
WorkAreaId=heightWork.WorkAreaId,
|
||||||
|
WorkHeight=heightWork.WorkHeight,
|
||||||
|
HeightLevel=heightWork.HeightLevel,
|
||||||
|
FireWatchManName=heightWork.FireWatchManName,
|
||||||
|
WorkLeaderName=heightWork.WorkLeaderName,
|
||||||
|
WorkLeaderTel= heightWork.WorkLeaderTel,
|
||||||
|
|
||||||
};
|
};
|
||||||
db.License_HeightWork.InsertOnSubmit(newHeightWork);
|
db.License_HeightWork.InsertOnSubmit(newHeightWork);
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
|
@ -203,6 +220,13 @@ namespace BLL
|
||||||
newHeightWork.CloseTime = heightWork.CloseTime;
|
newHeightWork.CloseTime = heightWork.CloseTime;
|
||||||
newHeightWork.NextManId = heightWork.NextManId;
|
newHeightWork.NextManId = heightWork.NextManId;
|
||||||
newHeightWork.States = heightWork.States;
|
newHeightWork.States = heightWork.States;
|
||||||
|
|
||||||
|
newHeightWork.WorkAreaId = heightWork.WorkAreaId;
|
||||||
|
newHeightWork.WorkHeight = heightWork.WorkHeight;
|
||||||
|
newHeightWork.HeightLevel = heightWork.HeightLevel;
|
||||||
|
newHeightWork.FireWatchManName = heightWork.FireWatchManName;
|
||||||
|
newHeightWork.WorkLeaderName = heightWork.WorkLeaderName;
|
||||||
|
newHeightWork.WorkLeaderTel = heightWork.WorkLeaderTel;
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -269,6 +293,16 @@ namespace BLL
|
||||||
CloseTime = limitedSpace.CloseTime,
|
CloseTime = limitedSpace.CloseTime,
|
||||||
NextManId = limitedSpace.NextManId,
|
NextManId = limitedSpace.NextManId,
|
||||||
States = limitedSpace.States,
|
States = limitedSpace.States,
|
||||||
|
|
||||||
|
WorkAreaId=limitedSpace.WorkAreaId,
|
||||||
|
LimitedDescribe=limitedSpace.LimitedDescribe,
|
||||||
|
IsBoolOther=limitedSpace.IsBoolOther,
|
||||||
|
IsBoolHarmfulGas=limitedSpace.IsBoolHarmfulGas,
|
||||||
|
TestResult=limitedSpace.TestResult,
|
||||||
|
TestDate=limitedSpace.TestDate,
|
||||||
|
TestPerson=limitedSpace.TestPerson,
|
||||||
|
VenStep=limitedSpace.VenStep,
|
||||||
|
|
||||||
};
|
};
|
||||||
db.License_LimitedSpace.InsertOnSubmit(newLimitedSpace);
|
db.License_LimitedSpace.InsertOnSubmit(newLimitedSpace);
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
|
@ -299,6 +333,15 @@ namespace BLL
|
||||||
newLimitedSpace.CloseTime = limitedSpace.CloseTime;
|
newLimitedSpace.CloseTime = limitedSpace.CloseTime;
|
||||||
newLimitedSpace.NextManId = limitedSpace.NextManId;
|
newLimitedSpace.NextManId = limitedSpace.NextManId;
|
||||||
newLimitedSpace.States = limitedSpace.States;
|
newLimitedSpace.States = limitedSpace.States;
|
||||||
|
|
||||||
|
newLimitedSpace.WorkAreaId = limitedSpace.WorkAreaId;
|
||||||
|
newLimitedSpace.LimitedDescribe = limitedSpace.LimitedDescribe;
|
||||||
|
newLimitedSpace.IsBoolOther = limitedSpace.IsBoolOther;
|
||||||
|
newLimitedSpace.IsBoolHarmfulGas = limitedSpace.IsBoolHarmfulGas;
|
||||||
|
newLimitedSpace.TestResult = limitedSpace.TestResult;
|
||||||
|
newLimitedSpace.TestDate = limitedSpace.TestDate;
|
||||||
|
newLimitedSpace.TestPerson = limitedSpace.TestPerson;
|
||||||
|
newLimitedSpace.VenStep = limitedSpace.VenStep;
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -368,6 +411,9 @@ namespace BLL
|
||||||
CloseTime = radialWork.CloseTime,
|
CloseTime = radialWork.CloseTime,
|
||||||
NextManId = radialWork.NextManId,
|
NextManId = radialWork.NextManId,
|
||||||
States = radialWork.States,
|
States = radialWork.States,
|
||||||
|
|
||||||
|
WorkAreaId=radialWork.WorkAreaId,
|
||||||
|
|
||||||
};
|
};
|
||||||
db.License_RadialWork.InsertOnSubmit(newRadialWork);
|
db.License_RadialWork.InsertOnSubmit(newRadialWork);
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
|
@ -408,6 +454,8 @@ namespace BLL
|
||||||
newRadialWork.CloseTime = radialWork.CloseTime;
|
newRadialWork.CloseTime = radialWork.CloseTime;
|
||||||
newRadialWork.NextManId = radialWork.NextManId;
|
newRadialWork.NextManId = radialWork.NextManId;
|
||||||
newRadialWork.States = radialWork.States;
|
newRadialWork.States = radialWork.States;
|
||||||
|
|
||||||
|
newRadialWork.WorkAreaId = radialWork.WorkAreaId;
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -476,6 +524,11 @@ namespace BLL
|
||||||
CloseTime = openCircuit.CloseTime,
|
CloseTime = openCircuit.CloseTime,
|
||||||
NextManId = openCircuit.NextManId,
|
NextManId = openCircuit.NextManId,
|
||||||
States = openCircuit.States,
|
States = openCircuit.States,
|
||||||
|
|
||||||
|
WorkAreaId=openCircuit.WorkAreaId,
|
||||||
|
Reason=openCircuit.Reason,
|
||||||
|
FireWatchManName=openCircuit.FireWatchManName,
|
||||||
|
|
||||||
};
|
};
|
||||||
db.License_OpenCircuit.InsertOnSubmit(newOpenCircuit);
|
db.License_OpenCircuit.InsertOnSubmit(newOpenCircuit);
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
|
@ -507,6 +560,10 @@ namespace BLL
|
||||||
newOpenCircuit.CloseTime = openCircuit.CloseTime;
|
newOpenCircuit.CloseTime = openCircuit.CloseTime;
|
||||||
newOpenCircuit.NextManId = openCircuit.NextManId;
|
newOpenCircuit.NextManId = openCircuit.NextManId;
|
||||||
newOpenCircuit.States = openCircuit.States;
|
newOpenCircuit.States = openCircuit.States;
|
||||||
|
|
||||||
|
newOpenCircuit.WorkAreaId = openCircuit.WorkAreaId;
|
||||||
|
newOpenCircuit.Reason = openCircuit.Reason;
|
||||||
|
newOpenCircuit.FireWatchManName = openCircuit.FireWatchManName;
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -572,6 +629,11 @@ namespace BLL
|
||||||
CloseTime = breakGround.CloseTime,
|
CloseTime = breakGround.CloseTime,
|
||||||
NextManId = breakGround.NextManId,
|
NextManId = breakGround.NextManId,
|
||||||
States = breakGround.States,
|
States = breakGround.States,
|
||||||
|
|
||||||
|
WorkAreaId=breakGround.WorkAreaId,
|
||||||
|
Reason=breakGround.Reason,
|
||||||
|
FireWatchManName=breakGround.FireWatchManName,
|
||||||
|
|
||||||
};
|
};
|
||||||
db.License_BreakGround.InsertOnSubmit(newBreakGround);
|
db.License_BreakGround.InsertOnSubmit(newBreakGround);
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
|
@ -602,6 +664,10 @@ namespace BLL
|
||||||
newBreakGround.CloseTime = breakGround.CloseTime;
|
newBreakGround.CloseTime = breakGround.CloseTime;
|
||||||
newBreakGround.NextManId = breakGround.NextManId;
|
newBreakGround.NextManId = breakGround.NextManId;
|
||||||
newBreakGround.States = breakGround.States;
|
newBreakGround.States = breakGround.States;
|
||||||
|
|
||||||
|
newBreakGround.WorkAreaId = breakGround.WorkAreaId;
|
||||||
|
newBreakGround.Reason = breakGround.Reason;
|
||||||
|
newBreakGround.FireWatchManName = breakGround.FireWatchManName;
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -771,6 +837,15 @@ namespace BLL
|
||||||
CloseTime = liftingWork.CloseTime,
|
CloseTime = liftingWork.CloseTime,
|
||||||
NextManId = liftingWork.NextManId,
|
NextManId = liftingWork.NextManId,
|
||||||
States = liftingWork.States,
|
States = liftingWork.States,
|
||||||
|
|
||||||
|
WorkAreaId=liftingWork.WorkAreaId,
|
||||||
|
LiftingHeight=liftingWork.LiftingHeight,
|
||||||
|
FireWatchManName=liftingWork.FireWatchManName,
|
||||||
|
WorkLeaderName=liftingWork.WorkLeaderName,
|
||||||
|
WorkLeaderTel=liftingWork.WorkLeaderTel,
|
||||||
|
QzgName=liftingWork.QzgName,
|
||||||
|
QzgPhone=liftingWork.QzgPhone,
|
||||||
|
|
||||||
};
|
};
|
||||||
db.License_LiftingWork.InsertOnSubmit(newLiftingWork);
|
db.License_LiftingWork.InsertOnSubmit(newLiftingWork);
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
|
@ -802,6 +877,14 @@ namespace BLL
|
||||||
newLiftingWork.CloseTime = liftingWork.CloseTime;
|
newLiftingWork.CloseTime = liftingWork.CloseTime;
|
||||||
newLiftingWork.NextManId = liftingWork.NextManId;
|
newLiftingWork.NextManId = liftingWork.NextManId;
|
||||||
newLiftingWork.States = liftingWork.States;
|
newLiftingWork.States = liftingWork.States;
|
||||||
|
|
||||||
|
newLiftingWork.WorkAreaId = liftingWork.WorkAreaId;
|
||||||
|
newLiftingWork.LiftingHeight = liftingWork.LiftingHeight;
|
||||||
|
newLiftingWork.FireWatchManName = liftingWork.FireWatchManName;
|
||||||
|
newLiftingWork.WorkLeaderName = liftingWork.WorkLeaderName;
|
||||||
|
newLiftingWork.WorkLeaderTel = liftingWork.WorkLeaderTel;
|
||||||
|
newLiftingWork.QzgName = liftingWork.QzgName;
|
||||||
|
newLiftingWork.QzgPhone = liftingWork.QzgPhone;
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -828,6 +911,117 @@ namespace BLL
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region 临时用电作业票
|
||||||
|
/// <summary>
|
||||||
|
/// 根据主键获取临时用电作业票
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="ElectricityId"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static Model.License_Electricity GetElectricityById(string ElectricityId)
|
||||||
|
{
|
||||||
|
return Funs.DB.License_Electricity.FirstOrDefault(e => e.ElectricityId == ElectricityId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 添加临时用电作业票
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="Electricity"></param>
|
||||||
|
public static void AddElectricity(Model.License_Electricity Electricity)
|
||||||
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
|
Model.License_Electricity newElectricity = new Model.License_Electricity
|
||||||
|
{
|
||||||
|
ElectricityId = Electricity.ElectricityId,
|
||||||
|
ProjectId = Electricity.ProjectId,
|
||||||
|
LicenseCode = Electricity.LicenseCode,
|
||||||
|
ApplyUnitId = Electricity.ApplyUnitId,
|
||||||
|
ApplyManId = Electricity.ApplyManId,
|
||||||
|
ApplyDate = Electricity.ApplyDate,
|
||||||
|
WorkPalce = Electricity.WorkPalce,
|
||||||
|
WorkDepth = Electricity.WorkDepth,
|
||||||
|
ValidityStartTime = Electricity.ValidityStartTime,
|
||||||
|
ValidityEndTime = Electricity.ValidityEndTime,
|
||||||
|
WorkMeasures = Electricity.WorkMeasures,
|
||||||
|
CancelManId = Electricity.CancelManId,
|
||||||
|
CancelReasons = Electricity.CancelReasons,
|
||||||
|
CancelTime = Electricity.CancelTime,
|
||||||
|
CloseManId = Electricity.CloseManId,
|
||||||
|
CloseReasons = Electricity.CloseReasons,
|
||||||
|
CloseTime = Electricity.CloseTime,
|
||||||
|
NextManId = Electricity.NextManId,
|
||||||
|
States = Electricity.States,
|
||||||
|
|
||||||
|
WorkAreaId= Electricity.WorkAreaId,
|
||||||
|
Reason = Electricity.Reason,
|
||||||
|
FireWatchManName = Electricity.FireWatchManName,
|
||||||
|
WorkLeaderName = Electricity.WorkLeaderName,
|
||||||
|
WorkLeaderTel = Electricity.WorkLeaderTel,
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
db.License_Electricity.InsertOnSubmit(newElectricity);
|
||||||
|
db.SubmitChanges();
|
||||||
|
////增加一条编码记录
|
||||||
|
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectElectricityMenuId, Electricity.ProjectId, Electricity.ApplyUnitId, Electricity.ElectricityId, Electricity.ApplyDate);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 修改临时用电作业票
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="Electricity"></param>
|
||||||
|
public static void UpdateElectricity(Model.License_Electricity Electricity)
|
||||||
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
|
Model.License_Electricity newElectricity = db.License_Electricity.FirstOrDefault(e => e.ElectricityId == Electricity.ElectricityId);
|
||||||
|
if (newElectricity != null)
|
||||||
|
{
|
||||||
|
newElectricity.WorkPalce = Electricity.WorkPalce;
|
||||||
|
newElectricity.WorkDepth = Electricity.WorkDepth;
|
||||||
|
newElectricity.ValidityStartTime = Electricity.ValidityStartTime;
|
||||||
|
newElectricity.ValidityEndTime = Electricity.ValidityEndTime;
|
||||||
|
newElectricity.WorkMeasures = Electricity.WorkMeasures;
|
||||||
|
newElectricity.CancelManId = Electricity.CancelManId;
|
||||||
|
newElectricity.CancelReasons = Electricity.CancelReasons;
|
||||||
|
newElectricity.CancelTime = Electricity.CancelTime;
|
||||||
|
newElectricity.CloseManId = Electricity.CloseManId;
|
||||||
|
newElectricity.CloseReasons = Electricity.CloseReasons;
|
||||||
|
newElectricity.CloseTime = Electricity.CloseTime;
|
||||||
|
newElectricity.NextManId = Electricity.NextManId;
|
||||||
|
newElectricity.States = Electricity.States;
|
||||||
|
|
||||||
|
newElectricity.WorkAreaId = Electricity.WorkAreaId;
|
||||||
|
newElectricity.Reason = Electricity.Reason;
|
||||||
|
newElectricity.FireWatchManName = Electricity.FireWatchManName;
|
||||||
|
newElectricity.WorkLeaderName = Electricity.WorkLeaderName;
|
||||||
|
newElectricity.WorkLeaderTel = Electricity.WorkLeaderTel;
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 根据主键删除临时用电作业票
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="ElectricityId"></param>
|
||||||
|
public static void DeleteElectricityById(string ElectricityId)
|
||||||
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
|
Model.License_Electricity Electricity = db.License_Electricity.FirstOrDefault(e => e.ElectricityId == ElectricityId);
|
||||||
|
if (Electricity != null)
|
||||||
|
{
|
||||||
|
///删除编码表记录
|
||||||
|
CodeRecordsService.DeleteCodeRecordsByDataId(ElectricityId);
|
||||||
|
////删除附件
|
||||||
|
CommonService.DeleteAttachFileById(ElectricityId);
|
||||||
|
///删除-安全措施
|
||||||
|
DeleteLicenseItemByDataId(ElectricityId);
|
||||||
|
///删除作业票审核信息
|
||||||
|
DeleteFlowOperateByDataId(ElectricityId);
|
||||||
|
db.License_Electricity.DeleteOnSubmit(Electricity);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 作业票-安全措施
|
#region 作业票-安全措施
|
||||||
|
|
|
@ -397,7 +397,10 @@ namespace BLL
|
||||||
/// <returns>HSE人员的数量</returns>
|
/// <returns>HSE人员的数量</returns>
|
||||||
public static int GetHSEPersonCountByUnitId(string unitId, string projectId)
|
public static int GetHSEPersonCountByUnitId(string unitId, string projectId)
|
||||||
{
|
{
|
||||||
var q = (from x in Funs.DB.SitePerson_Person where x.UnitId == unitId && x.ProjectId == projectId && (x.WorkPostId == BLL.Const.WorkPost_HSSEEngineer || x.WorkPostId == BLL.Const.WorkPost_SafetyManager) && x.IsUsed == true select x).ToList();
|
var q = (from x in Funs.DB.SitePerson_Person
|
||||||
|
join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId
|
||||||
|
where x.UnitId == unitId && x.ProjectId == projectId && y.IsHsse==true && x.IsUsed == true select x).ToList();
|
||||||
|
//var q = (from x in Funs.DB.SitePerson_Person where x.UnitId == unitId && x.ProjectId == projectId && (x.WorkPostId == BLL.Const.WorkPost_HSSEEngineer || x.WorkPostId == BLL.Const.WorkPost_SafetyManager) && x.IsUsed == true select x).ToList();
|
||||||
return q.Count();
|
return q.Count();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1062,6 +1062,8 @@
|
||||||
<Content Include="HSSE\Law\RulesRegulationsSelectCloumn.aspx" />
|
<Content Include="HSSE\Law\RulesRegulationsSelectCloumn.aspx" />
|
||||||
<Content Include="HSSE\License\BreakGround.aspx" />
|
<Content Include="HSSE\License\BreakGround.aspx" />
|
||||||
<Content Include="HSSE\License\BreakGroundView.aspx" />
|
<Content Include="HSSE\License\BreakGroundView.aspx" />
|
||||||
|
<Content Include="HSSE\License\Electricity.aspx" />
|
||||||
|
<Content Include="HSSE\License\ElectricityView.aspx" />
|
||||||
<Content Include="HSSE\License\EquipmentSafetyList.aspx" />
|
<Content Include="HSSE\License\EquipmentSafetyList.aspx" />
|
||||||
<Content Include="HSSE\License\EquipmentSafetyListEdit.aspx" />
|
<Content Include="HSSE\License\EquipmentSafetyListEdit.aspx" />
|
||||||
<Content Include="HSSE\License\EquipmentSafetyListView.aspx" />
|
<Content Include="HSSE\License\EquipmentSafetyListView.aspx" />
|
||||||
|
@ -11599,6 +11601,20 @@
|
||||||
<Compile Include="HSSE\License\BreakGroundView.aspx.designer.cs">
|
<Compile Include="HSSE\License\BreakGroundView.aspx.designer.cs">
|
||||||
<DependentUpon>BreakGroundView.aspx</DependentUpon>
|
<DependentUpon>BreakGroundView.aspx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="HSSE\License\Electricity.aspx.cs">
|
||||||
|
<DependentUpon>Electricity.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="HSSE\License\Electricity.aspx.designer.cs">
|
||||||
|
<DependentUpon>Electricity.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="HSSE\License\ElectricityView.aspx.cs">
|
||||||
|
<DependentUpon>ElectricityView.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="HSSE\License\ElectricityView.aspx.designer.cs">
|
||||||
|
<DependentUpon>ElectricityView.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="HSSE\License\EquipmentSafetyList.aspx.cs">
|
<Compile Include="HSSE\License\EquipmentSafetyList.aspx.cs">
|
||||||
<DependentUpon>EquipmentSafetyList.aspx</DependentUpon>
|
<DependentUpon>EquipmentSafetyList.aspx</DependentUpon>
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
|
|
@ -0,0 +1,122 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Electricity.aspx.cs" Inherits="FineUIPro.Web.HSSE.License.Electricity" %>
|
||||||
|
|
||||||
|
<!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>
|
||||||
|
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||||
|
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||||
|
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
|
||||||
|
<Items>
|
||||||
|
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="临时用电作业票" EnableCollapse="true"
|
||||||
|
runat="server" BoxFlex="1" DataKeyNames="ElectricityId" DataIDField="ElectricityId" AllowSorting="true"
|
||||||
|
SortField="ApplyDate" SortDirection="DESC" EnableColumnLines="true" OnSort="Grid1_Sort" AllowPaging="true"
|
||||||
|
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" ForceFit="true"
|
||||||
|
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
|
||||||
|
<Items>
|
||||||
|
<f:DropDownList ID="drpUnit" runat="server" Label="申请单位" Width="350px" LabelWidth="80px"
|
||||||
|
EnableEdit="true" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||||
|
</f:DropDownList>
|
||||||
|
<f:ToolbarSeparator runat="server"></f:ToolbarSeparator>
|
||||||
|
<f:RadioButtonList ID="drpStates" runat="server" Width="450px"
|
||||||
|
AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||||
|
</f:RadioButtonList>
|
||||||
|
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||||
|
</f:ToolbarFill>
|
||||||
|
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp"
|
||||||
|
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
<Columns>
|
||||||
|
<f:TemplateField ColumnID="tfNumber" Width="55px" HeaderText="序号" HeaderTextAlign="Center"
|
||||||
|
TextAlign="Center">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</f:TemplateField>
|
||||||
|
<f:RenderField Width="90px" ColumnID="LicenseCode" DataField="LicenseCode"
|
||||||
|
SortField="LicenseCode" FieldType="String" HeaderText="编号" HeaderTextAlign="Center"
|
||||||
|
TextAlign="Left">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="200px" ColumnID="ApplyUnitName" DataField="ApplyUnitName" SortField="ApplyUnitName"
|
||||||
|
FieldType="String" HeaderText="申请单位" HeaderTextAlign="Center" TextAlign="Left">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="120px" ColumnID="WorkPalce" DataField="WorkPalce" SortField="WorkPalce"
|
||||||
|
FieldType="String" HeaderText="作业地点" HeaderTextAlign="Center" TextAlign="Left">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="100px" ColumnID="WorkLeaderName" DataField="WorkLeaderName" SortField="WorkLeaderName"
|
||||||
|
FieldType="String" HeaderText="安装人姓名" HeaderTextAlign="Center" TextAlign="Left">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="150px" ColumnID="ApplyDate" DataField="ApplyDate" SortField="ApplyDate"
|
||||||
|
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd HH:mm" HeaderText="申请日期"
|
||||||
|
HeaderTextAlign="Center" TextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="150px" ColumnID="ValidityStartTime" DataField="ValidityStartTime" SortField="ValidityStartTime"
|
||||||
|
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd HH:mm" HeaderText="有效期开始时间"
|
||||||
|
HeaderTextAlign="Center" TextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="150px" ColumnID="ValidityEndTime" DataField="ValidityEndTime" SortField="ValidityEndTime"
|
||||||
|
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd HH:mm" HeaderText="有效期结束时间"
|
||||||
|
HeaderTextAlign="Center" TextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="160px" ColumnID="WorkMeasures" DataField="WorkMeasures"
|
||||||
|
SortField="WorkMeasures" FieldType="String" HeaderText="作业内容、机具及安全措施" HeaderTextAlign="Center"
|
||||||
|
TextAlign="Left">
|
||||||
|
</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:DropDownList>
|
||||||
|
</PageItems>
|
||||||
|
</f:Grid>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
<f:Window ID="Window1" Title="临时用电票" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
|
Target="Parent" EnableResize="false" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||||
|
Width="1000px" Height="640px">
|
||||||
|
</f:Window>
|
||||||
|
<f:Menu ID="Menu1" runat="server">
|
||||||
|
<f:MenuButton ID="btnMenuView" OnClick="btnMenuView_Click" EnablePostBack="true"
|
||||||
|
runat="server" Text="查看" Icon="Find">
|
||||||
|
</f:MenuButton>
|
||||||
|
<f:MenuButton ID="btnPrinter" EnablePostBack="true" runat="server"
|
||||||
|
Text="导出" Icon="Printer" OnClick="btnPrinter_Click" EnableAjax="false" DisableControlBeforePostBack="false">
|
||||||
|
</f:MenuButton>
|
||||||
|
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||||
|
Hidden="true" Icon="Delete" ConfirmText="删除选中行?" ConfirmTarget="Parent" runat="server"
|
||||||
|
Text="删除">
|
||||||
|
</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;
|
||||||
|
}
|
||||||
|
|
||||||
|
function reloadGrid() {
|
||||||
|
__doPostBack(null, 'reloadGrid');
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,179 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.HSSE.License
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class Electricity
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <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>
|
||||||
|
/// Grid1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Grid Grid1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// drpUnit 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList drpUnit;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// drpStates 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.RadioButtonList drpStates;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ToolbarFill1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnOut 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnOut;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblNumber 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label lblNumber;
|
||||||
|
|
||||||
|
/// <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>
|
||||||
|
/// Menu1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Menu Menu1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnMenuView 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.MenuButton btnMenuView;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnPrinter 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.MenuButton btnPrinter;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnMenuDelete 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.MenuButton btnMenuDelete;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,259 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ElectricityView.aspx.cs" Inherits="FineUIPro.Web.HSSE.License.ElectricityView" %>
|
||||||
|
|
||||||
|
<!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>
|
||||||
|
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||||
|
<style type="text/css">
|
||||||
|
.formtitle .f-field-body {
|
||||||
|
text-align: center;
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
|
||||||
|
<f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true" TitleAlign="Center"
|
||||||
|
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" EnableTableStyle="true">
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:Label ID="lbLicenseCode" runat="server" Label="编号" LabelWidth="140px">
|
||||||
|
</f:Label>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:Label ID="lbImageUrl" runat="server" Label="临时用电需附简图" LabelWidth="140px" Text="见附件。">
|
||||||
|
</f:Label>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtApplyUnit" runat="server" Label="申请单位" Readonly="true" LabelWidth="120px">
|
||||||
|
</f:TextBox>
|
||||||
|
<f:TextBox ID="txtApplyManName" runat="server" Label="申请人" Readonly="true" LabelWidth="120px">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtWorkPalce" runat="server" Label="作业地点" Readonly="true" LabelWidth="120px">
|
||||||
|
</f:TextBox>
|
||||||
|
<f:TextBox ID="txtReason" runat="server" Label="作业原因" Readonly="true" LabelWidth="120px">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtWorkDate" runat="server" Label="有效期限" Readonly="true" LabelWidth="120px">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtWorkMeasures" runat="server" Label="作业内容、机具及安全措施" Readonly="true" LabelWidth="120px">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="检查措施" EnableCollapse="true"
|
||||||
|
runat="server" BoxFlex="1" DataKeyNames="LicenseItemId" EnableColumnLines="true"
|
||||||
|
DataIDField="LicenseItemId" AllowSorting="true" SortField="SortIndex"
|
||||||
|
SortDirection="ASC" AllowPaging="false" >
|
||||||
|
<Columns>
|
||||||
|
<f:RenderField Width="90px" ColumnID="SortIndex" DataField="SortIndex" FieldType="Int"
|
||||||
|
HeaderText="序号" HeaderTextAlign="Center" TextAlign="Left" >
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="200px" ColumnID="SafetyMeasures" DataField="SafetyMeasures" FieldType="String"
|
||||||
|
HeaderText="检查单" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="100px" ColumnID="ConfirmManName" DataField="ConfirmManName" FieldType="String"
|
||||||
|
HeaderText="确认执行" HeaderTextAlign="Center" TextAlign="Left" >
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="100px" ColumnID="NoUsedName" DataField="NoUsedName" FieldType="String"
|
||||||
|
HeaderText="不适用" HeaderTextAlign="Center" TextAlign="Left" >
|
||||||
|
</f:RenderField>
|
||||||
|
</Columns>
|
||||||
|
</f:Grid>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:Form ID="txtForm1" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
|
||||||
|
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="施工单位安全人员意见:">
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtOpinion1" runat="server" Readonly="true" Height="50px">
|
||||||
|
</f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow >
|
||||||
|
<Items>
|
||||||
|
<f:Label ID="Label6" runat="server" >
|
||||||
|
</f:Label>
|
||||||
|
<f:Label ID="txtName1" runat="server" Label="签字" LabelWidth="60px">
|
||||||
|
</f:Label>
|
||||||
|
<f:Label ID="txtTime1" runat="server" Text="年月日时分">
|
||||||
|
</f:Label>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
</f:Form>
|
||||||
|
<f:Form ID="txtForm2" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
|
||||||
|
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总包单位安全人员意见:">
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtOpinion2" runat="server" Readonly="true" Height="50px">
|
||||||
|
</f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow >
|
||||||
|
<Items>
|
||||||
|
<f:Label ID="Label1" runat="server" >
|
||||||
|
</f:Label>
|
||||||
|
<f:Label ID="txtName2" runat="server" Label="签字" LabelWidth="60px">
|
||||||
|
</f:Label>
|
||||||
|
<f:Label ID="txtTime2" runat="server" Text="年月日时分">
|
||||||
|
</f:Label>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
</f:Form>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:Form ID="txtForm3" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
|
||||||
|
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总包单位专业工程师意见:">
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtOpinion3" runat="server" Readonly="true" Height="50px">
|
||||||
|
</f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow >
|
||||||
|
<Items>
|
||||||
|
<f:Label ID="Label2" runat="server" >
|
||||||
|
</f:Label>
|
||||||
|
<f:Label ID="txtName3" runat="server" Label="签字" LabelWidth="60px">
|
||||||
|
</f:Label>
|
||||||
|
<f:Label ID="txtTime3" runat="server" Text="年月日时分">
|
||||||
|
</f:Label>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
</f:Form>
|
||||||
|
<f:Form ID="txtForm4" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
|
||||||
|
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总包单位施工经理意见:">
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtOpinion4" runat="server" Readonly="true" Height="50px">
|
||||||
|
</f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow >
|
||||||
|
<Items>
|
||||||
|
<f:Label ID="Label5" runat="server" >
|
||||||
|
</f:Label>
|
||||||
|
<f:Label ID="txtName4" runat="server" Label="签字" LabelWidth="60px">
|
||||||
|
</f:Label>
|
||||||
|
<f:Label ID="txtTime4" runat="server" Text="年月日时分">
|
||||||
|
</f:Label>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
</f:Form>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:Form ID="txtForm5" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
|
||||||
|
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="监理单位意见:">
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtOpinion5" runat="server" Readonly="true" Height="50px">
|
||||||
|
</f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow >
|
||||||
|
<Items>
|
||||||
|
<f:Label ID="Label9" runat="server" >
|
||||||
|
</f:Label>
|
||||||
|
<f:Label ID="txtName5" runat="server" Label="签字" LabelWidth="60px">
|
||||||
|
</f:Label>
|
||||||
|
<f:Label ID="txtTime5" runat="server" Text="年月日时分">
|
||||||
|
</f:Label>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
</f:Form>
|
||||||
|
<f:Form ID="txtForm6" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
|
||||||
|
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="业主单位意见:">
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtOpinion6" runat="server" Readonly="true" Height="50px">
|
||||||
|
</f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow >
|
||||||
|
<Items>
|
||||||
|
<f:Label ID="Label12" runat="server" >
|
||||||
|
</f:Label>
|
||||||
|
<f:Label ID="txtName6" runat="server" Label="签字" LabelWidth="60px">
|
||||||
|
</f:Label>
|
||||||
|
<f:Label ID="txtTime6" runat="server" Text="年月日时分">
|
||||||
|
</f:Label>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
</f:Form>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtCance" runat="server" Label="取消" Readonly="true" LabelWidth="90px">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtClose" runat="server" Label="关闭" Readonly="true" LabelWidth="90px">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||||
|
<Items>
|
||||||
|
<f:Label runat="server" ID="lbTemp">
|
||||||
|
</f:Label>
|
||||||
|
<f:Button ID="btnAttachUrl" Text="临时用电作业需附简图" ToolTip="临时用电作业需附简图查看" Icon="TableCell" runat="server"
|
||||||
|
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1">
|
||||||
|
</f:Button>
|
||||||
|
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||||
|
</f:ToolbarFill>
|
||||||
|
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Icon="SystemClose" MarginRight="10px">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
</f:Form>
|
||||||
|
<f:Window ID="WindowAtt" Title="附件" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
|
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||||
|
Height="500px">
|
||||||
|
</f:Window>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,242 @@
|
||||||
|
using BLL;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Data;
|
||||||
|
using System.Data.SqlClient;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.HSSE.License
|
||||||
|
{
|
||||||
|
public partial class ElectricityView : PageBase
|
||||||
|
{
|
||||||
|
#region 定义项
|
||||||
|
/// <summary>
|
||||||
|
/// 主键
|
||||||
|
/// </summary>
|
||||||
|
private string ElectricityId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return (string)ViewState["ElectricityId"];
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
ViewState["ElectricityId"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 加载
|
||||||
|
/// <summary>
|
||||||
|
/// 加载页面
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
this.SimpleForm1.Title = UnitService.GetUnitNameByUnitId(Const.UnitId_CWCEC) + this.Title;
|
||||||
|
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||||
|
this.ElectricityId = Request.Params["ElectricityId"];
|
||||||
|
if (!string.IsNullOrEmpty(this.ElectricityId))
|
||||||
|
{
|
||||||
|
var getElectricity = LicensePublicService.GetElectricityById(this.ElectricityId);
|
||||||
|
if (getElectricity != null)
|
||||||
|
{
|
||||||
|
this.lbLicenseCode.Text = getElectricity.LicenseCode;
|
||||||
|
this.txtApplyUnit.Text = UnitService.GetUnitNameByUnitId(getElectricity.ApplyUnitId);
|
||||||
|
this.txtApplyManName.Text = UserService.GetUserNameByUserId(getElectricity.ApplyManId);
|
||||||
|
this.txtWorkPalce.Text = getElectricity.WorkPalce;
|
||||||
|
this.txtReason.Text = getElectricity.Reason;
|
||||||
|
if (getElectricity.ValidityStartTime.HasValue)
|
||||||
|
{
|
||||||
|
this.txtWorkDate.Text = getElectricity.ValidityStartTime.Value.ToString("f") + " 至 ";
|
||||||
|
if (getElectricity.ValidityEndTime.HasValue)
|
||||||
|
{
|
||||||
|
this.txtWorkDate.Text += getElectricity.ValidityEndTime.Value.ToString("f");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.txtWorkMeasures.Text = getElectricity.WorkMeasures;
|
||||||
|
if (!string.IsNullOrEmpty(getElectricity.CancelManId))
|
||||||
|
{
|
||||||
|
this.txtCance.Text = UserService.GetUserNameByUserId(getElectricity.CancelManId) + ";取消时间:"
|
||||||
|
+ string.Format("{0:yyyy-MM-dd HH:mm}", getElectricity.CancelTime) + ";原因:" + getElectricity.CancelReasons + "。";
|
||||||
|
}
|
||||||
|
if (!string.IsNullOrEmpty(getElectricity.CloseManId))
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(getElectricity.CloseReasons))
|
||||||
|
{
|
||||||
|
this.txtClose.Text = getElectricity.CloseReasons + " 关闭时间:"
|
||||||
|
+ string.Format("{0:yyyy-MM-dd HH:mm}", getElectricity.CloseTime) + "。";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.txtClose.Text = UserService.GetUserNameByUserId(getElectricity.CloseManId) + ";关闭时间:"
|
||||||
|
+ string.Format("{0:yyyy-MM-dd HH:mm}", getElectricity.CloseTime) + "。";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 绑定表格
|
||||||
|
this.BindGrid();
|
||||||
|
this.SetFlow();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 获取审核记录信息
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
private void SetFlow()
|
||||||
|
{
|
||||||
|
var getFlows = LicensePublicService.GetFlowOperateListByDataId(this.ElectricityId);
|
||||||
|
if (getFlows.Count() > 0)
|
||||||
|
{
|
||||||
|
var getF1 = getFlows.FirstOrDefault(x => x.SortIndex == 1);
|
||||||
|
if (getF1 != null)
|
||||||
|
{
|
||||||
|
this.txtForm1.Title = getF1.AuditFlowName + ":";
|
||||||
|
if (getF1.OperaterTime.HasValue)
|
||||||
|
{
|
||||||
|
if (getF1.IsAgree == true)
|
||||||
|
{
|
||||||
|
this.txtOpinion1.Text = "同意。";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.txtOpinion1.Text = getF1.Opinion;
|
||||||
|
}
|
||||||
|
this.txtName1.Text = UserService.GetUserNameByUserId(getF1.OperaterId);
|
||||||
|
this.txtTime1.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF1.OperaterTime);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var getF2 = getFlows.FirstOrDefault(x => x.SortIndex == 2);
|
||||||
|
if (getF2 != null)
|
||||||
|
{
|
||||||
|
this.txtForm2.Title = getF2.AuditFlowName + ":";
|
||||||
|
if (getF2.OperaterTime.HasValue)
|
||||||
|
{
|
||||||
|
if (getF2.IsAgree == true)
|
||||||
|
{
|
||||||
|
this.txtOpinion2.Text = "同意。";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.txtOpinion2.Text = getF2.Opinion;
|
||||||
|
}
|
||||||
|
this.txtName2.Text = UserService.GetUserNameByUserId(getF2.OperaterId);
|
||||||
|
this.txtTime2.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF2.OperaterTime);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var getF3 = getFlows.FirstOrDefault(x => x.SortIndex == 3);
|
||||||
|
if (getF3 != null)
|
||||||
|
{
|
||||||
|
this.txtForm3.Title = getF3.AuditFlowName + ":";
|
||||||
|
if (getF3.OperaterTime.HasValue)
|
||||||
|
{
|
||||||
|
if (getF3.IsAgree == true)
|
||||||
|
{
|
||||||
|
this.txtOpinion3.Text = "同意。";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.txtOpinion3.Text = getF3.Opinion;
|
||||||
|
}
|
||||||
|
this.txtName3.Text = UserService.GetUserNameByUserId(getF3.OperaterId);
|
||||||
|
this.txtTime3.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF3.OperaterTime);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var getF4 = getFlows.FirstOrDefault(x => x.SortIndex == 4);
|
||||||
|
if (getF4 != null)
|
||||||
|
{
|
||||||
|
this.txtForm4.Title = getF4.AuditFlowName + ":";
|
||||||
|
if (getF4.OperaterTime.HasValue)
|
||||||
|
{
|
||||||
|
if (getF4.IsAgree == true)
|
||||||
|
{
|
||||||
|
this.txtOpinion4.Text = "同意。";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.txtOpinion4.Text = getF4.Opinion;
|
||||||
|
}
|
||||||
|
this.txtName4.Text = UserService.GetUserNameByUserId(getF4.OperaterId);
|
||||||
|
this.txtTime4.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF4.OperaterTime);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var getF5 = getFlows.FirstOrDefault(x => x.SortIndex == 5);
|
||||||
|
if (getF5 != null)
|
||||||
|
{
|
||||||
|
this.txtForm5.Title = getF5.AuditFlowName + ":";
|
||||||
|
if (getF5.OperaterTime.HasValue)
|
||||||
|
{
|
||||||
|
if (getF5.IsAgree == true)
|
||||||
|
{
|
||||||
|
this.txtOpinion5.Text = "同意。";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.txtOpinion5.Text = getF5.Opinion;
|
||||||
|
}
|
||||||
|
this.txtName5.Text = UserService.GetUserNameByUserId(getF5.OperaterId);
|
||||||
|
this.txtTime5.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF5.OperaterTime);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var getF6 = getFlows.FirstOrDefault(x => x.SortIndex == 6);
|
||||||
|
if (getF6 != null)
|
||||||
|
{
|
||||||
|
this.txtForm6.Title = getF6.AuditFlowName + ":";
|
||||||
|
if (getF6.OperaterTime.HasValue)
|
||||||
|
{
|
||||||
|
if (getF6.IsAgree == true)
|
||||||
|
{
|
||||||
|
this.txtOpinion6.Text = "同意。";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.txtOpinion6.Text = getF6.Opinion;
|
||||||
|
}
|
||||||
|
this.txtName6.Text = UserService.GetUserNameByUserId(getF6.OperaterId);
|
||||||
|
this.txtTime6.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF6.OperaterTime);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 绑定数据
|
||||||
|
/// </summary>
|
||||||
|
private void BindGrid()
|
||||||
|
{
|
||||||
|
string strSql = @"SELECT LicenseItemId,DataId,SortIndex,SafetyMeasures,(CASE WHEN IsUsed = 1 THEN '适用' ELSE '不适用' END) AS NoUsedName,ConfirmManId,U.UserName AS ConfirmManName"
|
||||||
|
+ @" FROM License_LicenseItem AS L "
|
||||||
|
+ @" LEFT JOIN Sys_User AS U ON L.ConfirmManId =U.UserId"
|
||||||
|
+ @" WHERE L.DataId ='" + this.ElectricityId + "'";
|
||||||
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
|
Grid1.RecordCount = tb.Rows.Count;
|
||||||
|
var table = this.GetPagedDataTable(Grid1, tb);
|
||||||
|
Grid1.DataSource = table;
|
||||||
|
Grid1.DataBind();
|
||||||
|
}
|
||||||
|
|
||||||
|
#region 附件查看
|
||||||
|
/// <summary>
|
||||||
|
/// 附件查看
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnAttachUrl_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(this.ElectricityId))
|
||||||
|
{
|
||||||
|
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&menuId={1}&type=-1", this.ElectricityId, Const.ProjectElectricityMenuId)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,467 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.HSSE.License
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class ElectricityView
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <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>
|
||||||
|
/// lbLicenseCode 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label lbLicenseCode;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lbImageUrl 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label lbImageUrl;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtApplyUnit 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtApplyUnit;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtApplyManName 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtApplyManName;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtWorkPalce 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtWorkPalce;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtReason 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtReason;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtWorkDate 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtWorkDate;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtWorkMeasures 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtWorkMeasures;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Grid1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Grid Grid1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtForm1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Form txtForm1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOpinion1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtOpinion1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Label6 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label Label6;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtName1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label txtName1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTime1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label txtTime1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtForm2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Form txtForm2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOpinion2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtOpinion2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Label1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label Label1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtName2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label txtName2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTime2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label txtTime2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtForm3 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Form txtForm3;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOpinion3 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtOpinion3;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Label2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label Label2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtName3 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label txtName3;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTime3 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label txtTime3;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtForm4 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Form txtForm4;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOpinion4 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtOpinion4;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Label5 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label Label5;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtName4 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label txtName4;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTime4 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label txtTime4;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtForm5 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Form txtForm5;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOpinion5 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtOpinion5;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Label9 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label Label9;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtName5 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label txtName5;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTime5 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label txtTime5;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtForm6 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Form txtForm6;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOpinion6 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtOpinion6;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Label12 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label Label12;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtName6 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label txtName6;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTime6 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label txtTime6;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtCance 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtCance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtClose 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtClose;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lbTemp 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label lbTemp;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnAttachUrl 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnAttachUrl;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ToolbarFill1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnClose 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnClose;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// WindowAtt 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Window WindowAtt;
|
||||||
|
}
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
|
@ -201,7 +201,7 @@ namespace Model
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 整改期限
|
/// 整改期限
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime? Rectification_Date { get; set; }
|
public string Rectification_Date { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -277,7 +277,7 @@ namespace Model
|
||||||
set;
|
set;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 作业负责人名字(射线、夜间)
|
/// 作业负责人名字(射线、夜间、高处)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string WorkLeaderName
|
public string WorkLeaderName
|
||||||
{
|
{
|
||||||
|
@ -285,7 +285,7 @@ namespace Model
|
||||||
set;
|
set;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 作业负责人电话(射线、夜间)
|
/// 作业负责人电话(射线、夜间、高处)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string WorkLeaderTel
|
public string WorkLeaderTel
|
||||||
{
|
{
|
||||||
|
@ -389,5 +389,114 @@ namespace Model
|
||||||
get;
|
get;
|
||||||
set;
|
set;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//新增
|
||||||
|
public string WorkAreaName
|
||||||
|
{
|
||||||
|
get;
|
||||||
|
set;
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 区域
|
||||||
|
/// </summary>
|
||||||
|
public string WorkAreaId
|
||||||
|
{
|
||||||
|
get;
|
||||||
|
set;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 原因
|
||||||
|
/// </summary>
|
||||||
|
public string Reason
|
||||||
|
{
|
||||||
|
get;
|
||||||
|
set;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 动火作业级别
|
||||||
|
/// </summary>
|
||||||
|
public string FireLevel
|
||||||
|
{
|
||||||
|
get;
|
||||||
|
set;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 空间内介质描述
|
||||||
|
/// </summary>
|
||||||
|
public string LimitedDescribe
|
||||||
|
{
|
||||||
|
get;
|
||||||
|
set;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 是否存在其它介质
|
||||||
|
/// </summary>
|
||||||
|
public bool? IsBoolOther
|
||||||
|
{
|
||||||
|
get;
|
||||||
|
set;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 作业是否耗氧或产生其它有毒有害气体
|
||||||
|
/// </summary>
|
||||||
|
public bool? IsBoolHarmfulGas
|
||||||
|
{
|
||||||
|
get;
|
||||||
|
set;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 氧含量测试结果
|
||||||
|
/// </summary>
|
||||||
|
public string TestResult
|
||||||
|
{
|
||||||
|
get;
|
||||||
|
set;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 测试时间
|
||||||
|
/// </summary>
|
||||||
|
public string TestDate { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 测试人
|
||||||
|
/// </summary>
|
||||||
|
public string TestPerson { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 通风措施
|
||||||
|
/// </summary>
|
||||||
|
public string VenStep { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 作业点高度
|
||||||
|
/// </summary>
|
||||||
|
public string WorkHeight { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 高处作业级别
|
||||||
|
/// </summary>
|
||||||
|
public string HeightLevel { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 吊装高度
|
||||||
|
/// </summary>
|
||||||
|
public string LiftingHeight { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 起重工姓名
|
||||||
|
/// </summary>
|
||||||
|
public string QzgName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 起重工电话
|
||||||
|
/// </summary>
|
||||||
|
public string QzgPhone { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue