예제 #1
0
        private string GetColumnPermission(QuerySet querySet)
        {
            if (RegisterAuthority)
            {
                FapMenuColumn menuColumn = new FapMenuColumn()
                {
                    GridId      = Id,
                    TableName   = querySet.TableName,
                    GridColumn  = querySet.QueryCols,
                    Enabled     = 1,
                    Description = _dbContext.Table(querySet.TableName).TableComment
                };

                //获取列权限
                return(_rbacService.GetMenuColumnAuthority(_applicationContext.CurrentRoleUid, menuColumn));
            }
            return(string.Empty);
        }
예제 #2
0
        private string GetColumnPermission(QuerySet querySet)
        {
            string btnId = Id;

            if (IsSubgrid)
            {
                btnId = Id.Substring(0, Id.LastIndexOf("_"));
            }
            FapMenuColumn menuColumn = new FapMenuColumn()
            {
                GridId      = btnId,
                TableName   = querySet.TableName,
                GridColumn  = querySet.QueryCols,
                Enabled     = 1,
                Description = _dbContext.Table(querySet.TableName).TableComment
            };

            //获取列权限
            return(_rbacService.GetMenuColumnAuthority(_applicationContext.CurrentRoleUid, menuColumn));
        }