1762 lines
95 KiB
Transact-SQL
1762 lines
95 KiB
Transact-SQL
|
||
--安全报表(集团)
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('ERDXV53M-09B1-6UIO-3EFM-5DVZDF329001','安全信息上报','',32,'0','Menu_ZHGL',1,0,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('3156A9F0-276D-4AD4-BF84-45CF6DFC215C','百万工时安全统计月报','ZHGL/Information/MillionsMonthlyReport.aspx',10,'ERDXV53M-09B1-6UIO-3EFM-5DVZDF329001','Menu_ZHGL',1,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('8C0E3DDA-8883-4A8E-B288-C009B807C39D','3156A9F0-276D-4AD4-BF84-45CF6DFC215C','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('8C720351-FD57-4C2D-9FCB-C8BB7FE48E65','3156A9F0-276D-4AD4-BF84-45CF6DFC215C','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('9084F09C-AA75-42B4-8357-6CDD0661CE8D','3156A9F0-276D-4AD4-BF84-45CF6DFC215C','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('00C79282-699E-4CCA-988E-1F36671C2F37','3156A9F0-276D-4AD4-BF84-45CF6DFC215C','保存',4)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('1889FE33-E72D-4E70-B51D-2AE411E08693','3156A9F0-276D-4AD4-BF84-45CF6DFC215C','保存并上报',5)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('08C103D2-6DB3-435E-A3DC-0C1F99CC51FF','3156A9F0-276D-4AD4-BF84-45CF6DFC215C','提交',6)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('AE5A454F-578E-4C52-969B-20AB87006A73','3156A9F0-276D-4AD4-BF84-45CF6DFC215C','导入',7)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('88D736EA-3ADC-4100-B17E-A1A1F16D9D2A','3156A9F0-276D-4AD4-BF84-45CF6DFC215C','打印',8)
|
||
GO
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('4BC71D2E-7D94-48C1-A61A-139637825AA5','职工伤亡事故原因分析报','ZHGL/Information/AccidentCauseReport.aspx',20,'ERDXV53M-09B1-6UIO-3EFM-5DVZDF329001','Menu_ZHGL',1,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('9D7EDCF0-32CD-4BB6-AA0F-6914E2B0F2D1','4BC71D2E-7D94-48C1-A61A-139637825AA5','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('FB9C1CDD-3CB8-4AEC-B940-563B3BA59E17','4BC71D2E-7D94-48C1-A61A-139637825AA5','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('FABAAF0B-C618-43B7-907A-217B6A1E5F6E','4BC71D2E-7D94-48C1-A61A-139637825AA5','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('385833BA-BD03-4DB2-9380-C76395368782','4BC71D2E-7D94-48C1-A61A-139637825AA5','保存',4)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('34472641-62F3-4E40-BEB3-770C3D833D03','4BC71D2E-7D94-48C1-A61A-139637825AA5','保存并上报',5)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('1CBB8571-E8D1-4EE0-AB08-4C3305BE27C6','4BC71D2E-7D94-48C1-A61A-139637825AA5','提交',6)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('A71F1236-204F-4B34-B887-19B31CE56F63','4BC71D2E-7D94-48C1-A61A-139637825AA5','导入',7)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('C90343CD-4DBE-4C3B-BEDD-888C9B514F8B','4BC71D2E-7D94-48C1-A61A-139637825AA5','打印',8)
|
||
GO
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('A3894BAD-3F4A-4BB4-98CF-A76C588AE53F','安全生产数据季报','ZHGL/Information/SafetyQuarterlyReport.aspx',30,'ERDXV53M-09B1-6UIO-3EFM-5DVZDF329001','Menu_ZHGL',1,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('AD2043D6-871F-47FE-B6CC-0CA5CD50C0BA','A3894BAD-3F4A-4BB4-98CF-A76C588AE53F','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('19657A9D-6AEB-47BA-BC3F-B916C68B515B','A3894BAD-3F4A-4BB4-98CF-A76C588AE53F','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('07E601FD-AE73-4F2B-A9D2-613B34ED654A','A3894BAD-3F4A-4BB4-98CF-A76C588AE53F','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('D3BBA6C4-4D71-4533-9A47-9459AA30C2D2','A3894BAD-3F4A-4BB4-98CF-A76C588AE53F','保存',4)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('90ED2D85-1184-4E46-8832-8C1215B6C59D','A3894BAD-3F4A-4BB4-98CF-A76C588AE53F','保存并上报',5)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('BED22C29-BA30-4BD2-A244-8588F2A0635B','A3894BAD-3F4A-4BB4-98CF-A76C588AE53F','导入',6)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('C4922011-37CD-4B79-820A-D8CAAE39144D','A3894BAD-3F4A-4BB4-98CF-A76C588AE53F','打印',7)
|
||
GO
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('7985C759-8EB9-4B7D-AC65-00541280B46C','应急演练开展情况季报','ZHGL/Information/DrillConductedQuarterlyReport.aspx',40,'ERDXV53M-09B1-6UIO-3EFM-5DVZDF329001','Menu_ZHGL',1,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('3D866C54-0A39-4A56-B771-7F3C63CF6A32','7985C759-8EB9-4B7D-AC65-00541280B46C','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('F65F199A-5D28-42D0-B08F-390376CAAC31','7985C759-8EB9-4B7D-AC65-00541280B46C','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('7FA97C99-A026-4934-95AC-50FF173B889D','7985C759-8EB9-4B7D-AC65-00541280B46C','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('1689FECD-6F18-4B1E-8190-706F2124B4C6','7985C759-8EB9-4B7D-AC65-00541280B46C','保存',4)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('6358C4DD-5B0E-4DB5-8FD1-AED403EF1D43','7985C759-8EB9-4B7D-AC65-00541280B46C','保存并上报',5)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('C1E0471F-568C-4B85-ADED-FCDD27F8C3DA','7985C759-8EB9-4B7D-AC65-00541280B46C','提交',6)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('5231B22C-BF0B-478B-92DD-1C1B30BC7270','7985C759-8EB9-4B7D-AC65-00541280B46C','导入',7)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('25A11FB5-AB22-42CC-9E94-29FF9221B25B','7985C759-8EB9-4B7D-AC65-00541280B46C','打印',8)
|
||
GO
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('70DEB27A-D6FF-4D57-879B-0270F2967FA0','应急演练工作计划半年报','ZHGL/Information/DrillPlanHalfYearReport.aspx',50,'ERDXV53M-09B1-6UIO-3EFM-5DVZDF329001','Menu_ZHGL',1,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('A034BF05-9859-4920-97F0-20190D94E6F4','70DEB27A-D6FF-4D57-879B-0270F2967FA0','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('A821D1EC-5E54-4386-80E8-D1718CF00E7D','70DEB27A-D6FF-4D57-879B-0270F2967FA0','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('6345E13D-F311-4839-927E-ADEF36D7CB5E','70DEB27A-D6FF-4D57-879B-0270F2967FA0','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('A4115079-DDEC-4B42-836D-4B79B999E011','70DEB27A-D6FF-4D57-879B-0270F2967FA0','保存',4)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('DE6CADAC-6981-45F6-BF19-0BFC6F1F2AFE','70DEB27A-D6FF-4D57-879B-0270F2967FA0','保存并上报',5)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('C495E44F-DF2C-4071-829C-8C06DA30F9FE','70DEB27A-D6FF-4D57-879B-0270F2967FA0','提交',6)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('F287B0ED-D725-4CD3-B422-5319112F452B','70DEB27A-D6FF-4D57-879B-0270F2967FA0','导入',7)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('30F188D4-84D4-4D3C-8ECE-B499ACB1C3C8','70DEB27A-D6FF-4D57-879B-0270F2967FA0','打印',8)
|
||
GO
|
||
|
||
|
||
CREATE TABLE [dbo].[Information_AccidentCauseReport](
|
||
[AccidentCauseReportId] [nvarchar](50) NOT NULL,
|
||
[UnitId] [nvarchar](50) NULL,
|
||
[AccidentCauseReportCode] [nvarchar](50) NULL,
|
||
[Year] [int] NULL,
|
||
[Month] [int] NULL,
|
||
[DeathAccident] [int] NULL,
|
||
[DeathToll] [int] NULL,
|
||
[InjuredAccident] [int] NULL,
|
||
[InjuredToll] [int] NULL,
|
||
[MinorWoundAccident] [int] NULL,
|
||
[MinorWoundToll] [int] NULL,
|
||
[AverageTotalHours] [decimal](19, 2) NULL,
|
||
[AverageManHours] [int] NULL,
|
||
[TotalLossMan] [int] NULL,
|
||
[LastMonthLossHoursTotal] [int] NULL,
|
||
[KnockOffTotal] [int] NULL,
|
||
[DirectLoss] [int] NULL,
|
||
[IndirectLosses] [int] NULL,
|
||
[TotalLoss] [int] NULL,
|
||
[TotalLossTime] [int] NULL,
|
||
[FillCompanyPersonCharge] [nvarchar](50) NULL,
|
||
[TabPeople] [nvarchar](50) NULL,
|
||
[AuditPerson] [nvarchar](50) NULL,
|
||
[FillingDate] [datetime] NULL,
|
||
[UpState] [char](1) NULL,
|
||
[HandleState] [char](1) NULL,
|
||
[HandleMan] [nvarchar](50) NULL,
|
||
CONSTRAINT [PK_Information_AccidentCauseReport] PRIMARY KEY CLUSTERED
|
||
(
|
||
[AccidentCauseReportId] 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].[Information_AccidentCauseReport] WITH CHECK ADD CONSTRAINT [FK_Information_AccidentCauseReport_Base_Unit] FOREIGN KEY([UnitId])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Information_AccidentCauseReport] CHECK CONSTRAINT [FK_Information_AccidentCauseReport_Base_Unit]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'AccidentCauseReportId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'填报单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'UnitId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'AccidentCauseReportCode'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'Year'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'月份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'Month'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'死亡事故' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'DeathAccident'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'死亡人数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'DeathToll'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'重伤事故' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'InjuredAccident'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'重伤人数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'InjuredToll'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'轻伤事故' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'MinorWoundAccident'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'轻伤人数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'MinorWoundToll'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'平均工时总数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'AverageTotalHours'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'平均工时人数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'AverageManHours'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'损失工时总数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'TotalLossMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'上月损失工时总数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'LastMonthLossHoursTotal'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'歇工总日数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'KnockOffTotal'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'直接损失' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'DirectLoss'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'间接损失' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'IndirectLosses'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总损失' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'TotalLoss'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'无损失工时总数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'TotalLossTime'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'填报单位负责人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'FillCompanyPersonCharge'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'制表人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'TabPeople'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审核人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'AuditPerson'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'填报日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport', @level2type=N'COLUMN',@level2name=N'FillingDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'职工伤亡事故原因分析报表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReport'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Information_AccidentCauseReportItem](
|
||
[AccidentCauseReportItemId] [nvarchar](50) NOT NULL,
|
||
[AccidentCauseReportId] [nvarchar](50) NULL,
|
||
[AccidentType] [nvarchar](20) NULL,
|
||
[TotalDeath] [int] NULL,
|
||
[TotalInjuries] [int] NULL,
|
||
[TotalMinorInjuries] [int] NULL,
|
||
[Death1] [int] NULL,
|
||
[Injuries1] [int] NULL,
|
||
[MinorInjuries1] [int] NULL,
|
||
[Death2] [int] NULL,
|
||
[Injuries2] [int] NULL,
|
||
[MinorInjuries2] [int] NULL,
|
||
[Death3] [int] NULL,
|
||
[Injuries3] [int] NULL,
|
||
[MinorInjuries3] [int] NULL,
|
||
[Death4] [int] NULL,
|
||
[Injuries4] [int] NULL,
|
||
[MinorInjuries4] [int] NULL,
|
||
[Death5] [int] NULL,
|
||
[Injuries5] [int] NULL,
|
||
[MinorInjuries5] [int] NULL,
|
||
[Death6] [int] NULL,
|
||
[Injuries6] [int] NULL,
|
||
[MinorInjuries6] [int] NULL,
|
||
[Death7] [int] NULL,
|
||
[Injuries7] [int] NULL,
|
||
[MinorInjuries7] [int] NULL,
|
||
[Death8] [int] NULL,
|
||
[Injuries8] [int] NULL,
|
||
[MinorInjuries8] [int] NULL,
|
||
[Death9] [int] NULL,
|
||
[Injuries9] [int] NULL,
|
||
[MinorInjuries9] [int] NULL,
|
||
[Death10] [int] NULL,
|
||
[Injuries10] [int] NULL,
|
||
[MinorInjuries10] [int] NULL,
|
||
[Death11] [int] NULL,
|
||
[Injuries11] [int] NULL,
|
||
[MinorInjuries11] [int] NULL,
|
||
CONSTRAINT [PK_Information_AccidentCauseReportItem] PRIMARY KEY CLUSTERED
|
||
(
|
||
[AccidentCauseReportItemId] 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
|
||
|
||
ALTER TABLE [dbo].[Information_AccidentCauseReportItem] WITH CHECK ADD CONSTRAINT [FK_Information_AccidentCauseReportItem_Information_AccidentCauseReport] FOREIGN KEY([AccidentCauseReportId])
|
||
REFERENCES [dbo].[Information_AccidentCauseReport] ([AccidentCauseReportId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Information_AccidentCauseReportItem] CHECK CONSTRAINT [FK_Information_AccidentCauseReportItem_Information_AccidentCauseReport]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'AccidentCauseReportItemId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主表主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'AccidentCauseReportId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'事故类别' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'AccidentType'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'合计死亡数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'TotalDeath'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'合计重伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'TotalInjuries'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'合计轻伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'TotalMinorInjuries'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'防护保险信号缺失死亡数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Death1'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'防护保险信号缺失重伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Injuries1'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'防护保险信号缺失轻伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'MinorInjuries1'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设备工具缺陷死亡数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Death2'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设备工具缺陷重伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Injuries2'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设备工具缺陷轻伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'MinorInjuries2'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'个人防护缺陷死亡数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Death3'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'个人防护缺陷重伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Injuries3'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'个人防护缺陷轻伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'MinorInjuries3'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'光线不足死亡数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Death4'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'光线不足重伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Injuries4'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'光线不足轻伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'MinorInjuries4'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'劳动组织不合理死亡数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Death5'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'劳动组织不合理重伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Injuries5'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'劳动组织不合理轻伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'MinorInjuries5'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'现场指导错误死亡数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Death6'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'现场指导错误重伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Injuries6'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'现场指导错误轻伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'MinorInjuries6'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计有缺陷死亡数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Death7'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计有缺陷重伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Injuries7'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计有缺陷轻伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'MinorInjuries7'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'不懂操作死亡数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Death8'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'不懂操作重伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Injuries8'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'不懂操作轻伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'MinorInjuries8'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'违反操作死亡数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Death9'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'违反操作重伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Injuries9'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'违反操作轻伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'MinorInjuries9'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'没有安全操作死亡数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Death10'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'没有安全操作重伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Injuries10'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'没有安全操作轻伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'MinorInjuries10'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'其他死亡数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Death11'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'其他重伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'Injuries11'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'其他轻伤数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem', @level2type=N'COLUMN',@level2name=N'MinorInjuries11'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'职工伤亡事故原因分析明细表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_AccidentCauseReportItem'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Information_DrillConductedQuarterlyReport](
|
||
[DrillConductedQuarterlyReportId] [nvarchar](50) NOT NULL,
|
||
[UnitId] [nvarchar](50) NULL,
|
||
[ReportDate] [datetime] NULL,
|
||
[Quarter] [int] NULL,
|
||
[YearId] [int] NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[UpState] [char](1) NULL,
|
||
[HandleState] [char](1) NULL,
|
||
[HandleMan] [nvarchar](50) NULL,
|
||
CONSTRAINT [PK_Information_DrillConductedQuarterlyReport] PRIMARY KEY CLUSTERED
|
||
(
|
||
[DrillConductedQuarterlyReportId] 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].[Information_DrillConductedQuarterlyReport] WITH CHECK ADD CONSTRAINT [FK_Information_DrillConductedQuarterlyReport_Base_Unit] FOREIGN KEY([UnitId])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Information_DrillConductedQuarterlyReport] CHECK CONSTRAINT [FK_Information_DrillConductedQuarterlyReport_Base_Unit]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReport', @level2type=N'COLUMN',@level2name=N'DrillConductedQuarterlyReportId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'填报单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReport', @level2type=N'COLUMN',@level2name=N'UnitId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReport', @level2type=N'COLUMN',@level2name=N'ReportDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'季度' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReport', @level2type=N'COLUMN',@level2name=N'Quarter'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年度' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReport', @level2type=N'COLUMN',@level2name=N'YearId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'应急演练开展情况季报表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReport'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Information_DrillConductedQuarterlyReportItem](
|
||
[DrillConductedQuarterlyReportItemId] [nvarchar](50) NOT NULL,
|
||
[DrillConductedQuarterlyReportId] [nvarchar](50) NOT NULL,
|
||
[IndustryType] [nvarchar](50) NULL,
|
||
[TotalConductCount] [int] NULL,
|
||
[TotalPeopleCount] [int] NULL,
|
||
[TotalInvestment] [money] NULL,
|
||
[HQConductCount] [int] NULL,
|
||
[HQPeopleCount] [int] NULL,
|
||
[HQInvestment] [money] NULL,
|
||
[BasicConductCount] [int] NULL,
|
||
[BasicPeopleCount] [int] NULL,
|
||
[BasicInvestment] [money] NULL,
|
||
[ComprehensivePractice] [int] NULL,
|
||
[CPScene] [int] NULL,
|
||
[CPDesktop] [int] NULL,
|
||
[SpecialDrill] [int] NULL,
|
||
[SDScene] [int] NULL,
|
||
[SDDesktop] [int] NULL,
|
||
[SortIndex] [int] NULL,
|
||
CONSTRAINT [PK_Information_DrillConductedQuarterlyReportItem] PRIMARY KEY CLUSTERED
|
||
(
|
||
[DrillConductedQuarterlyReportItemId] 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
|
||
|
||
ALTER TABLE [dbo].[Information_DrillConductedQuarterlyReportItem] WITH CHECK ADD CONSTRAINT [FK_Information_DrillConductedQuarterlyReportItem_Information_DrillConductedQuarterlyReport] FOREIGN KEY([DrillConductedQuarterlyReportId])
|
||
REFERENCES [dbo].[Information_DrillConductedQuarterlyReport] ([DrillConductedQuarterlyReportId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Information_DrillConductedQuarterlyReportItem] CHECK CONSTRAINT [FK_Information_DrillConductedQuarterlyReportItem_Information_DrillConductedQuarterlyReport]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReportItem', @level2type=N'COLUMN',@level2name=N'DrillConductedQuarterlyReportItemId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主表Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReportItem', @level2type=N'COLUMN',@level2name=N'DrillConductedQuarterlyReportId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'行业类别' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReportItem', @level2type=N'COLUMN',@level2name=N'IndustryType'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总体情况(举办次数)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReportItem', @level2type=N'COLUMN',@level2name=N'TotalConductCount'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总体情况(参演人数)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReportItem', @level2type=N'COLUMN',@level2name=N'TotalPeopleCount'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总体情况(直接投入)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReportItem', @level2type=N'COLUMN',@level2name=N'TotalInvestment'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'企业总部(举办次数)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReportItem', @level2type=N'COLUMN',@level2name=N'HQConductCount'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'企业总部(参演人数)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReportItem', @level2type=N'COLUMN',@level2name=N'HQPeopleCount'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'企业总部(直接投入)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReportItem', @level2type=N'COLUMN',@level2name=N'HQInvestment'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'基层单位(举办次数)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReportItem', @level2type=N'COLUMN',@level2name=N'BasicConductCount'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'基层单位(参演人数)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReportItem', @level2type=N'COLUMN',@level2name=N'BasicPeopleCount'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'基层单位(直接投入)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReportItem', @level2type=N'COLUMN',@level2name=N'BasicInvestment'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'综合演练' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReportItem', @level2type=N'COLUMN',@level2name=N'ComprehensivePractice'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'其中(现场)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReportItem', @level2type=N'COLUMN',@level2name=N'CPScene'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'其中(桌面)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReportItem', @level2type=N'COLUMN',@level2name=N'CPDesktop'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专项演练' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReportItem', @level2type=N'COLUMN',@level2name=N'SpecialDrill'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'其中(现场)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReportItem', @level2type=N'COLUMN',@level2name=N'SDScene'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'其中(桌面)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReportItem', @level2type=N'COLUMN',@level2name=N'SDDesktop'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'应急演练开展情况季报明细表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillConductedQuarterlyReportItem'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Information_DrillPlanHalfYearReport](
|
||
[DrillPlanHalfYearReportId] [nvarchar](50) NOT NULL,
|
||
[UnitId] [nvarchar](50) NOT NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
[YearId] [int] NULL,
|
||
[HalfYearId] [int] NULL,
|
||
[Telephone] [nvarchar](50) NULL,
|
||
[UpState] [char](1) NULL,
|
||
[HandleState] [char](1) NULL,
|
||
[HandleMan] [nvarchar](50) NULL,
|
||
CONSTRAINT [PK_Information_DrillPlanHalfYearReport] PRIMARY KEY CLUSTERED
|
||
(
|
||
[DrillPlanHalfYearReportId] 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].[Information_DrillPlanHalfYearReport] WITH CHECK ADD CONSTRAINT [FK_Information_DrillPlanHalfYearReport_Base_Unit] FOREIGN KEY([UnitId])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Information_DrillPlanHalfYearReport] CHECK CONSTRAINT [FK_Information_DrillPlanHalfYearReport_Base_Unit]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillPlanHalfYearReport', @level2type=N'COLUMN',@level2name=N'DrillPlanHalfYearReportId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillPlanHalfYearReport', @level2type=N'COLUMN',@level2name=N'UnitId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'联系人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillPlanHalfYearReport', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'制表时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillPlanHalfYearReport', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年度' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillPlanHalfYearReport', @level2type=N'COLUMN',@level2name=N'YearId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'应急演练工作计划半年报表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillPlanHalfYearReport'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Information_DrillPlanHalfYearReportItem](
|
||
[DrillPlanHalfYearReportItemId] [nvarchar](50) NOT NULL,
|
||
[DrillPlanHalfYearReportId] [nvarchar](50) NOT NULL,
|
||
[DrillPlanName] [nvarchar](200) NOT NULL,
|
||
[OrganizationUnit] [nvarchar](100) NULL,
|
||
[DrillPlanDate] [nvarchar](50) NULL,
|
||
[AccidentScene] [nvarchar](1000) NULL,
|
||
[ExerciseWay] [nvarchar](50) NULL,
|
||
[SortIndex] [int] NULL,
|
||
CONSTRAINT [PK_Information_DrillPlanHalfYearReportItem] PRIMARY KEY CLUSTERED
|
||
(
|
||
[DrillPlanHalfYearReportItemId] 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
|
||
|
||
ALTER TABLE [dbo].[Information_DrillPlanHalfYearReportItem] WITH CHECK ADD CONSTRAINT [FK_Information_DrillPlanHalfYearReportItem_Information_DrillPlanHalfYearReport] FOREIGN KEY([DrillPlanHalfYearReportId])
|
||
REFERENCES [dbo].[Information_DrillPlanHalfYearReport] ([DrillPlanHalfYearReportId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Information_DrillPlanHalfYearReportItem] CHECK CONSTRAINT [FK_Information_DrillPlanHalfYearReportItem_Information_DrillPlanHalfYearReport]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillPlanHalfYearReportItem', @level2type=N'COLUMN',@level2name=N'DrillPlanHalfYearReportItemId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主表id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillPlanHalfYearReportItem', @level2type=N'COLUMN',@level2name=N'DrillPlanHalfYearReportId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'演练名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillPlanHalfYearReportItem', @level2type=N'COLUMN',@level2name=N'DrillPlanName'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'组织单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillPlanHalfYearReportItem', @level2type=N'COLUMN',@level2name=N'OrganizationUnit'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'演练时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillPlanHalfYearReportItem', @level2type=N'COLUMN',@level2name=N'DrillPlanDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主要事故情景' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillPlanHalfYearReportItem', @level2type=N'COLUMN',@level2name=N'AccidentScene'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'演练方式' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillPlanHalfYearReportItem', @level2type=N'COLUMN',@level2name=N'ExerciseWay'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'应急演练工作计划半年报明细表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_DrillPlanHalfYearReportItem'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Information_MillionsMonthlyReport](
|
||
[MillionsMonthlyReportId] [nvarchar](50) NOT NULL,
|
||
[UnitId] [nvarchar](50) NULL,
|
||
[Year] [int] NULL,
|
||
[Month] [int] NULL,
|
||
[FillingMan] [nvarchar](50) NULL,
|
||
[FillingDate] [datetime] NULL,
|
||
[DutyPerson] [nvarchar](50) NULL,
|
||
[RecordableIncidentRate] [decimal](18, 4) NULL,
|
||
[LostTimeRate] [decimal](18, 4) NULL,
|
||
[LostTimeInjuryRate] [decimal](18, 4) NULL,
|
||
[DeathAccidentFrequency] [decimal](18, 4) NULL,
|
||
[AccidentMortality] [decimal](18, 4) NULL,
|
||
[UpState] [char](1) NULL,
|
||
[HandleState] [char](1) NULL,
|
||
[HandleMan] [nvarchar](50) NULL,
|
||
CONSTRAINT [PK_Information_MillionsMonthlyReport] PRIMARY KEY CLUSTERED
|
||
(
|
||
[MillionsMonthlyReportId] 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].[Information_MillionsMonthlyReport] WITH CHECK ADD CONSTRAINT [FK_Information_MillionsMonthlyReport_Base_Unit] FOREIGN KEY([UnitId])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Information_MillionsMonthlyReport] CHECK CONSTRAINT [FK_Information_MillionsMonthlyReport_Base_Unit]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReport', @level2type=N'COLUMN',@level2name=N'MillionsMonthlyReportId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'填报单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReport', @level2type=N'COLUMN',@level2name=N'UnitId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReport', @level2type=N'COLUMN',@level2name=N'Year'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'月份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReport', @level2type=N'COLUMN',@level2name=N'Month'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'填报人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReport', @level2type=N'COLUMN',@level2name=N'FillingMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'填报日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReport', @level2type=N'COLUMN',@level2name=N'FillingDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'负责人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReport', @level2type=N'COLUMN',@level2name=N'DutyPerson'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'百万工时总可记录事故率' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReport', @level2type=N'COLUMN',@level2name=N'RecordableIncidentRate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'百万工时损失工时率' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReport', @level2type=N'COLUMN',@level2name=N'LostTimeRate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'百万工时损失工时伤害事故率' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReport', @level2type=N'COLUMN',@level2name=N'LostTimeInjuryRate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'百万工时死亡事故频率' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReport', @level2type=N'COLUMN',@level2name=N'DeathAccidentFrequency'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'百万工时事故死亡率' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReport', @level2type=N'COLUMN',@level2name=N'AccidentMortality'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'百万工时安全统计月报表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReport'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Information_MillionsMonthlyReportItem](
|
||
[MillionsMonthlyReportItemId] [nvarchar](50) NOT NULL,
|
||
[MillionsMonthlyReportId] [nvarchar](50) NULL,
|
||
[SortIndex] [int] NULL,
|
||
[Affiliation] [nvarchar](500) NULL,
|
||
[Name] [nvarchar](500) NULL,
|
||
[PostPersonNum] [int] NULL,
|
||
[SnapPersonNum] [int] NULL,
|
||
[ContractorNum] [int] NULL,
|
||
[SumPersonNum] [int] NULL,
|
||
[TotalWorkNum] [decimal](18, 4) NULL,
|
||
[SeriousInjuriesNum] [int] NULL,
|
||
[SeriousInjuriesPersonNum] [int] NULL,
|
||
[SeriousInjuriesLossHour] [int] NULL,
|
||
[MinorAccidentNum] [int] NULL,
|
||
[MinorAccidentPersonNum] [int] NULL,
|
||
[MinorAccidentLossHour] [int] NULL,
|
||
[OtherAccidentNum] [int] NULL,
|
||
[OtherAccidentPersonNum] [int] NULL,
|
||
[OtherAccidentLossHour] [int] NULL,
|
||
[RestrictedWorkPersonNum] [int] NULL,
|
||
[RestrictedWorkLossHour] [int] NULL,
|
||
[MedicalTreatmentPersonNum] [int] NULL,
|
||
[MedicalTreatmentLossHour] [int] NULL,
|
||
[FireNum] [int] NULL,
|
||
[ExplosionNum] [int] NULL,
|
||
[TrafficNum] [int] NULL,
|
||
[EquipmentNum] [int] NULL,
|
||
[QualityNum] [int] NULL,
|
||
[OtherNum] [int] NULL,
|
||
[FirstAidDressingsNum] [int] NULL,
|
||
[AttemptedEventNum] [int] NULL,
|
||
[LossDayNum] [int] NULL,
|
||
CONSTRAINT [PK_Information_MillionsMonthlyReportItem] PRIMARY KEY CLUSTERED
|
||
(
|
||
[MillionsMonthlyReportItemId] 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
|
||
|
||
ALTER TABLE [dbo].[Information_MillionsMonthlyReportItem] WITH CHECK ADD CONSTRAINT [FK_Information_MillionsMonthlyReportItem_Information_MillionsMonthlyReport] FOREIGN KEY([MillionsMonthlyReportId])
|
||
REFERENCES [dbo].[Information_MillionsMonthlyReport] ([MillionsMonthlyReportId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Information_MillionsMonthlyReportItem] CHECK CONSTRAINT [FK_Information_MillionsMonthlyReportItem_Information_MillionsMonthlyReport]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'MillionsMonthlyReportItemId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主表外键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'MillionsMonthlyReportId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'排序' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'SortIndex'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'所属单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'Affiliation'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'Name'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'在岗员工' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'PostPersonNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'临时员工' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'SnapPersonNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'承包商' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'ContractorNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'员工总数合计' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'SumPersonNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总工时数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'TotalWorkNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'重伤事故起数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'SeriousInjuriesNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'重伤事故人数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'SeriousInjuriesPersonNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'重伤事故损失工时' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'SeriousInjuriesLossHour'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'轻伤事故起数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'MinorAccidentNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'轻伤事故人数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'MinorAccidentPersonNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'轻伤事故损失工时' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'MinorAccidentLossHour'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'其它事故起数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'OtherAccidentNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'其它事故人数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'OtherAccidentPersonNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'其它事故损失工时' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'OtherAccidentLossHour'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工作受限人数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'RestrictedWorkPersonNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工作受限损失工时' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'RestrictedWorkLossHour'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'医疗处置人数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'MedicalTreatmentPersonNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'医疗处置损失工时' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'MedicalTreatmentLossHour'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'火灾起数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'FireNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'爆炸起数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'ExplosionNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'交通起数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'TrafficNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'机械设备起数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'EquipmentNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'质量起数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'QualityNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'其它起数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'OtherNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'急救包扎起数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'FirstAidDressingsNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'未遂事件起数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'AttemptedEventNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'损失工日' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem', @level2type=N'COLUMN',@level2name=N'LossDayNum'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'百万工时安全统计月报表明细表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_MillionsMonthlyReportItem'
|
||
GO
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Information_SafetyQuarterlyReport](
|
||
[SafetyQuarterlyReportId] [nvarchar](50) NOT NULL,
|
||
[UnitId] [nvarchar](50) NULL,
|
||
[YearId] [int] NULL,
|
||
[Quarters] [int] NULL,
|
||
[TotalInWorkHours] [int] NULL,
|
||
[TotalInWorkHoursRemark] [nvarchar](500) NULL,
|
||
[TotalOutWorkHours] [int] NULL,
|
||
[TotalOutWorkHoursRemark] [nvarchar](500) NULL,
|
||
[WorkHoursLossRate] [decimal](18, 2) NULL,
|
||
[WorkHoursLossRateRemark] [nvarchar](500) NULL,
|
||
[WorkHoursAccuracy] [decimal](18, 2) NULL,
|
||
[WorkHoursAccuracyRemark] [nvarchar](500) NULL,
|
||
[MainBusinessIncome] [money] NULL,
|
||
[MainBusinessIncomeRemark] [nvarchar](500) NULL,
|
||
[ConstructionRevenue] [money] NULL,
|
||
[ConstructionRevenueRemark] [nvarchar](500) NULL,
|
||
[UnitTimeIncome] [money] NULL,
|
||
[UnitTimeIncomeRemark] [nvarchar](500) NULL,
|
||
[BillionsOutputMortality] [decimal](18, 2) NULL,
|
||
[BillionsOutputMortalityRemark] [nvarchar](500) NULL,
|
||
[MajorFireAccident] [int] NULL,
|
||
[MajorFireAccidentRemark] [nvarchar](500) NULL,
|
||
[MajorEquipAccident] [int] NULL,
|
||
[MajorEquipAccidentRemark] [nvarchar](500) NULL,
|
||
[AccidentFrequency] [decimal](18, 2) NULL,
|
||
[AccidentFrequencyRemark] [nvarchar](500) NULL,
|
||
[SeriousInjuryAccident] [int] NULL,
|
||
[SeriousInjuryAccidentRemark] [nvarchar](500) NULL,
|
||
[FireAccident] [int] NULL,
|
||
[FireAccidentRemark] [nvarchar](500) NULL,
|
||
[EquipmentAccident] [int] NULL,
|
||
[EquipmentAccidentRemark] [nvarchar](500) NULL,
|
||
[PoisoningAndInjuries] [int] NULL,
|
||
[PoisoningAndInjuriesRemark] [nvarchar](500) NULL,
|
||
[ProductionSafetyInTotal] [int] NULL,
|
||
[ProductionSafetyInTotalRemark] [nvarchar](500) NULL,
|
||
[ProtectionInput] [money] NULL,
|
||
[ProtectionInputRemark] [nvarchar](500) NULL,
|
||
[LaboAndHealthIn] [money] NULL,
|
||
[LaborAndHealthInRemark] [nvarchar](500) NULL,
|
||
[TechnologyProgressIn] [money] NULL,
|
||
[TechnologyProgressInRemark] [nvarchar](500) NULL,
|
||
[EducationTrainIn] [money] NULL,
|
||
[EducationTrainInRemark] [nvarchar](500) NULL,
|
||
[ProjectCostRate] [decimal](18, 2) NULL,
|
||
[ProjectCostRateRemark] [nvarchar](500) NULL,
|
||
[ProductionInput] [money] NULL,
|
||
[ProductionInputRemark] [nvarchar](500) NULL,
|
||
[Revenue] [decimal](18, 2) NULL,
|
||
[RevenueRemark] [nvarchar](500) NULL,
|
||
[FullTimeMan] [int] NULL,
|
||
[FullTimeManRemark] [nvarchar](500) NULL,
|
||
[FullTimeManAttachUrl] [nvarchar](2000) NULL,
|
||
[PMMan] [int] NULL,
|
||
[PMManRemark] [nvarchar](500) NULL,
|
||
[PMManAttachUrl] [nvarchar](2000) NULL,
|
||
[CorporateDirectorEdu] [int] NULL,
|
||
[CorporateDirectorEduRemark] [nvarchar](500) NULL,
|
||
[ProjectLeaderEdu] [int] NULL,
|
||
[ProjectLeaderEduRemark] [nvarchar](500) NULL,
|
||
[FullTimeEdu] [int] NULL,
|
||
[FullTimeEduRemark] [nvarchar](500) NULL,
|
||
[ThreeKidsEduRate] [decimal](18, 2) NULL,
|
||
[ThreeKidsEduRateRemark] [nvarchar](500) NULL,
|
||
[UplinReportRate] [decimal](18, 2) NULL,
|
||
[UplinReportRateRemark] [nvarchar](500) NULL,
|
||
[Remarks] [nvarchar](1000) NULL,
|
||
[FillingDate] [datetime] NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[UpState] [char](1) NULL,
|
||
[HandleState] [char](1) NULL,
|
||
[HandleMan] [nvarchar](50) NULL,
|
||
[KeyEquipmentTotal] [int] NULL,
|
||
[KeyEquipmentTotalRemark] [nvarchar](500) NULL,
|
||
[KeyEquipmentReportCount] [int] NULL,
|
||
[KeyEquipmentReportCountRemark] [nvarchar](500) NULL,
|
||
[ChemicalAreaProjectCount] [int] NULL,
|
||
[ChemicalAreaProjectCountRemark] [nvarchar](500) NULL,
|
||
[HarmfulMediumCoverCount] [int] NULL,
|
||
[HarmfulMediumCoverCountRemark] [nvarchar](500) NULL,
|
||
[HarmfulMediumCoverRate] [decimal](18, 2) NULL,
|
||
[HarmfulMediumCoverRateRemark] [nvarchar](500) NULL,
|
||
CONSTRAINT [PK_Information_SafetyQuarterlyReport] PRIMARY KEY CLUSTERED
|
||
(
|
||
[SafetyQuarterlyReportId] 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].[Information_SafetyQuarterlyReport] WITH CHECK ADD CONSTRAINT [FK_Information_SafetyQuarterlyReport_Base_Unit] FOREIGN KEY([UnitId])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Information_SafetyQuarterlyReport] CHECK CONSTRAINT [FK_Information_SafetyQuarterlyReport_Base_Unit]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'SafetyQuarterlyReportId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单位id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'UnitId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年度' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'YearId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'季度(1-第一季度,2-第二季度,3-第三季度,4-第四季度)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'Quarters'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总投入工时数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'TotalInWorkHours'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总投入工时备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'TotalInWorkHoursRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总损失工时数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'TotalOutWorkHours'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总损失工时数备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'TotalOutWorkHoursRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'百万工时损失率' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'WorkHoursLossRate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'百万工时损失率备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'WorkHoursLossRateRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工时统计准确率' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'WorkHoursAccuracy'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工时统计准确率备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'WorkHoursAccuracyRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主营业务收入/亿元' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'MainBusinessIncome'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主营业务收入/亿元备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'MainBusinessIncomeRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'施工收入/亿元' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'ConstructionRevenue'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'施工收入/亿元备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'ConstructionRevenueRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单位工时收入/元' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'UnitTimeIncome'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单位工时收入/元备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'UnitTimeIncomeRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'百亿产值死亡率' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'BillionsOutputMortality'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'百亿产值死亡率备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'BillionsOutputMortalityRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'重大火灾事故报告数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'MajorFireAccident'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'重大火灾事故报告数备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'MajorFireAccidentRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'重大机械设备事故报告数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'MajorEquipAccident'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'重大机械设备事故报告数备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'MajorEquipAccidentRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'事故发生频率(占总收入之比)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'AccidentFrequency'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'事故发生频率(占总收入之比)备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'AccidentFrequencyRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'重伤以上事故报告数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'SeriousInjuryAccident'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'重伤以上事故报告数备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'SeriousInjuryAccidentRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'火灾事故统计报告数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'FireAccident'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'火灾事故统计报告数备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'FireAccidentRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装备事故统计报告数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'EquipmentAccident'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装备事故统计报告数备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'EquipmentAccidentRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'中毒及职业伤害报告数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'PoisoningAndInjuries'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'中毒及职业伤害报告数备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'PoisoningAndInjuriesRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安全生产投入总额/元' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'ProductionSafetyInTotal'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安全生产投入总额/元备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'ProductionSafetyInTotalRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安全防护投入/元' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'ProtectionInput'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安全防护投入/元备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'ProtectionInputRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'劳动保护及职业健康投入/元' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'LaboAndHealthIn'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'劳动保护及职业健康投入/元备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'LaborAndHealthInRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安全技术进步投入/元' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'TechnologyProgressIn'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安全技术进步投入/元备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'TechnologyProgressInRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安全教育培训投入/元' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'EducationTrainIn'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安全教育培训投入/元备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'EducationTrainInRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N' 工程造价占比(%)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'ProjectCostRate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N' 工程造价占比(%)备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'ProjectCostRateRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'百万工时安全生产投入额/万元' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'ProductionInput'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'百万工时安全生产投入额/万元备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'ProductionInputRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安全生产投入占施工收入之比' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'Revenue'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安全生产投入占施工收入之比备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'RevenueRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安全专职人员总数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'FullTimeMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安全专职人员总数备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'FullTimeManRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安全专职人员总数名单附件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'FullTimeManAttachUrl'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目经理人员总数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'PMMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目经理人员总数备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'PMManRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目经理人员名单附件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'PMManAttachUrl'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'企业负责人安全生产继续教育数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'CorporateDirectorEdu'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'企业负责人安全生产继续教育备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'CorporateDirectorEduRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目负责人安全生产继续教育数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'ProjectLeaderEdu'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目负责人安全生产继续教育备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'ProjectLeaderEduRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安全专职人员安全生产继续教育数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'FullTimeEdu'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安全专职人员安全生产继续教育数备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'FullTimeEduRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安全生产三类人员继续教育覆盖率' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'ThreeKidsEduRate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安全生产三类人员继续教育覆盖率备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'ThreeKidsEduRateRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'上行报告(施工现场安全生产动态季报、专项活动总结上报、生产事故按时限上报)履行率' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'UplinReportRate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'上行报告(施工现场安全生产动态季报、专项活动总结上报、生产事故按时限上报)履行率备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'UplinReportRateRemark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport', @level2type=N'COLUMN',@level2name=N'Remarks'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安全生产数据季报表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyQuarterlyReport'
|
||
GO
|
||
|
||
|
||
|
||
/*******职工伤亡事故原因分析报表*********/
|
||
CREATE VIEW [dbo].[View_Information_AccidentCauseReport]
|
||
AS
|
||
SELECT S.AccidentCauseReportId,
|
||
S.UnitId,
|
||
U.UnitName,
|
||
S.FillingDate,
|
||
(ISNULL(Group_0008.ConstText,'-') + ISNULL(Group_0009.ConstText,'-')) AS ReportDate,
|
||
Group_0008.ConstText as YearStr,
|
||
Group_0009.ConstText as MonthStr,
|
||
S.AccidentCauseReportCode,
|
||
S.Year,
|
||
S.Month,
|
||
S.DeathAccident,
|
||
S.DeathToll,
|
||
S.InjuredAccident,
|
||
S.InjuredToll,
|
||
S.MinorWoundAccident,
|
||
S.MinorWoundToll,
|
||
S.AverageTotalHours,
|
||
S.AverageManHours,
|
||
S.TotalLossMan,
|
||
S.LastMonthLossHoursTotal,
|
||
S.KnockOffTotal,
|
||
S.DirectLoss,
|
||
S.IndirectLosses,
|
||
S.TotalLoss,
|
||
S.TotalLossTime,
|
||
S.FillCompanyPersonCharge,
|
||
S.TabPeople,
|
||
S.AuditPerson,
|
||
S.UpState,
|
||
S.HandleState,
|
||
US.PersonName as UserName
|
||
FROM dbo.Information_AccidentCauseReport AS S
|
||
LEFT JOIN Base_Unit AS U ON U.UnitId=S.UnitId
|
||
LEFT JOIN Sys_Const AS Group_0008 ON Group_0008.GroupId='0008' AND Group_0008.ConstValue =S.[Year]
|
||
LEFT JOIN Sys_Const AS Group_0009 ON Group_0009.GroupId='0009' AND Group_0009.ConstValue =S.[Month]
|
||
LEFT JOIN Person_Persons AS US ON US.PersonId=S.HandleMan
|
||
|
||
GO
|
||
|
||
|
||
|
||
CREATE VIEW [dbo].[View_Information_DrillConductedQuarterlyReport] AS
|
||
SELECT
|
||
Report.DrillConductedQuarterlyReportId,
|
||
Report.UnitId,
|
||
Report.ReportDate,
|
||
Report.YearId,
|
||
Report.Quarter,
|
||
Report.UpState,
|
||
Report.HandleState,
|
||
(ISNULL(Group_0008.ConstText,'-') + ISNULL(Group_0011.ConstText,'-')) AS Quarters,
|
||
u.UnitName,
|
||
Report.HandleMan,
|
||
US.PersonName as UserName
|
||
FROM dbo.Information_DrillConductedQuarterlyReport AS Report
|
||
LEFT JOIN Sys_Const AS Group_0008 ON Group_0008.GroupId='0008' AND Group_0008.ConstValue =Report.YearId
|
||
LEFT JOIN Sys_Const AS Group_0011 ON Group_0011.GroupId='0011' AND Group_0011.ConstValue =Report.Quarter
|
||
Left join Base_Unit as u on u.UnitId=Report.UnitId
|
||
LEFT JOIN Person_Persons AS US ON US.PersonId=Report.HandleMan
|
||
|
||
GO
|
||
|
||
|
||
|
||
/***********应急演练开展情况季报*********/
|
||
CREATE VIEW [dbo].[View_Information_DrillConductedQuarterlyReportItem]
|
||
AS
|
||
SELECT ReportItem.DrillConductedQuarterlyReportItemId
|
||
, ReportItem.DrillConductedQuarterlyReportId
|
||
, ReportItem.IndustryType
|
||
, ReportItem.TotalConductCount
|
||
, ReportItem.TotalPeopleCount
|
||
, ReportItem.TotalInvestment
|
||
, ReportItem.HQConductCount
|
||
, ReportItem.HQPeopleCount
|
||
, ReportItem.HQInvestment
|
||
, ReportItem.BasicConductCount
|
||
, ReportItem.BasicPeopleCount
|
||
, ReportItem.BasicInvestment
|
||
, ReportItem.ComprehensivePractice
|
||
, ReportItem.CPScene
|
||
, ReportItem.CPDesktop
|
||
, ReportItem.SpecialDrill
|
||
, ReportItem.SDScene
|
||
, ReportItem.SDDesktop
|
||
, ReportItem.SortIndex
|
||
,Report.UnitId
|
||
,Report.ReportDate
|
||
,Report.Quarter
|
||
,Report.YearId
|
||
,Report.CompileMan
|
||
,Report.UpState
|
||
,Report.HandleState
|
||
,Report.HandleMan
|
||
,U.UnitName
|
||
FROM dbo.Information_DrillConductedQuarterlyReportItem AS ReportItem
|
||
LEFT JOIN dbo.Information_DrillConductedQuarterlyReport AS Report ON Report.DrillConductedQuarterlyReportId=ReportItem.DrillConductedQuarterlyReportId
|
||
LEFT JOIN dbo.Base_Unit AS U ON U.UnitId =Report.UnitId
|
||
|
||
|
||
GO
|
||
|
||
|
||
|
||
CREATE VIEW [dbo].[View_Information_DrillPlanHalfYearReport]
|
||
AS
|
||
SELECT
|
||
DrillPlanHalfYearReportId,
|
||
Report.UnitId,
|
||
Report.CompileMan,
|
||
Report.CompileDate,
|
||
Report.Telephone,
|
||
Report.YearId,
|
||
Report.HalfYearId,
|
||
Report.UpState,
|
||
Report.HandleState,
|
||
(ISNULL(Group_0008.ConstText,'-') + ISNULL(Group_0010.ConstText,'-')) AS Years,
|
||
u.UnitName,
|
||
us.PersonName as UserName,
|
||
Report.HandleMan,
|
||
USR.PersonName AS HandleManName
|
||
FROM dbo.Information_DrillPlanHalfYearReport AS Report
|
||
left join Base_Unit as u on u.UnitId = Report.UnitId
|
||
left join Person_Persons as us on us.PersonId = Report.CompileMan
|
||
LEFT JOIN Person_Persons AS USR ON US.PersonId = Report.HandleMan
|
||
LEFT JOIN Sys_Const AS Group_0008 ON Group_0008.GroupId='0008' AND Group_0008.ConstValue =Report.YearId
|
||
LEFT JOIN Sys_Const AS Group_0010 ON Group_0010.GroupId='0010' AND Group_0010.ConstValue =Report.HalfYearId
|
||
|
||
|
||
GO
|
||
|
||
|
||
|
||
/***********应急演练工作计划半年报明细表*********/
|
||
CREATE VIEW [dbo].[View_Information_DrillPlanHalfYearReportItem]
|
||
AS
|
||
SELECT ReportItem.DrillPlanHalfYearReportItemId
|
||
, ReportItem.DrillPlanHalfYearReportId
|
||
, ReportItem.DrillPlanName
|
||
, ReportItem.OrganizationUnit
|
||
, ReportItem.DrillPlanDate
|
||
, ReportItem.AccidentScene
|
||
, ReportItem.ExerciseWay
|
||
, ReportItem.SortIndex
|
||
,Report.UnitId
|
||
,Report.CompileMan
|
||
,Report.CompileDate
|
||
,Report.YearId
|
||
,Report.HalfYearId
|
||
,Report.Telephone
|
||
,Report.UpState
|
||
,Report.HandleState
|
||
,Report.HandleMan
|
||
,U.UnitName
|
||
FROM dbo.Information_DrillPlanHalfYearReportItem AS ReportItem
|
||
LEFT JOIN dbo.Information_DrillPlanHalfYearReport AS Report ON Report.DrillPlanHalfYearReportId=ReportItem.DrillPlanHalfYearReportId
|
||
LEFT JOIN dbo.Base_Unit AS U ON U.UnitId =Report.UnitId
|
||
|
||
|
||
GO
|
||
|
||
|
||
|
||
/*************企业百万工时安全统计月报表**************/
|
||
CREATE VIEW [dbo].[View_Information_MillionsMonthlyReport]
|
||
AS
|
||
SELECT
|
||
Report.MillionsMonthlyReportId,
|
||
Report.UnitId,
|
||
Report.FillingDate,
|
||
Report.UpState,
|
||
(ISNULL(Group_0008.ConstText,'-') + ISNULL(Group_0009.ConstText,'-')) AS ReportDate,
|
||
Group_0008.ConstText as YearStr,
|
||
Group_0009.ConstText as MonthStr,
|
||
U.UnitName,
|
||
Report.Year,
|
||
Report.Month,
|
||
Report.DutyPerson,
|
||
Report.RecordableIncidentRate,
|
||
Report.LostTimeRate,
|
||
Report.LostTimeInjuryRate,
|
||
Report.DeathAccidentFrequency,
|
||
Report.AccidentMortality,
|
||
Report.HandleState,
|
||
Report.HandleMan,
|
||
US.PersonName AS UserName
|
||
FROM dbo.Information_MillionsMonthlyReport AS Report
|
||
LEFT JOIN Base_Unit AS U ON U.UnitId=Report.UnitId
|
||
LEFT JOIN Sys_Const AS Group_0008 ON Group_0008.GroupId='0008' AND Group_0008.ConstValue =Report.[Year]
|
||
LEFT JOIN Sys_Const AS Group_0009 ON Group_0009.GroupId='0009' AND Group_0009.ConstValue =Report.[Month]
|
||
LEFT JOIN Person_Persons AS US ON US.PersonId=Report.HandleMan
|
||
|
||
|
||
GO
|
||
|
||
|
||
|
||
/*************安全生产数据季报**************/
|
||
CREATE VIEW [dbo].[View_Information_SafetyQuarterlyReport]
|
||
AS
|
||
SELECT
|
||
Report.SafetyQuarterlyReportId,
|
||
Report.UnitId,
|
||
Report.YearId,
|
||
Report.Quarters,
|
||
Report.UpState,
|
||
Group_0011.ConstText as QuartersStr,
|
||
U.UnitName,
|
||
Report.TotalInWorkHours,
|
||
Report.TotalInWorkHoursRemark,
|
||
Report.TotalOutWorkHours,
|
||
Report.TotalOutWorkHoursRemark,
|
||
Report.WorkHoursLossRate,
|
||
Report.WorkHoursLossRateRemark,
|
||
Report.WorkHoursAccuracy,
|
||
Report.WorkHoursAccuracyRemark,
|
||
Report.MainBusinessIncome,
|
||
Report.MainBusinessIncomeRemark,
|
||
Report.ConstructionRevenue,
|
||
Report.ConstructionRevenueRemark,
|
||
Report.UnitTimeIncome,
|
||
Report.UnitTimeIncomeRemark,
|
||
Report.BillionsOutputMortality,
|
||
Report.BillionsOutputMortalityRemark,
|
||
Report.MajorFireAccident,
|
||
Report.MajorFireAccidentRemark,
|
||
Report.MajorEquipAccident,
|
||
Report.MajorEquipAccidentRemark,
|
||
Report.AccidentFrequency,
|
||
Report.AccidentFrequencyRemark,
|
||
Report.SeriousInjuryAccident,
|
||
Report.SeriousInjuryAccidentRemark,
|
||
Report.FireAccident,
|
||
Report.FireAccidentRemark,
|
||
Report.EquipmentAccident,
|
||
Report.EquipmentAccidentRemark,
|
||
Report.PoisoningAndInjuries,
|
||
Report.PoisoningAndInjuriesRemark,
|
||
Report.ProductionSafetyInTotal,
|
||
Report.ProductionSafetyInTotalRemark,
|
||
Report.ProtectionInput,
|
||
Report.ProtectionInputRemark,
|
||
Report.LaboAndHealthIn,
|
||
Report.LaborAndHealthInRemark,
|
||
Report.TechnologyProgressIn,
|
||
Report.TechnologyProgressInRemark,
|
||
Report.EducationTrainIn,
|
||
Report.EducationTrainInRemark,
|
||
Report.ProjectCostRate,
|
||
Report.ProjectCostRateRemark,
|
||
Report.ProductionInput,
|
||
Report.ProductionInputRemark,
|
||
Report.Revenue,
|
||
Report.RevenueRemark,
|
||
Report.FullTimeMan,
|
||
Report.FullTimeManRemark,
|
||
Report.FullTimeManAttachUrl,
|
||
Report.PMMan,
|
||
Report.PMManRemark,
|
||
Report.PMManAttachUrl,
|
||
Report.CorporateDirectorEdu,
|
||
Report.CorporateDirectorEduRemark,
|
||
Report.ProjectLeaderEdu,
|
||
Report.ProjectLeaderEduRemark,
|
||
Report.FullTimeEdu,
|
||
Report.FullTimeEduRemark,
|
||
Report.ThreeKidsEduRate,
|
||
Report.ThreeKidsEduRateRemark,
|
||
Report.UplinReportRate,
|
||
Report.UplinReportRateRemark,
|
||
Report.Remarks,
|
||
Report.FillingDate,
|
||
Report.KeyEquipmentTotal,
|
||
Report.KeyEquipmentTotalRemark,
|
||
Report.KeyEquipmentReportCount,
|
||
Report.KeyEquipmentReportCountRemark,
|
||
Report.ChemicalAreaProjectCount,
|
||
Report.ChemicalAreaProjectCountRemark,
|
||
Report.HarmfulMediumCoverCount,
|
||
Report.HarmfulMediumCoverCountRemark,
|
||
Report.HarmfulMediumCoverRate,
|
||
Report.HarmfulMediumCoverRateRemark,
|
||
Report.HandleState,
|
||
Report.HandleMan,
|
||
US.PersonName AS UserName
|
||
FROM dbo.Information_SafetyQuarterlyReport AS Report
|
||
LEFT JOIN Base_Unit AS U ON U.UnitId=Report.UnitId
|
||
LEFT JOIN Sys_Const AS Group_0011 ON Group_0011.GroupId='0011' AND Group_0011.ConstValue =Report.Quarters
|
||
LEFT JOIN Person_Persons AS US ON US.PersonId=Report.HandleMan
|
||
|
||
|
||
GO
|
||
|
||
|
||
|
||
/*************职工伤亡事故原因分析报表***************/
|
||
CREATE VIEW [dbo].[View_DataIn_AccidentCauseReport]
|
||
AS
|
||
SELECT AItem.AccidentCauseReportItemId
|
||
, AItem.AccidentCauseReportId
|
||
, AItem.AccidentType
|
||
, AItem.TotalDeath
|
||
, AItem.TotalInjuries
|
||
, AItem.TotalMinorInjuries
|
||
, AItem.Death1
|
||
, AItem.Injuries1
|
||
, AItem.MinorInjuries1
|
||
, AItem.Death2
|
||
, AItem.Injuries2
|
||
, AItem.MinorInjuries2
|
||
, AItem.Death3
|
||
, AItem.Injuries3
|
||
, AItem.MinorInjuries3
|
||
, AItem.Death4
|
||
, AItem.Injuries4
|
||
, AItem.MinorInjuries4
|
||
, AItem.Death5
|
||
, AItem.Injuries5
|
||
, AItem.MinorInjuries5
|
||
, AItem.Death6
|
||
, AItem.Injuries6
|
||
, AItem.MinorInjuries6
|
||
, AItem.Death7
|
||
, AItem.Injuries7
|
||
, AItem.MinorInjuries7
|
||
, AItem.Death8
|
||
, AItem.Injuries8
|
||
, AItem.MinorInjuries8
|
||
, AItem.Death9
|
||
, AItem.Injuries9
|
||
, AItem.MinorInjuries9
|
||
, AItem.Death10
|
||
, AItem.Injuries10
|
||
, AItem.MinorInjuries10
|
||
, AItem.Death11
|
||
, AItem.Injuries11
|
||
, AItem.MinorInjuries11
|
||
, A.UnitId
|
||
, A.AccidentCauseReportCode
|
||
, A.Year
|
||
, A.Month
|
||
, A.DeathAccident
|
||
, A.DeathToll
|
||
, A.InjuredAccident
|
||
, A.InjuredToll
|
||
, A.MinorWoundAccident
|
||
, A.MinorWoundToll
|
||
, A.AverageTotalHours
|
||
, A.AverageManHours
|
||
, A.TotalLossMan
|
||
, A.LastMonthLossHoursTotal
|
||
, A.KnockOffTotal
|
||
, A.DirectLoss
|
||
, A.IndirectLosses
|
||
, A.TotalLoss
|
||
, A.TotalLossTime
|
||
, A.FillCompanyPersonCharge
|
||
, A.TabPeople
|
||
, A.AuditPerson
|
||
, A.FillingDate
|
||
, A.UpState
|
||
, A.HandleState
|
||
, A.HandleMan
|
||
, U.UnitName
|
||
FROM dbo.Information_AccidentCauseReportItem AS AItem
|
||
LEFT JOIN dbo.Information_AccidentCauseReport AS A ON A.AccidentCauseReportId=AItem.AccidentCauseReportId
|
||
LEFT JOIN dbo.Base_Unit AS U ON U.UnitId=A.UnitId
|
||
|
||
|
||
GO
|
||
|
||
|
||
|
||
/***********百万工时安全统计月报表*********/
|
||
CREATE VIEW [dbo].[View_DataIn_MillionsMonthlyReport]
|
||
AS
|
||
SELECT MItem.MillionsMonthlyReportItemId
|
||
, MItem.MillionsMonthlyReportId
|
||
, MItem.SortIndex
|
||
, MItem.Affiliation
|
||
, MItem.Name
|
||
, MItem.PostPersonNum
|
||
, MItem.SnapPersonNum
|
||
, MItem.ContractorNum
|
||
, MItem.SumPersonNum
|
||
, MItem.TotalWorkNum
|
||
, MItem.SeriousInjuriesNum
|
||
, MItem.SeriousInjuriesPersonNum
|
||
, MItem.SeriousInjuriesLossHour
|
||
, MItem.MinorAccidentNum
|
||
, MItem.MinorAccidentPersonNum
|
||
, MItem.MinorAccidentLossHour
|
||
, MItem.OtherAccidentNum
|
||
, MItem.OtherAccidentPersonNum
|
||
, MItem.OtherAccidentLossHour
|
||
, MItem.RestrictedWorkPersonNum
|
||
, MItem.RestrictedWorkLossHour
|
||
, MItem.MedicalTreatmentPersonNum
|
||
, MItem.MedicalTreatmentLossHour
|
||
, MItem.FireNum
|
||
, MItem.ExplosionNum
|
||
, MItem.TrafficNum
|
||
, MItem.EquipmentNum
|
||
, MItem.QualityNum
|
||
, MItem.OtherNum
|
||
, MItem.FirstAidDressingsNum
|
||
, MItem.AttemptedEventNum
|
||
, MItem.LossDayNum
|
||
,M.UnitId
|
||
,M.Year
|
||
,M.Month
|
||
,M.FillingMan
|
||
,M.FillingDate
|
||
,M.DutyPerson
|
||
,M.RecordableIncidentRate
|
||
,M.LostTimeRate
|
||
,M.LostTimeInjuryRate
|
||
,M.DeathAccidentFrequency
|
||
,M.AccidentMortality
|
||
,M.UpState
|
||
,M.HandleState
|
||
,M.HandleMan
|
||
,U.UnitName
|
||
FROM dbo.Information_MillionsMonthlyReportItem AS MItem
|
||
LEFT JOIN dbo.Information_MillionsMonthlyReport AS M ON M.MillionsMonthlyReportId=MItem.MillionsMonthlyReportId
|
||
LEFT JOIN dbo.Base_Unit AS U ON U.UnitId =M.UnitId
|
||
|
||
|
||
GO
|
||
|
||
|
||
--百万工时
|
||
INSERT INTO SGGLDB_SD.dbo.Information_MillionsMonthlyReport
|
||
SELECT *
|
||
FROM SUBHSSEDB.DBO.Information_MillionsMonthlyReport AS B
|
||
WHERE B.MillionsMonthlyReportId NOT IN (SELECT MillionsMonthlyReportId FROM SGGLDB_SD.dbo.Information_MillionsMonthlyReport)
|
||
GO
|
||
|
||
INSERT INTO SGGLDB_SD.dbo.Information_MillionsMonthlyReportItem
|
||
SELECT *
|
||
FROM SUBHSSEDB.DBO.Information_MillionsMonthlyReportItem AS B
|
||
WHERE B.MillionsMonthlyReportItemId NOT IN (SELECT MillionsMonthlyReportItemId FROM SGGLDB_SD.dbo.Information_MillionsMonthlyReportItem)
|
||
AND B.MillionsMonthlyReportId IN (SELECT MillionsMonthlyReportId FROM SGGLDB_SD.dbo.Information_MillionsMonthlyReport )
|
||
GO
|
||
|
||
INSERT INTO SGGLDB_SD.dbo.ProjectData_FlowOperate
|
||
SELECT *
|
||
FROM SUBHSSEDB.DBO.ProjectData_FlowOperate AS B
|
||
WHERE B.DataId NOT IN (SELECT DataId FROM SGGLDB_SD.dbo.ProjectData_FlowOperate)
|
||
AND B.DataId IN (SELECT MillionsMonthlyReportId FROM SGGLDB_SD.dbo.Information_MillionsMonthlyReport)
|
||
GO
|
||
|
||
|
||
--职业伤亡
|
||
INSERT INTO SGGLDB_SD.dbo.Information_AccidentCauseReport
|
||
SELECT *
|
||
FROM SUBHSSEDB.DBO.Information_AccidentCauseReport AS B
|
||
WHERE B.AccidentCauseReportId NOT IN (SELECT AccidentCauseReportId FROM SGGLDB_SD.dbo.Information_AccidentCauseReport)
|
||
GO
|
||
|
||
INSERT INTO SGGLDB_SD.dbo.Information_AccidentCauseReportItem
|
||
SELECT *
|
||
FROM SUBHSSEDB.DBO.Information_AccidentCauseReportItem AS B
|
||
WHERE B.AccidentCauseReportItemId NOT IN (SELECT AccidentCauseReportItemId FROM SGGLDB_SD.dbo.Information_AccidentCauseReportItem)
|
||
AND B.AccidentCauseReportId IN (SELECT AccidentCauseReportId FROM SGGLDB_SD.dbo.Information_AccidentCauseReport )
|
||
GO
|
||
|
||
INSERT INTO SGGLDB_SD.dbo.ProjectData_FlowOperate
|
||
SELECT *
|
||
FROM SUBHSSEDB.DBO.ProjectData_FlowOperate AS B
|
||
WHERE B.DataId NOT IN (SELECT DataId FROM SGGLDB_SD.dbo.ProjectData_FlowOperate)
|
||
AND B.DataId IN (SELECT AccidentCauseReportId FROM SGGLDB_SD.dbo.Information_AccidentCauseReport)
|
||
GO
|
||
|
||
INSERT INTO SGGLDB_SD.dbo.Sys_CodeRecords
|
||
SELECT *
|
||
FROM SUBHSSEDB.DBO.Sys_CodeRecords AS B
|
||
WHERE B.DataId NOT IN (SELECT DataId FROM SGGLDB_SD.dbo.Sys_CodeRecords)
|
||
AND B.DataId IN (SELECT AccidentCauseReportId FROM SGGLDB_SD.dbo.Information_AccidentCauseReport)
|
||
GO
|
||
--安全生成季报
|
||
INSERT INTO SGGLDB_SD.dbo.Information_SafetyQuarterlyReport
|
||
SELECT *
|
||
FROM SUBHSSEDB.DBO.Information_SafetyQuarterlyReport AS B
|
||
WHERE B.SafetyQuarterlyReportId NOT IN (SELECT SafetyQuarterlyReportId
|
||
FROM SGGLDB_SD.dbo.Information_SafetyQuarterlyReport)
|
||
GO
|
||
|
||
|
||
INSERT INTO SGGLDB_SD.dbo.ProjectData_FlowOperate
|
||
SELECT *
|
||
FROM SUBHSSEDB.DBO.ProjectData_FlowOperate AS B
|
||
WHERE B.DataId NOT IN (SELECT DataId FROM SGGLDB_SD.dbo.ProjectData_FlowOperate)
|
||
AND B.DataId IN (SELECT SafetyQuarterlyReportId FROM SGGLDB_SD.dbo.Information_SafetyQuarterlyReport)
|
||
GO
|
||
|
||
--应急开展季报
|
||
INSERT INTO SGGLDB_SD.dbo.Information_DrillConductedQuarterlyReport
|
||
SELECT *
|
||
FROM SUBHSSEDB.DBO.Information_DrillConductedQuarterlyReport AS B
|
||
WHERE B.DrillConductedQuarterlyReportId NOT IN (SELECT DrillConductedQuarterlyReportId FROM SGGLDB_SD.dbo.Information_DrillConductedQuarterlyReport)
|
||
GO
|
||
|
||
INSERT INTO SGGLDB_SD.dbo.Information_DrillConductedQuarterlyReportItem
|
||
SELECT *
|
||
FROM SUBHSSEDB.DBO.Information_DrillConductedQuarterlyReportItem AS B
|
||
WHERE B.DrillConductedQuarterlyReportItemId NOT IN (SELECT DrillConductedQuarterlyReportItemId FROM SGGLDB_SD.dbo.Information_DrillConductedQuarterlyReportItem)
|
||
AND B.DrillConductedQuarterlyReportId IN (SELECT DrillConductedQuarterlyReportId FROM SGGLDB_SD.dbo.Information_DrillConductedQuarterlyReport)
|
||
GO
|
||
|
||
INSERT INTO SGGLDB_SD.dbo.ProjectData_FlowOperate
|
||
SELECT *
|
||
FROM SUBHSSEDB.DBO.ProjectData_FlowOperate AS B
|
||
WHERE B.DataId NOT IN (SELECT DataId FROM SGGLDB_SD.dbo.ProjectData_FlowOperate)
|
||
AND B.DataId IN (SELECT DrillConductedQuarterlyReportId FROM SGGLDB_SD.dbo.Information_DrillConductedQuarterlyReport)
|
||
GO
|
||
|
||
--应急开展半年报
|
||
INSERT INTO SGGLDB_SD.dbo.Information_DrillPlanHalfYearReport
|
||
SELECT *
|
||
FROM SUBHSSEDB.DBO.Information_DrillPlanHalfYearReport AS B
|
||
WHERE B.DrillPlanHalfYearReportId NOT IN (SELECT DrillPlanHalfYearReportId FROM SGGLDB_SD.dbo.Information_DrillPlanHalfYearReport)
|
||
GO
|
||
|
||
INSERT INTO SGGLDB_SD.dbo.Information_DrillPlanHalfYearReportItem
|
||
SELECT *
|
||
FROM SUBHSSEDB.DBO.Information_DrillPlanHalfYearReportItem AS B
|
||
WHERE B.DrillPlanHalfYearReportItemId NOT IN (SELECT DrillPlanHalfYearReportItemId FROM SGGLDB_SD.dbo.Information_DrillPlanHalfYearReportItem)
|
||
AND B.DrillPlanHalfYearReportId IN (SELECT DrillPlanHalfYearReportId FROM SGGLDB_SD.dbo.Information_DrillPlanHalfYearReport)
|
||
GO
|
||
|
||
INSERT INTO SGGLDB_SD.dbo.ProjectData_FlowOperate
|
||
SELECT *
|
||
FROM SUBHSSEDB.DBO.ProjectData_FlowOperate AS B
|
||
WHERE B.DataId NOT IN (SELECT DataId FROM SGGLDB_SD.dbo.ProjectData_FlowOperate)
|
||
AND B.DataId IN (SELECT DrillPlanHalfYearReportId FROM SGGLDB_SD.dbo.Information_DrillPlanHalfYearReport)
|
||
GO
|
||
|
||
|
||
CREATE TABLE [dbo].[Information_UrgeReport](
|
||
[UrgeReportId] [nvarchar](50) NOT NULL,
|
||
[UnitId] [nvarchar](50) NULL,
|
||
[ReprotType] [nvarchar](50) NULL,
|
||
[YearId] [nvarchar](50) NULL,
|
||
[MonthId] [nvarchar](50) NULL,
|
||
[QuarterId] [nvarchar](50) NULL,
|
||
[HalfYearId] [nvarchar](50) NULL,
|
||
[UrgeDate] [datetime] NULL,
|
||
[IsComplete] [bit] NULL,
|
||
[IsCancel] [bit] NULL,
|
||
CONSTRAINT [PK_Information_UrgeReport] PRIMARY KEY CLUSTERED
|
||
(
|
||
[UrgeReportId] 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
|
||
|
||
ALTER TABLE [dbo].[Information_UrgeReport] WITH CHECK ADD CONSTRAINT [FK_Information_UrgeReport_Base_Unit] FOREIGN KEY([UnitId])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Information_UrgeReport] CHECK CONSTRAINT [FK_Information_UrgeReport_Base_Unit]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'催报id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_UrgeReport', @level2type=N'COLUMN',@level2name=N'UrgeReportId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单位id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_UrgeReport', @level2type=N'COLUMN',@level2name=N'UnitId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N' 报表类型' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_UrgeReport', @level2type=N'COLUMN',@level2name=N'ReprotType'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否上报' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_UrgeReport', @level2type=N'COLUMN',@level2name=N'IsComplete'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安全信息催报表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_UrgeReport'
|
||
GO
|
||
|
||
|