OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Server.MPartner.Partner.WebConnectors.TMergePartnersCheckWebConnector Class Reference

Performs server-side lookups for the Client in the MCommon DataReader sub-namespace. More...

Static Public Member Functions

static bool CheckPartnersCanBeMerged (long AFromPartnerKey, long AToPartnerKey, TPartnerClass AFromPartnerClass, TPartnerClass AToPartnerClass, string AReasonForMerging, out TVerificationResultCollection AVerificationResult)
 performs checks to determine if two partners can be merged More...
 
static bool GetSupplierCurrency (long APartnerKey, out string ACurrency)
 returns the supplier currency for a partner if it is a supplier More...
 
static int CanFamilyMergeIntoDifferentClass (long APartnerKey)
 this will validate two partners who have been selected to be merged More...
 
static int CheckPartnerCommitments (long AFromPartnerKey, long AToPartnerKey, TPartnerClass APartnerClass)
 check if persons have ongoing commitments or if familys contain persons with ongoing commitments More...
 
static PFoundationTable GetOrganisationFoundation (long AFromPartnerKey)
 get the PFoundation table for an organisation if it is a foundation More...
 
static bool NeedMainBankAccount (long AFromPartnerKey, long AToPartnerKey)
 determines if the user needs to select a main bank account for the merged record More...
 
static PBankingDetailsTable GetPartnerBankingDetails (long AFromPartnerKey, long AToPartnerKey)
 get the banking details of the From Partner and the To Partner in a single table More...
 
static PartnerEditTDSPPartnerAttributeTable GetPartnerContactDetails (long AFromPartnerKey, long AToPartnerKey)
 get the contact details of the From Partner More...
 
static bool ActiveGiftDestination (long AFromPartnerKey, long AToPartnerKey, TPartnerClass APartnerClass, out bool AFromGiftDestinationNeedsEnded, out bool AToGiftDestinationNeedsEnded)
 Finds if an active Gift Destination exists and checkes if it can be merged More...
 
static PPartnerGiftDestinationRow GetActiveGiftDestination (PPartnerGiftDestinationTable APartnersGiftDestinations)
 Finds the active Gift Destination (if it exists) More...
 
static void CheckGiftDestinationClashes (PPartnerGiftDestinationTable AToPartnersGiftDestinations, PPartnerGiftDestinationRow AFromActiveRow, out PPartnerGiftDestinationRow AFromGiftDestinationNeedsEnded, out PPartnerGiftDestinationRow AToGiftDestinationNeedsEnded)
 Checkes for clashes when moving an active Gift Destination to a new Family More...
 

Detailed Description

Performs server-side lookups for the Client in the MCommon DataReader sub-namespace.

Member Function Documentation

◆ ActiveGiftDestination()

static bool Ict.Petra.Server.MPartner.Partner.WebConnectors.TMergePartnersCheckWebConnector.ActiveGiftDestination ( long  AFromPartnerKey,
long  AToPartnerKey,
TPartnerClass  APartnerClass,
out bool  AFromGiftDestinationNeedsEnded,
out bool  AToGiftDestinationNeedsEnded 
)
inlinestatic

Finds if an active Gift Destination exists and checkes if it can be merged

Parameters
AFromPartnerKeyPartner being merged from
AToPartnerKeyPartner being merged to
APartnerClassPartner class of both partners
AFromGiftDestinationNeedsEndedTrue if active 'From' Gift Destination needs it's expiry date modified in order to merge
AToGiftDestinationNeedsEndedTrue if active 'To' Gift Destination needs it's expiry date modified in order to merge
Returns

◆ CanFamilyMergeIntoDifferentClass()

static int Ict.Petra.Server.MPartner.Partner.WebConnectors.TMergePartnersCheckWebConnector.CanFamilyMergeIntoDifferentClass ( long  APartnerKey)
inlinestatic

this will validate two partners who have been selected to be merged

Parameters
APartnerKey
Returns
0: there are no probelms, 1: family members exist, 2: donations exist, 3: bank accounts exist

◆ CheckGiftDestinationClashes()

static void Ict.Petra.Server.MPartner.Partner.WebConnectors.TMergePartnersCheckWebConnector.CheckGiftDestinationClashes ( PPartnerGiftDestinationTable  AToPartnersGiftDestinations,
PPartnerGiftDestinationRow  AFromActiveRow,
out PPartnerGiftDestinationRow  AFromGiftDestinationNeedsEnded,
out PPartnerGiftDestinationRow  AToGiftDestinationNeedsEnded 
)
inlinestatic

Checkes for clashes when moving an active Gift Destination to a new Family

Parameters
AToPartnersGiftDestinationsNew Family's Gift Destination
AFromActiveRowActive Gift Destination to be moved
AFromGiftDestinationNeedsEndedReturns record with an effective date that the Active Row needs to be expired before
AToGiftDestinationNeedsEndedReturns record that needs expired before the Active Row is effective

◆ CheckPartnerCommitments()

static int Ict.Petra.Server.MPartner.Partner.WebConnectors.TMergePartnersCheckWebConnector.CheckPartnerCommitments ( long  AFromPartnerKey,
long  AToPartnerKey,
TPartnerClass  APartnerClass 
)
inlinestatic

check if persons have ongoing commitments or if familys contain persons with ongoing commitments

Parameters
AFromPartnerKeyMerge from Partner
AToPartnerKeyMerge to Partner
APartnerClassPartner Class for both Partners
Returns
0: no commitments, 1: from partner/family only has commitments, 2: from and to partner/family have commitments, 3: to or/and from commitments and both in same family (person class only)

◆ CheckPartnersCanBeMerged()

static bool Ict.Petra.Server.MPartner.Partner.WebConnectors.TMergePartnersCheckWebConnector.CheckPartnersCanBeMerged ( long  AFromPartnerKey,
long  AToPartnerKey,
TPartnerClass  AFromPartnerClass,
TPartnerClass  AToPartnerClass,
string  AReasonForMerging,
out TVerificationResultCollection  AVerificationResult 
)
inlinestatic

performs checks to determine if two partners can be merged

Parameters
AFromPartnerKeyFrom Partner's Partner Key
AToPartnerKeyTo Partner's Partner Key
AFromPartnerClassFrom Partner's Partner Class
AToPartnerClassTo Partner's Partner Class
AReasonForMergingCombo box selection for reason for merging
AVerificationResult
Returns
True if partners can be merged

◆ GetActiveGiftDestination()

static PPartnerGiftDestinationRow Ict.Petra.Server.MPartner.Partner.WebConnectors.TMergePartnersCheckWebConnector.GetActiveGiftDestination ( PPartnerGiftDestinationTable  APartnersGiftDestinations)
inlinestatic

Finds the active Gift Destination (if it exists)

Parameters
APartnersGiftDestinationsTable containing the Gift Destinations for one Family Partner
Returns
Returns the active Gift Destination or null if none exist

◆ GetOrganisationFoundation()

static PFoundationTable Ict.Petra.Server.MPartner.Partner.WebConnectors.TMergePartnersCheckWebConnector.GetOrganisationFoundation ( long  AFromPartnerKey)
inlinestatic

get the PFoundation table for an organisation if it is a foundation

Parameters
AFromPartnerKeyOrganisation's Partner Key
Returns
Returns PFoundation table containing an organisation's foundation records if they exist. Otherwise returns null.

◆ GetPartnerBankingDetails()

static PBankingDetailsTable Ict.Petra.Server.MPartner.Partner.WebConnectors.TMergePartnersCheckWebConnector.GetPartnerBankingDetails ( long  AFromPartnerKey,
long  AToPartnerKey 
)
inlinestatic

get the banking details of the From Partner and the To Partner in a single table

◆ GetPartnerContactDetails()

static PartnerEditTDSPPartnerAttributeTable Ict.Petra.Server.MPartner.Partner.WebConnectors.TMergePartnersCheckWebConnector.GetPartnerContactDetails ( long  AFromPartnerKey,
long  AToPartnerKey 
)
inlinestatic

get the contact details of the From Partner

◆ GetSupplierCurrency()

static bool Ict.Petra.Server.MPartner.Partner.WebConnectors.TMergePartnersCheckWebConnector.GetSupplierCurrency ( long  APartnerKey,
out string  ACurrency 
)
inlinestatic

returns the supplier currency for a partner if it is a supplier

Parameters
APartnerKey
ACurrency
Returns
true if partner is a supplier and a currency is found

◆ NeedMainBankAccount()

static bool Ict.Petra.Server.MPartner.Partner.WebConnectors.TMergePartnersCheckWebConnector.NeedMainBankAccount ( long  AFromPartnerKey,
long  AToPartnerKey 
)
inlinestatic

determines if the user needs to select a main bank account for the merged record

Parameters
AFromPartnerKeyFrom Partner Key
AToPartnerKeyTo Partner Key
Returns
Returns PFoundation table containing an organisation's foundation records if they exist. Otherwise returns null.

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