delete from SystemRightDetail where rightid =2693
GO
delete from SystemRightsLanguage where id =2693
GO
delete from SystemRights where id =2693
GO
delete from SystemRightToGroup where rightid =2693
GO
delete from SystemRightType where id =36
GO
delete from SystemRightGroups where id =-22
GO
insert into SystemRights (id,rightdesc,righttype,detachable) values (2693,'薪酬管理权限','36',0)
GO
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (2693,8,'Salary management authority','Salary management authority')
GO
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (2693,9,'薪酬管理權限','薪酬管理權限')
GO
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (2693,7,'薪酬管理权限','薪酬管理权限')
GO

insert into SystemRightDetail (id,rightdetailname,rightdetail,rightid) values (43969,'薪酬总管理员','Salary:Chief',2693)
GO

insert into SystemRightToGroup(rightid,groupid) values (2693,-22)
GO
insert into SystemRightGroups (id,rightgroupmark, rightgroupname, rightgroupremark) values(-22,'SALARY','薪酬管理权限组','薪酬管理')
GO
insert into SystemRightType(id,rightTypeName,rightTypeDesc) VALUES (36,'薪酬管理','薪酬管理')
GO