--设计图纸管理 IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = 'A334796C-1D85-47F9-A9B2-E36BE49FADC2') BEGIN insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) values('A334796C-1D85-47F9-A9B2-E36BE49FADC2','设计图纸管理','',100,'0','Menu_CQMS',0,0,1) insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) values('13E3544E-AC56-48F9-9BC0-EB14EF4620FF','档案文件库','CQMS/DesignDrawing/ArchivesLib.aspx',10,'A334796C-1D85-47F9-A9B2-E36BE49FADC2','Menu_CQMS',0,1,1) END GO IF NOT EXISTS (SELECT * FROM Sys_ButtonToMenu WHERE MenuId = '13E3544E-AC56-48F9-9BC0-EB14EF4620FF') BEGIN insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) values('54020202-29E6-4B9D-91A7-A2438DDCBD14','13E3544E-AC56-48F9-9BC0-EB14EF4620FF','增加',1) insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) values('F4F906B1-6DFD-440B-A515-0213BE7A3567','13E3544E-AC56-48F9-9BC0-EB14EF4620FF','修改',2) insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) values('5C5EE954-F1F6-4F56-B4B6-0C9AD5672A82','13E3544E-AC56-48F9-9BC0-EB14EF4620FF','删除',3) insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) values('6621B07E-F6FA-4C8C-BECD-E684FBFCB49D','13E3544E-AC56-48F9-9BC0-EB14EF4620FF','保存',4) END GO --设计图纸管理表 IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'IDP_DesignDrawing') AND type = N'U') BEGIN CREATE TABLE [dbo].[IDP_DesignDrawing]( [Id] [nvarchar](50) NOT NULL, [idpfileId] [nvarchar](50) NULL, [stockId] [nvarchar](50) NULL, [thirdId] [nvarchar](50) NULL, [projectId] [nvarchar](50) NULL, [projectCode] [nvarchar](50) NULL, [displayProjectName] [nvarchar](500) NULL, [projectDeviceProcedureSubjectCode] [nvarchar](50) NULL, [wbsFullPath] [nvarchar](200) NULL, [formatFileCode] [nvarchar](50) NULL, [formatFileName] [nvarchar](200) NULL, [fileVersion] [nvarchar](50) NULL, [majorNo] [nvarchar](50) NULL, [majorName] [nvarchar](50) NULL, [status] [nvarchar](50) NULL, [designUserName] [nvarchar](50) NULL, [jiaoheUserName] [nvarchar](50) NULL, [shenheUserName] [nvarchar](50) NULL, [shendingUserName] [nvarchar](50) NULL, [majorResponsibleUserName] [nvarchar](50) NULL, [classificationLevelInProject] [nvarchar](50) NULL, [updateTime] [datetime] NULL, [remark] [nvarchar](500) NULL, [RdpId] [nvarchar](50) NULL, [fileid] [nvarchar](50) NULL, [upfileid] [nvarchar](50) NULL, [maintitle] [nvarchar](200) NULL, [doc_no] [nvarchar](50) NULL, [bc] [nvarchar](50) NULL, [archnumber] [nvarchar](50) NULL, [sendtime] [datetime] NULL, [printtime] [datetime] NULL, [ifmail] [nvarchar](50) NULL, CONSTRAINT [PK_IDP_DesignDrawing] 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'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'Id' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'idp文件主键fileId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'idpfileId' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'推送批次id(IDPId)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'stockId' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'文件网盘id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'thirdId' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'projectId' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主项目编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'projectCode' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目信息' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'displayProjectName' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装工主编码' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'projectDeviceProcedureSubjectCode' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装工主名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'wbsFullPath' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'文件编码' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'formatFileCode' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'文件名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'formatFileName' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'版次' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'fileVersion' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专业' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'majorNo' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专业名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'majorName' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'发布状态' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'status' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'designUserName' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'校核人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'jiaoheUserName' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审核人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'shenheUserName' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审定人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'shendingUserName' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专业负责人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'majorResponsibleUserName' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'保密等级' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'classificationLevelInProject' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'入库日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'updateTime' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'remark' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'数字档案馆RdpId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'RdpId' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'盖章前文件id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'fileid' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'盖章后文件id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'upfileid' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'文件名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'maintitle' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'文件编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'doc_no' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'版次' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'bc' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'入库档案号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'archnumber' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'档案室验收日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'sendtime' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'蓝图打印日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'printtime' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'蓝图是否寄出(是、否)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'ifmail' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计图纸管理表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing' END GO