C# Класс Rock.Reporting.DataFilter.EntityFieldFilter

Abstract class that is used by DataFilters that let a user select a field/attribute of an entity
Наследование: DataFilterComponent
Показать файл Открыть проект

Открытые методы

Метод Описание
GetAttributeExpression ( IService serviceInstance, System.Linq.Expressions.ParameterExpression parameterExpression, EntityField entityField, List values ) : Expression

Builds an expression for an attribute field

GetSelectedFieldName ( string selection ) : string

Gets the name of the selected field.

RenderEntityFieldsControls ( Type entityType, FilterField filterControl, System.Web.UI.HtmlTextWriter writer, List entityFields, DropDownList ddlEntityField, List propertyControls, string propertyControlsPrefix, FilterMode filterMode ) : void

Renders the entity fields controls.

SetEntityFieldSelection ( List entityFields, DropDownList ddlProperty, List values, List controls, bool setFilterValues = true ) : void

Sets the entity field selection.

UpdateSelectionFromPageParameters ( string selection, Rock rockBlock ) : string

Updates the selection from page parameters if there is a page parameter for the selection

UpdateSelectionFromUserPreferenceSelection ( string selection, string userPreferenceSelection, bool setFieldNameSelection = false ) : string

Updates the selection from user preference selection if the original selection is compatible with the user preference

Приватные методы

Метод Описание
FixDelimination ( List values ) : List

Описание методов

GetAttributeExpression() публичный Метод

Builds an expression for an attribute field
public GetAttributeExpression ( IService serviceInstance, System.Linq.Expressions.ParameterExpression parameterExpression, EntityField entityField, List values ) : Expression
serviceInstance IService The service instance.
parameterExpression System.Linq.Expressions.ParameterExpression The parameter expression.
entityField EntityField The property.
values List The values.
Результат System.Linq.Expressions.Expression

GetSelectedFieldName() публичный Метод

Gets the name of the selected field.
public GetSelectedFieldName ( string selection ) : string
selection string The selection.
Результат string

RenderEntityFieldsControls() публичный Метод

Renders the entity fields controls.
public RenderEntityFieldsControls ( Type entityType, FilterField filterControl, System.Web.UI.HtmlTextWriter writer, List entityFields, DropDownList ddlEntityField, List propertyControls, string propertyControlsPrefix, FilterMode filterMode ) : void
entityType System.Type Type of the entity.
filterControl Rock.Web.UI.Controls.FilterField The filter control.
writer System.Web.UI.HtmlTextWriter The writer.
entityFields List The entity fields.
ddlEntityField System.Web.UI.WebControls.DropDownList The DDL entity field.
propertyControls List The property controls.
propertyControlsPrefix string The property controls prefix.
filterMode FilterMode The filter mode.
Результат void

SetEntityFieldSelection() публичный Метод

Sets the entity field selection.
public SetEntityFieldSelection ( List entityFields, DropDownList ddlProperty, List values, List controls, bool setFilterValues = true ) : void
entityFields List The entity fields.
ddlProperty System.Web.UI.WebControls.DropDownList The DDL property.
values List The values.
controls List The controls.
setFilterValues bool if set to true [set filter values].
Результат void

UpdateSelectionFromPageParameters() публичный Метод

Updates the selection from page parameters if there is a page parameter for the selection
public UpdateSelectionFromPageParameters ( string selection, Rock rockBlock ) : string
selection string The selection.
rockBlock Rock The rock block.
Результат string

UpdateSelectionFromUserPreferenceSelection() публичный Метод

Updates the selection from user preference selection if the original selection is compatible with the user preference
public UpdateSelectionFromUserPreferenceSelection ( string selection, string userPreferenceSelection, bool setFieldNameSelection = false ) : string
selection string The original selection value from the saved data filter
userPreferenceSelection string The user preference selection value
setFieldNameSelection bool if set to true [set field name selection].
Результат string