C# Class Rock.Field.Types.CurrencyFieldType

Field used to save and display a currency amount
Inheritance: FieldType
Mostra file Open project: SparkDevNetwork/Rock

Public Methods

Method Description
EditControl ( ConfigurationValue>.System configurationValues, string id ) : System.Web.UI.Control

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

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

Formats date display

IsValid ( string value, bool required, string &message ) : bool

Tests the value to ensure that it is a valid value. If not, message will indicate why

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

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

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

Returns the value using the most appropriate datatype

Method Details

EditControl() public method

Creates the control(s) necessary for prompting user for a new value
public EditControl ( ConfigurationValue>.System configurationValues, string id ) : System.Web.UI.Control
configurationValues ConfigurationValue>.System The configuration values.
id string
return System.Web.UI.Control

FormatValue() public method

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)
return string

IsValid() public method

Tests the value to ensure that it is a valid value. If not, message will indicate why
public IsValid ( string value, bool required, string &message ) : bool
value string The value.
required bool if set to true [required].
message string The message.
return bool

SortValue() public method

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.
return object

ValueAsFieldType() public method

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