
---定制版根据菜单id进行删除
--隐藏奖励通知单菜单
update Sys_Menu set IsUsed = '0' where MenuId ='96F21A83-6871-4CC4-8901-1B99C376395C'
update Sys_Menu set IsUsed = '0' where MenuId ='4df1874e-a7dc-45a7-a8c5-9786fba76533'
go
--隐藏奖励统计菜单
update Sys_Menu set IsUsed = '0' where MenuId ='C13F1CE7-DAEF-4604-A13F-192621D28DF5';
update Sys_Menu set IsUsed = '0' where MenuId ='fd525016-dcc6-485b-8906-1d4eacaba757';
go
--隐藏处罚通知单菜单
update Sys_Menu set IsUsed = '0' where MenuId ='755F1C1D-2178-47D8-9F82-A501B53A2436' ;
update Sys_Menu set IsUsed = '0' where MenuId ='1d6522cd-ecbc-4bfe-a454-29de63e7e686' ;
go
--隐藏处罚统计菜单
update Sys_Menu set IsUsed = '0' where MenuId ='CCD0E55B-300A-454B-8559-155ADAD386AE' ;
update Sys_Menu set IsUsed = '0' where MenuId ='ab780f5e-61f2-499c-a3ea-73ce1f02c28e' ;
go
--隐藏违规人员记录菜单
update Sys_Menu set IsUsed = '0' where MenuId ='06958288-96F4-4291-909A-FFC2FC76814D' ;
update Sys_Menu set IsUsed = '0' where MenuId ='16e865eb-f4b7-4192-98d4-78a3e6bcaa45' ;
go
--隐藏评优评奖加分项菜单
update Sys_Menu set IsUsed = '0' where MenuId ='9682053F-597E-4E10-B130-93624541387A' ;
update Sys_Menu set IsUsed = '0' where MenuId ='89d19e9a-425d-48cf-994d-aca45c82e329' ;
go
--隐藏安全隐患报告数据菜单
update Sys_Menu set IsUsed = '0' where MenuId ='04B0774F-FEEF-421D-8964-D9CF6582AEAF' ;
update Sys_Menu set IsUsed = '0' where MenuId ='06ebd1b2-df89-449c-ab84-b727d7e2a2fc' ;
go

--隐藏获奖证书或奖杯、安全质量环保奖项菜单
update Sys_Menu set IsUsed = '0' where MenuId ='9A034CAD-C7D5-4DE4-9FF5-828D35FFEE28' ;
update Sys_Menu set IsUsed = '0' where MenuId ='2eb70310-16be-49a4-8d30-dde8288aeb43' ;
go







--这个菜单放到质量的人员报验下
IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = '67C53963-91E5-4892-8286-B646A6E339CC' and MenuType = 'Menu_CQMS')
BEGIN
INSERT INTO [dbo].[Sys_Menu] ( [MenuId], [MenuName], [Icon], [Url], [SortIndex], [SuperMenu], [MenuType], [IsOffice], [IsEnd], [IsUsed] )
VALUES
  ( N'67C53963-91E5-4892-8286-B646A6E339CC', N'质量人员报验(通用)', NULL, N'CQMS/Comprehensive/CqmsPerson.aspx', 25, N'4a0e62cb-ee50-4a14-80b7-377602e9902c', N'Menu_CQMS', '0', '1', '1' );

INSERT INTO [dbo].[Sys_Menu] ( [MenuId], [MenuName], [Icon], [Url], [SortIndex], [SuperMenu], [MenuType], [IsOffice], [IsEnd], [IsUsed] )
VALUES
  ( N'EF8E7BBC-FD6E-45E5-9518-36FE9DCA1B8D', N'质量人员报验(通用)', NULL, N'CQMS/Comprehensive/CqmsPerson.aspx', 25, N'78548106-d940-4d75-b7ab-72e922c0c83f', N'Menu_CQMS_P', '0', '1', '1' );

  END
GO




alter table SitePerson_Person add [IsTrain] bit  NULL;
EXEC sp_addextendedproperty
'MS_Description', N'质量是否培训',
'SCHEMA', N'dbo',
'TABLE', N'SitePerson_Person',
'COLUMN', N'IsTrain'
GO




