コード例 #1
0
        //private void CheckPermissions(DR_Requester dR_Requester, List<ModelEntites.NavigationTreeDTO> list)
        //{
        //    List<int> roleIds = null;
        //    if (dR_Requester.RoleIds.Any())
        //    {
        //        roleIds = dR_Requester.RoleIds;
        //    }
        //    else
        //    {
        //        roleIds = securityHelper.GetAllRoleIds(dR_Requester.Identity, dR_Requester.OrganizationID);
        //    }
        //}
        //private void CheckPermissions(List<int> roleIds, List<ModelEntites.NavigationTreeDTO> list)
        //{

        //}
        //public DP_EntityUISettingResult GetEntityUISettings(DP_EntityUIsettingsRequest request)
        //{
        //    DP_EntityUISettingResult result = new DP_EntityUISettingResult();
        //    BizEntityUISetting biz = new BizEntityUISetting();
        //    result.UISetting = biz.GetEntityUISetting(request.EntityID);
        //    return result;
        //}

        //public DP_EntityPermissionResult GetEntityPermissions(DP_EntityPermissionRequest request)
        //{

        //}
        public DP_EntityConditionalPermissionResult GetEntityConditionalPermissions(DP_EntityConditionalPermissionRequest request)
        {
            DP_EntityConditionalPermissionResult result = new DP_EntityConditionalPermissionResult();

            result.ConditionalPermissions = bizPermission.GetConditionalPermissions(request.Requester, request.EntityID);
            return(result);
        }
コード例 #2
0
        public void ShowConditionalPermissions()
        {
            BizPermission bizConditionalPermission = new BizPermission();

            dtgItems.ItemsSource = bizConditionalPermission.GetConditionalPermissions();
        }