OpenPetra
Free Administration Software for Non-Profits
|
Contains functions for the validation of MPartner Partner DataTables. More...
Static Public Member Functions | |
static void | ValidatePartnerBankManual (object AContext, PBankRow ARow, ref TVerificationResultCollection AVerificationResultCollection) |
Validates the Partner Detail data of a Partner of PartnerClass BANK. More... | |
static void | ValidatePartnerPersonManual (object AContext, PPersonRow ARow, TGetCacheableDataTableFromCache ACacheRetriever, ref TVerificationResultCollection AVerificationResultCollection) |
Validates the Partner Detail data of a Partner of PartnerClass PERSON. More... | |
static void | ValidatePartnerFamilyManual (object AContext, PFamilyRow ARow, ref TVerificationResultCollection AVerificationResultCollection) |
Validates the Partner Detail data of a Partner of PartnerClass FAMILY. More... | |
static void | ValidatePartnerChurchManual (object AContext, PChurchRow ARow, DataTable ADenominationCacheableDT, ref TVerificationResultCollection AVerificationResultCollection) |
Validates the Partner Detail data of a Partner of PartnerClass CHURCH. More... | |
static void | ValidatePartnerManual (object AContext, PPartnerRow ARow, ref TVerificationResultCollection AVerificationResultCollection) |
Validates the Partner data of a Partner. More... | |
static void | ValidateSubscriptionManual (object AContext, PSubscriptionRow ARow, ref TVerificationResultCollection AVerificationResultCollection) |
Validates the Subscription data of a Partner. More... | |
static void | ValidateRelationshipManual (object AContext, PPartnerRelationshipRow ARow, ref TVerificationResultCollection AVerificationResultCollection, bool AValidateForNewPartner=false, Int64 APartnerKey=0) |
Validates the Relationship data of a Partner. More... | |
static TVerificationResult | IsValidPartner (Int64 APartnerKey, TPartnerClass[] AValidPartnerClasses, Boolean AMustBeActive=false, bool AZeroPartnerKeyIsValid=false, string AErrorMessageText="", object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether a Partner with a certain PartnerKey and a range of valid PartnerClasses exists. More... | |
static TVerificationResult | IsValidPartnerLinks (Int32 ALedgerNumber, Int64 APartnerKey, string AErrorMessageText="", object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether a Partner with a certain PartnerKey and a range of valid PartnerClasses exists. More... | |
static TVerificationResult | IsValidRecipientGiftDestination (Int64 APartnerKey, DateTime? AGiftDate, string AErrorMessageText="", object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether a Partner with a certain PartnerKey and a range of valid PartnerClasses exists. More... | |
static TVerificationResult | IsValidRecipientFieldForMotivationGroup (Int64 APartnerKey, Int64 APartnerField, string AMotivationGroup, string AErrorMessageText="", object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks whether a Partner with Field 0 has a non-gift Motivation Group code. More... | |
static TVerificationResult | IsValidUNITPartner (Int64 APartnerKey, bool AZeroPartnerKeyIsValid=false, string AErrorMessageText="", object AResultContext=null, System.Data.DataColumn AResultColumn=null) |
Checks that a Partner with a certain PartnerKey exists and is a Partner of PartnerClass UNIT. More... | |
static void | ValidateMailingSetup (object AContext, PMailingRow ARow, ref TVerificationResultCollection AVerificationResultCollection) |
Validates the MPartner Mailing Setup screen data. More... | |
static void | ValidateAddressBlockSetup (object AContext, PAddressBlockRow ARow, ref TVerificationResultCollection AVerificationResultCollection, PAddressBlockElementTable AAddressElementTable) |
Validates the MPartner Address Layout Setup screen data. More... | |
static void | ValidateFormalitySetup (object AContext, PFormalityRow ARow, ref TVerificationResultCollection AVerificationResultCollection) |
Validates the MPartner Formality Setup screen data. More... | |
static void | ValidateRelationshipSetupManual (object AContext, PRelationRow ARow, ref TVerificationResultCollection AVerificationResultCollection) |
Validates the MPartner Relationship Setup screen data. More... | |
static void | ValidateBankingDetails (object AContext, PBankingDetailsRow ARow, PBankingDetailsTable ABankingDetails, string ACountryCode, ref TVerificationResultCollection AVerificationResultCollection) |
Validates the Banking Details screen data. More... | |
static void | ValidateBankingDetailsExtra (object AContext, PBankingDetailsRow ARow, ref TVerificationResultCollection AVerificationResultCollection) |
Extra Validatation for the Banking Details screen data. More... | |
static void | ValidatePartnerInterestManual (object AContext, PPartnerInterestRow ARow, ref TVerificationResultCollection AVerificationResultCollection, string AInterestCategory) |
Validates the Partner Interest screen data. More... | |
static void | ValidateGiftDestinationRowManual (object AContext, PPartnerGiftDestinationRow ARow, ref TVerificationResultCollection AVerificationResultCollection) |
Validates a Gift Destination record More... | |
static void | ValidateGiftDestinationManual (object AContext, PPartnerGiftDestinationTable ATable, ref TVerificationResultCollection AVerificationResultCollection) |
Validates whole Gift Destination data of a Partner. More... | |
static void | ValidateContactDetailsManual (object AContext, PPartnerAttributeRow ARow, ref TVerificationResultCollection AVerificationResultCollection, TPartnerAttributeTypeValueKind AValueKind) |
Validates the Partner Edit screens' Contact Details Tab data. More... | |
static void | ValidateInterestSetupManual (object AContext, PInterestRow ARow, ref TVerificationResultCollection AVerificationResultCollection) |
Validates the Partner Interest Setup screen data. More... | |
static void | ValidateContactTypesSetupManual (object AContext, PPartnerAttributeTypeRow ARow, ref TVerificationResultCollection AVerificationResultCollection) |
Validates the Partner Contact Types Setup usercontrol data. More... | |
static void | ValidateContactLogManual (object AContext, PContactLogRow ARow, ref TVerificationResultCollection VerificationResultCollection) |
|
inlinestatic |
Checks whether a Partner with a certain PartnerKey and a range of valid PartnerClasses exists.
APartnerKey | PartnerKey. |
AValidPartnerClasses | An array of PartnerClasses. If the Partner exists, but its PartnerClass isn't in the array, a TVerificationResult is still returned. |
AMustBeActive | The Partner status.must be labelled with PartnerIsActive (Default: false) |
AZeroPartnerKeyIsValid | Set to true if APartnerKey 0 should be considered as valid (Default: false) |
AErrorMessageText | Text that should be prepended to the ResultText. (Default: empty string) |
AResultContext | ResultContext (Default: null). |
AResultColumn | Which System.Data.DataColumn failed (can be null). (Default: null). |
|
inlinestatic |
Checks whether a Partner with a certain PartnerKey and a range of valid PartnerClasses exists.
ALedgerNumber | LedgerNumber. |
APartnerKey | PartnerKey. |
AErrorMessageText | Text that should be prepended to the ResultText. (Default: empty string) |
AResultContext | ResultContext (Default: null). |
AResultColumn | Which System.Data.DataColumn failed (can be null). (Default: null). |
|
inlinestatic |
Checks whether a Partner with Field 0 has a non-gift Motivation Group code.
APartnerKey | PartnerKey. |
APartnerField | The field associated with the partner key |
AMotivationGroup | The current motivation group |
AErrorMessageText | Text that should be prepended to the ResultText. (Default: empty string) |
AResultContext | ResultContext (Default: null). |
AResultColumn | Which System.Data.DataColumn failed (can be null). (Default: null). |
|
inlinestatic |
Checks whether a Partner with a certain PartnerKey and a range of valid PartnerClasses exists.
APartnerKey | PartnerKey. |
AGiftDate | LedgerNumber. |
AErrorMessageText | Text that should be prepended to the ResultText. (Default: empty string) |
AResultContext | ResultContext (Default: null). |
AResultColumn | Which System.Data.DataColumn failed (can be null). (Default: null). |
|
inlinestatic |
Checks that a Partner with a certain PartnerKey exists and is a Partner of PartnerClass UNIT.
APartnerKey | PartnerKey. |
AZeroPartnerKeyIsValid | Set to true if APartnerKey 0 should be considered as valid (Default: false) |
AErrorMessageText | Text that should be prepended to the ResultText. (Default: empty string) |
AResultContext | ResultContext (optional). |
AResultColumn | Which System.Data.DataColumn failed (can be null). (Default: null). |
|
inlinestatic |
Validates the MPartner Address Layout Setup screen data.
AContext | Context that describes where the data validation failed. |
ARow | The DataRow which holds the the data against which the validation is run. |
AVerificationResultCollection | Will be filled with any TVerificationResult items if data validation errors occur. |
AAddressElementTable | A table of all available Address Block Elements |
|
inlinestatic |
Validates the Banking Details screen data.
AContext | Context that describes where the data validation failed. |
ARow | The DataRow which holds the the data against which the validation is run. |
ABankingDetails | test if there is only one main account |
ACountryCode | Country Code for ARow's corresponding Bank's country |
AVerificationResultCollection | Will be filled with any TVerificationResult items if data validation errors occur. |
|
inlinestatic |
Extra Validatation for the Banking Details screen data.
AContext | Context that describes where the data validation failed. |
ARow | The DataRow which holds the the data against which the validation is run. |
AVerificationResultCollection | Will be filled with any TVerificationResult items if data validation errors occur. |
|
inlinestatic |
Validates the Partner Edit screens' Contact Details Tab data.
AContext | Context that describes where the data validation failed. |
ARow | The DataRow which holds the the data against which the validation is run. |
AVerificationResultCollection | Will be filled with any TVerificationResult items if data validation errors occur. |
AValueKind | The PPartnerAttributeType.AttributeValueKind of the DataRow passed in in ARow . |
|
inlinestatic |
AContext | |
ARow | |
VerificationResultCollection |
|
inlinestatic |
Validates the Partner Contact Types Setup usercontrol data.
AContext | Context that describes where the data validation failed. |
ARow | The DataRow which holds the the data against which the validation is run. |
AVerificationResultCollection | Will be filled with any TVerificationResult items if data validation errors occur. |
|
inlinestatic |
Validates the MPartner Formality Setup screen data.
AContext | Context that describes where the data validation failed. |
ARow | The DataRow which holds the the data against which the validation is run. |
AVerificationResultCollection | Will be filled with any TVerificationResult items if data validation errors occur. |
|
inlinestatic |
Validates whole Gift Destination data of a Partner.
AContext | Context that describes where the data validation failed. |
ATable | The DataTable which holds the the data against which the validation is run. |
AVerificationResultCollection | Will be filled with any TVerificationResult items if data validation errors occur. |
|
inlinestatic |
Validates a Gift Destination record
AContext | Context that describes where the data validation failed. |
ARow | The DataRow which holds the the data against which the validation is run. |
AVerificationResultCollection | Will be filled with any TVerificationResult items if data validation errors occur. |
|
inlinestatic |
Validates the Partner Interest Setup screen data.
AContext | Context that describes where the data validation failed. |
ARow | The DataRow which holds the the data against which the validation is run. |
AVerificationResultCollection | Will be filled with any TVerificationResult items if data validation errors occur. |
|
inlinestatic |
Validates the MPartner Mailing Setup screen data.
AContext | Context that describes where the data validation failed. |
ARow | The DataRow which holds the the data against which the validation is run. |
AVerificationResultCollection | Will be filled with any TVerificationResult items if data validation errors occur. |
|
inlinestatic |
Validates the Partner Detail data of a Partner of PartnerClass BANK.
AContext | Context that describes where the data validation failed. |
ARow | The DataRow which holds the the data against which the validation is run. |
AVerificationResultCollection | Will be filled with any TVerificationResult items if data validation errors occur. |
|
inlinestatic |
Validates the Partner Detail data of a Partner of PartnerClass CHURCH.
AContext | Context that describes where the data validation failed. |
ARow | The DataRow which holds the the data against which the validation is run. |
ADenominationCacheableDT | The contents of the Cacheable DataTable 'DenominationList'. |
AVerificationResultCollection | Will be filled with any TVerificationResult items if data validation errors occur. |
|
inlinestatic |
Validates the Partner Detail data of a Partner of PartnerClass FAMILY.
AContext | Context that describes where the data validation failed. |
ARow | The DataRow which holds the the data against which the validation is run. |
AVerificationResultCollection | Will be filled with any TVerificationResult items if data validation errors occur. |
|
inlinestatic |
Validates the Partner Interest screen data.
AContext | Context that describes where the data validation failed. |
ARow | The DataRow which holds the the data against which the validation is run. |
AVerificationResultCollection | Will be filled with any TVerificationResult items if data validation errors occur. |
AInterestCategory | The chosen interest category. |
|
inlinestatic |
Validates the Partner data of a Partner.
AContext | Context that describes where the data validation failed. |
ARow | The DataRow which holds the the data against which the validation is run. |
AVerificationResultCollection | Will be filled with any TVerificationResult items if data validation errors occur. |
|
inlinestatic |
Validates the Partner Detail data of a Partner of PartnerClass PERSON.
AContext | Context that describes where the data validation failed. |
ARow | The DataRow which holds the the data against which the validation is run. |
ACacheRetriever | Delegate that returns the specified DataTable from the data cache (client- or serverside). Delegate Method needs to be for the MPartner Cache (that is, it needs to work with the TCacheablePartnerTablesEnum Enum! |
AVerificationResultCollection | Will be filled with any TVerificationResult items if data validation errors occur. |
|
inlinestatic |
Validates the Relationship data of a Partner.
AContext | Context that describes where the data validation failed. |
ARow | The DataRow which holds the the data against which the validation is run. |
AVerificationResultCollection | Will be filled with any TVerificationResult items if data validation errors occur. |
AValidateForNewPartner | true if validation is run for a new partner record |
APartnerKey | main partner key this validation is run for |
|
inlinestatic |
Validates the MPartner Relationship Setup screen data.
AContext | Context that describes where the data validation failed. |
ARow | The DataRow which holds the the data against which the validation is run. |
AVerificationResultCollection | Will be filled with any TVerificationResult items if data validation errors occur. |
|
inlinestatic |
Validates the Subscription data of a Partner.
AContext | Context that describes where the data validation failed. |
ARow | The DataRow which holds the the data against which the validation is run. |
AVerificationResultCollection | Will be filled with any TVerificationResult items if data validation errors occur. |