OpenPetra
Free Administration Software for Non-Profits
|
Class for string verifications that are needed both on Server and Client side. More...
Static Public Member Functions | |
static TVerificationResult | StringMustNotBeEmpty (string AValue, string ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether a strings is null or String.Empty. Null values are accepted. More... | |
static TVerificationResult | StringLengthLesserOrEqual (string AValue, int APermittedStringLength, string ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether a strings' length is lesser or equal to the specified amount of characters. Null values are accepted. More... | |
static TVerificationResult | FirstLesserOrEqualThanSecondString (String ATxt1, String ATxt2, String AFirstDescription, String ASecondDescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether two strings are in correct order (lexical comparison). Null values are accepted. More... | |
static TVerificationResult | ValidateValueIsActive (Int32 ALedgerNumber, DataTable ADataTable, String AKeyValue, String AActiveColumn, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Used for checking if a particular lookup value relates to an inactive record More... | |
static TVerificationResult | ValidateEmail (String AEmailAddress) |
Checks whether an e-mail address is valid (logical only, no lookup is done). Does not allow more than one email address in the AEmailAddress Argument. More... | |
static TVerificationResult | ValidateEmail (String AEmailAddress, object AResultContext, System.Data.DataColumn AResultColumn) |
Checks whether an e-mail address is valid (logical only, no lookup is done). Does not allow more than one email address in the AEmailAddress Argument. More... | |
static TVerificationResult | ValidateEmail (String AEmailAddress, Boolean AAllowMoreThanOneEMailAddress, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether an e-mail address is valid (logical only, no lookup is done). Multiple email addresses may be contained in Argument AEmailAddress if Argument AAllowMoreThanOneEMailAddress is set to true. More... | |
Static Public Attributes | |
const String | ERR_EMAILADDRESSINVALID = "GENC.00017V" |
Email Address is invalid. More... | |
Class for string verifications that are needed both on Server and Client side.
None of the data verifications in here must access the database since the Client doesn't have access to the database!
|
inlinestatic |
Checks whether two strings are in correct order (lexical comparison). Null values are accepted.
ATxt1 | The first string; it is supposed to be lesser or equal than ATxt2. |
ATxt2 | The second string; it is supposed to be greater or equal than ATxt1. |
AFirstDescription | Description what the value is about (for the error message). |
ASecondDescription | Description what the value is about (for the error message). |
AResultContext | Context of verification (can be null). |
AResultColumn | Which System.Data.DataColumn failed (can be null). |
|
inlinestatic |
Checks whether a strings' length is lesser or equal to the specified amount of characters. Null values are accepted.
AValue | The string to check. |
APermittedStringLength | The permitted amount of characters. |
ADescription | Description what the value is about (for the error message). |
AResultContext | Context of verification (can be null). |
AResultColumn | Which System.Data.DataColumn failed (can be null). |
|
inlinestatic |
Checks whether a strings is null or String.Empty. Null values are accepted.
AValue | The string to check. |
ADescription | Description what the value is about (for the error message). |
AResultContext | Context of verification (can be null). |
AResultColumn | Which System.Data.DataColumn failed (can be null). |
|
inlinestatic |
Checks whether an e-mail address is valid (logical only, no lookup is done). Does not allow more than one email address in the AEmailAddress Argument.
AEmailAddress | E-mail address that should be verified. |
|
inlinestatic |
Checks whether an e-mail address is valid (logical only, no lookup is done). Multiple email addresses may be contained in Argument AEmailAddress if Argument AAllowMoreThanOneEMailAddress is set to true.
AEmailAddress | E-mail address that should be verified. |
AAllowMoreThanOneEMailAddress | Set this to true if more than one e-mail Address can be contained in AEmailAddress. If this is set to true, all contained e-mail Addresses will be validated. Recognized separators are comma and semicolon (',' and ';'). |
AResultContext | Context of verification (can be null). |
AResultColumn | Which System.Data.DataColumn failed (can be null). |
|
inlinestatic |
Checks whether an e-mail address is valid (logical only, no lookup is done). Does not allow more than one email address in the AEmailAddress Argument.
AEmailAddress | E-mail address that should be verified. |
AResultContext | Context of verification (can be null). |
AResultColumn | Which System.Data.DataColumn failed (can be null). |
|
inlinestatic |
Used for checking if a particular lookup value relates to an inactive record
ALedgerNumber | |
ADataTable | |
AKeyValue | |
AActiveColumn | |
AResultContext | |
AResultColumn |
|
static |
Email Address is invalid.