C# Класс Rock.Reporting.DataSelectComponent

Наследование: Rock.Extension.Component
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CreateChildControls ( Control parentControl ) : System.Web.UI.Control[]

Creates the child controls.

GetAttributeValueFromSelection ( string attributeKey, string selection ) : string

Gets the attribute value from selection.

GetExpression ( RockContext context, MemberExpression entityIdProperty, string selection ) : Expression

Gets the expression.

GetExpression ( System context, MemberExpression entityIdProperty, string selection ) : Expression

Gets the expression. override this for non-RockContext Expressions

GetGridField ( Type entityType, string selection ) : System.Web.UI.WebControls.DataControlField

Gets the grid field.

GetSelection ( Control controls ) : string

Gets the selection. This is typically a string that contains the values selected with the Controls

GetTitle ( Type entityType ) : string

Gets the title of the DataSelectComponent. Override this property to specify a Title that is different from the ColumnPropertyName.

RenderControls ( Control parentControl, System.Web.UI.HtmlTextWriter writer, Control controls ) : void

Renders the controls.

SetSelection ( Control controls, string selection ) : void

Sets the selection.

SortProperties ( string selection ) : string

Comma-delimited list of the Entity properties that should be used for Sorting. Normally, you should leave this as null which will make it sort on the returned field To disable sorting for this field, return string.Empty;

SortReversed ( string selection ) : bool

Override this and set to true to have this field sort in the opposite direction Normally this should be left as false unless there is a special case where it makes sense have it sort reversed

ToString ( ) : string

Returns a System.String that represents this instance.

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

Метод Описание
GetAttributesSelectionValues ( Control controls ) : string>.Dictionary

Gets the attributes selection values.

SetAttributesSelectionValues ( Control controls, string selection ) : void

Sets the attributes selection values.

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

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

Creates the child controls.
public CreateChildControls ( Control parentControl ) : System.Web.UI.Control[]
parentControl System.Web.UI.Control
Результат System.Web.UI.Control[]

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

Gets the attribute value from selection.
public GetAttributeValueFromSelection ( string attributeKey, string selection ) : string
attributeKey string The attribute key.
selection string The selection.
Результат string

GetExpression() публичный абстрактный Метод

Gets the expression.
public abstract GetExpression ( RockContext context, MemberExpression entityIdProperty, string selection ) : Expression
context Rock.Data.RockContext The context.
entityIdProperty System.Linq.Expressions.MemberExpression The entity identifier property.
selection string The selection.
Результат System.Linq.Expressions.Expression

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

Gets the expression. override this for non-RockContext Expressions
public GetExpression ( System context, MemberExpression entityIdProperty, string selection ) : Expression
context System The context.
entityIdProperty System.Linq.Expressions.MemberExpression The entity identifier property.
selection string The selection.
Результат System.Linq.Expressions.Expression

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

Gets the grid field.
public GetGridField ( Type entityType, string selection ) : System.Web.UI.WebControls.DataControlField
entityType System.Type Type of the entity.
selection string The selection.
Результат System.Web.UI.WebControls.DataControlField

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

Gets the selection. This is typically a string that contains the values selected with the Controls
public GetSelection ( Control controls ) : string
controls System.Web.UI.Control The controls.
Результат string

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

Gets the title of the DataSelectComponent. Override this property to specify a Title that is different from the ColumnPropertyName.
public GetTitle ( Type entityType ) : string
entityType System.Type
Результат string

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

Renders the controls.
public RenderControls ( Control parentControl, System.Web.UI.HtmlTextWriter writer, Control controls ) : void
parentControl System.Web.UI.Control The parent control.
writer System.Web.UI.HtmlTextWriter The writer.
controls System.Web.UI.Control The controls.
Результат void

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

Sets the selection.
public SetSelection ( Control controls, string selection ) : void
controls System.Web.UI.Control The controls.
selection string The selection.
Результат void

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

Comma-delimited list of the Entity properties that should be used for Sorting. Normally, you should leave this as null which will make it sort on the returned field To disable sorting for this field, return string.Empty;
public SortProperties ( string selection ) : string
selection string
Результат string

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

Override this and set to true to have this field sort in the opposite direction Normally this should be left as false unless there is a special case where it makes sense have it sort reversed
public SortReversed ( string selection ) : bool
selection string The selection.
Результат bool

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

Returns a System.String that represents this instance.
public ToString ( ) : string
Результат string