C# 클래스 Rock.Field.Types.DateFieldType

상속: FieldType
파일 보기 프로젝트 열기: NewSpring/Rock

공개 메소드들

메소드 설명
AttributeConstantExpression ( string value ) : ConstantExpression

Attributes the constant expression.

AttributeFilterExpression ( ConfigurationValue>.Dictionary configurationValues, List filterValues, System.Linq.Expressions.ParameterExpression parameterExpression ) : Expression

Gets a filter expression for an attribute value.

ConfigurationControls ( ) : System.Collections.Generic.List

Creates the HTML controls required to configure this type of field

ConfigurationKeys ( ) : List

Returns a list of the configuration keys

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.

FormatFilterValues ( ConfigurationValue>.Dictionary configurationValues, List filterValues ) : string

Formats the filter values.

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.

HasFilterControl ( ) : bool

Determines whether this filter has a filter control

ParseRelativeValue ( string value ) : string

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

PropertyFilterExpression ( ConfigurationValue>.Dictionary configurationValues, List filterValues, Expression parameterExpression, string propertyName, Type propertyType ) : Expression

Gets a filter expression for an entity property value.

SetConfigurationValues ( List controls, ConfigurationValue>.Dictionary configurationValues ) : void

Sets the configuration 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.

SortValue ( System parentControl, string value, ConfigurationValue>.Dictionary configurationValues ) : object

Returns the value that should be used for sorting, using the most appropriate datatype

ValueAsFieldType ( Control parentControl, string value, ConfigurationValue>.Dictionary configurationValues ) : object

Returns the value using the most appropriate datatype

메소드 상세

AttributeConstantExpression() 공개 메소드

Attributes the constant expression.
public AttributeConstantExpression ( string value ) : ConstantExpression
value string The value.
리턴 System.Linq.Expressions.ConstantExpression

AttributeFilterExpression() 공개 메소드

Gets a filter expression for an attribute value.
public AttributeFilterExpression ( ConfigurationValue>.Dictionary configurationValues, List filterValues, System.Linq.Expressions.ParameterExpression parameterExpression ) : Expression
configurationValues ConfigurationValue>.Dictionary The configuration values.
filterValues List The filter values.
parameterExpression System.Linq.Expressions.ParameterExpression The parameter expression.
리턴 System.Linq.Expressions.Expression

ConfigurationControls() 공개 메소드

Creates the HTML controls required to configure this type of field
public ConfigurationControls ( ) : System.Collections.Generic.List
리턴 System.Collections.Generic.List

ConfigurationKeys() 공개 메소드

Returns a list of the configuration keys
public ConfigurationKeys ( ) : List
리턴 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

FormatFilterValues() 공개 메소드

Formats the filter values.
public FormatFilterValues ( ConfigurationValue>.Dictionary configurationValues, List filterValues ) : string
configurationValues ConfigurationValue>.Dictionary The configuration values.
filterValues List The filter values.
리턴 string

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

HasFilterControl() 공개 메소드

Determines whether this filter has a filter control
public HasFilterControl ( ) : bool
리턴 bool

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

PropertyFilterExpression() 공개 메소드

Gets a filter expression for an entity property value.
public PropertyFilterExpression ( ConfigurationValue>.Dictionary configurationValues, List filterValues, Expression parameterExpression, string propertyName, Type propertyType ) : Expression
configurationValues ConfigurationValue>.Dictionary The configuration values.
filterValues List The filter values.
parameterExpression System.Linq.Expressions.Expression The parameter expression.
propertyName string Name of the property.
propertyType System.Type Type of the property.
리턴 System.Linq.Expressions.Expression

SetConfigurationValues() 공개 메소드

Sets the configuration value.
public SetConfigurationValues ( List controls, ConfigurationValue>.Dictionary configurationValues ) : void
controls List The controls.
configurationValues ConfigurationValue>.Dictionary The configuration values.
리턴 void

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

SortValue() 공개 메소드

Returns the value that should be used for sorting, using the most appropriate datatype
public SortValue ( System parentControl, string value, ConfigurationValue>.Dictionary configurationValues ) : object
parentControl System The parent control.
value string The value.
configurationValues ConfigurationValue>.Dictionary The configuration values.
리턴 object

ValueAsFieldType() 공개 메소드

Returns the value using the most appropriate datatype
public ValueAsFieldType ( Control parentControl, string value, ConfigurationValue>.Dictionary configurationValues ) : object
parentControl System.Web.UI.Control The parent control.
value string The value.
configurationValues ConfigurationValue>.Dictionary The configuration values.
리턴 object