INSERT INTO [dbo].[Sys_Menu] ([MenuId], [MenuName], [Icon], [Url], [SortIndex], [SuperMenu], [MenuType], [IsOffice], [IsEnd], [IsUsed]) 
VALUES (N'43763381-A158-4FC9-8A20-0499D8F8BD8B', N'安全环保预算表', NULL, N'/ReportManage/SafeEnvBudget/SafeEnvBudget.aspx', '10', N'0D988FA5-352F-460B-927A-C4EE5AD81B1E', N'Menu_Report', '0', '1', '1');
INSERT INTO [dbo].[Sys_Menu] ([MenuId], [MenuName], [Icon], [Url], [SortIndex], [SuperMenu], [MenuType], [IsOffice], [IsEnd], [IsUsed]) 
VALUES (N'FBBA0E65-105E-42FA-BD77-5FA7B1E00BE7', N'安全环保预算表', NULL, N'/ReportManage/SafeEnvBudget/SafeEnvBudgetTotal.aspx', '10', N'224F8F8B-C5E7-4763-AEE1-1C54909F0C1A', N'Menu_S_Report', '1', '1', '1');
go
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) VALUES (N'44B69065-8E5C-4F31-9724-D63F88466B7E', N'43763381-A158-4FC9-8A20-0499D8F8BD8B', N'删除', '3');
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) VALUES (N'4E18C10B-949B-4E6A-BA27-63E29EDF513A', N'43763381-A158-4FC9-8A20-0499D8F8BD8B', N'增加', '1');
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) VALUES (N'848341D1-CA09-4F4A-82FE-E78FCB8C5744', N'43763381-A158-4FC9-8A20-0499D8F8BD8B', N'保存', '4');
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) VALUES (N'C5ECFC86-EC2B-4C97-A542-AC5070B40CCA', N'43763381-A158-4FC9-8A20-0499D8F8BD8B', N'修改', '2');
go


update [Sys_Menu]
set [Url]='ReportManage/SafeEnvBudget/SafeEnvBudget.aspx'
where [MenuId]='43763381-A158-4FC9-8A20-0499D8F8BD8B'
go

update [Sys_Menu]
set [Url]='ReportManage/SafeEnvBudget/SafeEnvBudgetTotal.aspx'
where [MenuId]='FBBA0E65-105E-42FA-BD77-5FA7B1E00BE7'
go


CREATE TABLE [dbo].[SafeEnvBudget](
	[BudgetId] [nvarchar](50) NOT NULL,
	[UnitId] [nvarchar](50) NULL,
	[Subject1] [nvarchar](50) NULL,
	[Subject2] [nvarchar](50) NULL,
	[Subject3] [nvarchar](50) NULL,
	[Subject4] [nvarchar](50) NULL,
	[Subject5] [nvarchar](50) NULL,
	[Year] [nvarchar](5) NULL,
	[ProjectId] [nvarchar](50) NULL,
	[BudgetAmount] [numeric](18, 2) NULL,
	[UserId] [nvarchar](50) NULL,
	[CreateDate] [date] NULL,
	[Remark] [nvarchar](500) NULL,
	[State] [nvarchar](1) NULL,
	[RealAmount] [numeric](18, 2) NULL,
 CONSTRAINT [PK_SafeEnvBudget] PRIMARY KEY CLUSTERED 
(
	[BudgetId] 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


