C# Class Rock.Reporting.DataFilter.Person.LocationDataViewFilter

Inheritance: DataFilterComponent
ファイルを表示 Open project: NewSpring/Rock

Public Methods

Method Description
CreateChildControls ( Type entityType, FilterField parentControl ) : System.Web.UI.Control[]

Creates the child controls.

FormatSelection ( Type entityType, string selection ) : string

Provides a user-friendly description of the specified filter values.

GetClientFormatSelection ( Type entityType ) : string

Formats the selection on the client-side. When the filter is collapsed by the user, the Filterfield control will set the description of the filter to whatever is returned by this property. If including script, the controls parent container can be referenced through a '$content' variable that is set by the control before referencing this property.

GetExpression ( Type entityType, IService serviceInstance, System.Linq.Expressions.ParameterExpression parameterExpression, string selection ) : Expression

Creates a Linq Expression that can be applied to an IQueryable to filter the result set.

GetSelection ( Type entityType, Control controls ) : string

Gets the selection. Implement this version of GetSelection if your DataFilterComponent works the same in all FilterModes

GetTitle ( Type entityType ) : string

Gets the user-friendly title used to identify the filter component.

SetSelection ( Type entityType, Control controls, string selection ) : void

Sets the selection. Implement this version of SetSelection if your DataFilterComponent works the same in all FilterModes

Method Details

CreateChildControls() public method

Creates the child controls.
public CreateChildControls ( Type entityType, FilterField parentControl ) : System.Web.UI.Control[]
entityType System.Type Type of the entity.
parentControl Rock.Web.UI.Controls.FilterField The parent control.
return System.Web.UI.Control[]

FormatSelection() public method

Provides a user-friendly description of the specified filter values.
public FormatSelection ( Type entityType, string selection ) : string
entityType System.Type The System Type of the entity to which the filter will be applied.
selection string A formatted string representing the filter settings.
return string

GetClientFormatSelection() public method

Formats the selection on the client-side. When the filter is collapsed by the user, the Filterfield control will set the description of the filter to whatever is returned by this property. If including script, the controls parent container can be referenced through a '$content' variable that is set by the control before referencing this property.
public GetClientFormatSelection ( Type entityType ) : string
entityType System.Type
return string

GetExpression() public method

Creates a Linq Expression that can be applied to an IQueryable to filter the result set.
Filter issue(s): + errorMessages.AsDelimited( ; )
public GetExpression ( Type entityType, IService serviceInstance, System.Linq.Expressions.ParameterExpression parameterExpression, string selection ) : Expression
entityType System.Type The type of entity in the result set.
serviceInstance IService A service instance that can be queried to obtain the result set.
parameterExpression System.Linq.Expressions.ParameterExpression The input parameter that will be injected into the filter expression.
selection string A formatted string representing the filter settings.
return System.Linq.Expressions.Expression

GetSelection() public method

Gets the selection. Implement this version of GetSelection if your DataFilterComponent works the same in all FilterModes
public GetSelection ( Type entityType, Control controls ) : string
entityType System.Type The System Type of the entity to which the filter will be applied.
controls System.Web.UI.Control The collection of controls used to set the filter values.
return string

GetTitle() public method

Gets the user-friendly title used to identify the filter component.
public GetTitle ( Type entityType ) : string
entityType System.Type The System Type of the entity to which the filter will be applied.
return string

SetSelection() public method

Sets the selection. Implement this version of SetSelection if your DataFilterComponent works the same in all FilterModes
public SetSelection ( Type entityType, Control controls, string selection ) : void
entityType System.Type Type of the entity.
controls System.Web.UI.Control The controls.
selection string The selection.
return void