You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
DECLARE @None INT
|
|
|
|
|
DECLARE @Browse INT
|
|
|
|
|
DECLARE @AddNew INT
|
|
|
|
|
DECLARE @Modify INT
|
|
|
|
|
DECLARE @Delete INT
|
|
|
|
|
DECLARE @Audit INT
|
|
|
|
|
DECLARE @Unaudit INT
|
|
|
|
|
DECLARE @Invalid INT
|
|
|
|
|
DECLARE @Print INT
|
|
|
|
|
|
|
|
|
|
SELECT @None = 0,
|
|
|
|
|
@Browse = 1,
|
|
|
|
|
@AddNew = 2,
|
|
|
|
|
@Modify = 4,
|
|
|
|
|
@Delete = 8,
|
|
|
|
|
@Audit = 16,
|
|
|
|
|
@Unaudit = 32,
|
|
|
|
|
@Invalid = 64,
|
|
|
|
|
@Print = 128
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
INSERT TFunction(FName,FDisplayName,FTypeName,FParentName,FGroupName,FCategory,FVisible,FOrder)
|
|
|
|
|
SELECT 'WCoupon','ȯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>','','WWebApp','Public',1,1,4
|
|
|
|
|
|
|
|
|
|
INSERT TFunctionAccessDict(FFunctionName,FAccessKey,FDefaultValue)
|
|
|
|
|
SELECT 'WCoupon' ,'Basically',@Browse + @AddNew + @Modify + @Delete
|
|
|
|
|
|
|
|
|
|
INSERT TRoleAccess(FId,FRoleId,FType,FFunctionName,FAccessKey,FValue)
|
|
|
|
|
SELECT dbo.FNNewId(),B.FId,2 AS FType,'WCoupon','Basically',@Browse + @AddNew + @Modify + @Delete
|
|
|
|
|
FROM TRole AS B
|
|
|
|
|
WHERE B.FId > 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SELECT 'WCoupon' ,'Basically',@Browse + @AddNew + @Modify + @Delete + @None + @None + @None + @None --ȯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|