OpenPetra
Free Administration Software for Non-Profits
|
Class for numerical verifications that are needed both on Server and Client side. More...
Static Public Member Functions | |
static TVerificationResult | IsValidInteger (String AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether a string represents a valid integer. A null value is accepted. More... | |
static TVerificationResult | IsValidDouble (String AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether a string represents a valid double or single number. A null value is accepted. More... | |
static TVerificationResult | IsValidDecimal (String AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether a string represents a valid decimal number. A null value is accepted. More... | |
static TVerificationResult | IsPositiveInteger (Int64? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether an integer is greater than zero. A null value is accepted. More... | |
static TVerificationResult | IsGreaterThanZero (Int64? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether an integer/long is greater than zero More... | |
static TVerificationResult | IsPositiveDouble (double? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether a double or single number is greater than zero. A null value is accepted. More... | |
static TVerificationResult | IsPositiveDecimal (decimal? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether a decimal number is greater than zero. A null value is accepted. More... | |
static TVerificationResult | IsPositiveOrZeroInteger (Int64? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether an integer is greater or equal to zero. A null value is accepted. More... | |
static TVerificationResult | IsPositiveOrZeroDouble (double? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether a double or single number is greater or equal to zero. A null value is accepted. More... | |
static TVerificationResult | IsPositiveOrZeroDecimal (decimal? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether a decimal number is greater or equal to zero. A null value is accepted. More... | |
static TVerificationResult | IsNegativeInteger (Int64? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether an integer is less than zero. A null value is accepted. More... | |
static TVerificationResult | IsNegativeDouble (double? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether a double or single number is less than zero. A null value is accepted. More... | |
static TVerificationResult | IsNegativeDecimal (decimal? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether a decimal number is less than zero. A null value is accepted. More... | |
static TVerificationResult | IsNegativeOrZeroInteger (Int64? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether an integer is lesser or equal to zero. A null value is accepted. More... | |
static TVerificationResult | IsNegativeOrZeroDouble (double? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether a double or single number is lesser or equal to zero. A null value is accepted. More... | |
static TVerificationResult | IsNegativeOrZeroDecimal (decimal? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether a decimal number is lesser or equal to zero. A null value is accepted. More... | |
static TVerificationResult | IsNonZeroInteger (Int64? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether an integer is non-zero. A null value is accepted. More... | |
static TVerificationResult | IsNonZeroDouble (double? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether a double or single number is non-zero. A null value is accepted. More... | |
static TVerificationResult | IsNonZeroDecimal (decimal? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether a decimal number is non-zero. A null value is accepted. More... | |
static TVerificationResult | FirstLesserThanSecondInteger (Int64? AValue1, Int64? AValue2, string AFirstNumberDescription, string ASecondNumberDescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether the first submitted integer number is smaller than the second submitted integer number. Null values are accepted. More... | |
static TVerificationResult | FirstLesserThanSecondDouble (double? AValue1, double? AValue2, string AFirstNumberDescription, string ASecondNumberDescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether the first submitted double or single number is smaller than the second submitted double or single number. Null values are accepted. More... | |
static TVerificationResult | FirstLesserThanSecondDecimal (decimal? AValue1, decimal? AValue2, string AFirstNumberDescription, string ASecondNumberDescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether the first submitted decimal number is smaller than the second submitted decimal number. Null values are accepted. More... | |
static TVerificationResult | FirstLesserOrEqualThanSecondInteger (Int64? AValue1, Int64? AValue2, string AFirstNumberDescription, string ASecondNumberDescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether the first submitted integer number is smaller than or equal to the second submitted integer number. Null values are accepted. More... | |
static TVerificationResult | FirstLesserOrEqualThanSecondDouble (double? AValue1, double? AValue2, string AFirstNumberDescription, string ASecondNumberDescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether the first submitted double or single number is smaller than or equal to the second submitted double or single number. Null values are accepted. More... | |
static TVerificationResult | FirstLesserOrEqualThanSecondDecimal (decimal? AValue1, decimal? AValue2, string AFirstNumberDescription, string ASecondNumberDescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether the first submitted decimal number is smaller than or equal to the second submitted decimal number. Null values are accepted. More... | |
static TVerificationResult | IsInRange (Int64? AValue, Int64? ALowerLimit, Int64? AUpperLimit, string ANumberDescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether integer number is within a given range More... | |
static TVerificationResult | IsNumberPrecisionNotExceeded (decimal? AValue, int APrecision, int AScale, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether a decimal's decimal digits and fractional digits are less or equal to the ones specified. A null value is accepted. More... | |
Class for numerical 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 the first submitted decimal number is smaller than or equal to the second submitted decimal number. Null values are accepted.
AValue1 | Decimal number. |
AValue2 | Decimal number. |
AFirstNumberDescription | Description what the number is about (for the error message). |
ASecondNumberDescription | Description what the number 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 the first submitted double or single number is smaller than or equal to the second submitted double or single number. Null values are accepted.
AValue1 | Double or single number. |
AValue2 | Double or single number. |
AFirstNumberDescription | Description what the number is about (for the error message). |
ASecondNumberDescription | Description what the number 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 the first submitted integer number is smaller than or equal to the second submitted integer number. Null values are accepted.
AValue1 | Integer number. |
AValue2 | Integer number. |
AFirstNumberDescription | Description what the number is about (for the error message). |
ASecondNumberDescription | Description what the number 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 the first submitted decimal number is smaller than the second submitted decimal number. Null values are accepted.
AValue1 | Decimal number. |
AValue2 | Decimal number. |
AFirstNumberDescription | Description what the number is about (for the error message). |
ASecondNumberDescription | Description what the number 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 the first submitted double or single number is smaller than the second submitted double or single number. Null values are accepted.
AValue1 | Double or single number. |
AValue2 | Double or single number. |
AFirstNumberDescription | Description what the number is about (for the error message). |
ASecondNumberDescription | Description what the number 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 the first submitted integer number is smaller than the second submitted integer number. Null values are accepted.
AValue1 | First integer number. |
AValue2 | Second integer number. |
AFirstNumberDescription | Description what the number is about (for the error message). |
ASecondNumberDescription | Description what the number 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 integer/long is greater than zero
AValue | Integer number. |
ADescription | Description what the integer number 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 integer number is within a given range
AValue | Integer number. |
ALowerLimit | Lower range limit. |
AUpperLimit | Upper range limit. |
ANumberDescription | Description what the number 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 decimal number is less than zero. A null value is accepted.
AValue | Decimal number. |
ADescription | Description what the decimal number 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 double or single number is less than zero. A null value is accepted.
AValue | Double or single number. |
ADescription | Description what the double or single number 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 integer is less than zero. A null value is accepted.
AValue | Integer number. |
ADescription | Description what the integer number 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 decimal number is lesser or equal to zero. A null value is accepted.
AValue | Decimal number. |
ADescription | Description what the decimal number 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 double or single number is lesser or equal to zero. A null value is accepted.
AValue | Double or single number. |
ADescription | Description what the double or single number 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 integer is lesser or equal to zero. A null value is accepted.
AValue | Integer number. |
ADescription | Description what the integer number 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 decimal number is non-zero. A null value is accepted.
AValue | Decimal number. |
ADescription | Description what the decimal number 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 double or single number is non-zero. A null value is accepted.
AValue | Double or single number. |
ADescription | Description what the double or single number 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 integer is non-zero. A null value is accepted.
AValue | Integer number. |
ADescription | Description what the integer number 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 decimal's decimal digits and fractional digits are less or equal to the ones specified. A null value is accepted.
This Method can be used to check number formats as they are specified in petra.xml, e.g. "lenght=6", "decimals=2". - Set APrecision to 6 and AScale to 2 to validate this number format with this method.
AValue | Decimal number. |
APrecision | The total count of significant digits in the whole number, that is, the number of digits to both sides of the decimal point. |
AScale | The count of decimal digits in the fractional part, to the right of the decimal point. |
ADescription | Description what the decimal number 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 decimal number is greater than zero. A null value is accepted.
AValue | Decimal number. |
ADescription | Description what the decimal number 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 double or single number is greater than zero. A null value is accepted.
AValue | Double or single number. |
ADescription | Description what the double or single number 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 integer is greater than zero. A null value is accepted.
AValue | Integer number. |
ADescription | Description what the integer number 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 decimal number is greater or equal to zero. A null value is accepted.
AValue | Decimal number. |
ADescription | Description what the decimal number 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 double or single number is greater or equal to zero. A null value is accepted.
AValue | Double or single number. |
ADescription | Description what the double or single number 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 integer is greater or equal to zero. A null value is accepted.
AValue | Integer number. |
ADescription | Description what the integer number 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 string represents a valid decimal number. A null value is accepted.
AValue | String that should be checked. |
ADescription | Description what the decimal number is about (for the error message). |
AResultContext | Context of verification (can be null). |
AResultColumn | Which System.Data.DataColumn failed (can be null). |
ADescription .
|
inlinestatic |
Checks whether a string represents a valid double or single number. A null value is accepted.
AValue | String that should be checked. |
ADescription | Description what the double or single number 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 string represents a valid integer. A null value is accepted.
AValue | String that should be checked. |
ADescription | Description what the integer number is about (for the error message). |
AResultContext | Context of verification (can be null). |
AResultColumn | Which System.Data.DataColumn failed (can be null). |