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

Gets descriptions for codes in the Partner Module. More...

Static Public Member Functions

static string GetMaritalStatusDescription (TGetCacheableDataTableFromCache ACacheRetriever, string AMaritalStatusCode)
 Returns the description of a Marital Status Code. More...
 
static void SyncPartnerEditTDSPartnerLocation (PLocationTable ALocationDT, PartnerEditTDSPPartnerLocationTable APartnerLocationDT, bool AMakePLocationRecordUnchanged=false)
 Update extra location specific fields in table APartnerLocationTable More...
 
static void SyncPartnerEditTDSPartnerLocation (PLocationTable ALocationDT, PartnerEditTDSPPartnerLocationRow APartnerLocationDR, bool AMakePLocationRecordUnchanged=false)
 Update extra location specific fields in DataRow APartnerLocationDR More...
 

Detailed Description

Gets descriptions for codes in the Partner Module.

Member Function Documentation

◆ GetMaritalStatusDescription()

static string Ict.Petra.Server.MPartner.Common.PartnerCodeHelper.GetMaritalStatusDescription ( TGetCacheableDataTableFromCache  ACacheRetriever,
string  AMaritalStatusCode 
)
inlinestatic

Returns the description of a Marital Status Code.

Parameters
ACacheRetrieverDelegate 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!
AMaritalStatusCodeMarital Status Code.
Returns
The description of a Marital Status Code, or empty string if the Marital Status Code could not be identified.

◆ SyncPartnerEditTDSPartnerLocation() [1/2]

static void Ict.Petra.Server.MPartner.Common.PartnerCodeHelper.SyncPartnerEditTDSPartnerLocation ( PLocationTable  ALocationDT,
PartnerEditTDSPPartnerLocationRow  APartnerLocationDR,
bool  AMakePLocationRecordUnchanged = false 
)
inlinestatic

Update extra location specific fields in DataRow APartnerLocationDR

Parameters
ALocationDTTable containing location records to be used to update APartnerLocation records.
APartnerLocationDRSingle DataRow to be updated with Location specific information.
AMakePLocationRecordUnchangedSet to true to make the PLocation Record unchanged (by calling .AcceptChanges() on it).

◆ SyncPartnerEditTDSPartnerLocation() [2/2]

static void Ict.Petra.Server.MPartner.Common.PartnerCodeHelper.SyncPartnerEditTDSPartnerLocation ( PLocationTable  ALocationDT,
PartnerEditTDSPPartnerLocationTable  APartnerLocationDT,
bool  AMakePLocationRecordUnchanged = false 
)
inlinestatic

Update extra location specific fields in table APartnerLocationTable

Parameters
ALocationDTTable containing location records to be used to update APartnerLocation records.
APartnerLocationDTTable to be updated with Location specific information.
AMakePLocationRecordUnchangedSet to true to make the PLocation Record unchanged (by calling .AcceptChanges() on it).

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