﻿INSERT INTO Base_RiskLevel(RiskLevelId,RiskLevel,RiskLevelName,MinValue,MaxValue,ControlMeasures,Days)
values('dc123980-732c-4fdc-a08e-7d03ebd4388e','5','五级','0','0','五级','1');

--删除菜单“HSE费用▷ ▷ HSE费用计划；HSE费用支出；分包商HSE费用申请”。
update sys_menu set IsUsed=0 where menuname='HSE费用计划';
update sys_menu set IsUsed=0 where menuname='HSE费用支出';
update sys_menu set IsUsed=0 where menuname='分包商HSE费用申请';
update sys_menu set IsUsed=0 where menuname='分包商HSE费用投入登记';
--合同HSE费用额登记
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
values('C6CF3A5C-546B-483A-B742-A77F2E152523','合同HSE费用额登记','HSSE/CostGoods/FeeRegistration.aspx',9,'20ECB69E-28C4-4FAC-941A-15F446AEB634','Menu_HSSE',0,1,1)
go
insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('8CC1F1E8-3CB4-4213-A88D-EFDDA3E2272B','C6CF3A5C-546B-483A-B742-A77F2E152523','增加',1)
insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('DF601450-8F0A-427A-9BB4-30E9D3A6123A','C6CF3A5C-546B-483A-B742-A77F2E152523','修改',2)
insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('CE006C1E-476F-4D3C-8B28-4114B5CD360F','C6CF3A5C-546B-483A-B742-A77F2E152523','删除',3)
insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('10C0B8CF-B32B-4D11-AACA-972D085015BB','C6CF3A5C-546B-483A-B742-A77F2E152523','保存',4)
go

CREATE TABLE [dbo].[CostGoods_FeeRegistration](
	[Id] [nvarchar](50) NOT NULL,
	[ProjectId] [nvarchar](50) NULL,
	[UnitId] [nvarchar](50) NULL,
	[Cost] [decimal](18, 2) NULL,
	[CompileDate] [datetime] NULL,
	[CompileMan] [nvarchar](50) NULL,
 CONSTRAINT [PK_CostGoods_FeeRegistration] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO