2533 lines
148 KiB
Transact-SQL
2533 lines
148 KiB
Transact-SQL
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('4a0e62cb-ee50-4a14-80b7-377602e9902c','综合管理','',5,'0','Menu_CQMS',0,0,1)
|
||
GO
|
||
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('6c2c1e5e-1812-4e1c-a683-7125518e28c7','设备材料报验','CQMS/Comprehensive/InspectionEquipment.aspx',10,'4a0e62cb-ee50-4a14-80b7-377602e9902c','Menu_CQMS',0,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('9759b2f5-1d8e-4dd6-9f27-47ed0abd7c83','6c2c1e5e-1812-4e1c-a683-7125518e28c7','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('f1da7470-8f95-42bd-b9d9-ebe1f6370690','6c2c1e5e-1812-4e1c-a683-7125518e28c7','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('00047bfa-9162-413d-9f6b-8c07ece45127','6c2c1e5e-1812-4e1c-a683-7125518e28c7','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('472bc366-467b-4def-abfc-13b8edf80a0b','6c2c1e5e-1812-4e1c-a683-7125518e28c7','保存',4)
|
||
GO
|
||
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('8ed133de-5899-4687-878a-20b1f5280f18','人员报验','CQMS/Comprehensive/InspectionPerson.aspx',20,'4a0e62cb-ee50-4a14-80b7-377602e9902c','Menu_CQMS',0,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('99972f90-f71e-496b-948e-14a60d369652','8ed133de-5899-4687-878a-20b1f5280f18','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('d1c27c9f-ab4a-4d0a-a1a8-4c43b7d93707','8ed133de-5899-4687-878a-20b1f5280f18','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('db5f68ba-d58d-46e7-8e60-c6237c93140f','8ed133de-5899-4687-878a-20b1f5280f18','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('0a2cb532-cf99-4b47-a8a9-66289bde6be0','8ed133de-5899-4687-878a-20b1f5280f18','保存',4)
|
||
GO
|
||
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('aa55fad1-6c51-43f5-8c99-3c6aaae79118','机具报验','CQMS/Comprehensive/InspectionMachine.aspx',30,'4a0e62cb-ee50-4a14-80b7-377602e9902c','Menu_CQMS',0,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('63b69c8f-93ac-494a-a02a-5417c99d067e','aa55fad1-6c51-43f5-8c99-3c6aaae79118','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('1a8efd13-f072-4cc4-8dca-7229752c63ae','aa55fad1-6c51-43f5-8c99-3c6aaae79118','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('de27884b-cccf-478d-8abd-045f19ef3e06','aa55fad1-6c51-43f5-8c99-3c6aaae79118','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('148c8ae4-b43e-4883-9222-a896fed0e52e','aa55fad1-6c51-43f5-8c99-3c6aaae79118','保存',4)
|
||
GO
|
||
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('92b7d653-f32a-4694-a77e-74ba63586d3f','设计变更单管理','CQMS/Comprehensive/DesignChangeOrder.aspx',40,'4a0e62cb-ee50-4a14-80b7-377602e9902c','Menu_CQMS',0,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('285011f3-ab93-4709-93d9-1d28b54391e9','92b7d653-f32a-4694-a77e-74ba63586d3f','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('f61910d2-ecd0-4615-a4e5-553d5ecd35ed','92b7d653-f32a-4694-a77e-74ba63586d3f','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('8f8419db-34a3-4ef1-ab81-18a988a8d872','92b7d653-f32a-4694-a77e-74ba63586d3f','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('b02db22c-12d7-4983-9ed0-12eae40918f3','92b7d653-f32a-4694-a77e-74ba63586d3f','保存',4)
|
||
GO
|
||
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('fea46798-e040-47c3-be55-9634b9a04d48','现场签证管理','CQMS/Comprehensive/SiteVisaManagement.aspx',50,'4a0e62cb-ee50-4a14-80b7-377602e9902c','Menu_CQMS',0,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('b3393bb1-30c0-4bb8-91c4-a1eff0530500','fea46798-e040-47c3-be55-9634b9a04d48','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('0f50ffbe-42ed-473c-b10e-9e71ba28d1ca','fea46798-e040-47c3-be55-9634b9a04d48','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('8d5a96f9-343e-4b8b-8686-a4d933edcf36','fea46798-e040-47c3-be55-9634b9a04d48','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('1a01f7b5-75cc-4fc9-963e-1ad90232ca52','fea46798-e040-47c3-be55-9634b9a04d48','保存',4)
|
||
GO
|
||
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('318589ea-2367-4e68-905a-9d7957138df5','设计交底管理','CQMS/Comprehensive/DesignDetails.aspx',60,'4a0e62cb-ee50-4a14-80b7-377602e9902c','Menu_CQMS',0,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('19ed5134-9657-4bf7-9f0a-4f5666abd9b9','318589ea-2367-4e68-905a-9d7957138df5','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('960c26f9-70f2-412a-9ddd-fabdc84d3587','318589ea-2367-4e68-905a-9d7957138df5','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('77a5a6fe-47c8-4dd1-b8f8-53edf16f9eee','318589ea-2367-4e68-905a-9d7957138df5','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('490f4234-ed2f-46d1-8c4b-cff2ceddbba0','318589ea-2367-4e68-905a-9d7957138df5','保存',4)
|
||
GO
|
||
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('681eab0b-11ae-4829-b421-408918beaed0','施工组织设计及施工方案','CQMS/Comprehensive/GeneralPlanApproval.aspx',70,'4a0e62cb-ee50-4a14-80b7-377602e9902c','Menu_CQMS',0,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('acf3b433-010e-453a-a1d3-3a8258b6118f','681eab0b-11ae-4829-b421-408918beaed0','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('0a3ae825-bfca-4242-be9b-0da3f72bb613','681eab0b-11ae-4829-b421-408918beaed0','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('01a4b84d-8ef3-4773-bce3-8425c3b2baf7','681eab0b-11ae-4829-b421-408918beaed0','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('65c67693-e62d-43ba-9a91-265114cfd463','681eab0b-11ae-4829-b421-408918beaed0','保存',4)
|
||
GO
|
||
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('fd116c94-714b-4b92-a3c9-cc83d358e2b3','超过一定规模的危大施工方案','CQMS/Comprehensive/MajorPlanApproval.aspx',75,'4a0e62cb-ee50-4a14-80b7-377602e9902c','Menu_CQMS',0,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('62f5fdc1-93b9-4182-8e0b-17dac772149c','fd116c94-714b-4b92-a3c9-cc83d358e2b3','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('b04bc90b-e109-4f9d-91f0-b577ae520152','fd116c94-714b-4b92-a3c9-cc83d358e2b3','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('e70ef744-4a43-49ae-bffd-3fb795e58a3d','fd116c94-714b-4b92-a3c9-cc83d358e2b3','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('c3381125-d23c-4801-bfba-5ff31a6cb635','fd116c94-714b-4b92-a3c9-cc83d358e2b3','保存',4)
|
||
GO
|
||
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('7e628f48-385f-4d52-8063-d0f812514316','NCR管理','CQMS/Comprehensive/NCRManagement.aspx',80,'4a0e62cb-ee50-4a14-80b7-377602e9902c','Menu_CQMS',0,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('7716f295-4a48-47d2-8cf6-b1b8b807083a','7e628f48-385f-4d52-8063-d0f812514316','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('48d81349-59aa-41da-880f-7d2680587389','7e628f48-385f-4d52-8063-d0f812514316','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('c69965da-52ca-4d08-b3c9-e319ab0a694a','7e628f48-385f-4d52-8063-d0f812514316','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('d4842b9e-54a6-4e33-a859-3322291046d0','7e628f48-385f-4d52-8063-d0f812514316','保存',4)
|
||
GO
|
||
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('9ac06df6-b91a-42bb-9a51-5cd59d8733a9','特种设备管理','CQMS/Comprehensive/SpecialEquipment.aspx',85,'4a0e62cb-ee50-4a14-80b7-377602e9902c','Menu_CQMS',0,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('96eea38b-10a9-47e1-bd49-917b52d48722','9ac06df6-b91a-42bb-9a51-5cd59d8733a9','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('619ce23a-867b-49c2-8a5e-ec7624d64ea5','9ac06df6-b91a-42bb-9a51-5cd59d8733a9','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('11979311-91a3-40ef-90af-71ba2dc9c68c','9ac06df6-b91a-42bb-9a51-5cd59d8733a9','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('060390f8-0775-4957-98a6-f102f8abba1f','9ac06df6-b91a-42bb-9a51-5cd59d8733a9','保存',4)
|
||
GO
|
||
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('49b87812-c07d-4b0e-9909-960e5cd822c7','压力管道管理','CQMS/Comprehensive/PressurePipe.aspx',90,'4a0e62cb-ee50-4a14-80b7-377602e9902c','Menu_CQMS',0,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('0ca36597-a030-444d-aba4-5a3b0b5700d5','49b87812-c07d-4b0e-9909-960e5cd822c7','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('355070d9-0c66-4919-8edb-17d7eea54de4','49b87812-c07d-4b0e-9909-960e5cd822c7','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('acf1501d-861a-44b8-b3af-fe9e69c5a1c1','49b87812-c07d-4b0e-9909-960e5cd822c7','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('a0de75ee-a6a7-4675-b94a-7d9f0690ce13','49b87812-c07d-4b0e-9909-960e5cd822c7','保存',4)
|
||
GO
|
||
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('1da8fd71-f653-4764-bbfd-65e43f0220e5','质量事故处理记录','CQMS/Comprehensive/QualityAccident.aspx',95,'4a0e62cb-ee50-4a14-80b7-377602e9902c','Menu_CQMS',0,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('f8293aed-cf98-4e0a-bdb6-20b45f5a3613','1da8fd71-f653-4764-bbfd-65e43f0220e5','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('348bac1d-3885-4ba1-87a2-606f997277a8','1da8fd71-f653-4764-bbfd-65e43f0220e5','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('660564ed-0a83-47ad-abc4-95220b9c62ce','1da8fd71-f653-4764-bbfd-65e43f0220e5','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('47c384fa-2bde-4a80-b0b7-f80abcf9c3ac','1da8fd71-f653-4764-bbfd-65e43f0220e5','保存',4)
|
||
GO
|
||
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('a4f071a6-51cb-45b1-bbac-93a02f1cb98a','资料接收登记','CQMS/Comprehensive/DataReceiving.aspx',100,'4a0e62cb-ee50-4a14-80b7-377602e9902c','Menu_CQMS',0,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('30718cd6-8bd8-46a2-8954-b59049ab5249','a4f071a6-51cb-45b1-bbac-93a02f1cb98a','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('305dfa36-f5e2-47f3-8dfd-544e9795a86d','a4f071a6-51cb-45b1-bbac-93a02f1cb98a','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('f3d09975-0a4b-4f91-918b-60c2005c85a3','a4f071a6-51cb-45b1-bbac-93a02f1cb98a','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('5138bf3e-7b14-41c9-8367-9ac97f32f66b','a4f071a6-51cb-45b1-bbac-93a02f1cb98a','保存',4)
|
||
GO
|
||
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('4a9df3ce-88fd-42a4-aac2-5a7b86edd578','资料发放登记','CQMS/Comprehensive/DataDistribution.aspx',105,'4a0e62cb-ee50-4a14-80b7-377602e9902c','Menu_CQMS',0,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('de3eb1c8-b310-4309-9ba5-ed0c4296cf4b','4a9df3ce-88fd-42a4-aac2-5a7b86edd578','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('84151c5e-546e-4d17-b7ae-3612a56d809d','4a9df3ce-88fd-42a4-aac2-5a7b86edd578','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('cf75a27f-bed3-43e6-bb07-11d06ac26f8a','4a9df3ce-88fd-42a4-aac2-5a7b86edd578','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('c947612c-9d90-4c31-95a2-7abed97f0b40','4a9df3ce-88fd-42a4-aac2-5a7b86edd578','保存',4)
|
||
GO
|
||
|
||
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('d8de4143-b680-44cf-9a78-acd3d49a8d00','图纸收发记录','CQMS/Comprehensive/DesignDrawings.aspx',110,'4a0e62cb-ee50-4a14-80b7-377602e9902c','Menu_CQMS',0,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('d22237a9-7112-4f19-ae00-a5feeaddb5f2','d8de4143-b680-44cf-9a78-acd3d49a8d00','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('db0417c7-6097-4bcb-a9a2-5cad71532edb','d8de4143-b680-44cf-9a78-acd3d49a8d00','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('4ea33a54-76c4-44fe-86ea-99196ef1f4dc','d8de4143-b680-44cf-9a78-acd3d49a8d00','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('830edd8e-af19-4292-95c6-a3a2d0e2963b','d8de4143-b680-44cf-9a78-acd3d49a8d00','保存',4)
|
||
GO
|
||
|
||
Alter table [dbo].[Base_DesignProfessional] add ToCN nvarchar(50) NULL
|
||
ALTER TABLE [dbo].[Base_DesignProfessional] WITH CHECK ADD CONSTRAINT [FK_Base_DesignProfessional_Base_DesignProfessional] FOREIGN KEY([ToCN])
|
||
REFERENCES [dbo].[Base_CNProfessional] ([CNProfessionalId])
|
||
GO
|
||
|
||
CREATE TABLE [dbo].[Comprehensive_InspectionEquipment](
|
||
[InspectionEquipmentId] [nvarchar](50) NOT NULL,
|
||
[ProjectId] [nvarchar](50) NOT NULL,
|
||
[UnitId] [nvarchar](50) NOT NULL,
|
||
[InspectionCode] [nvarchar](300) NULL,
|
||
[CNProfessionalId] [nvarchar](50) NULL,
|
||
[InspectionName] [nvarchar](300) NULL,
|
||
[Specifications] [nvarchar](300) NULL,
|
||
[Supplier] [nvarchar](300) NULL,
|
||
[Counts] [nvarchar](50) NULL,
|
||
[SamplingCount] [nvarchar](50) NULL,
|
||
[SamplingResult] [char](1) NULL,
|
||
[InspectionDate] [datetime] NULL,
|
||
[AttachUrl] [nvarchar](2000) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
[EquipmentNO] [nvarchar](50) NULL,
|
||
[RemarkCode] [nvarchar](50) NULL,
|
||
[UsedPlace] [nvarchar](100) NULL,
|
||
[Attribute] [nvarchar](2) NULL,
|
||
CONSTRAINT [PK_Base_Equipment] PRIMARY KEY CLUSTERED
|
||
(
|
||
[InspectionEquipmentId] 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].[Comprehensive_InspectionEquipment] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_InspectionEquipment_Base_Project] FOREIGN KEY([ProjectId])
|
||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionEquipment] CHECK CONSTRAINT [FK_Comprehensive_InspectionEquipment_Base_Project]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionEquipment] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_InspectionEquipment_Base_Unit] FOREIGN KEY([UnitId])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionEquipment] CHECK CONSTRAINT [FK_Comprehensive_InspectionEquipment_Base_Unit]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionEquipment] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_InspectionEquipment_Base_CNProfessional] FOREIGN KEY([CNProfessionalId])
|
||
REFERENCES [dbo].[Base_CNProfessional] ([CNProfessionalId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionEquipment] CHECK CONSTRAINT [FK_Comprehensive_InspectionEquipment_Base_CNProfessional]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionEquipment', @level2type=N'COLUMN',@level2name=N'InspectionEquipmentId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionEquipment', @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'Comprehensive_InspectionEquipment', @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'Comprehensive_InspectionEquipment', @level2type=N'COLUMN',@level2name=N'InspectionCode'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专业Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionEquipment', @level2type=N'COLUMN',@level2name=N'CNProfessionalId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设备名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionEquipment', @level2type=N'COLUMN',@level2name=N'InspectionName'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'规格(范围)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionEquipment', @level2type=N'COLUMN',@level2name=N'Specifications'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'供货厂商' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionEquipment', @level2type=N'COLUMN',@level2name=N'Supplier'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'本次数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionEquipment', @level2type=N'COLUMN',@level2name=N'Counts'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'本次抽检数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionEquipment', @level2type=N'COLUMN',@level2name=N'SamplingCount'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'本次抽检结果' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionEquipment', @level2type=N'COLUMN',@level2name=N'SamplingResult'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'报验日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionEquipment', @level2type=N'COLUMN',@level2name=N'InspectionDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionEquipment', @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'Comprehensive_InspectionEquipment'
|
||
GO
|
||
|
||
CREATE TABLE [dbo].[Base_Post](
|
||
[PostId] [nvarchar](50) NOT NULL,
|
||
[PostName] [nvarchar](50) NOT NULL,
|
||
[Remark] [nvarchar](150) NULL,
|
||
CONSTRAINT [PK_Base_Post] PRIMARY KEY CLUSTERED
|
||
(
|
||
[PostId] 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
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Post', @level2type=N'COLUMN',@level2name=N'PostId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工种名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Post', @level2type=N'COLUMN',@level2name=N'PostName'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Post', @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'Base_Post'
|
||
GO
|
||
|
||
|
||
CREATE TABLE [dbo].[Comprehensive_InspectionPerson](
|
||
[InspectionPersonId] [nvarchar](50) NOT NULL,
|
||
[ProjectId] [nvarchar](50) NOT NULL,
|
||
[UnitId] [nvarchar](50) NULL,
|
||
[InspectionPersonCode] [nvarchar](50) NOT NULL,
|
||
[PersonName] [nvarchar](50) NULL,
|
||
[PostId] [nvarchar](50) NULL,
|
||
[CertificateNumber] [nvarchar](50) NULL,
|
||
[QualifiedProjectCode] [nvarchar](50) NULL,
|
||
[ValidityDate] [datetime] NULL,
|
||
[ApprovalTime] [datetime] NULL,
|
||
[DepartureTime] [datetime] NULL,
|
||
[Remark] [nvarchar](150) NULL,
|
||
[AttachUrl] [nvarchar](2000) NULL,
|
||
[CNProfessionalId] [nvarchar](50) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
[IsOnSite] [bit] NULL,
|
||
[UnitWorkId] [nvarchar](500) NULL,
|
||
CONSTRAINT [PK_Comprehensive_InspectionPerson] PRIMARY KEY CLUSTERED
|
||
(
|
||
[InspectionPersonId] 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].[Comprehensive_InspectionPerson] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_InspectionPerson_Base_Post] FOREIGN KEY([PostId])
|
||
REFERENCES [dbo].[Base_Post] ([PostId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionPerson] CHECK CONSTRAINT [FK_Comprehensive_InspectionPerson_Base_Post]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionPerson] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_InspectionPerson_Base_Project] FOREIGN KEY([ProjectId])
|
||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionPerson] CHECK CONSTRAINT [FK_Comprehensive_InspectionPerson_Base_Project]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionPerson] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_InspectionPerson_Base_Unit] FOREIGN KEY([UnitId])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionPerson] CHECK CONSTRAINT [FK_Comprehensive_InspectionPerson_Base_Unit]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionPerson] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_InspectionPerson_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionPerson] CHECK CONSTRAINT [FK_Comprehensive_InspectionPerson_Sys_User]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionPerson', @level2type=N'COLUMN',@level2name=N'InspectionPersonId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionPerson', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'报验单位id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionPerson', @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'Comprehensive_InspectionPerson', @level2type=N'COLUMN',@level2name=N'InspectionPersonCode'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工种id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionPerson', @level2type=N'COLUMN',@level2name=N'PostId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'证书编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionPerson', @level2type=N'COLUMN',@level2name=N'CertificateNumber'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'合格项目代号(级别)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionPerson', @level2type=N'COLUMN',@level2name=N'QualifiedProjectCode'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'有效期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionPerson', @level2type=N'COLUMN',@level2name=N'ValidityDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'批准时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionPerson', @level2type=N'COLUMN',@level2name=N'ApprovalTime'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'离场时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionPerson', @level2type=N'COLUMN',@level2name=N'DepartureTime'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionPerson', @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'Comprehensive_InspectionPerson', @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'Comprehensive_InspectionPerson', @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'Comprehensive_InspectionPerson'
|
||
GO
|
||
|
||
|
||
CREATE TABLE [dbo].[BS_Welder](
|
||
[WED_ID] [nvarchar](50) NOT NULL,
|
||
[WED_Unit] [nvarchar](50) NULL,
|
||
[SE_EquipmentID] [varchar](50) NULL,
|
||
[NP_NondestructivePersonID] [varchar](50) NULL,
|
||
[WED_Code] [nvarchar](50) NOT NULL,
|
||
[WED_Name] [varchar](40) NULL,
|
||
[WED_UserType] [char](10) NULL,
|
||
[WED_Sex] [char](1) NULL,
|
||
[WED_Birthday] [datetime] NULL,
|
||
[WED_WorkCode] [varchar](20) NULL,
|
||
[WED_Class] [varchar](4) NULL,
|
||
[LimitDate] [datetime] NULL,
|
||
[LeaveDate] [datetime] NULL,
|
||
[WED_TotalDin] [numeric](18, 4) NULL,
|
||
[WED_TotalJoint] [numeric](18, 4) NULL,
|
||
[WED_ExtendDin] [numeric](18, 4) NULL,
|
||
[WED_ExtendJoint] [numeric](18, 4) NULL,
|
||
[WED_RepairJoint] [numeric](18, 4) NULL,
|
||
[WED_IfOnGuard] [bit] NULL,
|
||
[WED_Remark] [varchar](100) NULL,
|
||
[WED_TotalFilm] [int] NULL,
|
||
[WED_PassFilm] [int] NULL,
|
||
[WED_ExtendTotalFilm] [int] NULL,
|
||
[WED_ExtendPassFilm] [int] NULL,
|
||
[ProjectId] [nvarchar](50) NULL,
|
||
[ThicknessMax] [decimal](18, 4) NULL,
|
||
[ThicknessMin] [decimal](18, 4) NULL,
|
||
[SizesMax] [decimal](18, 4) NULL,
|
||
[SizesMin] [decimal](18, 4) NULL,
|
||
[IdentityCard] [nvarchar](18) NULL,
|
||
[PostDate] [datetime] NULL,
|
||
CONSTRAINT [PK_BS_Welder] PRIMARY KEY CLUSTERED
|
||
(
|
||
[WED_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].[BS_Welder] ADD CONSTRAINT [DF_BS_Welder_WED_TotalDin] DEFAULT ((0)) FOR [WED_TotalDin]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[BS_Welder] ADD CONSTRAINT [DF_BS_Welder_WED_TotalJoint] DEFAULT ((0)) FOR [WED_TotalJoint]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[BS_Welder] ADD CONSTRAINT [DF_BS_Welder_WED_ExtendDin] DEFAULT ((0)) FOR [WED_ExtendDin]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[BS_Welder] ADD CONSTRAINT [DF_BS_Welder_WED_ExtendJoint] DEFAULT ((0)) FOR [WED_ExtendJoint]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[BS_Welder] ADD CONSTRAINT [DF_BS_Welder_WED_RepairJoint] DEFAULT ((0)) FOR [WED_RepairJoint]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[BS_Welder] ADD CONSTRAINT [DF_BS_Welder_WED_TotalFilm] DEFAULT ((0)) FOR [WED_TotalFilm]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[BS_Welder] ADD CONSTRAINT [DF_BS_Welder_WED_PassFilm] DEFAULT ((0)) FOR [WED_PassFilm]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[BS_Welder] ADD CONSTRAINT [DF_BS_Welder_WED_ExtendTotalFilm] DEFAULT ((0)) FOR [WED_ExtendTotalFilm]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[BS_Welder] ADD CONSTRAINT [DF_BS_Welder_WED_ExtendPassFilm] DEFAULT ((0)) FOR [WED_ExtendPassFilm]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[BS_Welder] WITH CHECK ADD CONSTRAINT [FK_BS_Welder_Base_Unit] FOREIGN KEY([WED_Unit])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[BS_Welder] CHECK CONSTRAINT [FK_BS_Welder_Base_Unit]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[BS_Welder] WITH CHECK ADD CONSTRAINT [FK_BS_Welder_BS_Welder] FOREIGN KEY([WED_ID])
|
||
REFERENCES [dbo].[BS_Welder] ([WED_ID])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[BS_Welder] CHECK CONSTRAINT [FK_BS_Welder_BS_Welder]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'人员id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'WED_ID'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单位id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'WED_Unit'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'特种设备人员id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'SE_EquipmentID'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'无损检测人员id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'NP_NondestructivePersonID'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'人员代号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'WED_Code'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'人员姓名' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'WED_Name'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'人员类型' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'WED_UserType'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'性别(1-男,2-女)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'WED_Sex'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年龄' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'WED_Birthday'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'上岗证书' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'WED_WorkCode'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'焊工等级' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'WED_Class'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'离场时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'LeaveDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总达因数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'WED_TotalDin'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总焊口数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'WED_TotalJoint'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'扩透达因' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'WED_ExtendDin'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'扩透口因' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'WED_ExtendJoint'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'返修焊口数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'WED_RepairJoint'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否在岗' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'WED_IfOnGuard'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'WED_Remark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总拍片数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'WED_TotalFilm'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'合格片数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'WED_PassFilm'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'扩透总片数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'WED_ExtendTotalFilm'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'扩透合格片数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'WED_ExtendPassFilm'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @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'BS_Welder', @level2type=N'COLUMN',@level2name=N'ThicknessMax'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'厚度最小值' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'ThicknessMin'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'大小最大值' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'SizesMax'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'大小最小值' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder', @level2type=N'COLUMN',@level2name=N'SizesMin'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'人员信息表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_Welder'
|
||
GO
|
||
|
||
|
||
CREATE TABLE [dbo].[Comprehensive_DataDistribution](
|
||
[DataDistributionId] [nvarchar](50) NOT NULL,
|
||
[ProjectId] [nvarchar](50) NOT NULL,
|
||
[SendDate] [datetime] NULL,
|
||
[FileCode] [nvarchar](100) NULL,
|
||
[FileName] [nvarchar](150) NULL,
|
||
[CNProfessionalId] [nvarchar](50) NULL,
|
||
[SendMan] [nvarchar](50) NULL,
|
||
[ReceivingUnit] [nvarchar](500) NULL,
|
||
[ReceivingMan] [nvarchar](50) NULL,
|
||
[FileType] [char](1) NULL,
|
||
[CopiesCount] [int] NULL,
|
||
[IsReply] [bit] NULL,
|
||
[ReplyCode] [nvarchar](50) NULL,
|
||
[ReplyDate] [datetime] NULL,
|
||
[Remark] [nvarchar](500) NULL,
|
||
[AttachUrl] [nvarchar](2000) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Comprehensive_DataDistribution] PRIMARY KEY CLUSTERED
|
||
(
|
||
[DataDistributionId] 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].[Comprehensive_DataDistribution] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_DataDistribution_Base_Project] FOREIGN KEY([ProjectId])
|
||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_DataDistribution] CHECK CONSTRAINT [FK_Comprehensive_DataDistribution_Base_Project]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_DataDistribution] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_DataDistribution_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_DataDistribution] CHECK CONSTRAINT [FK_Comprehensive_DataDistribution_Sys_User]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_DataDistribution] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_DataDistribution_Base_CNProfessional] FOREIGN KEY([CNProfessionalId])
|
||
REFERENCES [dbo].[Base_CNProfessional] ([CNProfessionalId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_DataDistribution] CHECK CONSTRAINT [FK_Comprehensive_DataDistribution_Base_CNProfessional]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataDistribution', @level2type=N'COLUMN',@level2name=N'DataDistributionId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataDistribution', @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'Comprehensive_DataDistribution', @level2type=N'COLUMN',@level2name=N'SendDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'文件号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataDistribution', @level2type=N'COLUMN',@level2name=N'FileCode'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'文件名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataDistribution', @level2type=N'COLUMN',@level2name=N'FileName'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专业id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataDistribution', @level2type=N'COLUMN',@level2name=N'CNProfessionalId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'发送人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataDistribution', @level2type=N'COLUMN',@level2name=N'SendMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'接收单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataDistribution', @level2type=N'COLUMN',@level2name=N'ReceivingUnit'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'接收人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataDistribution', @level2type=N'COLUMN',@level2name=N'ReceivingMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'文件形式(1-纸质,2-电子)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataDistribution', @level2type=N'COLUMN',@level2name=N'FileType'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'份数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataDistribution', @level2type=N'COLUMN',@level2name=N'CopiesCount'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否需回复' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataDistribution', @level2type=N'COLUMN',@level2name=N'IsReply'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'回复单号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataDistribution', @level2type=N'COLUMN',@level2name=N'ReplyCode'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'回复日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataDistribution', @level2type=N'COLUMN',@level2name=N'ReplyDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataDistribution', @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'Comprehensive_DataDistribution', @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'Comprehensive_DataDistribution', @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'Comprehensive_DataDistribution', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目文件资料发送登记表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataDistribution'
|
||
GO
|
||
|
||
|
||
CREATE TABLE [dbo].[Comprehensive_DesignDetails](
|
||
[DesignDetailsId] [nvarchar](50) NOT NULL,
|
||
[ProjectId] [nvarchar](50) NOT NULL,
|
||
[CNProfessionalId] [nvarchar](50) NULL,
|
||
[DesignDetailsCode] [nvarchar](50) NOT NULL,
|
||
[DetailsMan] [nvarchar](20) NULL,
|
||
[DetailsDate] [datetime] NULL,
|
||
[UnitWorkId] [nvarchar](500) NULL,
|
||
[UnitName] [nvarchar](500) NULL,
|
||
[AttachUrl] [nvarchar](2000) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Comprehensive_DesignDetails] PRIMARY KEY CLUSTERED
|
||
(
|
||
[DesignDetailsId] 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].[Comprehensive_DesignDetails] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_DesignDetails_Base_Project] FOREIGN KEY([ProjectId])
|
||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_DesignDetails] CHECK CONSTRAINT [FK_Comprehensive_DesignDetails_Base_Project]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_DesignDetails] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_DesignDetails_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_DesignDetails] CHECK CONSTRAINT [FK_Comprehensive_DesignDetails_Sys_User]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignDetails', @level2type=N'COLUMN',@level2name=N'DesignDetailsId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignDetails', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专业Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignDetails', @level2type=N'COLUMN',@level2name=N'CNProfessionalId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'交底编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignDetails', @level2type=N'COLUMN',@level2name=N'DesignDetailsCode'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'交底人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignDetails', @level2type=N'COLUMN',@level2name=N'DetailsMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'交底日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignDetails', @level2type=N'COLUMN',@level2name=N'DetailsDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单元' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignDetails', @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'Comprehensive_DesignDetails', @level2type=N'COLUMN',@level2name=N'UnitName'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignDetails', @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'Comprehensive_DesignDetails'
|
||
GO
|
||
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Comprehensive_DesignChangeOrder](
|
||
[DesignChangeOrderId] [nvarchar](50) NOT NULL,
|
||
[ProjectId] [nvarchar](50) NOT NULL,
|
||
[CNProfessionalId] [nvarchar](50) NULL,
|
||
[UnitWorkId] [nvarchar](500) NULL,
|
||
[ChangeOrderCode] [nvarchar](50) NOT NULL,
|
||
[ChangeReason] [nvarchar](150) NULL,
|
||
[Contents] [nvarchar](150) NULL,
|
||
[IssuedDate] [datetime] NULL,
|
||
[ApprovalDate] [datetime] NULL,
|
||
[UnitId] [nvarchar](500) NULL,
|
||
[HandleState] [char](1) NULL,
|
||
[AttachUrl] [nvarchar](2000) NULL,
|
||
[ImplementationFrontState] [nvarchar](50) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
[CompleteDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Comprehensive_DesignChangeOrder] PRIMARY KEY CLUSTERED
|
||
(
|
||
[DesignChangeOrderId] 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].[Comprehensive_DesignChangeOrder] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_DesignChangeOrder_Base_Project] FOREIGN KEY([ProjectId])
|
||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_DesignChangeOrder] CHECK CONSTRAINT [FK_Comprehensive_DesignChangeOrder_Base_Project]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_DesignChangeOrder] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_DesignChangeOrder_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_DesignChangeOrder] CHECK CONSTRAINT [FK_Comprehensive_DesignChangeOrder_Sys_User]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_DesignChangeOrder] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_DesignChangeOrder_Base_CNProfessional] FOREIGN KEY([CNProfessionalId])
|
||
REFERENCES [dbo].[Base_CNProfessional] ([CNProfessionalId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_DesignChangeOrder] CHECK CONSTRAINT [FK_Comprehensive_DesignChangeOrder_Base_CNProfessional]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignChangeOrder', @level2type=N'COLUMN',@level2name=N'DesignChangeOrderId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignChangeOrder', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专业Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignChangeOrder', @level2type=N'COLUMN',@level2name=N'CNProfessionalId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单元' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignChangeOrder', @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'Comprehensive_DesignChangeOrder', @level2type=N'COLUMN',@level2name=N'ChangeOrderCode'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'变更原因' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignChangeOrder', @level2type=N'COLUMN',@level2name=N'ChangeReason'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主要内容' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignChangeOrder', @level2type=N'COLUMN',@level2name=N'Contents'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'下发日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignChangeOrder', @level2type=N'COLUMN',@level2name=N'IssuedDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'业主批准日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignChangeOrder', @level2type=N'COLUMN',@level2name=N'ApprovalDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'接收单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignChangeOrder', @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'Comprehensive_DesignChangeOrder', @level2type=N'COLUMN',@level2name=N'HandleState'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignChangeOrder', @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'Comprehensive_DesignChangeOrder'
|
||
GO
|
||
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Comprehensive_DataReceiving](
|
||
[DataReceivingId] [nvarchar](50) NOT NULL,
|
||
[ProjectId] [nvarchar](50) NOT NULL,
|
||
[DataReceivingDate] [datetime] NULL,
|
||
[FileCode] [nvarchar](100) NULL,
|
||
[FileName] [nvarchar](150) NULL,
|
||
[SendUnit] [nvarchar](500) NULL,
|
||
[SendMan] [nvarchar](50) NULL,
|
||
[FileType] [char](1) NULL,
|
||
[CopiesCount] [int] NULL,
|
||
[ReceivingMan] [nvarchar](50) NULL,
|
||
[FileHandler] [nvarchar](50) NULL,
|
||
[IsReply] [bit] NULL,
|
||
[ReplyCode] [nvarchar](50) NULL,
|
||
[ReplyDate] [datetime] NULL,
|
||
[Remark] [nvarchar](500) NULL,
|
||
[AttachUrl] [nvarchar](2000) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Comprehensive_DataReceiving] PRIMARY KEY CLUSTERED
|
||
(
|
||
[DataReceivingId] 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].[Comprehensive_DataReceiving] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_DataReceiving_Base_Project] FOREIGN KEY([ProjectId])
|
||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_DataReceiving] CHECK CONSTRAINT [FK_Comprehensive_DataReceiving_Base_Project]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_DataReceiving] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_DataReceiving_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_DataReceiving] CHECK CONSTRAINT [FK_Comprehensive_DataReceiving_Sys_User]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataReceiving', @level2type=N'COLUMN',@level2name=N'DataReceivingId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataReceiving', @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'Comprehensive_DataReceiving', @level2type=N'COLUMN',@level2name=N'DataReceivingDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'文件号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataReceiving', @level2type=N'COLUMN',@level2name=N'FileCode'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'文件名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataReceiving', @level2type=N'COLUMN',@level2name=N'FileName'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'发件单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataReceiving', @level2type=N'COLUMN',@level2name=N'SendUnit'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'发件人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataReceiving', @level2type=N'COLUMN',@level2name=N'SendMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'文件形式(1-纸质,2-电子)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataReceiving', @level2type=N'COLUMN',@level2name=N'FileType'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'份数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataReceiving', @level2type=N'COLUMN',@level2name=N'CopiesCount'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'收件人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataReceiving', @level2type=N'COLUMN',@level2name=N'ReceivingMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'文件处理人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataReceiving', @level2type=N'COLUMN',@level2name=N'FileHandler'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否需回复' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataReceiving', @level2type=N'COLUMN',@level2name=N'IsReply'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'回复单号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataReceiving', @level2type=N'COLUMN',@level2name=N'ReplyCode'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'回复日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataReceiving', @level2type=N'COLUMN',@level2name=N'ReplyDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataReceiving', @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'Comprehensive_DataReceiving', @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'Comprehensive_DataReceiving', @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'Comprehensive_DataReceiving', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目文件资料接收登记表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DataReceiving'
|
||
GO
|
||
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[Base_Equipment](
|
||
[EquipmentId] [nvarchar](50) NOT NULL,
|
||
[EquipmentName] [nvarchar](50) NULL,
|
||
[Remark] [nvarchar](1000) NULL,
|
||
CONSTRAINT [PK_Base_Equipment_1] PRIMARY KEY CLUSTERED
|
||
(
|
||
[EquipmentId] 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
|
||
|
||
CREATE TABLE [dbo].[Base_InspectionArea](
|
||
[InspectionAreaId] [nvarchar](50) NOT NULL,
|
||
[InspectionAreaCode] [nvarchar](50) NULL,
|
||
[InspectionAreaName] [nvarchar](50) NOT NULL,
|
||
[Remark] [nvarchar](500) NULL,
|
||
CONSTRAINT [PK_Base_InspectionArea] PRIMARY KEY CLUSTERED
|
||
(
|
||
[InspectionAreaId] 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
|
||
|
||
CREATE TABLE [dbo].[BS_Steel](
|
||
[STE_ID] [varchar](50) NOT NULL,
|
||
[STE_Code] [varchar](20) NOT NULL,
|
||
[STE_Name] [varchar](50) NOT NULL,
|
||
[STE_SteelType] [int] NULL,
|
||
[STE_Remark] [varchar](100) NULL,
|
||
[MaterialType] [nvarchar](50) NULL,
|
||
[MaterialGroup] [nvarchar](50) NULL,
|
||
CONSTRAINT [PK_BS_Steel] PRIMARY KEY CLUSTERED
|
||
(
|
||
[STE_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
|
||
|
||
CREATE TABLE [dbo].[BS_WelderItem](
|
||
[WEDItem_ID] [nvarchar](50) NOT NULL,
|
||
[WED_ID] [nvarchar](50) NULL,
|
||
[STE_ID] [nvarchar](50) NULL,
|
||
CONSTRAINT [PK_BS_WelderItem] PRIMARY KEY CLUSTERED
|
||
(
|
||
[WEDItem_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
|
||
|
||
CREATE TABLE [dbo].[BS_WeldMethod](
|
||
[WME_ID] [varchar](50) NOT NULL,
|
||
[WME_Code] [varchar](20) NOT NULL,
|
||
[WME_Name] [varchar](50) NOT NULL,
|
||
[WME_Remark] [varchar](100) NULL,
|
||
CONSTRAINT [PK_BS_WeldMethod] PRIMARY KEY CLUSTERED
|
||
(
|
||
[WME_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
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'特种设备类型主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Equipment', @level2type=N'COLUMN',@level2name=N'EquipmentId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'类型名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Equipment', @level2type=N'COLUMN',@level2name=N'EquipmentName'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Equipment', @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'Base_Equipment'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_InspectionArea', @level2type=N'COLUMN',@level2name=N'InspectionAreaId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_InspectionArea', @level2type=N'COLUMN',@level2name=N'InspectionAreaCode'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_InspectionArea', @level2type=N'COLUMN',@level2name=N'InspectionAreaName'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_InspectionArea', @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'Base_InspectionArea'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'人员材质明细' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_WelderItem', @level2type=N'COLUMN',@level2name=N'WEDItem_ID'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'人员表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_WelderItem', @level2type=N'COLUMN',@level2name=N'WED_ID'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'材质ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_WelderItem', @level2type=N'COLUMN',@level2name=N'STE_ID'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'人员材质明细表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'BS_WelderItem'
|
||
GO
|
||
|
||
CREATE TABLE [dbo].[Comprehensive_DesignDrawings](
|
||
[DesignDrawingsId] [nvarchar](50) NOT NULL,
|
||
[ProjectId] [nvarchar](50) NOT NULL,
|
||
[CNProfessionalId] [nvarchar](50) NOT NULL,
|
||
[DesignDrawingsCode] [nvarchar](300) NULL,
|
||
[DesignDrawingsContent] [nvarchar](500) NULL,
|
||
[Edition] [nvarchar](20) NULL,
|
||
[PageNumber] [int] NULL,
|
||
[ReceiveDate] [datetime] NULL,
|
||
[SendDate] [datetime] NULL,
|
||
[ReceiveUnits] [nvarchar](800) NULL,
|
||
[ReceiveMan] [nvarchar](50) NULL,
|
||
[Remark] [nvarchar](500) NULL,
|
||
[RemarkCode] [nvarchar](50) NULL,
|
||
[UnitWorkId] [nvarchar](500) NULL,
|
||
CONSTRAINT [PK_Comprehensive_DesignDrawings] PRIMARY KEY CLUSTERED
|
||
(
|
||
[DesignDrawingsId] 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].[Comprehensive_DesignDrawings] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_DesignDrawings_Base_Project] FOREIGN KEY([ProjectId])
|
||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_DesignDrawings] CHECK CONSTRAINT [FK_Comprehensive_DesignDrawings_Base_Project]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_DesignDrawings] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_DesignDrawings_Base_CNProfessional] FOREIGN KEY([CNProfessionalId])
|
||
REFERENCES [dbo].[Base_CNProfessional] ([CNProfessionalId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Comprehensive_DesignDrawings] CHECK CONSTRAINT [FK_Comprehensive_DesignDrawings_Base_CNProfessional]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignDrawings', @level2type=N'COLUMN',@level2name=N'DesignDrawingsId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignDrawings', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专业Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignDrawings', @level2type=N'COLUMN',@level2name=N'CNProfessionalId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计图纸编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignDrawings', @level2type=N'COLUMN',@level2name=N'DesignDrawingsCode'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图纸内容' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignDrawings', @level2type=N'COLUMN',@level2name=N'DesignDrawingsContent'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'版次' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignDrawings', @level2type=N'COLUMN',@level2name=N'Edition'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'页数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignDrawings', @level2type=N'COLUMN',@level2name=N'PageNumber'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'接收日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignDrawings', @level2type=N'COLUMN',@level2name=N'ReceiveDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'发送日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignDrawings', @level2type=N'COLUMN',@level2name=N'SendDate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'接收单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignDrawings', @level2type=N'COLUMN',@level2name=N'ReceiveUnits'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'接收人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignDrawings', @level2type=N'COLUMN',@level2name=N'ReceiveMan'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_DesignDrawings', @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'Comprehensive_DesignDrawings'
|
||
GO
|
||
|
||
|
||
CREATE TABLE [dbo].[Comprehensive_GeneralPlanApproval](
|
||
[GeneralPlanApprovalId] [nvarchar](50) NOT NULL,
|
||
[ProjectId] [nvarchar](50) NOT NULL,
|
||
[UnitId] [nvarchar](50) NULL,
|
||
[CNProfessionalId] [nvarchar](50) NULL,
|
||
[PlanCode] [nvarchar](50) NOT NULL,
|
||
[PlanName] [nvarchar](50) NULL,
|
||
[ApprovalDate] [datetime] NULL,
|
||
[AuditMan] [nvarchar](50) NULL,
|
||
[ApprovalMan] [nvarchar](50) NULL,
|
||
[ImplementationDeviation] [nvarchar](500) NULL,
|
||
[AttachUrl] [nvarchar](2000) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
[UnitWorkId] [nvarchar](500) NULL,
|
||
CONSTRAINT [PK_Comprehensive_GeneralPlanApproval] PRIMARY KEY CLUSTERED
|
||
(
|
||
[GeneralPlanApprovalId] 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
|
||
/****** Object: Table [dbo].[Comprehensive_GeneralPlanApprovalItem] Script Date: 2020/11/9 1:10:43 ******/
|
||
SET ANSI_NULLS ON
|
||
GO
|
||
SET QUOTED_IDENTIFIER ON
|
||
GO
|
||
CREATE TABLE [dbo].[Comprehensive_GeneralPlanApprovalItem](
|
||
[GeneralPlanApprovalItemId] [nvarchar](50) NOT NULL,
|
||
[GeneralPlanApprovalId] [nvarchar](50) NOT NULL,
|
||
[UnitId] [nvarchar](50) NULL,
|
||
[Counts] [int] NULL,
|
||
[SubmitDate] [datetime] NULL,
|
||
[ReturnDate] [datetime] NULL,
|
||
[ModifyContents] [nvarchar](200) NULL,
|
||
[AttachUrl] [nvarchar](1000) NULL,
|
||
CONSTRAINT [PK_Comprehensive_GeneralPlanApprovalItem] PRIMARY KEY CLUSTERED
|
||
(
|
||
[GeneralPlanApprovalItemId] 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
|
||
/****** Object: Table [dbo].[Comprehensive_InspectionMachine] Script Date: 2020/11/9 1:10:43 ******/
|
||
SET ANSI_NULLS ON
|
||
GO
|
||
SET QUOTED_IDENTIFIER ON
|
||
GO
|
||
CREATE TABLE [dbo].[Comprehensive_InspectionMachine](
|
||
[InspectionMachineId] [nvarchar](50) NOT NULL,
|
||
[ProjectId] [nvarchar](50) NOT NULL,
|
||
[UnitId] [nvarchar](50) NULL,
|
||
[InspectionMachineCode] [nvarchar](50) NOT NULL,
|
||
[InspectionMachineName] [nvarchar](50) NULL,
|
||
[SpecificationModel] [nvarchar](50) NULL,
|
||
[NextTestDate] [datetime] NULL,
|
||
[TestCycle] [nvarchar](50) NULL,
|
||
[IsVerification] [bit] NULL,
|
||
[InspectionDate] [datetime] NULL,
|
||
[AttachUrl] [nvarchar](2000) NULL,
|
||
[CNProfessionalId] [nvarchar](50) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
[IsOnSite] [bit] NULL,
|
||
[InspectionType] [nvarchar](20) NULL,
|
||
[LeaveDate] [datetime] NULL,
|
||
[UnitsCount] [int] NULL,
|
||
CONSTRAINT [PK_Comprehensive_InspectionMachine] PRIMARY KEY CLUSTERED
|
||
(
|
||
[InspectionMachineId] 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
|
||
/****** Object: Table [dbo].[Comprehensive_InspectionPersonSteel] Script Date: 2020/11/9 1:10:43 ******/
|
||
SET ANSI_NULLS ON
|
||
GO
|
||
SET QUOTED_IDENTIFIER ON
|
||
GO
|
||
SET ANSI_PADDING OFF
|
||
GO
|
||
CREATE TABLE [dbo].[Comprehensive_InspectionPersonSteel](
|
||
[InspectionPersonSteelId] [nvarchar](50) NOT NULL,
|
||
[InspectionPersonId] [nvarchar](50) NULL,
|
||
[SteelId] [varchar](50) NULL,
|
||
[ThicknessMin] [decimal](18, 2) NULL,
|
||
[ThicknessMax] [decimal](18, 2) NULL,
|
||
[SizesMin] [decimal](18, 2) NULL,
|
||
[SizesMax] [decimal](18, 2) NULL,
|
||
[isChecked] [bit] NULL,
|
||
CONSTRAINT [PK_Comprehensive_InspectionPersonItem] PRIMARY KEY CLUSTERED
|
||
(
|
||
[InspectionPersonSteelId] 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
|
||
/****** Object: Table [dbo].[Comprehensive_InspectionPersonWeldMethod] Script Date: 2020/11/9 1:10:43 ******/
|
||
SET ANSI_NULLS ON
|
||
GO
|
||
SET QUOTED_IDENTIFIER ON
|
||
GO
|
||
SET ANSI_PADDING OFF
|
||
GO
|
||
CREATE TABLE [dbo].[Comprehensive_InspectionPersonWeldMethod](
|
||
[InspectionPersonWeldMethodId] [nvarchar](50) NOT NULL,
|
||
[InspectionPersonId] [nvarchar](50) NULL,
|
||
[WeldMethodId] [varchar](50) NULL,
|
||
[IsChecked] [bit] NULL,
|
||
CONSTRAINT [PK_Comprehensive_InspectionPersonWeldMethod] PRIMARY KEY CLUSTERED
|
||
(
|
||
[InspectionPersonWeldMethodId] 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
|
||
/****** Object: Table [dbo].[Comprehensive_MajorPlanApproval] Script Date: 2020/11/9 1:10:43 ******/
|
||
SET ANSI_NULLS ON
|
||
GO
|
||
SET QUOTED_IDENTIFIER ON
|
||
GO
|
||
CREATE TABLE [dbo].[Comprehensive_MajorPlanApproval](
|
||
[MajorPlanApprovalId] [nvarchar](50) NOT NULL,
|
||
[ProjectId] [nvarchar](50) NOT NULL,
|
||
[UnitId] [nvarchar](50) NULL,
|
||
[CNProfessionalId] [nvarchar](50) NULL,
|
||
[PlanCode] [nvarchar](50) NOT NULL,
|
||
[PlanName] [nvarchar](50) NULL,
|
||
[ReviewMan] [nvarchar](50) NULL,
|
||
[ApprovalDate] [datetime] NULL,
|
||
[AuditMan] [nvarchar](50) NULL,
|
||
[ApprovalMan] [nvarchar](50) NULL,
|
||
[ImplementationDeviation] [nvarchar](500) NULL,
|
||
[AttachUrl] [nvarchar](2000) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
[UnitWorkId] [nvarchar](500) NULL,
|
||
CONSTRAINT [PK_Comprehensive_MajorPlanApproval] PRIMARY KEY CLUSTERED
|
||
(
|
||
[MajorPlanApprovalId] 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
|
||
/****** Object: Table [dbo].[Comprehensive_MajorPlanApprovalItem] Script Date: 2020/11/9 1:10:43 ******/
|
||
SET ANSI_NULLS ON
|
||
GO
|
||
SET QUOTED_IDENTIFIER ON
|
||
GO
|
||
CREATE TABLE [dbo].[Comprehensive_MajorPlanApprovalItem](
|
||
[MajorPlanApprovalItemId] [nvarchar](50) NOT NULL,
|
||
[MajorPlanApprovalId] [nvarchar](50) NOT NULL,
|
||
[UnitId] [nvarchar](50) NOT NULL,
|
||
[Counts] [int] NULL,
|
||
[SubmitDate] [datetime] NULL,
|
||
[ReturnDate] [datetime] NULL,
|
||
[ModifyContents] [nvarchar](200) NULL,
|
||
[AttachUrl] [nvarchar](1000) NULL,
|
||
CONSTRAINT [PK_Comprehensive_MajorPlanApprovalItem] PRIMARY KEY CLUSTERED
|
||
(
|
||
[MajorPlanApprovalItemId] 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
|
||
/****** Object: Table [dbo].[Comprehensive_NCRManagement] Script Date: 2020/11/9 1:10:43 ******/
|
||
SET ANSI_NULLS ON
|
||
GO
|
||
SET QUOTED_IDENTIFIER ON
|
||
GO
|
||
CREATE TABLE [dbo].[Comprehensive_NCRManagement](
|
||
[NCRManagementId] [nvarchar](50) NOT NULL,
|
||
[ProjectId] [nvarchar](50) NOT NULL,
|
||
[SendUnit] [nvarchar](50) NULL,
|
||
[CNProfessionalId] [nvarchar](50) NULL,
|
||
[NCRCode] [nvarchar](50) NOT NULL,
|
||
[Contents] [nvarchar](500) NULL,
|
||
[IssuedDate] [datetime] NULL,
|
||
[ReceiveUnit] [nvarchar](500) NULL,
|
||
[ClosedDate] [datetime] NULL,
|
||
[CompleteDate] [datetime] NULL,
|
||
[ResponsibleMan] [nvarchar](50) NULL,
|
||
[AttachUrl] [nvarchar](2000) NULL,
|
||
[ImplementationFrontState] [nvarchar](50) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[UnitWorkId] [nvarchar](500) NULL,
|
||
CONSTRAINT [PK_Comprehensive_NCRManagement] PRIMARY KEY CLUSTERED
|
||
(
|
||
[NCRManagementId] 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
|
||
/****** Object: Table [dbo].[Comprehensive_PressurePipe] Script Date: 2020/11/9 1:10:43 ******/
|
||
SET ANSI_NULLS ON
|
||
GO
|
||
SET QUOTED_IDENTIFIER ON
|
||
GO
|
||
CREATE TABLE [dbo].[Comprehensive_PressurePipe](
|
||
[PressurePipeId] [nvarchar](50) NOT NULL,
|
||
[Projctid] [nvarchar](50) NULL,
|
||
[UnitId] [nvarchar](50) NULL,
|
||
[EstimateNumber] [int] NULL,
|
||
[ActualNumber] [int] NULL,
|
||
[PackageNumber] [int] NULL,
|
||
[CompletePackageNumber] [int] NULL,
|
||
[PressurePipeNumber] [int] NULL,
|
||
[IssuedReportNumber] [int] NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
CONSTRAINT [PK_Comprehensive_PressurePipe] PRIMARY KEY CLUSTERED
|
||
(
|
||
[PressurePipeId] 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
|
||
/****** Object: Table [dbo].[Comprehensive_QualityAccident] Script Date: 2020/11/9 1:10:43 ******/
|
||
SET ANSI_NULLS ON
|
||
GO
|
||
SET QUOTED_IDENTIFIER ON
|
||
GO
|
||
CREATE TABLE [dbo].[Comprehensive_QualityAccident](
|
||
[QualityAccidentId] [nvarchar](50) NOT NULL,
|
||
[ProjectId] [nvarchar](50) NULL,
|
||
[UnitId] [nvarchar](50) NULL,
|
||
[time] [datetime] NULL,
|
||
[Place] [nvarchar](500) NULL,
|
||
[DirectEconomicLoss] [nvarchar](500) NULL,
|
||
[RemedialMeasures] [nvarchar](500) NULL,
|
||
[ResponsibilityDetermination] [nvarchar](500) NULL,
|
||
[CorrectiveActions] [nvarchar](500) NULL,
|
||
[AttachUrl] [nvarchar](1000) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
[UnitWorkId] [nvarchar](500) NULL,
|
||
CONSTRAINT [PK_Comprehensive_QualityAccidentId] PRIMARY KEY CLUSTERED
|
||
(
|
||
[QualityAccidentId] 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
|
||
/****** Object: Table [dbo].[Comprehensive_SiteVisaManagement] Script Date: 2020/11/9 1:10:43 ******/
|
||
SET ANSI_NULLS ON
|
||
GO
|
||
SET QUOTED_IDENTIFIER ON
|
||
GO
|
||
CREATE TABLE [dbo].[Comprehensive_SiteVisaManagement](
|
||
[VisaId] [nvarchar](50) NOT NULL,
|
||
[ProjectId] [nvarchar](50) NOT NULL,
|
||
[UnitId] [nvarchar](50) NULL,
|
||
[VisaCode] [nvarchar](50) NOT NULL,
|
||
[CNProfessionalId] [nvarchar](50) NULL,
|
||
[VisaReson] [nvarchar](500) NULL,
|
||
[VisaDate] [datetime] NULL,
|
||
[EstimatedCost] [nvarchar](20) NULL,
|
||
[Confirmation] [nvarchar](20) NULL,
|
||
[AttachUrl] [nvarchar](2000) NULL,
|
||
[ConstructionManager] [nvarchar](50) NULL,
|
||
[ControlManager] [nvarchar](50) NULL,
|
||
[ProcessingState] [nvarchar](50) NULL,
|
||
[AccountingExpenses] [nvarchar](20) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[VisaContent] [nvarchar](500) NULL,
|
||
[UnitWorkId] [nvarchar](50) NULL,
|
||
[SignMan] [nvarchar](50) NULL,
|
||
[AuditMan] [nvarchar](50) NULL,
|
||
[Remark] [nvarchar](200) NULL,
|
||
CONSTRAINT [PK_Comprehensive_SiteVisaManagement] PRIMARY KEY CLUSTERED
|
||
(
|
||
[VisaId] 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
|
||
/****** Object: Table [dbo].[Comprehensive_SpecialEquipment] Script Date: 2020/11/9 1:10:43 ******/
|
||
SET ANSI_NULLS ON
|
||
GO
|
||
SET QUOTED_IDENTIFIER ON
|
||
GO
|
||
CREATE TABLE [dbo].[Comprehensive_SpecialEquipment](
|
||
[SpecialEquipmentId] [nvarchar](50) NOT NULL,
|
||
[ProjectId] [nvarchar](50) NULL,
|
||
[UnitId] [nvarchar](50) NULL,
|
||
[EquipmentId] [nvarchar](50) NULL,
|
||
[SunNumber] [int] NULL,
|
||
[InformNumber] [int] NULL,
|
||
[SubmitDataNumber] [int] NULL,
|
||
[MonitoringReportNumber] [int] NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
CONSTRAINT [PK_Comprehensive_SpecialEquipment] PRIMARY KEY CLUSTERED
|
||
(
|
||
[SpecialEquipmentId] 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].[Comprehensive_GeneralPlanApproval] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_GeneralPlanApproval_Base_Project] FOREIGN KEY([ProjectId])
|
||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_GeneralPlanApproval] CHECK CONSTRAINT [FK_Comprehensive_GeneralPlanApproval_Base_Project]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_GeneralPlanApproval] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_GeneralPlanApproval_Base_Unit] FOREIGN KEY([UnitId])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_GeneralPlanApproval] CHECK CONSTRAINT [FK_Comprehensive_GeneralPlanApproval_Base_Unit]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_GeneralPlanApproval] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_GeneralPlanApproval_Base_CNProfessional] FOREIGN KEY([CNProfessionalId])
|
||
REFERENCES [dbo].[Base_CNProfessional] ([CNProfessionalId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_GeneralPlanApproval] CHECK CONSTRAINT [FK_Comprehensive_GeneralPlanApproval_Base_CNProfessional]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_GeneralPlanApprovalItem] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_GeneralPlanApprovalItem_Base_Unit] FOREIGN KEY([UnitId])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_GeneralPlanApprovalItem] CHECK CONSTRAINT [FK_Comprehensive_GeneralPlanApprovalItem_Base_Unit]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_GeneralPlanApprovalItem] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_GeneralPlanApprovalItem_Comprehensive_GeneralPlanApproval] FOREIGN KEY([GeneralPlanApprovalId])
|
||
REFERENCES [dbo].[Comprehensive_GeneralPlanApproval] ([GeneralPlanApprovalId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_GeneralPlanApprovalItem] CHECK CONSTRAINT [FK_Comprehensive_GeneralPlanApprovalItem_Comprehensive_GeneralPlanApproval]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionMachine] WITH CHECK ADD CONSTRAINT [Comprehensive_InspectionMachine_Base_CNProfessional] FOREIGN KEY([CNProfessionalId])
|
||
REFERENCES [dbo].[Base_CNProfessional] ([CNProfessionalId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionMachine] CHECK CONSTRAINT [Comprehensive_InspectionMachine_Base_CNProfessional]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionMachine] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_InspectionMachine_Base_Project] FOREIGN KEY([ProjectId])
|
||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionMachine] CHECK CONSTRAINT [FK_Comprehensive_InspectionMachine_Base_Project]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionMachine] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_InspectionMachine_Base_Unit] FOREIGN KEY([UnitId])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionMachine] CHECK CONSTRAINT [FK_Comprehensive_InspectionMachine_Base_Unit]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionPersonSteel] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_InspectionPersonItem_BS_Steel] FOREIGN KEY([InspectionPersonId])
|
||
REFERENCES [dbo].[Comprehensive_InspectionPerson] ([InspectionPersonId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionPersonSteel] CHECK CONSTRAINT [FK_Comprehensive_InspectionPersonItem_BS_Steel]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionPersonSteel] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_InspectionPersonItem_Comprehensive_InspectionPerson] FOREIGN KEY([SteelId])
|
||
REFERENCES [dbo].[BS_Steel] ([STE_ID])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionPersonSteel] CHECK CONSTRAINT [FK_Comprehensive_InspectionPersonItem_Comprehensive_InspectionPerson]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionPersonWeldMethod] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_InspectionPersonWeldMethod_BS_WeldMethod] FOREIGN KEY([WeldMethodId])
|
||
REFERENCES [dbo].[BS_WeldMethod] ([WME_ID])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionPersonWeldMethod] CHECK CONSTRAINT [FK_Comprehensive_InspectionPersonWeldMethod_BS_WeldMethod]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionPersonWeldMethod] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_InspectionPersonWeldMethod_Comprehensive_InspectionPerson] FOREIGN KEY([InspectionPersonId])
|
||
REFERENCES [dbo].[Comprehensive_InspectionPerson] ([InspectionPersonId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_InspectionPersonWeldMethod] CHECK CONSTRAINT [FK_Comprehensive_InspectionPersonWeldMethod_Comprehensive_InspectionPerson]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_MajorPlanApproval] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_MajorPlanApproval_Base_Project] FOREIGN KEY([ProjectId])
|
||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_MajorPlanApproval] CHECK CONSTRAINT [FK_Comprehensive_MajorPlanApproval_Base_Project]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_MajorPlanApproval] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_MajorPlanApproval_Base_Unit] FOREIGN KEY([UnitId])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_MajorPlanApproval] CHECK CONSTRAINT [FK_Comprehensive_MajorPlanApproval_Base_Unit]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_MajorPlanApproval] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_MajorPlanApproval_Base_CNProfessional] FOREIGN KEY([CNProfessionalId])
|
||
REFERENCES [dbo].[Base_CNProfessional] ([CNProfessionalId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_MajorPlanApproval] CHECK CONSTRAINT [FK_Comprehensive_MajorPlanApproval_Base_CNProfessional]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_MajorPlanApprovalItem] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_MajorPlanApprovalItem_Base_Unit] FOREIGN KEY([UnitId])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_MajorPlanApprovalItem] CHECK CONSTRAINT [FK_Comprehensive_MajorPlanApprovalItem_Base_Unit]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_MajorPlanApprovalItem] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_MajorPlanApprovalItem_Comprehensive_MajorPlanApproval] FOREIGN KEY([MajorPlanApprovalId])
|
||
REFERENCES [dbo].[Comprehensive_MajorPlanApproval] ([MajorPlanApprovalId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_MajorPlanApprovalItem] CHECK CONSTRAINT [FK_Comprehensive_MajorPlanApprovalItem_Comprehensive_MajorPlanApproval]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_NCRManagement] WITH CHECK ADD CONSTRAINT [Comprehensive_NCRManagement_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_NCRManagement] CHECK CONSTRAINT [Comprehensive_NCRManagement_Sys_User]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_NCRManagement] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_NCRManagement_Base_Project] FOREIGN KEY([ProjectId])
|
||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_NCRManagement] CHECK CONSTRAINT [FK_Comprehensive_NCRManagement_Base_Project]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_NCRManagement] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_NCRManagement_Base_Unit] FOREIGN KEY([SendUnit])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_NCRManagement] CHECK CONSTRAINT [FK_Comprehensive_NCRManagement_Base_Unit]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_NCRManagement] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_NCRManagement_Base_CNProfessional] FOREIGN KEY([CNProfessionalId])
|
||
REFERENCES [dbo].[Base_CNProfessional] ([CNProfessionalId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_NCRManagement] CHECK CONSTRAINT [FK_Comprehensive_NCRManagement_Base_CNProfessional]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_PressurePipe] WITH CHECK ADD CONSTRAINT [Comprehensive_PressurePipe_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_PressurePipe] CHECK CONSTRAINT [Comprehensive_PressurePipe_Sys_User]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_PressurePipe] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_PressurePipe_Base_Project] FOREIGN KEY([Projctid])
|
||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_PressurePipe] CHECK CONSTRAINT [FK_Comprehensive_PressurePipe_Base_Project]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_PressurePipe] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_PressurePipe_Base_Unit] FOREIGN KEY([UnitId])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_PressurePipe] CHECK CONSTRAINT [FK_Comprehensive_PressurePipe_Base_Unit]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_QualityAccident] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_QualityAccident_Base_Project] FOREIGN KEY([ProjectId])
|
||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_QualityAccident] CHECK CONSTRAINT [FK_Comprehensive_QualityAccident_Base_Project]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_QualityAccident] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_QualityAccident_Base_Unit] FOREIGN KEY([UnitId])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_QualityAccident] CHECK CONSTRAINT [FK_Comprehensive_QualityAccident_Base_Unit]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_QualityAccident] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_QualityAccident_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_QualityAccident] CHECK CONSTRAINT [FK_Comprehensive_QualityAccident_Sys_User]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_SiteVisaManagement] WITH CHECK ADD CONSTRAINT [Comprehensive_SiteVisaManagement_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_SiteVisaManagement] CHECK CONSTRAINT [Comprehensive_SiteVisaManagement_Sys_User]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_SiteVisaManagement] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_SiteVisaManagement_Base_Project] FOREIGN KEY([ProjectId])
|
||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_SiteVisaManagement] CHECK CONSTRAINT [FK_Comprehensive_SiteVisaManagement_Base_Project]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_SiteVisaManagement] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_SiteVisaManagement_Base_Unit] FOREIGN KEY([UnitId])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_SiteVisaManagement] CHECK CONSTRAINT [FK_Comprehensive_SiteVisaManagement_Base_Unit]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_SiteVisaManagement] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_SiteVisaManagement_Base_CNProfessional] FOREIGN KEY([CNProfessionalId])
|
||
REFERENCES [dbo].[Base_CNProfessional] ([CNProfessionalId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_SiteVisaManagement] CHECK CONSTRAINT [FK_Comprehensive_SiteVisaManagement_Base_CNProfessional]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_SiteVisaManagement] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_SiteVisaManagement_WBS_UnitWork] FOREIGN KEY([UnitWorkId])
|
||
REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_SiteVisaManagement] CHECK CONSTRAINT [FK_Comprehensive_SiteVisaManagement_WBS_UnitWork]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_SpecialEquipment] WITH CHECK ADD CONSTRAINT [Comprehensive_SpecialEquipment_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_SpecialEquipment] CHECK CONSTRAINT [Comprehensive_SpecialEquipment_Sys_User]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_SpecialEquipment] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_SpecialEquipment_Base_Equipment] FOREIGN KEY([EquipmentId])
|
||
REFERENCES [dbo].[Base_Equipment] ([EquipmentId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_SpecialEquipment] CHECK CONSTRAINT [FK_Comprehensive_SpecialEquipment_Base_Equipment]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_SpecialEquipment] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_SpecialEquipment_Base_Project] FOREIGN KEY([ProjectId])
|
||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_SpecialEquipment] CHECK CONSTRAINT [FK_Comprehensive_SpecialEquipment_Base_Project]
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_SpecialEquipment] WITH CHECK ADD CONSTRAINT [FK_Comprehensive_SpecialEquipment_Base_Unit] FOREIGN KEY([UnitId])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
ALTER TABLE [dbo].[Comprehensive_SpecialEquipment] CHECK CONSTRAINT [FK_Comprehensive_SpecialEquipment_Base_Unit]
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_GeneralPlanApproval', @level2type=N'COLUMN',@level2name=N'GeneralPlanApprovalId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_GeneralPlanApproval', @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'Comprehensive_GeneralPlanApproval', @level2type=N'COLUMN',@level2name=N'UnitId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专业id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_GeneralPlanApproval', @level2type=N'COLUMN',@level2name=N'CNProfessionalId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'方案编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_GeneralPlanApproval', @level2type=N'COLUMN',@level2name=N'PlanCode'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'方案名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_GeneralPlanApproval', @level2type=N'COLUMN',@level2name=N'PlanName'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审批日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_GeneralPlanApproval', @level2type=N'COLUMN',@level2name=N'ApprovalDate'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审核人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_GeneralPlanApproval', @level2type=N'COLUMN',@level2name=N'AuditMan'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'批准人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_GeneralPlanApproval', @level2type=N'COLUMN',@level2name=N'ApprovalMan'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'方案实施偏差' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_GeneralPlanApproval', @level2type=N'COLUMN',@level2name=N'ImplementationDeviation'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_GeneralPlanApproval', @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'Comprehensive_GeneralPlanApproval'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_GeneralPlanApprovalItem', @level2type=N'COLUMN',@level2name=N'GeneralPlanApprovalItemId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'一般方案Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_GeneralPlanApprovalItem', @level2type=N'COLUMN',@level2name=N'GeneralPlanApprovalId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_GeneralPlanApprovalItem', @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'Comprehensive_GeneralPlanApprovalItem', @level2type=N'COLUMN',@level2name=N'Counts'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'提交时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_GeneralPlanApprovalItem', @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'Comprehensive_GeneralPlanApprovalItem', @level2type=N'COLUMN',@level2name=N'ReturnDate'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'修改内容' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_GeneralPlanApprovalItem', @level2type=N'COLUMN',@level2name=N'ModifyContents'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'一般方案过程描述表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_GeneralPlanApprovalItem'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionMachine', @level2type=N'COLUMN',@level2name=N'InspectionMachineId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionMachine', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单位Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionMachine', @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'Comprehensive_InspectionMachine', @level2type=N'COLUMN',@level2name=N'InspectionMachineCode'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionMachine', @level2type=N'COLUMN',@level2name=N'InspectionMachineName'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'规格型号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionMachine', @level2type=N'COLUMN',@level2name=N'SpecificationModel'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'下次检验日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionMachine', @level2type=N'COLUMN',@level2name=N'NextTestDate'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'检验周期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionMachine', @level2type=N'COLUMN',@level2name=N'TestCycle'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否在校验期内' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionMachine', @level2type=N'COLUMN',@level2name=N'IsVerification'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'校验日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionMachine', @level2type=N'COLUMN',@level2name=N'InspectionDate'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionMachine', @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'Comprehensive_InspectionMachine', @level2type=N'COLUMN',@level2name=N'LeaveDate'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'台数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionMachine', @level2type=N'COLUMN',@level2name=N'UnitsCount'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'机具报验表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionMachine'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'人员' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionPersonSteel', @level2type=N'COLUMN',@level2name=N'InspectionPersonId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'焊接方法' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionPersonSteel', @level2type=N'COLUMN',@level2name=N'SteelId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'焊工资质表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_InspectionPersonSteel'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_MajorPlanApproval', @level2type=N'COLUMN',@level2name=N'MajorPlanApprovalId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_MajorPlanApproval', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单位Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_MajorPlanApproval', @level2type=N'COLUMN',@level2name=N'UnitId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专业Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_MajorPlanApproval', @level2type=N'COLUMN',@level2name=N'CNProfessionalId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_MajorPlanApproval', @level2type=N'COLUMN',@level2name=N'PlanCode'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'方案名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_MajorPlanApproval', @level2type=N'COLUMN',@level2name=N'PlanName'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'评审人员' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_MajorPlanApproval', @level2type=N'COLUMN',@level2name=N'ReviewMan'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审批日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_MajorPlanApproval', @level2type=N'COLUMN',@level2name=N'ApprovalDate'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审核人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_MajorPlanApproval', @level2type=N'COLUMN',@level2name=N'AuditMan'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'批准人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_MajorPlanApproval', @level2type=N'COLUMN',@level2name=N'ApprovalMan'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'方案实施偏差' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_MajorPlanApproval', @level2type=N'COLUMN',@level2name=N'ImplementationDeviation'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_MajorPlanApproval', @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'Comprehensive_MajorPlanApproval'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_MajorPlanApprovalItem', @level2type=N'COLUMN',@level2name=N'MajorPlanApprovalItemId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'重大施工方案审批Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_MajorPlanApprovalItem', @level2type=N'COLUMN',@level2name=N'MajorPlanApprovalId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单位Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_MajorPlanApprovalItem', @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'Comprehensive_MajorPlanApprovalItem', @level2type=N'COLUMN',@level2name=N'Counts'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'提交时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_MajorPlanApprovalItem', @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'Comprehensive_MajorPlanApprovalItem', @level2type=N'COLUMN',@level2name=N'ReturnDate'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'修改内容' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_MajorPlanApprovalItem', @level2type=N'COLUMN',@level2name=N'ModifyContents'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'重大施工方案审批过程描述' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_MajorPlanApprovalItem'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_NCRManagement', @level2type=N'COLUMN',@level2name=N'NCRManagementId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_NCRManagement', @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'Comprehensive_NCRManagement', @level2type=N'COLUMN',@level2name=N'SendUnit'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专业id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_NCRManagement', @level2type=N'COLUMN',@level2name=N'CNProfessionalId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'NCR单号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_NCRManagement', @level2type=N'COLUMN',@level2name=N'NCRCode'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主要内容' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_NCRManagement', @level2type=N'COLUMN',@level2name=N'Contents'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'下发日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_NCRManagement', @level2type=N'COLUMN',@level2name=N'IssuedDate'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'接收单位(可多选)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_NCRManagement', @level2type=N'COLUMN',@level2name=N'ReceiveUnit'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'要求封闭日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_NCRManagement', @level2type=N'COLUMN',@level2name=N'ClosedDate'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'完成日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_NCRManagement', @level2type=N'COLUMN',@level2name=N'CompleteDate'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'责任人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_NCRManagement', @level2type=N'COLUMN',@level2name=N'ResponsibleMan'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_NCRManagement', @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'Comprehensive_NCRManagement', @level2type=N'COLUMN',@level2name=N'UnitWorkId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'NCR管理表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_NCRManagement'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'压力管道管理主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_PressurePipe', @level2type=N'COLUMN',@level2name=N'PressurePipeId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_PressurePipe', @level2type=N'COLUMN',@level2name=N'Projctid'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'所属单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_PressurePipe', @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'Comprehensive_PressurePipe', @level2type=N'COLUMN',@level2name=N'EstimateNumber'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'实际压力管道条数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_PressurePipe', @level2type=N'COLUMN',@level2name=N'ActualNumber'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试压包数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_PressurePipe', @level2type=N'COLUMN',@level2name=N'PackageNumber'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'已完成试压包数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_PressurePipe', @level2type=N'COLUMN',@level2name=N'CompletePackageNumber'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'已完成试压压力管道条数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_PressurePipe', @level2type=N'COLUMN',@level2name=N'PressurePipeNumber'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'已出具监检报告条数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_PressurePipe', @level2type=N'COLUMN',@level2name=N'IssuedReportNumber'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'压力管道管理' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_PressurePipe'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_QualityAccident', @level2type=N'COLUMN',@level2name=N'QualityAccidentId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_QualityAccident', @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'Comprehensive_QualityAccident', @level2type=N'COLUMN',@level2name=N'time'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'地点' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_QualityAccident', @level2type=N'COLUMN',@level2name=N'Place'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'直接经济损失(估计)原因及性质' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_QualityAccident', @level2type=N'COLUMN',@level2name=N'DirectEconomicLoss'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'采取补救措施 ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_QualityAccident', @level2type=N'COLUMN',@level2name=N'RemedialMeasures'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'事故责任认定' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_QualityAccident', @level2type=N'COLUMN',@level2name=N'ResponsibilityDetermination'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'最终整改措施' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_QualityAccident', @level2type=N'COLUMN',@level2name=N'CorrectiveActions'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_QualityAccident', @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'Comprehensive_QualityAccident', @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'Comprehensive_QualityAccident'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_SiteVisaManagement', @level2type=N'COLUMN',@level2name=N'VisaId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目id ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_SiteVisaManagement', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'签证单位Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_SiteVisaManagement', @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'Comprehensive_SiteVisaManagement', @level2type=N'COLUMN',@level2name=N'VisaCode'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专业Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_SiteVisaManagement', @level2type=N'COLUMN',@level2name=N'CNProfessionalId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'签证原因' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_SiteVisaManagement', @level2type=N'COLUMN',@level2name=N'VisaReson'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_SiteVisaManagement', @level2type=N'COLUMN',@level2name=N'VisaDate'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'估算费用' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_SiteVisaManagement', @level2type=N'COLUMN',@level2name=N'EstimatedCost'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'确认人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_SiteVisaManagement', @level2type=N'COLUMN',@level2name=N'Confirmation'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_SiteVisaManagement', @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'Comprehensive_SiteVisaManagement'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'特种设备管理主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_SpecialEquipment', @level2type=N'COLUMN',@level2name=N'SpecialEquipmentId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_SpecialEquipment', @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'Comprehensive_SpecialEquipment', @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'Comprehensive_SpecialEquipment', @level2type=N'COLUMN',@level2name=N'EquipmentId'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_SpecialEquipment', @level2type=N'COLUMN',@level2name=N'SunNumber'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'告知数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_SpecialEquipment', @level2type=N'COLUMN',@level2name=N'InformNumber'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'提交资料数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_SpecialEquipment', @level2type=N'COLUMN',@level2name=N'SubmitDataNumber'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'监检报告数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_SpecialEquipment', @level2type=N'COLUMN',@level2name=N'MonitoringReportNumber'
|
||
GO
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'特种设备管理' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Comprehensive_SpecialEquipment'
|
||
GO
|
||
|
||
|
||
--存储过程
|
||
--特种设备存储过程
|
||
CREATE VIEW [dbo].[View_Comprehensive_SpecialEquipment]
|
||
AS
|
||
SELECT Equipment.SpecialEquipmentId
|
||
,Equipment.ProjectId
|
||
,Equipment.UnitId
|
||
,Equipment.EquipmentId
|
||
,Equipment.SunNumber
|
||
,Equipment.InformNumber
|
||
,Equipment.SubmitDataNumber
|
||
,Equipment.MonitoringReportNumber
|
||
,ment.EquipmentName
|
||
,unit.UnitName
|
||
FROM dbo.Comprehensive_SpecialEquipment AS Equipment
|
||
LEFT JOIN dbo.Base_Equipment AS ment ON ment.EquipmentId =Equipment.EquipmentId
|
||
LEFT JOIN dbo.Base_Unit AS unit ON unit.UnitId =Equipment.UnitId
|
||
|
||
|
||
GO
|
||
|
||
--存储过程
|
||
--设备材料报验视图
|
||
CREATE VIEW [dbo].[View_Comprehensive_InspectionEquipment]
|
||
AS
|
||
--设备材料报验
|
||
SELECT Equipment.InspectionCode as FileCode
|
||
,Equipment.ProjectId
|
||
,Equipment.UnitId
|
||
,cn.CNProfessionalCode
|
||
,Equipment.InspectionName as [FileName]
|
||
,Equipment.InspectionDate as CompileDate
|
||
,unit.UnitName
|
||
,AttachUrl
|
||
FROM dbo.Comprehensive_InspectionEquipment AS Equipment
|
||
LEFT JOIN dbo.Base_Unit AS unit ON unit.UnitId =Equipment.UnitId
|
||
left join dbo.Base_CNProfessional as cn on cn.CNProfessionalId=Equipment.CNProfessionalId
|
||
|
||
|
||
|
||
GO
|
||
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('5DFD5DF9-6356-460C-9DA8-F8AFCEA2F997','国外项目','',160,'0','Menu_CQMS',0,0,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('2571D7F5-4DA4-46E1-8C7F-B926302A52BF','ITP清单','CQMS/Foreign/ITPListProject.aspx',10,'5DFD5DF9-6356-460C-9DA8-F8AFCEA2F997','Menu_CQMS',0,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('941BC3CE-EC3E-4D59-A94B-E4E8DC43C1B7','2571D7F5-4DA4-46E1-8C7F-B926302A52BF','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('7C743A7A-F7EF-47DD-BC37-6FC5314FE055','2571D7F5-4DA4-46E1-8C7F-B926302A52BF','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('10FACC92-2E5E-4DB2-87C3-4FF5612D7DB7','2571D7F5-4DA4-46E1-8C7F-B926302A52BF','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('34A9BE92-0F26-4D30-A585-D0130FDF8691','2571D7F5-4DA4-46E1-8C7F-B926302A52BF','保存',4)
|
||
GO
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('64BC5460-E2CE-4C58-82A6-843A512573F4','控制点表格清单','CQMS/Foreign/ControlPointList.aspx',20,'5DFD5DF9-6356-460C-9DA8-F8AFCEA2F997','Menu_CQMS',0,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('199CA1A7-390E-43F3-9D08-90EB6A94E2B5','64BC5460-E2CE-4C58-82A6-843A512573F4','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('7E045F54-8257-4F10-B198-6FDB41DBF632','64BC5460-E2CE-4C58-82A6-843A512573F4','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('4F881B92-CBAE-439A-86D0-1F115A9E6E3B','64BC5460-E2CE-4C58-82A6-843A512573F4','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('91BE4094-17DB-4E6F-8632-AFA859A88DD3','64BC5460-E2CE-4C58-82A6-843A512573F4','保存',4)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('2CF82309-8414-4425-B6A9-5BCEA65B6856','64BC5460-E2CE-4C58-82A6-843A512573F4','提交',5)
|
||
GO
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('04F678E5-983A-4000-A480-7D8D9E3C13C5','控制点检查检测','CQMS/Foreign/ControlPointCheck.aspx',30,'5DFD5DF9-6356-460C-9DA8-F8AFCEA2F997','Menu_CQMS',0,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('7AD7CE1D-82AE-4F01-950C-63D909B88F6A','04F678E5-983A-4000-A480-7D8D9E3C13C5','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('264F3863-8523-46ED-86AF-6E41F9849872','04F678E5-983A-4000-A480-7D8D9E3C13C5','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('FC5E8859-D76A-4FD7-8F77-61879B451956','04F678E5-983A-4000-A480-7D8D9E3C13C5','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('D8DFE302-E721-4278-8DA9-F2FC04B80D98','04F678E5-983A-4000-A480-7D8D9E3C13C5','保存',4)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('CAF986EF-9645-4CF0-9F7A-6593F0A68219','04F678E5-983A-4000-A480-7D8D9E3C13C5','提交',5)
|
||
GO
|
||
|
||
|
||
CREATE TABLE [dbo].[CQMS_Foreign_ITPList](
|
||
[ITPListId] [nvarchar](50) NOT NULL,
|
||
[ITPName] [nvarchar](200) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
CONSTRAINT [PK_CQMS_Foreign_ITPList] PRIMARY KEY CLUSTERED
|
||
(
|
||
[ITPListId] 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].[CQMS_Foreign_ITPList] WITH CHECK ADD CONSTRAINT [FK_CQMS_Foreign_ITPList_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[CQMS_Foreign_ITPList] CHECK CONSTRAINT [FK_CQMS_Foreign_ITPList_Sys_User]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CQMS_Foreign_ITPList', @level2type=N'COLUMN',@level2name=N'ITPListId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CQMS_Foreign_ITPList', @level2type=N'COLUMN',@level2name=N'ITPName'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CQMS_Foreign_ITPList', @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'CQMS_Foreign_ITPList', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||
GO
|
||
|
||
CREATE TABLE [dbo].[WBS_ForeignCNProfessional](
|
||
[CNProfessionalId] [nvarchar](50) NOT NULL,
|
||
[CNProfessionalCode] [nvarchar](50) NULL,
|
||
[ProfessionalName] [nvarchar](50) NULL,
|
||
[SortIndex] [int] NULL,
|
||
CONSTRAINT [PK_WBS_ForeignCNProfessional] PRIMARY KEY CLUSTERED
|
||
(
|
||
[CNProfessionalId] 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
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'国外专业表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_ForeignCNProfessional'
|
||
GO
|
||
|
||
|
||
CREATE TABLE [dbo].[WBS_ForeignBreakdown](
|
||
[BreakdownId] [nvarchar](50) NOT NULL,
|
||
[CNProfessionalId] [nvarchar](50) NULL,
|
||
[BreakdownCode] [nvarchar](50) NULL,
|
||
[BreakdownName] [nvarchar](100) NULL,
|
||
[BreakdownDef] [nvarchar](200) NULL,
|
||
[Remark] [nvarchar](200) NULL,
|
||
[ModelURL] [nvarchar](2000) NULL,
|
||
[SortIndex] [int] NULL,
|
||
CONSTRAINT [PK_WBS_ForeignBreakdown] PRIMARY KEY CLUSTERED
|
||
(
|
||
[BreakdownId] 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].[WBS_ForeignBreakdown] WITH CHECK ADD CONSTRAINT [FK_WBS_ForeignBreakdown_WBS_ForeignCNProfessional] FOREIGN KEY([CNProfessionalId])
|
||
REFERENCES [dbo].[WBS_ForeignCNProfessional] ([CNProfessionalId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[WBS_ForeignBreakdown] CHECK CONSTRAINT [FK_WBS_ForeignBreakdown_WBS_ForeignCNProfessional]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_ForeignBreakdown', @level2type=N'COLUMN',@level2name=N'BreakdownId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专业' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_ForeignBreakdown', @level2type=N'COLUMN',@level2name=N'CNProfessionalId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_ForeignBreakdown', @level2type=N'COLUMN',@level2name=N'BreakdownCode'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'控制点内容' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_ForeignBreakdown', @level2type=N'COLUMN',@level2name=N'BreakdownName'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'描述' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_ForeignBreakdown', @level2type=N'COLUMN',@level2name=N'BreakdownDef'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_ForeignBreakdown', @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'WBS_ForeignBreakdown', @level2type=N'COLUMN',@level2name=N'ModelURL'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'国外控制点初始化表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_ForeignBreakdown'
|
||
GO
|
||
|
||
|
||
CREATE TABLE [dbo].[WBS_ForeignBreakdownProject](
|
||
[BreakdownProjectId] [nvarchar](50) NOT NULL,
|
||
[ProjectId] [nvarchar](50) NULL,
|
||
[UnitWorkId] [nvarchar](50) NULL,
|
||
[CNProfessionalId] [nvarchar](50) NULL,
|
||
[BreakdownCode] [nvarchar](50) NULL,
|
||
[BreakdownName] [nvarchar](100) NULL,
|
||
[BreakdownDef] [nvarchar](200) NULL,
|
||
[Remark] [nvarchar](200) NULL,
|
||
[ModelURL] [nvarchar](2000) NULL,
|
||
[AttachUrl] [nvarchar](2000) NULL,
|
||
[SortIndex] [int] NULL,
|
||
[IsSelected] [bit] NULL,
|
||
CONSTRAINT [PK_WBS_ForeignBreakdownProject] PRIMARY KEY CLUSTERED
|
||
(
|
||
[BreakdownProjectId] 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].[WBS_ForeignBreakdownProject] WITH CHECK ADD CONSTRAINT [FK_WBS_ForeignBreakdownProject_Base_Project] FOREIGN KEY([ProjectId])
|
||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[WBS_ForeignBreakdownProject] CHECK CONSTRAINT [FK_WBS_ForeignBreakdownProject_Base_Project]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[WBS_ForeignBreakdownProject] WITH CHECK ADD CONSTRAINT [FK_WBS_ForeignBreakdownProject_WBS_ForeignCNProfessional] FOREIGN KEY([CNProfessionalId])
|
||
REFERENCES [dbo].[WBS_ForeignCNProfessional] ([CNProfessionalId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[WBS_ForeignBreakdownProject] CHECK CONSTRAINT [FK_WBS_ForeignBreakdownProject_WBS_ForeignCNProfessional]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[WBS_ForeignBreakdownProject] WITH CHECK ADD CONSTRAINT [FK_WBS_ForeignBreakdownProject_WBS_UnitWork] FOREIGN KEY([UnitWorkId])
|
||
REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[WBS_ForeignBreakdownProject] CHECK CONSTRAINT [FK_WBS_ForeignBreakdownProject_WBS_UnitWork]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_ForeignBreakdownProject', @level2type=N'COLUMN',@level2name=N'BreakdownProjectId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_ForeignBreakdownProject', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装置Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_ForeignBreakdownProject', @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'WBS_ForeignBreakdownProject', @level2type=N'COLUMN',@level2name=N'CNProfessionalId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_ForeignBreakdownProject', @level2type=N'COLUMN',@level2name=N'BreakdownCode'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'控制点内容' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_ForeignBreakdownProject', @level2type=N'COLUMN',@level2name=N'BreakdownName'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'描述' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_ForeignBreakdownProject', @level2type=N'COLUMN',@level2name=N'BreakdownDef'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_ForeignBreakdownProject', @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'WBS_ForeignBreakdownProject', @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'WBS_ForeignBreakdownProject'
|
||
GO
|
||
|
||
CREATE TABLE [dbo].[CQMS_Foreign_ControlPointCheck](
|
||
[ControlPointCheckId] [nvarchar](50) NOT NULL,
|
||
[ProjectId] [nvarchar](50) NULL,
|
||
[UnitId] [nvarchar](50) NULL,
|
||
[CNProfessionalId] [nvarchar](50) NULL,
|
||
[InspectionCode] [nvarchar](50) NULL,
|
||
[UnitWorkId] [nvarchar](50) NULL,
|
||
[Branch] [nvarchar](50) NULL,
|
||
[ControlPointType] [nvarchar](50) NULL,
|
||
[AcceptanceSite] [nvarchar](50) NULL,
|
||
[IsOnceQualified] [bit] NULL,
|
||
[InspectionDate] [datetime] NULL,
|
||
[AttachUrl] [nvarchar](2000) NULL,
|
||
[CheckDate] [datetime] NULL,
|
||
[CheckMan] [nvarchar](50) NULL,
|
||
[UnqualifiedReason] [nvarchar](1000) NULL,
|
||
[NoticeCode] [nvarchar](50) NULL,
|
||
[AcceptanceCheckMan] [nvarchar](50) NULL,
|
||
[ParentDivisionProjectId] [nvarchar](50) NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
CONSTRAINT [PK_Foreign_ControlPointCheck] PRIMARY KEY CLUSTERED
|
||
(
|
||
[ControlPointCheckId] 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].[CQMS_Foreign_ControlPointCheck] WITH CHECK ADD CONSTRAINT [FK_CQMS_Foreign_ControlPointCheck_Base_Project] FOREIGN KEY([ProjectId])
|
||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[CQMS_Foreign_ControlPointCheck] CHECK CONSTRAINT [FK_CQMS_Foreign_ControlPointCheck_Base_Project]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[CQMS_Foreign_ControlPointCheck] WITH CHECK ADD CONSTRAINT [FK_CQMS_Foreign_ControlPointCheck_Base_Unit] FOREIGN KEY([UnitId])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[CQMS_Foreign_ControlPointCheck] CHECK CONSTRAINT [FK_CQMS_Foreign_ControlPointCheck_Base_Unit]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[CQMS_Foreign_ControlPointCheck] WITH CHECK ADD CONSTRAINT [FK_CQMS_Foreign_ControlPointCheck_WBS_ForeignCNProfessional] FOREIGN KEY([CNProfessionalId])
|
||
REFERENCES [dbo].[WBS_ForeignCNProfessional] ([CNProfessionalId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[CQMS_Foreign_ControlPointCheck] CHECK CONSTRAINT [FK_CQMS_Foreign_ControlPointCheck_WBS_ForeignCNProfessional]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[CQMS_Foreign_ControlPointCheck] WITH CHECK ADD CONSTRAINT [FK_CQMS_Foreign_ControlPointCheck_WBS_UnitWork] FOREIGN KEY([UnitWorkId])
|
||
REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[CQMS_Foreign_ControlPointCheck] CHECK CONSTRAINT [FK_CQMS_Foreign_ControlPointCheck_WBS_UnitWork]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CQMS_Foreign_ControlPointCheck', @level2type=N'COLUMN',@level2name=N'ControlPointCheckId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'控制点检查检测表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CQMS_Foreign_ControlPointCheck'
|
||
GO
|
||
|
||
|
||
CREATE TABLE [dbo].[WBS_Division](
|
||
[DivisionId] [nvarchar](50) NOT NULL,
|
||
[DivisionCode] [nvarchar](50) NULL,
|
||
[DivisionName] [nvarchar](100) NULL,
|
||
[SortIndex] [int] NULL,
|
||
[SuperDivisionId] [nvarchar](50) NULL,
|
||
[CNProfessionalId] [nvarchar](50) NULL,
|
||
CONSTRAINT [PK_WBS_Division] PRIMARY KEY CLUSTERED
|
||
(
|
||
[DivisionId] 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].[WBS_Division] WITH CHECK ADD CONSTRAINT [FK_WBS_Division_Base_CNProfessional] FOREIGN KEY([CNProfessionalId])
|
||
REFERENCES [dbo].[Base_CNProfessional] ([CNProfessionalId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[WBS_Division] CHECK CONSTRAINT [FK_WBS_Division_Base_CNProfessional]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_Division', @level2type=N'COLUMN',@level2name=N'DivisionId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'分部/子分部编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_Division', @level2type=N'COLUMN',@level2name=N'DivisionCode'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'分部/子分部名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_Division', @level2type=N'COLUMN',@level2name=N'DivisionName'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'排序' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_Division', @level2type=N'COLUMN',@level2name=N'SortIndex'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'对应父级分部Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_Division', @level2type=N'COLUMN',@level2name=N'SuperDivisionId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'所属专业' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_Division', @level2type=N'COLUMN',@level2name=N'CNProfessionalId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'WBS分部及子分部初始化表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_Division'
|
||
GO
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[WBS_DivisionProject](
|
||
[DivisionProjectId] [nvarchar](50) NOT NULL,
|
||
[ProjectId] [nvarchar](50) NULL,
|
||
[DivisionCode] [nvarchar](50) NULL,
|
||
[DivisionName] [nvarchar](100) NULL,
|
||
[SortIndex] [int] NULL,
|
||
[SuperDivisionId] [nvarchar](50) NULL,
|
||
[CNProfessionalId] [nvarchar](50) NULL,
|
||
[IsSelected] [bit] NULL,
|
||
[UnitWorkId] [nvarchar](50) NULL,
|
||
[OldDivisionId] [nvarchar](50) NULL,
|
||
CONSTRAINT [PK_WBS_DivisionProject] PRIMARY KEY CLUSTERED
|
||
(
|
||
[DivisionProjectId] 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].[WBS_DivisionProject] WITH CHECK ADD CONSTRAINT [FK_WBS_DivisionProject_Base_Project] FOREIGN KEY([ProjectId])
|
||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[WBS_DivisionProject] CHECK CONSTRAINT [FK_WBS_DivisionProject_Base_Project]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_DivisionProject', @level2type=N'COLUMN',@level2name=N'DivisionProjectId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_DivisionProject', @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'WBS_DivisionProject', @level2type=N'COLUMN',@level2name=N'DivisionCode'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'分部/子分部名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_DivisionProject', @level2type=N'COLUMN',@level2name=N'DivisionName'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'排序' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_DivisionProject', @level2type=N'COLUMN',@level2name=N'SortIndex'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'对应父级分部Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_DivisionProject', @level2type=N'COLUMN',@level2name=N'SuperDivisionId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'所属专业' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_DivisionProject', @level2type=N'COLUMN',@level2name=N'CNProfessionalId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否选择(true-选择,false-未选择)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_DivisionProject', @level2type=N'COLUMN',@level2name=N'IsSelected'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目WBS分部及子分部表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_DivisionProject'
|
||
GO
|
||
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[WBS_Breakdown](
|
||
[BreakdownId] [nvarchar](50) NOT NULL,
|
||
[BreakdownCode] [nvarchar](50) NULL,
|
||
[BreakdownName] [nvarchar](100) NULL,
|
||
[DivisionId] [nvarchar](50) NULL,
|
||
[Basis] [nvarchar](500) NULL,
|
||
[CheckPoints] [nvarchar](500) NULL,
|
||
[RecordAndCode] [nvarchar](500) NULL,
|
||
[Class] [nvarchar](10) NULL,
|
||
[SortIndex] [int] NULL,
|
||
[Remark] [nvarchar](200) NULL,
|
||
[ModelURL] [nvarchar](2000) NULL,
|
||
[IsAcceptance] [bit] NULL,
|
||
[IsYellow] [bit] NULL,
|
||
[FenBao] [nvarchar](50) NULL,
|
||
[WuHuan] [nvarchar](50) NULL,
|
||
[JianLi] [nvarchar](50) NULL,
|
||
[YeZhu] [nvarchar](50) NULL,
|
||
CONSTRAINT [PK_WBS_Breakdown] PRIMARY KEY CLUSTERED
|
||
(
|
||
[BreakdownId] 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
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_Breakdown', @level2type=N'COLUMN',@level2name=N'BreakdownId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'分项编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_Breakdown', @level2type=N'COLUMN',@level2name=N'BreakdownCode'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'分项名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_Breakdown', @level2type=N'COLUMN',@level2name=N'BreakdownName'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'对应的子分部Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_Breakdown', @level2type=N'COLUMN',@level2name=N'DivisionId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'执行依据或规范' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_Breakdown', @level2type=N'COLUMN',@level2name=N'Basis'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'质量检查要点' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_Breakdown', @level2type=N'COLUMN',@level2name=N'CheckPoints'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'质量记录及格式文本号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_Breakdown', @level2type=N'COLUMN',@level2name=N'RecordAndCode'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'控制等级' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_Breakdown', @level2type=N'COLUMN',@level2name=N'Class'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'排序' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_Breakdown', @level2type=N'COLUMN',@level2name=N'SortIndex'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_Breakdown', @level2type=N'COLUMN',@level2name=N'Remark'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'WBS分项初始化表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_Breakdown'
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[WBS_Breakdown] WITH CHECK ADD CONSTRAINT [FK_WBS_Breakdown_WBS_Division] FOREIGN KEY([DivisionId])
|
||
REFERENCES [dbo].[WBS_Division] ([DivisionId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[WBS_Breakdown] CHECK CONSTRAINT [FK_WBS_Breakdown_WBS_Division]
|
||
GO
|
||
|
||
|
||
|
||
|
||
CREATE TABLE [dbo].[WBS_BreakdownProject](
|
||
[BreakdownProjectId] [nvarchar](50) NOT NULL,
|
||
[ProjectId] [nvarchar](50) NULL,
|
||
[BreakdownCode] [nvarchar](50) NULL,
|
||
[BreakdownName] [nvarchar](100) NULL,
|
||
[DivisionProjectId] [nvarchar](50) NULL,
|
||
[Basis] [nvarchar](500) NULL,
|
||
[CheckPoints] [nvarchar](500) NULL,
|
||
[RecordAndCode] [nvarchar](500) NULL,
|
||
[Class] [nvarchar](10) NULL,
|
||
[SortIndex] [int] NULL,
|
||
[Remark] [nvarchar](200) NULL,
|
||
[AttachUrl] [nvarchar](2000) NULL,
|
||
[IsSelected] [bit] NULL,
|
||
[ModelURL] [nvarchar](2000) NULL,
|
||
[UnitWorkId] [nvarchar](50) NULL,
|
||
[IsAcceptance] [bit] NULL,
|
||
[CompileMan] [nvarchar](50) NULL,
|
||
[CompileDate] [datetime] NULL,
|
||
[IsYellow] [bit] NULL,
|
||
[FenBao] [nvarchar](50) NULL,
|
||
[WuHuan] [nvarchar](50) NULL,
|
||
[JianLi] [nvarchar](50) NULL,
|
||
[YeZhu] [nvarchar](50) NULL,
|
||
[SourceBreakdownId] [nvarchar](50) NULL,
|
||
CONSTRAINT [PK_WBS_BreakdownProject] PRIMARY KEY CLUSTERED
|
||
(
|
||
[BreakdownProjectId] 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].[WBS_BreakdownProject] WITH CHECK ADD CONSTRAINT [FK_WBS_BreakdownProject_Base_Project] FOREIGN KEY([ProjectId])
|
||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[WBS_BreakdownProject] CHECK CONSTRAINT [FK_WBS_BreakdownProject_Base_Project]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[WBS_BreakdownProject] WITH CHECK ADD CONSTRAINT [FK_WBS_BreakdownProject_Sys_User] FOREIGN KEY([CompileMan])
|
||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[WBS_BreakdownProject] CHECK CONSTRAINT [FK_WBS_BreakdownProject_Sys_User]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[WBS_BreakdownProject] WITH CHECK ADD CONSTRAINT [FK_WBS_BreakdownProject_WBS_DivisionProject] FOREIGN KEY([DivisionProjectId])
|
||
REFERENCES [dbo].[WBS_DivisionProject] ([DivisionProjectId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[WBS_BreakdownProject] CHECK CONSTRAINT [FK_WBS_BreakdownProject_WBS_DivisionProject]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_BreakdownProject', @level2type=N'COLUMN',@level2name=N'BreakdownProjectId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_BreakdownProject', @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'WBS_BreakdownProject', @level2type=N'COLUMN',@level2name=N'BreakdownCode'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'分项名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_BreakdownProject', @level2type=N'COLUMN',@level2name=N'BreakdownName'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'对应的子分部Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_BreakdownProject', @level2type=N'COLUMN',@level2name=N'DivisionProjectId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'执行依据或规范' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_BreakdownProject', @level2type=N'COLUMN',@level2name=N'Basis'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'质量检查要点' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_BreakdownProject', @level2type=N'COLUMN',@level2name=N'CheckPoints'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'质量记录及格式文本号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_BreakdownProject', @level2type=N'COLUMN',@level2name=N'RecordAndCode'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'控制等级' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_BreakdownProject', @level2type=N'COLUMN',@level2name=N'Class'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'排序' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_BreakdownProject', @level2type=N'COLUMN',@level2name=N'SortIndex'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_BreakdownProject', @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'WBS_BreakdownProject', @level2type=N'COLUMN',@level2name=N'AttachUrl'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否选择(true-选择,false-未选择)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_BreakdownProject', @level2type=N'COLUMN',@level2name=N'IsSelected'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目WBS分项表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_BreakdownProject'
|
||
GO
|
||
|
||
|
||
|
||
CREATE VIEW [dbo].[View_WBS]
|
||
/*WBS内容视图*/
|
||
AS
|
||
select distinct top 1000 s.UnitWorkName, s.ProfessionalName,DivisionName3,DivisionName2,DivisionName1,s.ProjectId,s.BreakdownCode,s.SortIndex,
|
||
s.BreakdownName,s.Basis,s.CheckPoints,s.RecordAndCode,s.Class,s.Remark,cn.SortIndex as SortIndex1,dp.SortIndex as SortIndex2 from
|
||
(SELECT top 1000
|
||
uw.UnitWorkName
|
||
,case when cn1.ProfessionalName is not NULL then cn1.ProfessionalName
|
||
when cn2.ProfessionalName is not NULL then cn2.ProfessionalName
|
||
else cn3.ProfessionalName end as ProfessionalName
|
||
,case when dp1.CNProfessionalId is not NULL then dp1.DivisionName
|
||
when dp2.CNProfessionalId is not NULL then dp2.DivisionName
|
||
else dp3.DivisionName end as DivisionName3
|
||
,case when dp2.CNProfessionalId is not NULL then dp1.DivisionName else dp2.DivisionName end as DivisionName2
|
||
,case when dp1.CNProfessionalId is not NULL then null else dp1.DivisionName end as DivisionName1
|
||
,bp.ProjectId
|
||
,bp.BreakdownCode
|
||
,bp.SortIndex
|
||
,bp.BreakdownName
|
||
,bp.Basis
|
||
,bp.CheckPoints
|
||
,bp.RecordAndCode
|
||
,bp.Class
|
||
,bp.Remark
|
||
FROM dbo.WBS_BreakdownProject AS bp
|
||
LEFT JOIN dbo.WBS_DivisionProject AS dp1 ON dp1.DivisionProjectId =bp.DivisionProjectId
|
||
LEFT JOIN dbo.WBS_DivisionProject AS dp2 ON dp2.DivisionProjectId =dp1.SuperDivisionId
|
||
LEFT JOIN dbo.WBS_DivisionProject AS dp3 ON dp3.DivisionProjectId =dp2.SuperDivisionId
|
||
LEFT JOIN dbo.Base_CNProfessional AS cn1 on cn1.CNProfessionalId=dp1.CNProfessionalId
|
||
LEFT JOIN dbo.Base_CNProfessional AS cn2 on cn2.CNProfessionalId=dp2.CNProfessionalId
|
||
LEFT JOIN dbo.Base_CNProfessional AS cn3 on cn3.CNProfessionalId=dp3.CNProfessionalId
|
||
LEFT JOIN dbo.WBS_UnitWork AS uw on uw.UnitWorkId=bp.UnitWorkId
|
||
where bp.IsSelected=1
|
||
order by cn1.SortIndex,cn2.SortIndex,cn3.SortIndex) as s
|
||
LEFT JOIN dbo.Base_CNProfessional AS cn on cn.ProfessionalName=s.ProfessionalName
|
||
LEFT JOIN dbo.WBS_DivisionProject AS dp on dp.DivisionName=s.DivisionName3 and dp.CNProfessionalId is not null
|
||
--order by cn.SortIndex,dp.SortIndex,s.SortIndex
|
||
order by s.UnitWorkName,cn.SortIndex,dp.SortIndex,s.SortIndex
|
||
|
||
GO
|
||
|
||
CREATE VIEW [dbo].[View_WBS_BreakdownProject]
|
||
AS
|
||
SELECT BreakdownProject.BreakdownProjectId,
|
||
BreakdownProject.ProjectId,
|
||
BreakdownProject.BreakdownCode,
|
||
BreakdownProject.BreakdownName,
|
||
BreakdownProject.DivisionProjectId,
|
||
BreakdownProject.Basis,
|
||
BreakdownProject.CheckPoints,
|
||
BreakdownProject.RecordAndCode,
|
||
BreakdownProject.Class,
|
||
BreakdownProject.SortIndex,
|
||
BreakdownProject.Remark,
|
||
BreakdownProject.AttachUrl,
|
||
BreakdownProject.IsAcceptance,
|
||
BreakdownProject.FenBao,
|
||
BreakdownProject.WuHuan,
|
||
BreakdownProject.JianLi,
|
||
BreakdownProject.YeZhu,
|
||
BreakdownProject.IsSelected
|
||
FROM dbo.WBS_BreakdownProject AS BreakdownProject
|
||
where BreakdownProject.IsSelected=1
|
||
GO
|
||
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('3B322232-38A1-4291-9832-CD4A01C2A975','WBS数据','',20,'0','Menu_CQMS',0,0,1)
|
||
GO
|
||
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('5AA08233-9E04-4808-AC43-DD411C5F9D31','现场控制点裁剪','CQMS/WBS/ProjectControlPoint.aspx',20,'3B322232-38A1-4291-9832-CD4A01C2A975','Menu_CQMS',0,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('46F0018F-CFF7-4EB2-A87B-60C5F89D3E88','5AA08233-9E04-4808-AC43-DD411C5F9D31','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('5E3B1256-45D2-4636-B71A-B30F3637AB8E','5AA08233-9E04-4808-AC43-DD411C5F9D31','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('636AB551-CDBB-4B6F-84E6-2700FDCD4F53','5AA08233-9E04-4808-AC43-DD411C5F9D31','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('489772D2-8AE8-4C95-9A12-20BB44320D19','5AA08233-9E04-4808-AC43-DD411C5F9D31','保存',4)
|
||
GO
|
||
|
||
DELETE FROM Sys_ButtonToMenu WHERE MenuId='8IDKGJE2-09B1-4607-BC6D-865CE48F0002'
|
||
GO
|
||
DELETE FROM Sys_ButtonPower WHERE MenuId='8IDKGJE2-09B1-4607-BC6D-865CE48F0002'
|
||
GO
|
||
DELETE FROM Sys_Menu WHERE MenuId='8IDKGJE2-09B1-4607-BC6D-865CE48F0002'
|
||
GO
|
||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||
VALUES('8IDKGJE2-09B1-4607-BC6D-865CE48F0002','单位管理','SysManage/Unit.aspx',10,'C2297533-B7C0-441E-B29F-ADE87C6F8978','Menu_SysSet',1,1,1)
|
||
GO
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('31451999-CA49-469D-8E92-508FA7BC2A7E','8IDKGJE2-09B1-4607-BC6D-865CE48F0002','增加',1)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('854573A7-18BE-41CB-BFBD-16952826EF14','8IDKGJE2-09B1-4607-BC6D-865CE48F0002','修改',2)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('039D73FD-9BFD-49E3-AB36-1D635FD70AFD','8IDKGJE2-09B1-4607-BC6D-865CE48F0002','删除',3)
|
||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||
VALUES('E940FAB0-FA0C-447A-9C83-9F6082074274','8IDKGJE2-09B1-4607-BC6D-865CE48F0002','保存',4)
|
||
GO |