1
This commit is contained in:
@@ -0,0 +1,182 @@
|
||||
|
||||
/****
|
||||
|
||||
--查询集团督查检查菜单的MenuType
|
||||
select*from Sys_Menu
|
||||
where MenuId='8B9C0F42-D36F-4798-94AB-F56723E8B714' and MenuName='集团督查检查'
|
||||
|
||||
*****/
|
||||
|
||||
|
||||
|
||||
--菜单:重点工程项目质量专项整治行动开展情况台账
|
||||
IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = '35BA8E89-4575-4A3F-9C22-98B323E67DA1')
|
||||
BEGIN
|
||||
INSERT INTO dbo.Sys_Menu (MenuId, MenuName,Url, SortIndex, SuperMenu, MenuType, IsOffice, IsEnd, IsUsed)
|
||||
VALUES (N'35BA8E89-4575-4A3F-9C22-98B323E67DA1', N'重点工程项目质量专项整治行动开展情况台账', N'ZHGL/Information/DCGLKeyProjectRectificationSituationLedger.aspx', 40, N'8B9C0F42-D36F-4798-94AB-F56723E8B714', 'Menu_ZHGL', 1,1, 1);
|
||||
END
|
||||
GO
|
||||
IF NOT EXISTS (SELECT * FROM Sys_ButtonToMenu WHERE MenuId = '35BA8E89-4575-4A3F-9C22-98B323E67DA1')
|
||||
BEGIN
|
||||
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex])
|
||||
VALUES (N'DCAC5651-BBCD-4F4E-9CBA-C9E8B609A083', N'35BA8E89-4575-4A3F-9C22-98B323E67DA1', N'增加', 1);
|
||||
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex])
|
||||
VALUES (N'696B1530-6589-4CA7-8A22-F6CF1326CC50', N'35BA8E89-4575-4A3F-9C22-98B323E67DA1', N'修改', 2);
|
||||
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex])
|
||||
VALUES (N'8C3DA868-D97D-4FAB-9CB9-7E45493C5DF1', N'35BA8E89-4575-4A3F-9C22-98B323E67DA1', N'删除', 3);
|
||||
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex])
|
||||
VALUES (N'633BBC47-09C3-44EB-A31E-4258F221444E', N'35BA8E89-4575-4A3F-9C22-98B323E67DA1', N'保存', 4);
|
||||
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex])
|
||||
VALUES (N'78FE11AA-3F4C-47C5-86ED-D25C4632312C', N'35BA8E89-4575-4A3F-9C22-98B323E67DA1', N'保存并上报', 5);
|
||||
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex])
|
||||
VALUES (N'DC074886-CBA2-441D-B32B-08CAD84EC8E1', N'35BA8E89-4575-4A3F-9C22-98B323E67DA1', N'提交', 6);
|
||||
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex])
|
||||
VALUES (N'7D1F9150-5836-40D0-8205-B8676B588E1D', N'35BA8E89-4575-4A3F-9C22-98B323E67DA1', N'导入', 7);
|
||||
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex])
|
||||
VALUES (N'8AFB0A0C-57E8-4AE8-8D7C-226A40AE272E', N'35BA8E89-4575-4A3F-9C22-98B323E67DA1', N'打印', 8);
|
||||
END
|
||||
GO
|
||||
|
||||
|
||||
|
||||
|
||||
--督查大队:重点工程项目质量专项整治行动开展情况台账
|
||||
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'DCGL_Report_KeyProjectRectificationSituationLedger') AND type = N'U')
|
||||
BEGIN
|
||||
CREATE TABLE [dbo].[DCGL_Report_KeyProjectRectificationSituationLedger](
|
||||
[Id] [nvarchar](50) NOT NULL,
|
||||
[UnitId] [nvarchar](50) NULL,
|
||||
[Year] [Int] NOT NULL,
|
||||
[ReportDate] [datetime] NULL,
|
||||
[DutyPerson] [nvarchar](50) NULL,
|
||||
[UpState] [char](1) NULL,
|
||||
[HandleState] [char](1) NULL,
|
||||
[HandleMan] [nvarchar](50) NULL,
|
||||
[HasPlan] [bit] NOT NULL,
|
||||
[PlanDate] [datetime] NULL,
|
||||
[HasWorkTeam] [bit] NOT NULL,
|
||||
[TeamDate] [datetime] NULL,
|
||||
[KeyProjectNum] [int] NOT NULL,
|
||||
[StockCompanyKeyProjectCheckNum] [int] NOT NULL,
|
||||
[StockCompanyKeyProjectProblemNum] [int] NOT NULL,
|
||||
[StockCompanyKeyProjectProblemRectifiedNum] [int] NOT NULL,
|
||||
[StockCompanyOtherProjectCheckNum] [int] NOT NULL,
|
||||
[StockCompanyOtherProjectProblemNum] [int] NOT NULL,
|
||||
[StockCompanyOtherProjectProblemRectifiedNum] [int] NOT NULL,
|
||||
[BranchCompanyKeyProjectCheckNum] [int] NOT NULL,
|
||||
[BranchCompanyKeyProjectProblemNum] [int] NOT NULL,
|
||||
[BranchCompanyKeyProjectProblemRectifiedNum] [int] NOT NULL,
|
||||
[BranchCompanyOtherProjectCheckNum] [int] NOT NULL,
|
||||
[BranchCompanyOtherProjectProblemNum] [int] NOT NULL,
|
||||
[BranchCompanyOtherProjectProblemRectifiedNum] [int] NOT NULL,
|
||||
[ProjectSelfCheckNum] [int] NOT NULL,
|
||||
[ProjectSelfCheckProblemNum] [int] NOT NULL,
|
||||
[ProjectSelfCheckProblemRectifiedNum] [int] NOT NULL,
|
||||
[KeyProjectProblemNumType1] [int] NOT NULL,
|
||||
[KeyProjectProblemRectifiedNumType1] [int] NOT NULL,
|
||||
[KeyProjectProblemNumType2] [int] NOT NULL,
|
||||
[KeyProjectProblemRectifiedNumType2] [int] NOT NULL,
|
||||
[KeyProjectProblemNumType3] [int] NOT NULL,
|
||||
[KeyProjectProblemRectifiedNumType3] [int] NOT NULL,
|
||||
[KeyProjectProblemNumType4] [int] NOT NULL,
|
||||
[KeyProjectProblemRectifiedNumType4] [int] NOT NULL,
|
||||
[KeyProjectProblemNumType5] [int] NOT NULL,
|
||||
[KeyProjectProblemRectifiedNumType5] [int] NOT NULL,
|
||||
[KeyProjectProblemNumType6] [int] NOT NULL,
|
||||
[KeyProjectProblemRectifiedNumType6] [int] NOT NULL,
|
||||
[KeyProjectProblemNumType7] [int] NOT NULL,
|
||||
[KeyProjectProblemRectifiedNumType7] [int] NOT NULL,
|
||||
[OtherProjectProblemNumType1] [int] NOT NULL,
|
||||
[OtherProjectProblemRectifiedNumType1] [int] NOT NULL,
|
||||
[OtherProjectProblemNumType2] [int] NOT NULL,
|
||||
[OtherProjectProblemRectifiedNumType2] [int] NOT NULL,
|
||||
[OtherProjectProblemNumType3] [int] NOT NULL,
|
||||
[OtherProjectProblemRectifiedNumType3] [int] NOT NULL,
|
||||
[OtherProjectProblemNumType4] [int] NOT NULL,
|
||||
[OtherProjectProblemRectifiedNumType4] [int] NOT NULL,
|
||||
[OtherProjectProblemNumType5] [int] NOT NULL,
|
||||
[OtherProjectProblemRectifiedNumType5] [int] NOT NULL,
|
||||
[OtherProjectProblemNumType6] [int] NOT NULL,
|
||||
[OtherProjectProblemRectifiedNumType6] [int] NOT NULL,
|
||||
[OtherProjectProblemNumType7] [int] NOT NULL,
|
||||
[OtherProjectProblemRectifiedNumType7] [int] NOT NULL,
|
||||
[Remark] [nvarchar](500) NULL,
|
||||
[CompileMan] [nvarchar](50) NOT NULL,
|
||||
[CompileManName] [nvarchar](50) NULL,
|
||||
[CompileDate] [datetime] NOT NULL,
|
||||
CONSTRAINT [PK_DCGL_Report_KeyProjectRectificationSituationLedger] 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]
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'Id'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'上报单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'UnitId'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'Year'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'责任单位上报时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'ReportDate'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'负责人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'DutyPerson'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'上报状态' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'UpState'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'流程状态' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'HandleState'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'流程处理人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'HandleMan'
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否制定自查整治方案' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'HasPlan'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'制定整治方案时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'PlanDate'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否成立工作专班' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'HasWorkTeam'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'成立工作专班时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'TeamDate'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'在建国家重点工程项目数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectNum'
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'股份公司层级-国家重点工程项目-检查项目个数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'StockCompanyKeyProjectCheckNum'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'股份公司层级-国家重点工程项目-问题个数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'StockCompanyKeyProjectProblemNum'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'股份公司层级-国家重点工程项目-已整改个数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'StockCompanyKeyProjectProblemRectifiedNum'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'股份公司层级-其他工程项目-检查项目个数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'StockCompanyOtherProjectCheckNum'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'股份公司层级-其他工程项目-问题个数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'StockCompanyOtherProjectProblemNum'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'股份公司层级-其他工程项目-已整改个数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'StockCompanyOtherProjectProblemRectifiedNum'
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'二三级公司层级-国家重点工程项目-检查项目个数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'BranchCompanyKeyProjectCheckNum'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'二三级公司层级-国家重点工程项目-问题个数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'BranchCompanyKeyProjectProblemNum'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'二三级公司层级-国家重点工程项目-已整改个数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'BranchCompanyKeyProjectProblemRectifiedNum'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'二三级公司层级-其他工程项目-检查项目个数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'BranchCompanyOtherProjectCheckNum'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'二三级公司层级-其他工程项目-问题个数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'BranchCompanyOtherProjectProblemNum'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'二三级公司层级-其他工程项目-已整改个数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'BranchCompanyOtherProjectProblemRectifiedNum'
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目层级自查-自查项目个数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'ProjectSelfCheckNum'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目层级自查-问题个数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'ProjectSelfCheckProblemNum'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目层级自查-已整改个数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'ProjectSelfCheckProblemRectifiedNum'
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-国家重点工程项目-设计变更管控-问题数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemNumType1'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-国家重点工程项目-设计变更管控-整改完成数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemRectifiedNumType1'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-国家重点工程项目-建筑材料管理-问题数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemNumType2'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-国家重点工程项目-建筑材料管理-整改完成数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemRectifiedNumType2'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-国家重点工程项目-施工过程质量管理-问题数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemNumType3'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-国家重点工程项目-施工过程质量管理-整改完成数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemRectifiedNumType3'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-国家重点工程项目-工程资料管理-问题数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemNumType4'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-国家重点工程项目-工程资料管理-整改完成数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemRectifiedNumType4'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-国家重点工程项目-分包分供管理-问题数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemNumType5'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-国家重点工程项目-分包分供管理-整改完成数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemRectifiedNumType5'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-国家重点工程项目-工程实体质量-问题数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemNumType6'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-国家重点工程项目-工程实体质量-整改完成数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemRectifiedNumType6'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-国家重点工程项目-培训和作业人员能力-问题数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemNumType7'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-国家重点工程项目-培训和作业人员能力-整改完成数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemRectifiedNumType7'
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-其他工程项目-设计变更管控-问题数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemNumType1'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-其他工程项目-设计变更管控-整改完成数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemRectifiedNumType1'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-其他工程项目-建筑材料管理-问题数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemNumType2'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-其他工程项目-建筑材料管理-整改完成数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemRectifiedNumType2'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-其他工程项目-施工过程质量管理-问题数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemNumType3'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-其他工程项目-施工过程质量管理-整改完成数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemRectifiedNumType3'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-其他工程项目-工程资料管理-问题数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemNumType4'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-其他工程项目-工程资料管理-整改完成数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemRectifiedNumType4'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-其他工程项目-分包分供管理-问题数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemNumType5'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-其他工程项目-分包分供管理-整改完成数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemRectifiedNumType5'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-其他工程项目-工程实体质量-问题数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemNumType6'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-其他工程项目-工程实体质量-整改完成数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemRectifiedNumType6'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-其他工程项目-培训和作业人员能力-问题数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemNumType7'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'突出质量问题-其他工程项目-培训和作业人员能力-整改完成数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemRectifiedNumType7'
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'Remark'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'CompileManName'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'督查大队:重点工程项目质量专项整治行动开展情况台账' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger'
|
||||
END
|
||||
|
||||
GO
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
|
||||
/*************督查大队:重点工程项目质量专项整治行动开展情况台账**************/
|
||||
CREATE VIEW [dbo].[View_DCGLKeyProjectRectificationSituationLedger]
|
||||
AS
|
||||
SELECT
|
||||
Report.Id,
|
||||
Report.UnitId,
|
||||
Report.Year,
|
||||
U.UnitName,
|
||||
Report.ReportDate,
|
||||
Report.UpState,
|
||||
Report.DutyPerson,
|
||||
Report.HandleState,
|
||||
Report.HandleMan,
|
||||
Report.HasPlan,
|
||||
Report.PlanDate,
|
||||
Report.HasWorkTeam,
|
||||
Report.TeamDate,
|
||||
Report.KeyProjectNum,
|
||||
Report.Remark,
|
||||
Report.CompileDate,
|
||||
Report.CompileMan,
|
||||
Report.CompileManName,
|
||||
US.PersonName as UserName
|
||||
FROM dbo.DCGL_Report_KeyProjectRectificationSituationLedger AS Report
|
||||
LEFT JOIN Base_Unit AS U ON U.UnitId=Report.UnitId
|
||||
LEFT JOIN Person_Persons AS US ON US.PersonId=Report.HandleMan
|
||||
|
||||
GO
|
||||
|
||||
|
||||
|
||||
|
||||
CREATE TABLE [dbo].[Workflow_TodoItems](
|
||||
[Id] [varchar](50) NOT NULL,
|
||||
[SysCode] [varchar](50) NOT NULL,
|
||||
[FlowId] [varchar](100) NOT NULL,
|
||||
[RequestName] [varchar](255) NULL,
|
||||
[WorkflowName] [varchar](100) NULL,
|
||||
[NodeName] [varchar](100) NULL,
|
||||
[PCUrl] [varchar](255) NULL,
|
||||
[AppUrl] [varchar](255) NULL,
|
||||
[Creator] [varchar](100) NULL,
|
||||
[CreateDateTime] [datetime] NULL,
|
||||
[Receiver] [varchar](100) NULL,
|
||||
[ReceiveDateTime] [datetime] NULL,
|
||||
[Status] [int] NOT NULL,
|
||||
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
|
||||
|
||||
SET ANSI_PADDING OFF
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[Workflow_TodoItems] ADD DEFAULT ((0)) FOR [Status]
|
||||
GO
|
||||
|
||||
|
||||
Reference in New Issue
Block a user