コード例 #1
0
        //public void AddPermission(long? parentObjectId, User entity, Tool child)
        //{
        //    AddPermission(parentObjectId, entity.UserId, child.ToolId, PermissionTypeEnum.Tool);
        //}

        //public void AddPermission(Group entity, Tool child)
        //{
        //    AddPermission(entity.GroupId, child.ToolId, PermissionTypeEnum.Tool);
        //}


        public void AddPermission(BusinessType entity, Tool child)
        {
            AddPermission(null, EntityEnum.BusinessType, (long)entity.BusinessTypeId, EntityEnum.Tool, child.ToolId, PermissionTypeEnum.Tool);
        }
コード例 #2
0
        //public void AddPermission(long? parentObjectId, User entity, Brand child)
        //{
        //    AddPermission(parentObjectId, entity.UserId, child.BrandId, PermissionTypeEnum.Brand);
        //}

        //public void AddPermission(Group entity, Brand child)
        //{
        //    AddPermission(entity.GroupId, child.BrandId, PermissionTypeEnum.Brand);
        //}

        public void AddPermission(BusinessType entity, Brand child)
        {
            AddPermission(null, EntityEnum.BusinessType, (long)entity.BusinessTypeId, EntityEnum.Brand, child.BrandId, PermissionTypeEnum.Brand);
        }
コード例 #3
0
        //public void AddPermission(long? parentObjectId, User entity, ProductFamily child)
        //{
        //    AddPermission(parentObjectId, entity.UserId, child.ProductFamilyId, PermissionTypeEnum.ProductFamily);
        //}

        //public void AddPermission(Group entity, ProductFamily child)
        //{
        //    AddPermission(entity.GroupId, child.ProductFamilyId, PermissionTypeEnum.ProductFamily);
        //}

        public void AddPermission(BusinessType entity, ProductFamily child)
        {
            AddPermission(null, EntityEnum.BusinessType, (long)entity.BusinessTypeId, EntityEnum.ProductFamily, child.ProductFamilyId, PermissionTypeEnum.ProductFamily);
        }
コード例 #4
0
        // public void AddPermission(long? parentObjectId, User entity, CityArea child)
        //{
        //    AddPermission(parentObjectId, entity.UserId, childAreaId, PermissionTypeEnum.CityArea);
        //}

        //public void AddPermission(Group entity, CityArea child)
        //{
        //    AddPermission(entity.GroupId, childAreaId, PermissionTypeEnum.CityArea);
        //}

        public void AddPermission(BusinessType entity, CityArea child)
        {
            AddPermission(null, EntityEnum.BusinessType, (long)entity.BusinessTypeId, EntityEnum.CityArea, child.CityAreaId, PermissionTypeEnum.CityArea);
        }