|
OpenPetra
Free Administration Software for Non-Profits
|
Contains Partner Module Partner (Mailing) - Subnamespace Business Logic. More...
Static Public Member Functions | |
| static bool | GetPartnerLocations (Int64 APartnerKey, bool AMailingAddressesOnly, bool AIncludeCurrentAddresses, bool AIncludeFutureAddresses, bool AIncludeExpiredAddresses, out PPartnerLocationTable APartnerLocations, TDataBase ADataBase=null) |
| Creates a list of locations for a given Partner. More... | |
| static bool | GetPartnersBestLocationData (Int64 APartnerKey, out TLocationPK ABestAddressPK, out PLocationRow ALocationDR, out PPartnerLocationRow APartnerLocationDR, TDataBase ADataBase=null) |
| Returns the Primary Key of the Location and the Location and PartnerLocation DataRows of the 'Best Address' of a Partner. More... | |
| static TLocationPK | GetPartnersBestLocation (Int64 APartnerKey) |
| Returns the Primary Key of the Location of the 'Best Address' of a Partner. More... | |
| static string | GetBestEmailAddress (Int64 APartnerKey) |
| Gets the 'Primary Email Address'. More... | |
| static string | GetBestEmailAddressWithDetails (Int64 APartnerKey, out PLocationTable AAddress, out string ACountryNameLocal) |
| Gets the 'Primary Email Address' and some location details of the 'Best Address'. More... | |
Contains Partner Module Partner (Mailing) - Subnamespace Business Logic.
'Business Logic' refers to any logic that retrieves data in a specific way, checks the validity of modifications of data, or perform certain changes on data in a specific way.
|
inlinestatic |
Gets the 'Primary Email Address'.
|
inlinestatic |
Gets the 'Primary Email Address' and some location details of the 'Best Address'.
|
inlinestatic |
Creates a list of locations for a given Partner.
Corresponds in parts with with Progress 4GL Method 'GetPartnerLocations' in partner/maillib.p.
| APartnerKey | PartnerKey of the Partner being processed. |
| AMailingAddressesOnly | If true: only include addresses with mailing flag set. |
| AIncludeCurrentAddresses | If true: include current addresses. |
| AIncludeFutureAddresses | If true: include future addresses. |
| AIncludeExpiredAddresses | If true: include expired addresses. |
| APartnerLocations | The Locations of the Partner being processed. |
| ADataBase | An instantiated TDataBase object, or null (default = null). If null gets passed then the Method executes DB commands with a new Database connection |
|
inlinestatic |
|
inlinestatic |
Returns the Primary Key of the Location and the Location and PartnerLocation DataRows of the 'Best Address' of a Partner.
| APartnerKey | PartnerKey of the Partner for which the 'Best Address' should be loaded for. |
| ABestAddressPK | Primary Key of the 'Best Address' Location |
| ALocationDR | DataRow containing the 'Best Address' Location |
| APartnerLocationDR | DataRow containing the 'Best Address' PartnerLocation |
| ADataBase | An instantiated TDataBase object, or null (default = null). If null gets passed then the Method executes DB commands with a new Database connection |