C# Class Rock.Reporting.DataFilter.EntityFieldFilter

Abstract class that is used by DataFilters that let a user select a field/attribute of an entity
Inheritance: DataFilterComponent
Afficher le fichier Open project: NewSpring/Rock

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
FixDelimination ( List values ) : List

Method Details

GetAttributeExpression() public méthode

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.
Résultat System.Linq.Expressions.Expression

GetSelectedFieldName() public méthode

Gets the name of the selected field.
public GetSelectedFieldName ( string selection ) : string
selection string The selection.
Résultat string

RenderEntityFieldsControls() public méthode

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.
Résultat void

SetEntityFieldSelection() public méthode

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].
Résultat void

UpdateSelectionFromPageParameters() public méthode

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.
Résultat string

UpdateSelectionFromUserPreferenceSelection() public méthode

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].
Résultat string