C# Класс Rock.Field.Types.DateTimeFieldType

Наследование: DateFieldType
Показать файл Открыть проект

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

Метод Описание
ConfigurationControls ( ) : System.Collections.Generic.List

Creates the HTML controls required to configure this type of field

ConfigurationValues ( List controls ) : ConfigurationValue>.Dictionary

Gets the configuration value.

EditControl ( ConfigurationValue>.Dictionary configurationValues, string id ) : Control

Creates the control(s) necessary for prompting user for a new value

FilterValueControl ( ConfigurationValue>.Dictionary configurationValues, string id, bool required, FilterMode filterMode ) : Control

Gets the filter value control.

FormatValue ( System parentControl, string value, ConfigurationValue>.Dictionary configurationValues, bool condensed ) : string

Formats date display

GetEditValue ( Control control, ConfigurationValue>.Dictionary configurationValues ) : string

Reads new values entered by the user for the field

GetFilterFormatScript ( ConfigurationValue>.Dictionary configurationValues, string title ) : string

Gets the filter format script.

This script must set a javascript variable named 'result' to a friendly string indicating value of filter controls a '$selectedContent' should be used to limit script to currently selected filter fields

GetFilterValueValue ( Control control, ConfigurationValue>.Dictionary configurationValues ) : string

Gets the filter value value.

ParseRelativeValue ( string value ) : string

Checks to see if value is for 'current' date and if so, adjusts the date value.

SetEditValue ( Control control, ConfigurationValue>.Dictionary configurationValues, string value ) : void

Sets the value.

SetFilterValueValue ( Control control, ConfigurationValue>.Dictionary configurationValues, string value ) : void

Sets the filter value value.

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

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

Creates the HTML controls required to configure this type of field
public ConfigurationControls ( ) : System.Collections.Generic.List
Результат System.Collections.Generic.List

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

Gets the configuration value.
public ConfigurationValues ( List controls ) : ConfigurationValue>.Dictionary
controls List The controls.
Результат ConfigurationValue>.Dictionary

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

Creates the control(s) necessary for prompting user for a new value
public EditControl ( ConfigurationValue>.Dictionary configurationValues, string id ) : Control
configurationValues ConfigurationValue>.Dictionary The configuration values.
id string
Результат System.Web.UI.Control

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

Gets the filter value control.
public FilterValueControl ( ConfigurationValue>.Dictionary configurationValues, string id, bool required, FilterMode filterMode ) : Control
configurationValues ConfigurationValue>.Dictionary The configuration values.
id string The identifier.
required bool if set to true [required].
filterMode FilterMode The filter mode.
Результат System.Web.UI.Control

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

Formats date display
public FormatValue ( System parentControl, string value, ConfigurationValue>.Dictionary configurationValues, bool condensed ) : string
parentControl System The parent control.
value string Information about the value
configurationValues ConfigurationValue>.Dictionary The configuration values.
condensed bool Flag indicating if the value should be condensed (i.e. for use in a grid column)
Результат string

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

Reads new values entered by the user for the field
public GetEditValue ( Control control, ConfigurationValue>.Dictionary configurationValues ) : string
control System.Web.UI.Control Parent control that controls were added to in the CreateEditControl() method
configurationValues ConfigurationValue>.Dictionary The configuration values.
Результат string

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

Gets the filter format script.
This script must set a javascript variable named 'result' to a friendly string indicating value of filter controls a '$selectedContent' should be used to limit script to currently selected filter fields
public GetFilterFormatScript ( ConfigurationValue>.Dictionary configurationValues, string title ) : string
configurationValues ConfigurationValue>.Dictionary The configuration values.
title string The title.
Результат string

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

Gets the filter value value.
public GetFilterValueValue ( Control control, ConfigurationValue>.Dictionary configurationValues ) : string
control System.Web.UI.Control The control.
configurationValues ConfigurationValue>.Dictionary The configuration values.
Результат string

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

Checks to see if value is for 'current' date and if so, adjusts the date value.
public ParseRelativeValue ( string value ) : string
value string The value.
Результат string

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

Sets the value.
public SetEditValue ( Control control, ConfigurationValue>.Dictionary configurationValues, string value ) : void
control System.Web.UI.Control The control.
configurationValues ConfigurationValue>.Dictionary The configuration values.
value string The value.
Результат void

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

Sets the filter value value.
public SetFilterValueValue ( Control control, ConfigurationValue>.Dictionary configurationValues, string value ) : void
control System.Web.UI.Control The control.
configurationValues ConfigurationValue>.Dictionary The configuration values.
value string The value.
Результат void