fix:脚本
This commit is contained in:
@@ -0,0 +1,316 @@
|
||||
--工程量过程管理
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('781CD912-5D14-4371-97BC-3C4773C13B38','工程量过程管理','',35,'0','Menu_CQMS',0,0,1)
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('13015CB5-444A-45FF-9253-FBD2A72C41CD','图纸登记','CQMS/QuantityManagement/Drawing.aspx',10,'781CD912-5D14-4371-97BC-3C4773C13B38','Menu_CQMS',0,1,1)
|
||||
GO
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)VALUES('77AB2FB4-6BBD-4357-B618-D82E7EE2C605','13015CB5-444A-45FF-9253-FBD2A72C41CD','增加',1)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)VALUES('40FC59E3-7F1F-4F75-9A27-468FFEE4A08A','13015CB5-444A-45FF-9253-FBD2A72C41CD','修改',2)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)VALUES('703CB353-7765-439F-AC46-FB72B508545F','13015CB5-444A-45FF-9253-FBD2A72C41CD','删除',3)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)VALUES('36303887-9801-4741-B3BC-62521C866847','13015CB5-444A-45FF-9253-FBD2A72C41CD','保存',4)
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('12E34CE4-99C9-4F25-BE59-3D208F7C6363','变更登记','CQMS/QuantityManagement/Change.aspx',20,'781CD912-5D14-4371-97BC-3C4773C13B38','Menu_CQMS',0,1,1)
|
||||
GO
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)VALUES('DDA14549-5237-4DD2-8641-160DB366E1C5','12E34CE4-99C9-4F25-BE59-3D208F7C6363','增加',1)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)VALUES('18318979-824A-4E7D-B433-4DE4203F80B6','12E34CE4-99C9-4F25-BE59-3D208F7C6363','修改',2)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)VALUES('71FF8B41-8110-4346-9F81-88DAE99C9E24','12E34CE4-99C9-4F25-BE59-3D208F7C6363','删除',3)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)VALUES('956CD606-32F0-4EB2-B844-EEC8B119F896','12E34CE4-99C9-4F25-BE59-3D208F7C6363','保存',4)
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('2D70E848-F055-4EF3-B385-2C4AEF9E5E6A','工程量基础表','CQMS/QuantityManagement/Base.aspx',30,'781CD912-5D14-4371-97BC-3C4773C13B38','Menu_CQMS',0,1,1)
|
||||
GO
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)VALUES('7A5EDEB0-FB79-4108-A125-8A456A85BBB5','2D70E848-F055-4EF3-B385-2C4AEF9E5E6A','增加',1)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)VALUES('EF8FB1D5-B711-4238-9D98-4983AFAC3541','2D70E848-F055-4EF3-B385-2C4AEF9E5E6A','修改',2)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)VALUES('5FA57060-E2CB-4668-B580-A5037D16EB13','2D70E848-F055-4EF3-B385-2C4AEF9E5E6A','删除',3)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)VALUES('3FEE3F68-7FBE-4FA1-AAE2-AFFCB309C98B','2D70E848-F055-4EF3-B385-2C4AEF9E5E6A','保存',4)
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('771D6E8F-3067-48FD-BC26-9225723AE8CE','工程量日常录入','CQMS/QuantityManagement/DayInput.aspx',40,'781CD912-5D14-4371-97BC-3C4773C13B38','Menu_CQMS',0,1,1)
|
||||
GO
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)VALUES('7C10E9A9-ED57-4935-AD2B-A6B836F8365A','771D6E8F-3067-48FD-BC26-9225723AE8CE','增加',1)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)VALUES('FA780816-5ABA-487A-B597-7C192BAB6B56','771D6E8F-3067-48FD-BC26-9225723AE8CE','修改',2)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)VALUES('66FB7D03-A3A6-48F7-A620-37E26D12053D','771D6E8F-3067-48FD-BC26-9225723AE8CE','删除',3)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)VALUES('588D950D-F0CC-4346-B93E-F796FFDFA3EC','771D6E8F-3067-48FD-BC26-9225723AE8CE','保存',4)
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('57217CE1-E4FE-46EE-931E-B2E586C0AF0A','日常统计表','CQMS/QuantityManagement/DayInputStatistics.aspx',50,'781CD912-5D14-4371-97BC-3C4773C13B38','Menu_CQMS',0,1,1)
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('91246AF7-BCBB-4A78-A13A-4BFE6A2DE544','整体及分类汇总表','CQMS/QuantityManagement/WorkTeamStatistics.aspx',60,'781CD912-5D14-4371-97BC-3C4773C13B38','Menu_CQMS',0,1,1)
|
||||
GO
|
||||
|
||||
|
||||
|
||||
CREATE TABLE [dbo].[QuantityManagement_Drawing](
|
||||
[DrawingId] [nvarchar](50) NOT NULL,
|
||||
[ProjectId] [nvarchar](50) NULL,
|
||||
[WorkSection] [nvarchar](100) NULL,
|
||||
[DrawingNo] [nvarchar](100) NULL,
|
||||
[DrawingName] [nvarchar](100) NULL,
|
||||
[Major] [nvarchar](50) NULL,
|
||||
[AcceptDate] [datetime] NULL,
|
||||
[CompletionStatus] [nvarchar](50) NULL,
|
||||
[DutyPerson] [nvarchar](50) NULL,
|
||||
[Remark] [nvarchar](200) NULL,
|
||||
[CompileMan] [nvarchar](50) NULL,
|
||||
[CompileDate] [datetime] NULL,
|
||||
CONSTRAINT [PK_QuantityManagement_Drawing] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[DrawingId] 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].[QuantityManagement_Drawing] WITH CHECK ADD CONSTRAINT [FK_QuantityManagement_Drawing_Base_Project] FOREIGN KEY([ProjectId])
|
||||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[QuantityManagement_Drawing] CHECK CONSTRAINT [FK_QuantityManagement_Drawing_Base_Project]
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Drawing', @level2type=N'COLUMN',@level2name=N'DrawingId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Drawing', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工段' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Drawing', @level2type=N'COLUMN',@level2name=N'WorkSection'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Drawing', @level2type=N'COLUMN',@level2name=N'DrawingNo'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图纸名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Drawing', @level2type=N'COLUMN',@level2name=N'DrawingName'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专业' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Drawing', @level2type=N'COLUMN',@level2name=N'Major'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'接收日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Drawing', @level2type=N'COLUMN',@level2name=N'AcceptDate'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'完成情况' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Drawing', @level2type=N'COLUMN',@level2name=N'CompletionStatus'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'责任人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Drawing', @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'QuantityManagement_Drawing', @level2type=N'COLUMN',@level2name=N'Remark'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Drawing', @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'QuantityManagement_Drawing', @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'QuantityManagement_Drawing'
|
||||
GO
|
||||
|
||||
|
||||
|
||||
CREATE TABLE [dbo].[QuantityManagement_Change](
|
||||
[ChangeId] [nvarchar](50) NOT NULL,
|
||||
[ProjectId] [nvarchar](50) NULL,
|
||||
[WorkSection] [nvarchar](100) NULL,
|
||||
[ChangeNo] [nvarchar](100) NULL,
|
||||
[ChangeName] [nvarchar](100) NULL,
|
||||
[Major] [nvarchar](50) NULL,
|
||||
[AcceptDate] [datetime] NULL,
|
||||
[CompletionStatus] [nvarchar](50) NULL,
|
||||
[DutyPerson] [nvarchar](50) NULL,
|
||||
[Remark] [nvarchar](200) NULL,
|
||||
[CompileMan] [nvarchar](50) NULL,
|
||||
[CompileDate] [datetime] NULL,
|
||||
CONSTRAINT [PK_QuantityManagement_Change] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[ChangeId] 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].[QuantityManagement_Change] WITH CHECK ADD CONSTRAINT [FK_QuantityManagement_Change_Base_Project] FOREIGN KEY([ProjectId])
|
||||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[QuantityManagement_Change] CHECK CONSTRAINT [FK_QuantityManagement_Change_Base_Project]
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Change', @level2type=N'COLUMN',@level2name=N'ChangeId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Change', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工段' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Change', @level2type=N'COLUMN',@level2name=N'WorkSection'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'变更号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Change', @level2type=N'COLUMN',@level2name=N'ChangeNo'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'变更名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Change', @level2type=N'COLUMN',@level2name=N'ChangeName'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专业' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Change', @level2type=N'COLUMN',@level2name=N'Major'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'接收日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Change', @level2type=N'COLUMN',@level2name=N'AcceptDate'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'完成情况' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Change', @level2type=N'COLUMN',@level2name=N'CompletionStatus'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'责任人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Change', @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'QuantityManagement_Change', @level2type=N'COLUMN',@level2name=N'Remark'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Change', @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'QuantityManagement_Change', @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'QuantityManagement_Change'
|
||||
GO
|
||||
|
||||
|
||||
|
||||
CREATE TABLE [dbo].[QuantityManagement_Base](
|
||||
[BaseId] [nvarchar](50) NOT NULL,
|
||||
[ProjectId] [nvarchar](50) NULL,
|
||||
[DrawingId] [nvarchar](50) NULL,
|
||||
[Part] [nvarchar](100) NULL,
|
||||
[ProjectContent] [nvarchar](100) NULL,
|
||||
[Unit] [nvarchar](50) NULL,
|
||||
[Amount] [decimal](18, 2) NULL,
|
||||
[WorkTeam] [nvarchar](100) NULL,
|
||||
[CompileMan] [nvarchar](50) NULL,
|
||||
[CompileDate] [datetime] NULL,
|
||||
CONSTRAINT [PK_QuantityManagement_Base] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[BaseId] 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].[QuantityManagement_Base] WITH CHECK ADD CONSTRAINT [FK_QuantityManagement_Base_Base_Project] FOREIGN KEY([ProjectId])
|
||||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[QuantityManagement_Base] CHECK CONSTRAINT [FK_QuantityManagement_Base_Base_Project]
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[QuantityManagement_Base] WITH CHECK ADD CONSTRAINT [FK_QuantityManagement_Base_QuantityManagement_Drawing] FOREIGN KEY([DrawingId])
|
||||
REFERENCES [dbo].[QuantityManagement_Drawing] ([DrawingId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[QuantityManagement_Base] CHECK CONSTRAINT [FK_QuantityManagement_Base_QuantityManagement_Drawing]
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Base', @level2type=N'COLUMN',@level2name=N'BaseId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Base', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图纸Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Base', @level2type=N'COLUMN',@level2name=N'DrawingId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'部位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Base', @level2type=N'COLUMN',@level2name=N'Part'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目内容' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Base', @level2type=N'COLUMN',@level2name=N'ProjectContent'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Base', @level2type=N'COLUMN',@level2name=N'Unit'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Base', @level2type=N'COLUMN',@level2name=N'Amount'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'作业队' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Base', @level2type=N'COLUMN',@level2name=N'WorkTeam'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_Base', @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'QuantityManagement_Base', @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'QuantityManagement_Base'
|
||||
GO
|
||||
|
||||
|
||||
|
||||
CREATE TABLE [dbo].[QuantityManagement_DayInput](
|
||||
[DayInputId] [nvarchar](50) NOT NULL,
|
||||
[ProjectId] [nvarchar](50) NULL,
|
||||
[BaseId] [nvarchar](50) NULL,
|
||||
[Date] [datetime] NULL,
|
||||
[DayAmount] [decimal](18, 2) NULL,
|
||||
[CompileMan] [nvarchar](50) NULL,
|
||||
[CompileDate] [datetime] NULL,
|
||||
CONSTRAINT [PK_QuantityManagement_DayInput] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[DayInputId] 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].[QuantityManagement_DayInput] WITH CHECK ADD CONSTRAINT [FK_QuantityManagement_DayInput_Base_Project] FOREIGN KEY([ProjectId])
|
||||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[QuantityManagement_DayInput] CHECK CONSTRAINT [FK_QuantityManagement_DayInput_Base_Project]
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[QuantityManagement_DayInput] WITH CHECK ADD CONSTRAINT [FK_QuantityManagement_DayInput_QuantityManagement_Base] FOREIGN KEY([BaseId])
|
||||
REFERENCES [dbo].[QuantityManagement_Base] ([BaseId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[QuantityManagement_DayInput] CHECK CONSTRAINT [FK_QuantityManagement_DayInput_QuantityManagement_Base]
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_DayInput', @level2type=N'COLUMN',@level2name=N'DayInputId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_DayInput', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工程量基础表Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_DayInput', @level2type=N'COLUMN',@level2name=N'BaseId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_DayInput', @level2type=N'COLUMN',@level2name=N'Date'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'日完成工程量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_DayInput', @level2type=N'COLUMN',@level2name=N'DayAmount'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'QuantityManagement_DayInput', @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'QuantityManagement_DayInput', @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'QuantityManagement_DayInput'
|
||||
GO
|
||||
|
||||
|
||||
|
||||
update Sys_Menu set MenuType='Menu_JDGL',SortIndex=70 where MenuId='781CD912-5D14-4371-97BC-3C4773C13B38'
|
||||
update Sys_Menu set MenuType='Menu_JDGL' where SuperMenu='781CD912-5D14-4371-97BC-3C4773C13B38'
|
||||
GO
|
||||
@@ -0,0 +1,33 @@
|
||||
update Sys_Menu set IsUsed=0 where MenuId='473A87D2-1365-4A68-BD38-06F312F81BC2'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='749B2E04-E4C2-4CBC-849E-FD2041135A43'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='C0018E8C-C88B-4E25-BCFC-F0BF3CACC63A'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='DC2AA8C2-82A8-4F7A-832D-9889C65AA228'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='CD167198-1667-4552-9876-E768C2542C30'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='B707B4E0-EF73-4010-A13B-59263A5029C7'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='27C1D718-2DC0-42A5-96C0-F7A2D0DBC5F6'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='BE150D8E-9BAB-4207-9CDD-5B05E847D906'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='0B9BFD3F-AD3A-41D0-9144-9BABCB8E8422'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='3478449A-681A-4DB1-8E79-598BB24DD0C4'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='8F15D3BE-BE21-4A6F-AD5C-2BBECEE46149'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='781CD912-5D14-4371-97BC-3C4773C13B38'
|
||||
update Sys_Menu set SuperMenu='0' where SuperMenu='781CD912-5D14-4371-97BC-3C4773C13B38'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='7ecf0229-8a0b-40ce-8b04-e556f7bd3394'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='26C48580-6AF2-4BC1-BDCB-0B666E15C5B3'
|
||||
update Sys_Menu set MenuName='质量罚款单' where MenuId='7918FD50-3410-42A2-A680-ECAB0E5E9719'
|
||||
update Sys_Menu set MenuName='奖罚通知单(定稿)' where MenuId='288C955A-E379-4F24-85F9-585343B33D46'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='91C4BFDB-0A51-4992-99CC-EB4EC185593D'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='E632DCA0-5A68-49C4-90CE-793EFC693C4A'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='3FCD953E-6F9F-48F0-827E-591FF95F5647'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='AE118E9C-C309-43B7-A198-8CA90A8D98EB'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='9BEB66C0-E6DE-44DD-94F6-5C7433E6DE62'
|
||||
update Sys_Menu set MenuName='环境监测数据' where MenuId='342B5DEA-ECE1-46A4-BAA6-F0DB5276C769'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='355265DE-901A-4110-B934-B4DA067C4334'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='F057C207-4549-48AE-B838-A1920E5709D8'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='C81DB7ED-165E-4C69-86B0-A3AAE37059FE'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='4E312813-1A2E-4AF7-8106-9210A6E83926'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='F531D523-35BC-4D13-88D3-CB2554C4185C'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='81735D5D-712D-4D90-A471-5E0CCE98EF48'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='3637B4CC-29FE-45E1-BE2E-9CF02A69A63E'
|
||||
update Sys_Menu set IsUsed=0 where MenuId='7944B1C6-636B-4AD8-980C-A2F6D44883D3'
|
||||
update Sys_Menu set MenuName='风险分级管控' where MenuId='9A3212F8-2392-4F21-A8C7-FF5EE3B191F1'
|
||||
GO
|
||||
@@ -0,0 +1,38 @@
|
||||
alter table dbo.Training_TestPlan add TrainTypeId nvarchar(50);
|
||||
go
|
||||
|
||||
|
||||
alter TABLE [dbo].[Training_CompanyTrainingItem]add
|
||||
[TestTrainingIds] [nvarchar](max) NULL ;
|
||||
|
||||
alter TABLE [dbo].[Training_CompanyTrainingItem]add
|
||||
[LearningTime] [int] NULL ;
|
||||
|
||||
alter TABLE [dbo].[Training_CompanyTrainingItem]add
|
||||
[Durations] [float](53) NULL ;
|
||||
|
||||
alter TABLE [dbo].[Training_TestRecord]add
|
||||
[CompanyTrainingItemId] [nvarchar](50) NULL ;
|
||||
|
||||
update sys_menu set IsUsed=0 where menuid='EF99E038-5A12-4E02-B925-6671F9AE16CA';
|
||||
update sys_menu set IsUsed=0 where menuid='10736CAC-A343-4D73-9D03-E6A3D1909A7B';
|
||||
update sys_menu set IsUsed=0 where menuid='6C314522-AF62-4476-893E-5F42C09C3077';
|
||||
update sys_menu set menuname='Åàѵ¼Ç¼¹ÜÀí' where menuid='1182E353-FAB9-4DB1-A1EC-F41A00892128';
|
||||
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
values('ACF2CAB1-CE56-4CED-B252-692558F9E36F','Åàѵ¼Ç¼','HSSE/EduTrain/Trainingrecords.aspx',50,'6A0506EB-05CE-4BB3-9BA9-866389F01E1C','Menu_HSSE',0,1,1);
|
||||
go
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user