CREATE TABLE [dbo].[Technique_ProtectionStandards] (
  [ProtectionStandardsId] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [ProtectionStandardsCode] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [ProtectionStandardsName] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [CompileMan] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [CompileDate] datetime  NULL,
  [AttachUrl] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [AuditMan] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [AuditDate] datetime  NULL,
  [IsPass] bit  NULL,
  [IsBuild] bit  NULL,
  [UpState] char(1) COLLATE Chinese_PRC_CI_AS  NULL,
  CONSTRAINT [PK_Technique_ProtectionStandards] PRIMARY KEY CLUSTERED ([ProtectionStandardsId])
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].[Technique_ProtectionStandards] SET (LOCK_ESCALATION = TABLE)
GO


EXEC sp_addextendedproperty
'MS_Description', N'编号',
'SCHEMA', N'dbo',
'TABLE', N'Technique_ProtectionStandards',
'COLUMN', N'ProtectionStandardsCode'
GO

EXEC sp_addextendedproperty
'MS_Description', N'名称',
'SCHEMA', N'dbo',
'TABLE', N'Technique_ProtectionStandards',
'COLUMN', N'ProtectionStandardsName'
GO


EXEC sp_addextendedproperty
'MS_Description', N'编制人',
'SCHEMA', N'dbo',
'TABLE', N'Technique_ProtectionStandards',
'COLUMN', N'CompileMan'
GO

EXEC sp_addextendedproperty
'MS_Description', N'编制日期',
'SCHEMA', N'dbo',
'TABLE', N'Technique_ProtectionStandards',
'COLUMN', N'CompileDate'
GO

EXEC sp_addextendedproperty
'MS_Description', N'附件',
'SCHEMA', N'dbo',
'TABLE', N'Technique_ProtectionStandards',
'COLUMN', N'AttachUrl'
GO


EXEC sp_addextendedproperty
'MS_Description', N'防护标准表',
'SCHEMA', N'dbo',
'TABLE', N'Technique_ProtectionStandards'

INSERT INTO [dbo].[Sys_Menu] ([MenuId], [MenuName], [Icon], [Url], [SortIndex], [SuperMenu], [MenuType], [IsOffice], [IsEnd], [IsUsed], [MenuEnName]) 
VALUES (N'8E3A5EDC-62CA-4F64-A4E7-CD3D473A6201', N'防护标准', NULL, N'HSSE/Technique/ProtectionStandards.aspx', 90, N'D70D9BF5-C72E-414D-941B-CF9B4065F6BA', N'Menu_DigData', '1', '1', '1', NULL);



INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) 
VALUES (NewID(), N'8E3A5EDC-62CA-4F64-A4E7-CD3D473A6201', N'增加', 1);
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) 
VALUES (NewID(), N'8E3A5EDC-62CA-4F64-A4E7-CD3D473A6201', N'修改', 2);
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) 
VALUES (NewID(), N'8E3A5EDC-62CA-4F64-A4E7-CD3D473A6201', N'删除', 3);
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) 
VALUES (NewID(), N'8E3A5EDC-62CA-4F64-A4E7-CD3D473A6201', N'保存', 4);
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) 
VALUES (NewID(), N'8E3A5EDC-62CA-4F64-A4E7-CD3D473A6201', N'导出', 5);



CREATE TABLE [dbo].[Technique_SafetyResponsibilities] (
  [SafetyResponsibilitiesId] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [SafetyResponsibilitiesCode] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [SafetyResponsibilitiesName] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [CompileMan] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [CompileDate] datetime  NULL,
  [AttachUrl] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [AuditMan] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [AuditDate] datetime  NULL,
  [IsPass] bit  NULL,
  [IsBuild] bit  NULL,
  [UpState] char(1) COLLATE Chinese_PRC_CI_AS  NULL,
  CONSTRAINT [PK_Technique_SafetyResponsibilities] PRIMARY KEY CLUSTERED ([SafetyResponsibilitiesId])
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].[Technique_SafetyResponsibilities] SET (LOCK_ESCALATION = TABLE)
GO


EXEC sp_addextendedproperty
'MS_Description', N'编号',
'SCHEMA', N'dbo',
'TABLE', N'Technique_SafetyResponsibilities',
'COLUMN', N'SafetyResponsibilitiesCode'
GO

EXEC sp_addextendedproperty
'MS_Description', N'名称',
'SCHEMA', N'dbo',
'TABLE', N'Technique_SafetyResponsibilities',
'COLUMN', N'SafetyResponsibilitiesName'
GO


EXEC sp_addextendedproperty
'MS_Description', N'编制人',
'SCHEMA', N'dbo',
'TABLE', N'Technique_SafetyResponsibilities',
'COLUMN', N'CompileMan'
GO

EXEC sp_addextendedproperty
'MS_Description', N'编制日期',
'SCHEMA', N'dbo',
'TABLE', N'Technique_SafetyResponsibilities',
'COLUMN', N'CompileDate'
GO

EXEC sp_addextendedproperty
'MS_Description', N'附件',
'SCHEMA', N'dbo',
'TABLE', N'Technique_SafetyResponsibilities',
'COLUMN', N'AttachUrl'
GO


EXEC sp_addextendedproperty
'MS_Description', N'安全职责表',
'SCHEMA', N'dbo',
'TABLE', N'Technique_SafetyResponsibilities'

INSERT INTO [dbo].[Sys_Menu] ([MenuId], [MenuName], [Icon], [Url], [SortIndex], [SuperMenu], [MenuType], [IsOffice], [IsEnd], [IsUsed], [MenuEnName]) 
VALUES (N'6D75EA6C-0E49-4B04-850B-930B628EE1DF', N'安全职责', NULL, N'HSSE/Technique/SafetyResponsibilities.aspx', 100, N'D70D9BF5-C72E-414D-941B-CF9B4065F6BA', N'Menu_DigData', '1', '1', '1', NULL);

INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) 
VALUES (NewID(), N'6D75EA6C-0E49-4B04-850B-930B628EE1DF', N'增加', 1);
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) 
VALUES (NewID(), N'6D75EA6C-0E49-4B04-850B-930B628EE1DF', N'修改', 2);
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) 
VALUES (NewID(), N'6D75EA6C-0E49-4B04-850B-930B628EE1DF', N'删除', 3);
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) 
VALUES (NewID(), N'6D75EA6C-0E49-4B04-850B-930B628EE1DF', N'保存', 4);
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) 
VALUES (NewID(), N'6D75EA6C-0E49-4B04-850B-930B628EE1DF', N'导出', 5);



CREATE TABLE [dbo].[Technique_ConstructionStandards] (
  [ConstructionStandardsId] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [ConstructionStandardsCode] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [ConstructionStandardsName] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [CompileMan] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [CompileDate] datetime  NULL,
  [AttachUrl] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [AuditMan] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [AuditDate] datetime  NULL,
  [IsPass] bit  NULL,
  [IsBuild] bit  NULL,
  [UpState] char(1) COLLATE Chinese_PRC_CI_AS  NULL,
  CONSTRAINT [PK_Technique_ConstructionStandards] PRIMARY KEY CLUSTERED ([ConstructionStandardsId])
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].[Technique_ConstructionStandards] SET (LOCK_ESCALATION = TABLE)
GO


EXEC sp_addextendedproperty
'MS_Description', N'编号',
'SCHEMA', N'dbo',
'TABLE', N'Technique_ConstructionStandards',
'COLUMN', N'ConstructionStandardsCode'
GO

EXEC sp_addextendedproperty
'MS_Description', N'名称',
'SCHEMA', N'dbo',
'TABLE', N'Technique_ConstructionStandards',
'COLUMN', N'ConstructionStandardsName'
GO


EXEC sp_addextendedproperty
'MS_Description', N'编制人',
'SCHEMA', N'dbo',
'TABLE', N'Technique_ConstructionStandards',
'COLUMN', N'CompileMan'
GO

EXEC sp_addextendedproperty
'MS_Description', N'编制日期',
'SCHEMA', N'dbo',
'TABLE', N'Technique_ConstructionStandards',
'COLUMN', N'CompileDate'
GO

EXEC sp_addextendedproperty
'MS_Description', N'附件',
'SCHEMA', N'dbo',
'TABLE', N'Technique_ConstructionStandards',
'COLUMN', N'AttachUrl'
GO


EXEC sp_addextendedproperty
'MS_Description', N'队伍文明施工标准表',
'SCHEMA', N'dbo',
'TABLE', N'Technique_ConstructionStandards'


INSERT INTO [dbo].[Sys_Menu] ([MenuId], [MenuName], [Icon], [Url], [SortIndex], [SuperMenu], [MenuType], [IsOffice], [IsEnd], [IsUsed], [MenuEnName]) 
VALUES (N'23ACEE2E-0E56-4136-9DFB-C971B3C4EA60', N'队伍文明施工标准', NULL, N'HSSE/Technique/ConstructionStandards.aspx', 110, N'D70D9BF5-C72E-414D-941B-CF9B4065F6BA', N'Menu_DigData', '1', '1', '1', NULL);

INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) 
VALUES (NewID(), N'23ACEE2E-0E56-4136-9DFB-C971B3C4EA60', N'增加', 1);
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) 
VALUES (NewID(), N'23ACEE2E-0E56-4136-9DFB-C971B3C4EA60', N'修改', 2);
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) 
VALUES (NewID(), N'23ACEE2E-0E56-4136-9DFB-C971B3C4EA60', N'删除', 3);
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) 
VALUES (NewID(), N'23ACEE2E-0E56-4136-9DFB-C971B3C4EA60', N'保存', 4);
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) 
VALUES (NewID(), N'23ACEE2E-0E56-4136-9DFB-C971B3C4EA60', N'导出', 5);



CREATE TABLE [dbo].[Technique_AwardStandards] (
  [AwardStandardsId] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [AwardStandardsCode] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [AwardStandardsName] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [CompileMan] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [CompileDate] datetime  NULL,
  [AttachUrl] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [AuditMan] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [AuditDate] datetime  NULL,
  [IsPass] bit  NULL,
  [IsBuild] bit  NULL,
  [UpState] char(1) COLLATE Chinese_PRC_CI_AS  NULL,
  CONSTRAINT [PK_Technique_AwardStandards] PRIMARY KEY CLUSTERED ([AwardStandardsId])
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].[Technique_AwardStandards] SET (LOCK_ESCALATION = TABLE)
GO


EXEC sp_addextendedproperty
'MS_Description', N'编号',
'SCHEMA', N'dbo',
'TABLE', N'Technique_AwardStandards',
'COLUMN', N'AwardStandardsCode'
GO

EXEC sp_addextendedproperty
'MS_Description', N'名称',
'SCHEMA', N'dbo',
'TABLE', N'Technique_AwardStandards',
'COLUMN', N'AwardStandardsName'
GO


EXEC sp_addextendedproperty
'MS_Description', N'编制人',
'SCHEMA', N'dbo',
'TABLE', N'Technique_AwardStandards',
'COLUMN', N'CompileMan'
GO

EXEC sp_addextendedproperty
'MS_Description', N'编制日期',
'SCHEMA', N'dbo',
'TABLE', N'Technique_AwardStandards',
'COLUMN', N'CompileDate'
GO

EXEC sp_addextendedproperty
'MS_Description', N'附件',
'SCHEMA', N'dbo',
'TABLE', N'Technique_AwardStandards',
'COLUMN', N'AttachUrl'
GO


EXEC sp_addextendedproperty
'MS_Description', N'奖罚标准表',
'SCHEMA', N'dbo',
'TABLE', N'Technique_AwardStandards'

INSERT INTO [dbo].[Sys_Menu] ([MenuId], [MenuName], [Icon], [Url], [SortIndex], [SuperMenu], [MenuType], [IsOffice], [IsEnd], [IsUsed], [MenuEnName]) 
VALUES (N'E4FD28A8-9715-452F-BB16-5FF87BE7D32B', N'奖罚标准', NULL, N'HSSE/Technique/AwardStandards.aspx', 120, N'D70D9BF5-C72E-414D-941B-CF9B4065F6BA', N'Menu_DigData', '1', '1', '1', NULL);

INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) 
VALUES (NewID(), N'E4FD28A8-9715-452F-BB16-5FF87BE7D32B', N'增加', 1);
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) 
VALUES (NewID(), N'E4FD28A8-9715-452F-BB16-5FF87BE7D32B', N'修改', 2);
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) 
VALUES (NewID(), N'E4FD28A8-9715-452F-BB16-5FF87BE7D32B', N'删除', 3);
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) 
VALUES (NewID(), N'E4FD28A8-9715-452F-BB16-5FF87BE7D32B', N'保存', 4);
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) 
VALUES (NewID(), N'E4FD28A8-9715-452F-BB16-5FF87BE7D32B', N'导出', 5);


alter table dbo.Technique_ProtectionStandards add Remark nvarchar(500);
alter table dbo.Technique_SafetyResponsibilities add Remark nvarchar(500);
alter table dbo.Technique_ConstructionStandards add Remark nvarchar(500);
alter table dbo.Technique_AwardStandards add Remark nvarchar(500);