ALTER TABLE [dbo].[Driver_DriverScheme] DROP CONSTRAINT [FK_Driver_DriverScheme_WBS_Installation] GO ALTER TABLE Driver_DriverScheme DROP COLUMN InstallationId GO ALTER TABLE Driver_DriverScheme ADD UnitWorkId NVARCHAR(50) GO ALTER TABLE [dbo].[Driver_DriverScheme] WITH CHECK ADD CONSTRAINT [FK_Driver_DriverScheme_WBS_UnitWork] FOREIGN KEY([UnitWorkId]) REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) GO ALTER TABLE [dbo].[Driver_DriverScheme] CHECK CONSTRAINT [FK_Driver_DriverScheme_WBS_UnitWork] GO ALTER TABLE [dbo].[Driver_DriverProgress] DROP CONSTRAINT [FK_Driver_DriverProgress_WBS_Installation] GO ALTER TABLE [dbo].[Driver_DriverProgress] DROP COLUMN InstallationId GO ALTER TABLE [dbo].[Driver_DriverProgress] ADD UnitWorkId NVARCHAR(50) GO ALTER TABLE [dbo].[Driver_DriverProgress] WITH CHECK ADD CONSTRAINT [FK_Driver_DriverProgress_WBS_UnitWork] FOREIGN KEY([UnitWorkId]) REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) GO ALTER TABLE [dbo].[Driver_DriverProgress] CHECK CONSTRAINT [FK_Driver_DriverProgress_WBS_UnitWork] GO ALTER TABLE [dbo].[DriverHse_HseHazard] DROP CONSTRAINT [FK_DriverHse_HseHazard_WBS_Installation] GO ALTER TABLE [dbo].[DriverHse_HseHazard] DROP COLUMN InstallationId GO ALTER TABLE [dbo].[DriverHse_HseHazard] ADD UnitWorkId NVARCHAR(50) GO ALTER TABLE [dbo].[DriverHse_HseHazard] WITH CHECK ADD CONSTRAINT [FK_DriverHse_HseHazard_WBS_UnitWork] FOREIGN KEY([UnitWorkId]) REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) GO ALTER TABLE [dbo].[DriverHse_HseHazard] CHECK CONSTRAINT [FK_DriverHse_HseHazard_WBS_UnitWork] GO ALTER TABLE [dbo].[DriverHse_HseLicense] DROP CONSTRAINT [FK_DriverHse_HseLicense_WBS_Installation] GO ALTER TABLE [dbo].[DriverHse_HseLicense] DROP COLUMN InstallationId GO ALTER TABLE [dbo].[DriverHse_HseLicense] ADD UnitWorkId NVARCHAR(50) GO ALTER TABLE [dbo].[DriverHse_HseLicense] WITH CHECK ADD CONSTRAINT [FK_DriverHse_HseLicense_WBS_UnitWork] FOREIGN KEY([UnitWorkId]) REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) GO ALTER TABLE [dbo].[DriverHse_HseLicense] CHECK CONSTRAINT [FK_DriverHse_HseLicense_WBS_UnitWork] GO ALTER TABLE [dbo].[DriverHse_RoadMap] DROP CONSTRAINT [FK_DriverHse_RoadMap_WBS_Installation] GO ALTER TABLE [dbo].[DriverHse_RoadMap] DROP COLUMN InstallationId GO ALTER TABLE [dbo].[DriverHse_RoadMap] ADD UnitWorkId NVARCHAR(50) GO ALTER TABLE [dbo].[DriverHse_RoadMap] WITH CHECK ADD CONSTRAINT [FK_DriverHse_RoadMap_WBS_UnitWork] FOREIGN KEY([UnitWorkId]) REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) GO ALTER TABLE [dbo].[DriverHse_RoadMap] CHECK CONSTRAINT [FK_DriverHse_RoadMap_WBS_UnitWork] GO /****** Object: Table [dbo].[Driver_BeforeTestRun] Script Date: 2020/12/22 12:06:53 ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Driver_BeforeTestRun]') AND type in (N'U')) DROP TABLE [dbo].[Driver_BeforeTestRun] GO /****** Object: Table [dbo].[Driver_BeforeTestRun] Script Date: 2020/12/22 12:06:53 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Driver_BeforeTestRun]( [BeforeTestRunId] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NULL, [Code] [nvarchar](50) NULL, [Type] [char](1) NULL, [Time] [datetime] NULL, [UnitWorkId] [nvarchar](50) NULL, [UnitId] [nvarchar](50) NULL, [Count] [int] NULL, [CompleteCount] [int] NULL, [TotalCount] [int] NULL, [CompleteRate] [decimal](18, 2) NULL, [AttachUrl] [nvarchar](2000) NULL, [Remark] [nvarchar](500) NULL, CONSTRAINT [PK_Driver_BeforeTestRun] PRIMARY KEY CLUSTERED ( [BeforeTestRunId] 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].[Driver_BeforeTestRun] WITH CHECK ADD CONSTRAINT [FK_Driver_BeforeTestRun_Base_Project] FOREIGN KEY([ProjectId]) REFERENCES [dbo].[Base_Project] ([ProjectId]) GO ALTER TABLE [dbo].[Driver_BeforeTestRun] CHECK CONSTRAINT [FK_Driver_BeforeTestRun_Base_Project] GO ALTER TABLE [dbo].[Driver_BeforeTestRun] WITH CHECK ADD CONSTRAINT [FK_Driver_BeforeTestRun_Base_Unit] FOREIGN KEY([UnitId]) REFERENCES [dbo].[Base_Unit] ([UnitId]) GO ALTER TABLE [dbo].[Driver_BeforeTestRun] CHECK CONSTRAINT [FK_Driver_BeforeTestRun_Base_Unit] GO ALTER TABLE [dbo].[Driver_BeforeTestRun] WITH CHECK ADD CONSTRAINT [FK_Driver_BeforeTestRun_WBS_UnitWork] FOREIGN KEY([UnitWorkId]) REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) GO ALTER TABLE [dbo].[Driver_BeforeTestRun] CHECK CONSTRAINT [FK_Driver_BeforeTestRun_WBS_UnitWork] GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'序号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_BeforeTestRun', @level2type=N'COLUMN',@level2name=N'Code' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'类型(1-单机试车;2-冲洗吹扫;3-化学清洗;4-烘炉;5-催化剂装填;6-分子筛装填;7-电气调试;8-仪表调试)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_BeforeTestRun', @level2type=N'COLUMN',@level2name=N'Type' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_BeforeTestRun', @level2type=N'COLUMN',@level2name=N'Time' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装置id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_BeforeTestRun', @level2type=N'COLUMN',@level2name=N'UnitWorkId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'所属单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_BeforeTestRun', @level2type=N'COLUMN',@level2name=N'UnitId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_BeforeTestRun', @level2type=N'COLUMN',@level2name=N'Count' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'今日完成数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_BeforeTestRun', @level2type=N'COLUMN',@level2name=N'CompleteCount' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'累计完成总数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_BeforeTestRun', @level2type=N'COLUMN',@level2name=N'TotalCount' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'完成率' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_BeforeTestRun', @level2type=N'COLUMN',@level2name=N'CompleteRate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件路径' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_BeforeTestRun', @level2type=N'COLUMN',@level2name=N'AttachUrl' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_BeforeTestRun', @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'Driver_BeforeTestRun' GO update Sys_Menu set Url='TestRun/BeforeTestRun/BeforeTestRun.aspx?type=1' where MenuId='A5D6EBB7-E7C8-48EE-8DBD-735117D3C62D' update Sys_Menu set Url='TestRun/BeforeTestRun/BeforeTestRun.aspx?type=2' where MenuId='EC5E63A4-8398-406C-AC79-34851AD49DF2' update Sys_Menu set Url='TestRun/BeforeTestRun/BeforeTestRun.aspx?type=3' where MenuId='C8A9A464-D6F4-4140-82DB-4AFCA26EF2A1' update Sys_Menu set Url='TestRun/BeforeTestRun/BeforeTestRun.aspx?type=4' where MenuId='2348A410-F3A4-450B-A9D1-9CBD942AAA86' update Sys_Menu set Url='TestRun/BeforeTestRun/BeforeTestRun.aspx?type=5' where MenuId='470928A8-41AC-4553-8161-00A17B93C807' update Sys_Menu set Url='TestRun/BeforeTestRun/BeforeTestRun.aspx?type=6' where MenuId='CBF65CFF-6C5D-409C-A0B8-3C2283068ED4' update Sys_Menu set Url='TestRun/BeforeTestRun/BeforeTestRun.aspx?type=7' where MenuId='C76C79D5-ADD7-49AC-A577-820E7DAA2CFC' update Sys_Menu set Url='TestRun/BeforeTestRun/BeforeTestRun.aspx?type=8' where MenuId='04E072D1-5BD3-4F6C-9E81-1FE32A4851E9' GO /****** Object: Table [dbo].[Driver_TestRun] Script Date: 2020/12/22 14:10:25 ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Driver_TestRun]') AND type in (N'U')) DROP TABLE [dbo].[Driver_TestRun] GO /****** Object: Table [dbo].[Driver_TestRun] Script Date: 2020/12/22 14:10:25 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Driver_TestRun]( [TestRunId] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NOT NULL, [Code] [nvarchar](50) NOT NULL, [UnitWorkId] [nvarchar](50) NOT NULL, [InstallationHead] [nvarchar](50) NULL, [WorkContents] [nvarchar](500) NULL, [StartDate] [datetime] NULL, [EndDate] [datetime] NULL, [Descriptions] [nvarchar](500) NULL, [ProblemsAndSolutions] [nvarchar](1000) NULL, [AttachUrl] [nvarchar](2000) NULL, [Remark] [nvarchar](500) NULL, CONSTRAINT [PK_Driver_TestRun] PRIMARY KEY CLUSTERED ( [TestRunId] 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].[Driver_TestRun] WITH CHECK ADD CONSTRAINT [FK_Driver_TestRun_Base_Project] FOREIGN KEY([ProjectId]) REFERENCES [dbo].[Base_Project] ([ProjectId]) GO ALTER TABLE [dbo].[Driver_TestRun] CHECK CONSTRAINT [FK_Driver_TestRun_Base_Project] GO ALTER TABLE [dbo].[Driver_TestRun] WITH CHECK ADD CONSTRAINT [FK_Driver_TestRun_WBS_UnitWork] FOREIGN KEY([UnitWorkId]) REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) GO ALTER TABLE [dbo].[Driver_TestRun] CHECK CONSTRAINT [FK_Driver_TestRun_WBS_UnitWork] GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_TestRun', @level2type=N'COLUMN',@level2name=N'TestRunId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_TestRun', @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'Driver_TestRun', @level2type=N'COLUMN',@level2name=N'Code' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装置/工序' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_TestRun', @level2type=N'COLUMN',@level2name=N'UnitWorkId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装置负责人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_TestRun', @level2type=N'COLUMN',@level2name=N'InstallationHead' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试车工作内容' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_TestRun', @level2type=N'COLUMN',@level2name=N'WorkContents' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试车开始时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_TestRun', @level2type=N'COLUMN',@level2name=N'StartDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试车结束时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_TestRun', @level2type=N'COLUMN',@level2name=N'EndDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试车情况说明' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_TestRun', @level2type=N'COLUMN',@level2name=N'Descriptions' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'出现问题及解决措施' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_TestRun', @level2type=N'COLUMN',@level2name=N'ProblemsAndSolutions' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_TestRun', @level2type=N'COLUMN',@level2name=N'AttachUrl' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_TestRun', @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'Driver_TestRun' GO /****** Object: Table [dbo].[Driver_FeedingTestRun] Script Date: 2020/12/22 14:41:22 ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Driver_FeedingTestRun]') AND type in (N'U')) DROP TABLE [dbo].[Driver_FeedingTestRun] GO /****** Object: Table [dbo].[Driver_FeedingTestRun] Script Date: 2020/12/22 14:41:22 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Driver_FeedingTestRun]( [FeedingTestRunId] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NOT NULL, [Code] [nvarchar](50) NOT NULL, [UnitWorkId] [nvarchar](50) NOT NULL, [InstallationHead] [nvarchar](50) NULL, [WorkContents] [nvarchar](500) NULL, [StartDate] [datetime] NULL, [EndDate] [datetime] NULL, [Descriptions] [nvarchar](500) NULL, [ProblemsAndSolutions] [nvarchar](1000) NULL, [AttachUrl] [nvarchar](2000) NULL, [Remark] [nvarchar](500) NULL, CONSTRAINT [PK_Driver_FeedingTestRun] PRIMARY KEY CLUSTERED ( [FeedingTestRunId] 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].[Driver_FeedingTestRun] WITH CHECK ADD CONSTRAINT [FK_Driver_FeedingTestRun_Base_Project] FOREIGN KEY([ProjectId]) REFERENCES [dbo].[Base_Project] ([ProjectId]) GO ALTER TABLE [dbo].[Driver_FeedingTestRun] CHECK CONSTRAINT [FK_Driver_FeedingTestRun_Base_Project] GO ALTER TABLE [dbo].[Driver_FeedingTestRun] WITH CHECK ADD CONSTRAINT [FK_Driver_FeedingTestRun_WBS_UnitWork] FOREIGN KEY([UnitWorkId]) REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) GO ALTER TABLE [dbo].[Driver_FeedingTestRun] CHECK CONSTRAINT [FK_Driver_FeedingTestRun_WBS_UnitWork] GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_FeedingTestRun', @level2type=N'COLUMN',@level2name=N'FeedingTestRunId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_FeedingTestRun', @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'Driver_FeedingTestRun', @level2type=N'COLUMN',@level2name=N'Code' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装置/工序' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_FeedingTestRun', @level2type=N'COLUMN',@level2name=N'UnitWorkId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装置负责人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_FeedingTestRun', @level2type=N'COLUMN',@level2name=N'InstallationHead' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试车工作内容' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_FeedingTestRun', @level2type=N'COLUMN',@level2name=N'WorkContents' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试车开始时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_FeedingTestRun', @level2type=N'COLUMN',@level2name=N'StartDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试车结束时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_FeedingTestRun', @level2type=N'COLUMN',@level2name=N'EndDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试车情况说明' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_FeedingTestRun', @level2type=N'COLUMN',@level2name=N'Descriptions' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'出现问题及解决措施' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_FeedingTestRun', @level2type=N'COLUMN',@level2name=N'ProblemsAndSolutions' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_FeedingTestRun', @level2type=N'COLUMN',@level2name=N'AttachUrl' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_FeedingTestRun', @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'Driver_FeedingTestRun' GO update Sys_Menu set Url='TestRun/ProduceTestRun/TestRunReport.aspx' where MenuId='8267F210-A313-44CC-9A89-631B3FC91ED0' GO /****** Object: Table [dbo].[ProduceTestRun_TestRunReport] Script Date: 2020/12/22 15:04:42 ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ProduceTestRun_TestRunReport]') AND type in (N'U')) DROP TABLE [dbo].[ProduceTestRun_TestRunReport] GO /****** Object: Table [dbo].[ProduceTestRun_TestRunReport] Script Date: 2020/12/22 15:04:42 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[ProduceTestRun_TestRunReport]( [TestRunReportId] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NOT NULL, [UnitWorkId] [nvarchar](50) NOT NULL, [UnitHead] [nvarchar](50) NULL, [TestRunReportName] [nvarchar](50) NULL, [TestRunReportCode] [nvarchar](50) NULL, [CompileMan] [nvarchar](50) NULL, [StartDate] [datetime] NULL, [EndDate] [datetime] NULL, [AttachUrl] [nvarchar](2000) NULL, [Remark] [nvarchar](500) NULL, CONSTRAINT [PK_ProduceTestRun_TestRunReport] PRIMARY KEY CLUSTERED ( [TestRunReportId] 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].[ProduceTestRun_TestRunReport] WITH CHECK ADD CONSTRAINT [FK_ProduceTestRun_TestRunReport_Base_Project] FOREIGN KEY([ProjectId]) REFERENCES [dbo].[Base_Project] ([ProjectId]) GO ALTER TABLE [dbo].[ProduceTestRun_TestRunReport] CHECK CONSTRAINT [FK_ProduceTestRun_TestRunReport_Base_Project] GO ALTER TABLE [dbo].[ProduceTestRun_TestRunReport] WITH CHECK ADD CONSTRAINT [FK_ProduceTestRun_TestRunReport_WBS_UnitWork] FOREIGN KEY([UnitWorkId]) REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) GO ALTER TABLE [dbo].[ProduceTestRun_TestRunReport] CHECK CONSTRAINT [FK_ProduceTestRun_TestRunReport_WBS_UnitWork] GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunReport', @level2type=N'COLUMN',@level2name=N'TestRunReportId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunReport', @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'ProduceTestRun_TestRunReport', @level2type=N'COLUMN',@level2name=N'UnitWorkId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装置负责人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunReport', @level2type=N'COLUMN',@level2name=N'UnitHead' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'运行报表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunReport', @level2type=N'COLUMN',@level2name=N'TestRunReportName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunReport', @level2type=N'COLUMN',@level2name=N'TestRunReportCode' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'报表人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunReport', @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'ProduceTestRun_TestRunReport', @level2type=N'COLUMN',@level2name=N'StartDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'结束时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunReport', @level2type=N'COLUMN',@level2name=N'EndDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunReport', @level2type=N'COLUMN',@level2name=N'AttachUrl' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'运行报表管理表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunReport' GO /****** Object: Table [dbo].[ProduceTestRun_TestRunRecord] Script Date: 2020/12/22 15:05:49 ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ProduceTestRun_TestRunRecord]') AND type in (N'U')) DROP TABLE [dbo].[ProduceTestRun_TestRunRecord] GO /****** Object: Table [dbo].[ProduceTestRun_TestRunRecord] Script Date: 2020/12/22 15:05:49 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[ProduceTestRun_TestRunRecord]( [TestRunRecordId] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NOT NULL, [UnitWorkId] [nvarchar](50) NOT NULL, [UnitHead] [nvarchar](50) NULL, [RunRecord] [nvarchar](50) NULL, [TestRunRecordCode] [nvarchar](50) NULL, [RecordMan] [nvarchar](50) NULL, [StartDate] [datetime] NULL, [EndDate] [datetime] NULL, [Description] [nvarchar](500) NULL, [ProblemsAndSolutions] [nvarchar](500) NULL, [AttachUrl] [nvarchar](2000) NULL, [Remark] [nvarchar](500) NULL, CONSTRAINT [PK_ProduceTestRun_TestRunRecord] PRIMARY KEY CLUSTERED ( [TestRunRecordId] 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].[ProduceTestRun_TestRunRecord] WITH CHECK ADD CONSTRAINT [FK_ProduceTestRun_TestRunRecord_Base_Project] FOREIGN KEY([ProjectId]) REFERENCES [dbo].[Base_Project] ([ProjectId]) GO ALTER TABLE [dbo].[ProduceTestRun_TestRunRecord] CHECK CONSTRAINT [FK_ProduceTestRun_TestRunRecord_Base_Project] GO ALTER TABLE [dbo].[ProduceTestRun_TestRunRecord] WITH CHECK ADD CONSTRAINT [FK_ProduceTestRun_TestRunRecord_WBS_UnitWork] FOREIGN KEY([UnitWorkId]) REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) GO ALTER TABLE [dbo].[ProduceTestRun_TestRunRecord] CHECK CONSTRAINT [FK_ProduceTestRun_TestRunRecord_WBS_UnitWork] GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunRecord', @level2type=N'COLUMN',@level2name=N'TestRunRecordId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunRecord', @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'ProduceTestRun_TestRunRecord', @level2type=N'COLUMN',@level2name=N'UnitWorkId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装置负责人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunRecord', @level2type=N'COLUMN',@level2name=N'UnitHead' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'运行记录' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunRecord', @level2type=N'COLUMN',@level2name=N'RunRecord' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunRecord', @level2type=N'COLUMN',@level2name=N'TestRunRecordCode' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'记录人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunRecord', @level2type=N'COLUMN',@level2name=N'RecordMan' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'开始时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunRecord', @level2type=N'COLUMN',@level2name=N'StartDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'结束时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunRecord', @level2type=N'COLUMN',@level2name=N'EndDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'运行情况说明' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunRecord', @level2type=N'COLUMN',@level2name=N'Description' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'出现问题及解决措施' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunRecord', @level2type=N'COLUMN',@level2name=N'ProblemsAndSolutions' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunRecord', @level2type=N'COLUMN',@level2name=N'AttachUrl' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunRecord', @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'ProduceTestRun_TestRunRecord' GO /****** Object: Table [dbo].[ProduceTestRun_TestRunPumpCheck] Script Date: 2020/12/22 15:07:03 ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ProduceTestRun_TestRunPumpCheck]') AND type in (N'U')) DROP TABLE [dbo].[ProduceTestRun_TestRunPumpCheck] GO /****** Object: Table [dbo].[ProduceTestRun_TestRunPumpCheck] Script Date: 2020/12/22 15:07:03 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[ProduceTestRun_TestRunPumpCheck]( [TestRunPumpCheckId] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NOT NULL, [UnitWorkId] [nvarchar](50) NOT NULL, [UnitHead] [nvarchar](50) NULL, [CheckRecord] [nvarchar](50) NULL, [TestRunPumpCheckCode] [nvarchar](50) NULL, [CheckMan] [nvarchar](50) NULL, [StartDate] [datetime] NULL, [EndDate] [datetime] NULL, [Description] [nvarchar](500) NULL, [ProblemsAndSolutions] [nvarchar](500) NULL, [AttachUrl] [nvarchar](2000) NULL, [Remark] [nvarchar](500) NULL, CONSTRAINT [PK_ProduceTestRun_TestRunPumpCheck] PRIMARY KEY CLUSTERED ( [TestRunPumpCheckId] 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].[ProduceTestRun_TestRunPumpCheck] WITH CHECK ADD CONSTRAINT [FK_ProduceTestRun_TestRunPumpCheck_Base_Project] FOREIGN KEY([ProjectId]) REFERENCES [dbo].[Base_Project] ([ProjectId]) GO ALTER TABLE [dbo].[ProduceTestRun_TestRunPumpCheck] CHECK CONSTRAINT [FK_ProduceTestRun_TestRunPumpCheck_Base_Project] GO ALTER TABLE [dbo].[ProduceTestRun_TestRunPumpCheck] WITH CHECK ADD CONSTRAINT [FK_ProduceTestRun_TestRunPumpCheck_WBS_UnitWork] FOREIGN KEY([UnitWorkId]) REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) GO ALTER TABLE [dbo].[ProduceTestRun_TestRunPumpCheck] CHECK CONSTRAINT [FK_ProduceTestRun_TestRunPumpCheck_WBS_UnitWork] GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunPumpCheck', @level2type=N'COLUMN',@level2name=N'TestRunPumpCheckId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunPumpCheck', @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'ProduceTestRun_TestRunPumpCheck', @level2type=N'COLUMN',@level2name=N'UnitWorkId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装置负责人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunPumpCheck', @level2type=N'COLUMN',@level2name=N'UnitHead' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'巡检记录' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunPumpCheck', @level2type=N'COLUMN',@level2name=N'CheckRecord' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunPumpCheck', @level2type=N'COLUMN',@level2name=N'TestRunPumpCheckCode' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'巡检人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunPumpCheck', @level2type=N'COLUMN',@level2name=N'CheckMan' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'开始时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunPumpCheck', @level2type=N'COLUMN',@level2name=N'StartDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'结束时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunPumpCheck', @level2type=N'COLUMN',@level2name=N'EndDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'运行情况说明' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunPumpCheck', @level2type=N'COLUMN',@level2name=N'Description' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'出现问题及解决措施' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunPumpCheck', @level2type=N'COLUMN',@level2name=N'ProblemsAndSolutions' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunPumpCheck', @level2type=N'COLUMN',@level2name=N'AttachUrl' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunPumpCheck', @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'ProduceTestRun_TestRunPumpCheck' GO /****** Object: Table [dbo].[ProduceTestRun_TestRunOthersCheck] Script Date: 2020/12/22 15:08:41 ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ProduceTestRun_TestRunOthersCheck]') AND type in (N'U')) DROP TABLE [dbo].[ProduceTestRun_TestRunOthersCheck] GO /****** Object: Table [dbo].[ProduceTestRun_TestRunOthersCheck] Script Date: 2020/12/22 15:08:41 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[ProduceTestRun_TestRunOthersCheck]( [TestRunOthersCheckId] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NOT NULL, [UnitWorkId] [nvarchar](50) NOT NULL, [UnitHead] [nvarchar](50) NULL, [CheckRecord] [nvarchar](50) NULL, [TestRunOthersCheckCode] [nvarchar](50) NULL, [CheckMan] [nvarchar](50) NULL, [Major] [nvarchar](50) NULL, [StartDate] [datetime] NULL, [EndDate] [datetime] NULL, [Description] [nvarchar](500) NULL, [ProblemsAndSolutions] [nvarchar](500) NULL, [AttachUrl] [nvarchar](2000) NULL, [Remark] [nvarchar](500) NULL, CONSTRAINT [PK_ProduceTestRun_TestRunOthersCheck] PRIMARY KEY CLUSTERED ( [TestRunOthersCheckId] 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].[ProduceTestRun_TestRunOthersCheck] WITH CHECK ADD CONSTRAINT [FK_ProduceTestRun_TestRunOthersCheck_Base_Project] FOREIGN KEY([UnitWorkId]) REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) GO ALTER TABLE [dbo].[ProduceTestRun_TestRunOthersCheck] CHECK CONSTRAINT [FK_ProduceTestRun_TestRunOthersCheck_Base_Project] GO ALTER TABLE [dbo].[ProduceTestRun_TestRunOthersCheck] WITH CHECK ADD CONSTRAINT [FK_ProduceTestRun_TestRunOthersCheck_Base_Project1] FOREIGN KEY([ProjectId]) REFERENCES [dbo].[Base_Project] ([ProjectId]) GO ALTER TABLE [dbo].[ProduceTestRun_TestRunOthersCheck] CHECK CONSTRAINT [FK_ProduceTestRun_TestRunOthersCheck_Base_Project1] GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunOthersCheck', @level2type=N'COLUMN',@level2name=N'TestRunOthersCheckId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunOthersCheck', @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'ProduceTestRun_TestRunOthersCheck', @level2type=N'COLUMN',@level2name=N'UnitWorkId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装置负责人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunOthersCheck', @level2type=N'COLUMN',@level2name=N'UnitHead' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'巡检记录' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunOthersCheck', @level2type=N'COLUMN',@level2name=N'CheckRecord' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunOthersCheck', @level2type=N'COLUMN',@level2name=N'TestRunOthersCheckCode' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'巡检人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunOthersCheck', @level2type=N'COLUMN',@level2name=N'CheckMan' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专业' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunOthersCheck', @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'ProduceTestRun_TestRunOthersCheck', @level2type=N'COLUMN',@level2name=N'StartDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'结束时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunOthersCheck', @level2type=N'COLUMN',@level2name=N'EndDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'运行情况说明' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunOthersCheck', @level2type=N'COLUMN',@level2name=N'Description' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'出现问题及解决措施' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunOthersCheck', @level2type=N'COLUMN',@level2name=N'ProblemsAndSolutions' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunOthersCheck', @level2type=N'COLUMN',@level2name=N'AttachUrl' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceTestRun_TestRunOthersCheck', @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'ProduceTestRun_TestRunOthersCheck' GO /****** Object: Table [dbo].[ProduceProperty_PropertyRunRecord] Script Date: 2020/12/22 16:42:08 ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ProduceProperty_PropertyRunRecord]') AND type in (N'U')) DROP TABLE [dbo].[ProduceProperty_PropertyRunRecord] GO /****** Object: Table [dbo].[ProduceProperty_PropertyRunRecord] Script Date: 2020/12/22 16:42:08 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[ProduceProperty_PropertyRunRecord]( [PropertyRunRecordId] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NULL, [Code] [nvarchar](50) NULL, [UnitWorkId] [nvarchar](50) NULL, [InstallationMan] [nvarchar](50) NULL, [RecordName] [nvarchar](200) NULL, [RecordCode] [nvarchar](50) NULL, [RecordMan] [nvarchar](50) NULL, [StartDate] [datetime] NULL, [EndDate] [datetime] NULL, [RecordInstructions] [nvarchar](500) NULL, [ProblemsSolutions] [nvarchar](500) NULL, [AttachUrl] [nvarchar](2000) NULL, [Remark] [nvarchar](500) NULL, CONSTRAINT [PK_ProduceProperty_PropertyRunRecord] PRIMARY KEY CLUSTERED ( [PropertyRunRecordId] 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].[ProduceProperty_PropertyRunRecord] WITH CHECK ADD CONSTRAINT [FK_ProduceProperty_PropertyRunRecord_Base_Project] FOREIGN KEY([ProjectId]) REFERENCES [dbo].[Base_Project] ([ProjectId]) GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunRecord] CHECK CONSTRAINT [FK_ProduceProperty_PropertyRunRecord_Base_Project] GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunRecord] WITH CHECK ADD CONSTRAINT [FK_ProduceProperty_PropertyRunRecord_Sys_User] FOREIGN KEY([InstallationMan]) REFERENCES [dbo].[Sys_User] ([UserId]) GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunRecord] CHECK CONSTRAINT [FK_ProduceProperty_PropertyRunRecord_Sys_User] GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunRecord] WITH CHECK ADD CONSTRAINT [FK_ProduceProperty_PropertyRunRecord_Sys_User1] FOREIGN KEY([RecordMan]) REFERENCES [dbo].[Sys_User] ([UserId]) GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunRecord] CHECK CONSTRAINT [FK_ProduceProperty_PropertyRunRecord_Sys_User1] GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunRecord] WITH CHECK ADD CONSTRAINT [FK_ProduceProperty_PropertyRunRecord_WBS_UnitWork] FOREIGN KEY([UnitWorkId]) REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunRecord] CHECK CONSTRAINT [FK_ProduceProperty_PropertyRunRecord_WBS_UnitWork] GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunRecord', @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'ProduceProperty_PropertyRunRecord', @level2type=N'COLUMN',@level2name=N'Code' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装置负责人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunRecord', @level2type=N'COLUMN',@level2name=N'InstallationMan' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'运行记录' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunRecord', @level2type=N'COLUMN',@level2name=N'RecordName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunRecord', @level2type=N'COLUMN',@level2name=N'RecordCode' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'记录人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunRecord', @level2type=N'COLUMN',@level2name=N'RecordMan' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'开始时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunRecord', @level2type=N'COLUMN',@level2name=N'StartDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'结束时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunRecord', @level2type=N'COLUMN',@level2name=N'EndDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'运行情况说明' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunRecord', @level2type=N'COLUMN',@level2name=N'RecordInstructions' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'出现问题及解决措施' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunRecord', @level2type=N'COLUMN',@level2name=N'ProblemsSolutions' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件路径' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunRecord', @level2type=N'COLUMN',@level2name=N'AttachUrl' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunRecord', @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'ProduceProperty_PropertyRunRecord' GO /****** Object: Table [dbo].[ProduceProperty_PropertyRunReport] Script Date: 2020/12/22 16:44:09 ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ProduceProperty_PropertyRunReport]') AND type in (N'U')) DROP TABLE [dbo].[ProduceProperty_PropertyRunReport] GO /****** Object: Table [dbo].[ProduceProperty_PropertyRunReport] Script Date: 2020/12/22 16:44:09 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[ProduceProperty_PropertyRunReport]( [PropertyRunReportId] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NULL, [Code] [nvarchar](50) NULL, [UnitWorkId] [nvarchar](50) NULL, [InstallationMan] [nvarchar](50) NULL, [ReportName] [nvarchar](200) NULL, [ReportCode] [nvarchar](50) NULL, [ReportMan] [nvarchar](50) NULL, [StartDate] [datetime] NULL, [EndDate] [datetime] NULL, [AttachUrl] [nvarchar](2000) NULL, [Remark] [nvarchar](500) NULL, CONSTRAINT [PK_ProduceProperty_PropertyRunReport] PRIMARY KEY CLUSTERED ( [PropertyRunReportId] 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].[ProduceProperty_PropertyRunReport] WITH CHECK ADD CONSTRAINT [FK_ProduceProperty_PropertyRunReport_Base_Project] FOREIGN KEY([ProjectId]) REFERENCES [dbo].[Base_Project] ([ProjectId]) GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunReport] CHECK CONSTRAINT [FK_ProduceProperty_PropertyRunReport_Base_Project] GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunReport] WITH CHECK ADD CONSTRAINT [FK_ProduceProperty_PropertyRunReport_Sys_User] FOREIGN KEY([InstallationMan]) REFERENCES [dbo].[Sys_User] ([UserId]) GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunReport] CHECK CONSTRAINT [FK_ProduceProperty_PropertyRunReport_Sys_User] GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunReport] WITH CHECK ADD CONSTRAINT [FK_ProduceProperty_PropertyRunReport_Sys_User1] FOREIGN KEY([ReportMan]) REFERENCES [dbo].[Sys_User] ([UserId]) GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunReport] CHECK CONSTRAINT [FK_ProduceProperty_PropertyRunReport_Sys_User1] GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunReport] WITH CHECK ADD CONSTRAINT [FK_ProduceProperty_PropertyRunReport_WBS_UnitWork] FOREIGN KEY([UnitWorkId]) REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunReport] CHECK CONSTRAINT [FK_ProduceProperty_PropertyRunReport_WBS_UnitWork] GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunReport', @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'ProduceProperty_PropertyRunReport', @level2type=N'COLUMN',@level2name=N'Code' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装置负责人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunReport', @level2type=N'COLUMN',@level2name=N'InstallationMan' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'运行报表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunReport', @level2type=N'COLUMN',@level2name=N'ReportName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunReport', @level2type=N'COLUMN',@level2name=N'ReportCode' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'报表人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunReport', @level2type=N'COLUMN',@level2name=N'ReportMan' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'开始时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunReport', @level2type=N'COLUMN',@level2name=N'StartDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'结束时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunReport', @level2type=N'COLUMN',@level2name=N'EndDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件路径' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunReport', @level2type=N'COLUMN',@level2name=N'AttachUrl' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunReport', @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'ProduceProperty_PropertyRunReport' GO /****** Object: Table [dbo].[ProduceProperty_PropertyRunPumpCheck] Script Date: 2020/12/22 16:45:30 ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ProduceProperty_PropertyRunPumpCheck]') AND type in (N'U')) DROP TABLE [dbo].[ProduceProperty_PropertyRunPumpCheck] GO /****** Object: Table [dbo].[ProduceProperty_PropertyRunPumpCheck] Script Date: 2020/12/22 16:45:30 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[ProduceProperty_PropertyRunPumpCheck]( [PropertyRunPumpCheckId] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NULL, [Code] [nvarchar](50) NULL, [UnitWorkId] [nvarchar](50) NULL, [InstallationMan] [nvarchar](50) NULL, [RecordName] [nvarchar](200) NULL, [RecordCode] [nvarchar](50) NULL, [RecordMan] [nvarchar](50) NULL, [StartDate] [datetime] NULL, [EndDate] [datetime] NULL, [RecordInstructions] [nvarchar](500) NULL, [ProblemsSolutions] [nvarchar](500) NULL, [AttachUrl] [nvarchar](2000) NULL, [Remark] [nvarchar](500) NULL, CONSTRAINT [PK_ProduceProperty_PropertyRunPumpCheck] PRIMARY KEY CLUSTERED ( [PropertyRunPumpCheckId] 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].[ProduceProperty_PropertyRunPumpCheck] WITH CHECK ADD CONSTRAINT [FK_ProduceProperty_PropertyRunPumpCheck_Base_Project] FOREIGN KEY([ProjectId]) REFERENCES [dbo].[Base_Project] ([ProjectId]) GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunPumpCheck] CHECK CONSTRAINT [FK_ProduceProperty_PropertyRunPumpCheck_Base_Project] GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunPumpCheck] WITH CHECK ADD CONSTRAINT [FK_ProduceProperty_PropertyRunPumpCheck_Sys_User] FOREIGN KEY([InstallationMan]) REFERENCES [dbo].[Sys_User] ([UserId]) GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunPumpCheck] CHECK CONSTRAINT [FK_ProduceProperty_PropertyRunPumpCheck_Sys_User] GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunPumpCheck] WITH CHECK ADD CONSTRAINT [FK_ProduceProperty_PropertyRunPumpCheck_Sys_User1] FOREIGN KEY([RecordMan]) REFERENCES [dbo].[Sys_User] ([UserId]) GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunPumpCheck] CHECK CONSTRAINT [FK_ProduceProperty_PropertyRunPumpCheck_Sys_User1] GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunPumpCheck] WITH CHECK ADD CONSTRAINT [FK_ProduceProperty_PropertyRunPumpCheck_WBS_UnitWork] FOREIGN KEY([UnitWorkId]) REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunPumpCheck] CHECK CONSTRAINT [FK_ProduceProperty_PropertyRunPumpCheck_WBS_UnitWork] GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunPumpCheck', @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'ProduceProperty_PropertyRunPumpCheck', @level2type=N'COLUMN',@level2name=N'Code' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装置负责人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunPumpCheck', @level2type=N'COLUMN',@level2name=N'InstallationMan' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'运行记录' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunPumpCheck', @level2type=N'COLUMN',@level2name=N'RecordName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunPumpCheck', @level2type=N'COLUMN',@level2name=N'RecordCode' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'记录人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunPumpCheck', @level2type=N'COLUMN',@level2name=N'RecordMan' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'开始时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunPumpCheck', @level2type=N'COLUMN',@level2name=N'StartDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'结束时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunPumpCheck', @level2type=N'COLUMN',@level2name=N'EndDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'运行情况说明' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunPumpCheck', @level2type=N'COLUMN',@level2name=N'RecordInstructions' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'出现问题及解决措施' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunPumpCheck', @level2type=N'COLUMN',@level2name=N'ProblemsSolutions' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件路径' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunPumpCheck', @level2type=N'COLUMN',@level2name=N'AttachUrl' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunPumpCheck', @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'ProduceProperty_PropertyRunPumpCheck' GO /****** Object: Table [dbo].[ProduceProperty_PropertyRunOthersCheck] Script Date: 2020/12/22 16:46:36 ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ProduceProperty_PropertyRunOthersCheck]') AND type in (N'U')) DROP TABLE [dbo].[ProduceProperty_PropertyRunOthersCheck] GO /****** Object: Table [dbo].[ProduceProperty_PropertyRunOthersCheck] Script Date: 2020/12/22 16:46:36 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[ProduceProperty_PropertyRunOthersCheck]( [PropertyRunOthersCheckId] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NULL, [Code] [nvarchar](50) NULL, [UnitWorkId] [nvarchar](50) NULL, [InstallationMan] [nvarchar](50) NULL, [RecordName] [nvarchar](200) NULL, [RecordCode] [nvarchar](50) NULL, [RecordMan] [nvarchar](50) NULL, [Profession] [nvarchar](50) NULL, [StartDate] [datetime] NULL, [EndDate] [datetime] NULL, [RecordInstructions] [nvarchar](500) NULL, [ProblemsSolutions] [nvarchar](500) NULL, [AttachUrl] [nvarchar](2000) NULL, [Remark] [nvarchar](500) NULL, CONSTRAINT [PK_ProduceProperty_PropertyRunOthersCheck] PRIMARY KEY CLUSTERED ( [PropertyRunOthersCheckId] 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].[ProduceProperty_PropertyRunOthersCheck] WITH CHECK ADD CONSTRAINT [FK_ProduceProperty_PropertyRunOthersCheck_Base_Project] FOREIGN KEY([ProjectId]) REFERENCES [dbo].[Base_Project] ([ProjectId]) GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunOthersCheck] CHECK CONSTRAINT [FK_ProduceProperty_PropertyRunOthersCheck_Base_Project] GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunOthersCheck] WITH CHECK ADD CONSTRAINT [FK_ProduceProperty_PropertyRunOthersCheck_Sys_User] FOREIGN KEY([InstallationMan]) REFERENCES [dbo].[Sys_User] ([UserId]) GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunOthersCheck] CHECK CONSTRAINT [FK_ProduceProperty_PropertyRunOthersCheck_Sys_User] GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunOthersCheck] WITH CHECK ADD CONSTRAINT [FK_ProduceProperty_PropertyRunOthersCheck_Sys_User1] FOREIGN KEY([RecordMan]) REFERENCES [dbo].[Sys_User] ([UserId]) GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunOthersCheck] CHECK CONSTRAINT [FK_ProduceProperty_PropertyRunOthersCheck_Sys_User1] GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunOthersCheck] WITH CHECK ADD CONSTRAINT [FK_ProduceProperty_PropertyRunOthersCheck_WBS_UnitWork] FOREIGN KEY([UnitWorkId]) REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) GO ALTER TABLE [dbo].[ProduceProperty_PropertyRunOthersCheck] CHECK CONSTRAINT [FK_ProduceProperty_PropertyRunOthersCheck_WBS_UnitWork] GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunOthersCheck', @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'ProduceProperty_PropertyRunOthersCheck', @level2type=N'COLUMN',@level2name=N'Code' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装置负责人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunOthersCheck', @level2type=N'COLUMN',@level2name=N'InstallationMan' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'运行记录' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunOthersCheck', @level2type=N'COLUMN',@level2name=N'RecordName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunOthersCheck', @level2type=N'COLUMN',@level2name=N'RecordCode' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'记录人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunOthersCheck', @level2type=N'COLUMN',@level2name=N'RecordMan' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专业' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunOthersCheck', @level2type=N'COLUMN',@level2name=N'Profession' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'开始时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunOthersCheck', @level2type=N'COLUMN',@level2name=N'StartDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'结束时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunOthersCheck', @level2type=N'COLUMN',@level2name=N'EndDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'运行情况说明' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunOthersCheck', @level2type=N'COLUMN',@level2name=N'RecordInstructions' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'出现问题及解决措施' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunOthersCheck', @level2type=N'COLUMN',@level2name=N'ProblemsSolutions' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件路径' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunOthersCheck', @level2type=N'COLUMN',@level2name=N'AttachUrl' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_PropertyRunOthersCheck', @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'ProduceProperty_PropertyRunOthersCheck' GO /****** Object: Table [dbo].[ProduceProperty_AnalySamp] Script Date: 2020/12/22 16:47:41 ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ProduceProperty_AnalySamp]') AND type in (N'U')) DROP TABLE [dbo].[ProduceProperty_AnalySamp] GO /****** Object: Table [dbo].[ProduceProperty_AnalySamp] Script Date: 2020/12/22 16:47:41 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[ProduceProperty_AnalySamp]( [AnalySampId] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NULL, [Code] [nvarchar](50) NULL, [UnitWorkId] [nvarchar](50) NULL, [InstallationMan] [nvarchar](50) NULL, [AnalySampDate] [datetime] NULL, [AnalyRecord] [nvarchar](200) NULL, [AnalyCode] [nvarchar](50) NULL, [TrackingMan] [nvarchar](50) NULL, [AnalyData] [nvarchar](1000) NULL, [AttachUrl] [nvarchar](2000) NULL, [Remark] [nvarchar](500) NULL, CONSTRAINT [PK_ProduceProperty_AnalySamp] PRIMARY KEY CLUSTERED ( [AnalySampId] 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].[ProduceProperty_AnalySamp] WITH CHECK ADD CONSTRAINT [FK_ProduceProperty_AnalySamp_Base_Project] FOREIGN KEY([ProjectId]) REFERENCES [dbo].[Base_Project] ([ProjectId]) GO ALTER TABLE [dbo].[ProduceProperty_AnalySamp] CHECK CONSTRAINT [FK_ProduceProperty_AnalySamp_Base_Project] GO ALTER TABLE [dbo].[ProduceProperty_AnalySamp] WITH CHECK ADD CONSTRAINT [FK_ProduceProperty_AnalySamp_Sys_User] FOREIGN KEY([InstallationMan]) REFERENCES [dbo].[Sys_User] ([UserId]) GO ALTER TABLE [dbo].[ProduceProperty_AnalySamp] CHECK CONSTRAINT [FK_ProduceProperty_AnalySamp_Sys_User] GO ALTER TABLE [dbo].[ProduceProperty_AnalySamp] WITH CHECK ADD CONSTRAINT [FK_ProduceProperty_AnalySamp_Sys_User1] FOREIGN KEY([TrackingMan]) REFERENCES [dbo].[Sys_User] ([UserId]) GO ALTER TABLE [dbo].[ProduceProperty_AnalySamp] CHECK CONSTRAINT [FK_ProduceProperty_AnalySamp_Sys_User1] GO ALTER TABLE [dbo].[ProduceProperty_AnalySamp] WITH CHECK ADD CONSTRAINT [FK_ProduceProperty_AnalySamp_WBS_UnitWork] FOREIGN KEY([UnitWorkId]) REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) GO ALTER TABLE [dbo].[ProduceProperty_AnalySamp] CHECK CONSTRAINT [FK_ProduceProperty_AnalySamp_WBS_UnitWork] GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_AnalySamp', @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'ProduceProperty_AnalySamp', @level2type=N'COLUMN',@level2name=N'Code' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装置负责人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_AnalySamp', @level2type=N'COLUMN',@level2name=N'InstallationMan' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'取样时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_AnalySamp', @level2type=N'COLUMN',@level2name=N'AnalySampDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'分析记录' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_AnalySamp', @level2type=N'COLUMN',@level2name=N'AnalyRecord' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_AnalySamp', @level2type=N'COLUMN',@level2name=N'AnalyCode' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'跟踪人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_AnalySamp', @level2type=N'COLUMN',@level2name=N'TrackingMan' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'分项数据' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_AnalySamp', @level2type=N'COLUMN',@level2name=N'AnalyData' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件路径' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_AnalySamp', @level2type=N'COLUMN',@level2name=N'AttachUrl' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ProduceProperty_AnalySamp', @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'ProduceProperty_AnalySamp' GO update Sys_Menu set Url='TestRun/ProduceProperty/PropertyRunRecord.aspx' where MenuId='27F1A48B-D20F-4C2B-A793-E512EA7B116D' go /****** Object: Table [dbo].[Driver_Meeting] Script Date: 2020/12/23 11:08:10 ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Driver_Meeting]') AND type in (N'U')) DROP TABLE [dbo].[Driver_Meeting] GO /****** Object: Table [dbo].[Driver_Meeting] Script Date: 2020/12/23 11:08:10 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Driver_Meeting]( [MeetingId] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NULL, [UnitWorkId] [nvarchar](50) NULL, [MeetingTake] [nvarchar](50) NULL, [MeetingUnit] [nvarchar](150) NULL, [MeetingDate] [datetime] NULL, [MeetingAddress] [nvarchar](100) NULL, [MeetingContent] [nvarchar](500) NULL, [Number] [nvarchar](50) NULL, [AttachUrl] [nvarchar](1000) NULL, [MeetingType] [nchar](1) NULL, [Remark] [nvarchar](1000) NULL, CONSTRAINT [PK_Driver_Meeting] PRIMARY KEY CLUSTERED ( [MeetingId] 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].[Driver_Meeting] WITH CHECK ADD CONSTRAINT [FK_Driver_Meeting_Base_Project] FOREIGN KEY([ProjectId]) REFERENCES [dbo].[Base_Project] ([ProjectId]) GO ALTER TABLE [dbo].[Driver_Meeting] CHECK CONSTRAINT [FK_Driver_Meeting_Base_Project] GO ALTER TABLE [dbo].[Driver_Meeting] WITH CHECK ADD CONSTRAINT [FK_Driver_Meeting_WBS_UnitWork] FOREIGN KEY([UnitWorkId]) REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) GO ALTER TABLE [dbo].[Driver_Meeting] CHECK CONSTRAINT [FK_Driver_Meeting_WBS_UnitWork] GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'MeetingId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'所属项目' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @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'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'UnitWorkId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会议主持' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'MeetingTake' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'参加单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'MeetingUnit' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会议日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'MeetingDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会议地址' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'MeetingAddress' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会议内容' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'MeetingContent' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'期数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'Number' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'AttachUrl' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'类型(1-生产调度会,2-开车周例会,3-开车专题会)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'MeetingType' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_Meeting', @level2type=N'COLUMN',@level2name=N'Remark' GO /****** Object: Table [dbo].[Driver_DriverReport] Script Date: 2020/12/23 11:56:49 ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Driver_DriverReport]') AND type in (N'U')) DROP TABLE [dbo].[Driver_DriverReport] GO /****** Object: Table [dbo].[Driver_DriverReport] Script Date: 2020/12/23 11:56:49 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Driver_DriverReport]( [DriverReportId] [nvarchar](50) NOT NULL, [DriverReportCode] [nvarchar](50) NULL, [DriverReporName] [nvarchar](100) NULL, [ProjectId] [nvarchar](50) NULL, [UnitWorkId] [nvarchar](50) NULL, [CompilePerson] [nvarchar](50) NULL, [SubmitDate] [datetime] NULL, [Number] [nvarchar](50) NULL, [AttachUrl] [nvarchar](1000) NULL, [ReportType] [nchar](1) NULL, [Remark] [nvarchar](500) NULL, CONSTRAINT [PK_Driver_DriverReport] PRIMARY KEY CLUSTERED ( [DriverReportId] 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].[Driver_DriverReport] WITH CHECK ADD CONSTRAINT [FK_Driver_DriverReport_Base_Project] FOREIGN KEY([ProjectId]) REFERENCES [dbo].[Base_Project] ([ProjectId]) GO ALTER TABLE [dbo].[Driver_DriverReport] CHECK CONSTRAINT [FK_Driver_DriverReport_Base_Project] GO ALTER TABLE [dbo].[Driver_DriverReport] WITH CHECK ADD CONSTRAINT [FK_Driver_DriverReport_Sys_User] FOREIGN KEY([CompilePerson]) REFERENCES [dbo].[Sys_User] ([UserId]) GO ALTER TABLE [dbo].[Driver_DriverReport] CHECK CONSTRAINT [FK_Driver_DriverReport_Sys_User] GO ALTER TABLE [dbo].[Driver_DriverReport] WITH CHECK ADD CONSTRAINT [FK_Driver_DriverReport_WBS_UnitWork] FOREIGN KEY([UnitWorkId]) REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) GO ALTER TABLE [dbo].[Driver_DriverReport] CHECK CONSTRAINT [FK_Driver_DriverReport_WBS_UnitWork] GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_DriverReport', @level2type=N'COLUMN',@level2name=N'DriverReportId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_DriverReport', @level2type=N'COLUMN',@level2name=N'DriverReportCode' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'报告名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_DriverReport', @level2type=N'COLUMN',@level2name=N'DriverReporName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'所属项目' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_DriverReport', @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'Driver_DriverReport', @level2type=N'COLUMN',@level2name=N'UnitWorkId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_DriverReport', @level2type=N'COLUMN',@level2name=N'CompilePerson' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'提交日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_DriverReport', @level2type=N'COLUMN',@level2name=N'SubmitDate' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'期数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_DriverReport', @level2type=N'COLUMN',@level2name=N'Number' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_DriverReport', @level2type=N'COLUMN',@level2name=N'AttachUrl' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'类型(1-开车周报告,2-开车月报告,3-联动试车报告,4-投料试车报告,5-性能考核报告,6-开车完工报告)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_DriverReport', @level2type=N'COLUMN',@level2name=N'ReportType' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_DriverReport', @level2type=N'COLUMN',@level2name=N'Remark' GO /****** Object: Table [dbo].[Driver_DriverSummary] Script Date: 2020/12/23 15:08:14 ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Driver_DriverSummary]') AND type in (N'U')) DROP TABLE [dbo].[Driver_DriverSummary] GO /****** Object: Table [dbo].[Driver_DriverSummary] Script Date: 2020/12/23 15:08:14 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Driver_DriverSummary]( [DriverSummaryId] [nvarchar](50) NOT NULL, [DriverSummaryCode] [nvarchar](50) NULL, [UnitWorkId] [nvarchar](50) NULL, [ProjectId] [nvarchar](50) NULL, [Summary] [nvarchar](500) NULL, [SummaryPerson] [nvarchar](50) NULL, [SummaryType] [nchar](1) NULL, [SubmitDate] [datetime] NULL, [AttachUrl] [nvarchar](1000) NULL, [Remark] [nvarchar](1000) NULL, CONSTRAINT [PK_Driver_DriverSummary] PRIMARY KEY CLUSTERED ( [DriverSummaryId] 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].[Driver_DriverSummary] WITH CHECK ADD CONSTRAINT [FK_Driver_DriverSummary_Base_Project] FOREIGN KEY([ProjectId]) REFERENCES [dbo].[Base_Project] ([ProjectId]) GO ALTER TABLE [dbo].[Driver_DriverSummary] CHECK CONSTRAINT [FK_Driver_DriverSummary_Base_Project] GO ALTER TABLE [dbo].[Driver_DriverSummary] WITH CHECK ADD CONSTRAINT [FK_Driver_DriverSummary_Sys_User] FOREIGN KEY([SummaryPerson]) REFERENCES [dbo].[Sys_User] ([UserId]) GO ALTER TABLE [dbo].[Driver_DriverSummary] CHECK CONSTRAINT [FK_Driver_DriverSummary_Sys_User] GO ALTER TABLE [dbo].[Driver_DriverSummary] WITH CHECK ADD CONSTRAINT [FK_Driver_DriverSummary_WBS_UnitWork] FOREIGN KEY([UnitWorkId]) REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) GO ALTER TABLE [dbo].[Driver_DriverSummary] CHECK CONSTRAINT [FK_Driver_DriverSummary_WBS_UnitWork] GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_DriverSummary', @level2type=N'COLUMN',@level2name=N'DriverSummaryId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_DriverSummary', @level2type=N'COLUMN',@level2name=N'DriverSummaryCode' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单元/装置' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_DriverSummary', @level2type=N'COLUMN',@level2name=N'UnitWorkId' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'所属项目' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_DriverSummary', @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'Driver_DriverSummary', @level2type=N'COLUMN',@level2name=N'Summary' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总结人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_DriverSummary', @level2type=N'COLUMN',@level2name=N'SummaryPerson' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'类型(1-月技术总结,2-项目完工总结)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Driver_DriverSummary', @level2type=N'COLUMN',@level2name=N'SummaryType' GO