OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Server.MPartner.Common.Checks Class Reference

Contains functions to be used by the Server and the Client that perform certain checks - specific for the Partner Module. More...

Static Public Member Functions

static bool HasPartnerType (string APartnerType, PPartnerTypeTable APPartnerTypeDT, bool AExactMatch)
 Determines whether a specified Partner Type code is contained in the PPartnerTypeTable that is passed in. The AExactMatch parameter determines whether the check is done on an exact string match, or a 'starts with' string match. More...
 
static bool HasPartnerClassLocalPartnerDataLabels (TPartnerClass APartnerClass, DataTable ACacheableDataLabelsForPartnerClassesList)
 Determines whether DataLabels exist for a specified Partner Class. More...
 
static bool PartnerIsExWorker (PPartnerGiftDestinationTable AGiftDestinationTable)
 check if the partner has a valid Gift Destination in the past but not a currently active Gift Destination More...
 

Detailed Description

Contains functions to be used by the Server and the Client that perform certain checks - specific for the Partner Module.

Member Function Documentation

◆ HasPartnerClassLocalPartnerDataLabels()

static bool Ict.Petra.Server.MPartner.Common.Checks.HasPartnerClassLocalPartnerDataLabels ( TPartnerClass  APartnerClass,
DataTable  ACacheableDataLabelsForPartnerClassesList 
)
inlinestatic

Determines whether DataLabels exist for a specified Partner Class.

Parameters
APartnerClassPartner Class that should be checked for.
ACacheableDataLabelsForPartnerClassesListInstance of the Cacheable DataTable 'DataLabelsForPartnerClassesList' that has data in it (ie. the Cacheable DataTable must have been retrieved by the caller).
Returns
True if at least one DataLabel exists for the Partner Class specified in APartnerClass , otherwise false.

◆ HasPartnerType()

static bool Ict.Petra.Server.MPartner.Common.Checks.HasPartnerType ( string  APartnerType,
PPartnerTypeTable  APPartnerTypeDT,
bool  AExactMatch 
)
inlinestatic

Determines whether a specified Partner Type code is contained in the PPartnerTypeTable that is passed in. The AExactMatch parameter determines whether the check is done on an exact string match, or a 'starts with' string match.

Parameters
APartnerType

Partner Type code that should be checked for

Parameters
APPartnerTypeDT

PPartnerTypeTable containing rows of Partner Types

Parameters
AExactMatch

Exact string match for APartnerType if true, otherwise 'starts with' string match

Returns
true if APartnerType was found in APPartnerTypeDT, otherwise false

◆ PartnerIsExWorker()

static bool Ict.Petra.Server.MPartner.Common.Checks.PartnerIsExWorker ( PPartnerGiftDestinationTable  AGiftDestinationTable)
inlinestatic

check if the partner has a valid Gift Destination in the past but not a currently active Gift Destination

Parameters
AGiftDestinationTable
Returns

The documentation for this class was generated from the following file: