|
OpenPetra
Free Administration Software for Non-Profits
|
Performs server-side lookups for the Client in the MPartner.ServerLookups sub-namespace. More...
Static Public Member Functions | |
| static Boolean | GetPartnerShortName (Int64 APartnerKey, out String APartnerShortName, out TPartnerClass APartnerClass, Boolean AMergedPartners=true) |
| Gets the ShortName of a Partner. More... | |
| static Int64 | GetPartnerGiftDestination (Int64 APartnerKey, DateTime ? AGiftDate) |
| Gets the Gift Destination of a Partner. More... | |
| static Boolean | VerifyPartner (Int64 APartnerKey, TPartnerClass[] AValidPartnerClasses, out bool APartnerExists, out String APartnerShortName, out TPartnerClass APartnerClass, out TStdPartnerStatusCode APartnerStatus) |
| Verifies the existence of a Partner. More... | |
| static Boolean | PartnerHasActiveStatus (Int64 APartnerKey) |
| Test whether a Partner is Active. More... | |
| static Boolean | PartnerIsLinkedToCC (Int64 APartnerKey) |
| Is this the key of a valid Gift Recipient? More... | |
| static Boolean | PartnerOfTypeCCIsLinked (Int32 ALedgerNumber, Int64 APartnerKey) |
| Is this Recipient, if of type CC, linked? More... | |
| static Boolean | PartnerHasCurrentGiftDestination (Int64 APartnerKey, DateTime ? AGiftDate) |
| Does this Recipient have a valid current gift destination? More... | |
| static Boolean | VerifyPartnerAndGetDetails (Int64 APartnerKey, out String APartnerShortName, out TPartnerClass APartnerClass, out Boolean AIsMergedPartner, out Boolean AUserCanAccessPartner) |
| Verifies the existence of a Partner and checks if the current user can modify it. More... | |
| static Boolean | VerifyPartner (Int64 APartnerKey) |
| Verifies the existence of a Partner More... | |
| static Boolean | VerifyPartnerAtLocation (Int64 APartnerKey, TLocationPK ALocationKey, out bool AAddressIsCurrent, out bool AAddressIsMailing) |
| Verifies the existence of a Partner at a given location More... | |
| static Boolean | MergedPartnerDetails (Int64 AMergedPartnerPartnerKey, out String AMergedPartnerPartnerShortName, out TPartnerClass AMergedPartnerPartnerClass, out Int64 AMergedIntoPartnerKey, out String AMergedIntoPartnerShortName, out TPartnerClass AMergedIntoPartnerClass, out String AMergedBy, out DateTime AMergeDate) |
| Returns information about a Partner that was Merged and about the Partner it was merged into. More... | |
| static Boolean | PartnerInfo (Int64 APartnerKey, TPartnerInfoScopeEnum APartnerInfoScope, out PartnerInfoTDS APartnerInfoDS) |
| Retrieves information about a Partner. More... | |
| static Boolean | PartnerInfo (Int64 APartnerKey, TLocationPK ALocationKey, TPartnerInfoScopeEnum APartnerInfoScope, out PartnerInfoTDS APartnerInfoDS) |
| Retrieves information about a Partner. More... | |
| static bool | GetPartnerReceiptingInfo (Int64 APartnerKey, out bool AReceiptEachGift, out String AReceiptLetterFrequency, out bool AEmailGiftStatement, out bool AAnonymousDonor) |
| Retrieves receipting fields from a partner key. More... | |
| static Boolean | GetExtractDescription (String AExtractName, out String AExtractDescription) |
| Retrieves the description of an extract. More... | |
| static Boolean | GetPartnerFoundationStatus (Int64 APartnerKey, out Boolean AIsFoundation) |
| Gets the foundation status of the partner. This function should only be called for partners of type organisation. More... | |
| static Boolean | GetRecentlyUsedPartners (int AMaxPartnersCount, ArrayList APartnerClasses, out Dictionary< long, string >ARecentlyUsedPartners) |
| Get a list of the last used partners from the current user. More... | |
| static Int64 | GetFamilyKeyForPerson (Int64 APersonKey) |
| Gets the family partner key of a person record. This function should only be called for partners of type person. More... | |
| static string | GetCountryCodeFromSiteLedger () |
| static bool | GetUnitNameAndCountryCodeFromPartnerKey (Int64 APartnerKey, out string AUnitName, out string ACountryCode) |
| Can be used to recover basic p_unit information More... | |
Performs server-side lookups for the Client in the MPartner.ServerLookups sub-namespace.
|
inlinestatic |
|
inlinestatic |
Retrieves the description of an extract.
| AExtractName | The name which identifies the extract |
| AExtractDescription | The description of the extract |
|
inlinestatic |
Gets the family partner key of a person record. This function should only be called for partners of type person.
| APersonKey | Partner key of the person to retrieve the family key for Partner must be a person. |
EOPAppException if we don't find a partner or if the partner is not an organisation
|
inlinestatic |
Gets the foundation status of the partner. This function should only be called for partners of type organisation.
| APartnerKey | Partner key of the partner to retrieve the foundation status. Partner must be an organisation. |
| AIsFoundation | true if the partner (organisation) is a foundation. Otherwise false |
EOPAppException if we don't find a partner or if the partner is not an organisation
|
inlinestatic |
|
inlinestatic |
Retrieves receipting fields from a partner key.
| APartnerKey | |
| AReceiptEachGift | |
| AReceiptLetterFrequency | |
| AEmailGiftStatement | |
| AAnonymousDonor |
|
inlinestatic |
Gets the ShortName of a Partner.
| APartnerKey | PartnerKey of Partner to find the short name for |
| APartnerShortName | ShortName for the found Partner ('' if Partner doesn't exist or PartnerKey is 0) |
| APartnerClass | Partner Class of the found Partner (FAMILY if Partner doesn't exist or PartnerKey is 0) |
| AMergedPartners | Set to false if the function should return 'false' if the Partner' Partner Status is MERGED |
|
inlinestatic |
Get a list of the last used partners from the current user.
| AMaxPartnersCount | Maxinum numbers of Partners to return |
| APartnerClasses | List of partner classes which kind of partners the result should contain. If it contains "*" then all recent partners will be returned otherwise only the partners whose partner class is in APartnerClasses. |
| ARecentlyUsedPartners | List of the last used partner names and partner keys |
|
inlinestatic |
Can be used to recover basic p_unit information
| APartnerKey | The Partner Key of the UNIT |
| AUnitName | Returns the Unit short name |
| ACountryCode | Returns the country code stored for this unit. It may be 99. |
|
inlinestatic |
Returns information about a Partner that was Merged and about the Partner it was merged into.
| AMergedPartnerPartnerKey | PartnerKey of Merged Partner. |
| AMergedPartnerPartnerShortName | ShortName of Merged Partner. |
| AMergedPartnerPartnerClass | Partner Class of Merged Partner. |
| AMergedIntoPartnerKey | PartnerKey of Merged-Into Partner. (Only populated if that information is available.) |
| AMergedIntoPartnerShortName | ShortName of Merged-Into Partner. (Only populated if that information is available.) |
| AMergedIntoPartnerClass | PartnerClass of Merged-Into Partner. (Only populated if that information is available.) |
| AMergedBy | User who performed the Partner Merge operation. (Only populated if that information is available.) |
| AMergeDate | Date on which the Partner Merge operation was done. (Only populated if that information is available.) |
|
inlinestatic |
Test whether a Partner is Active.
|
inlinestatic |
Does this Recipient have a valid current gift destination?
| APartnerKey | |
| AGiftDate |
|
inlinestatic |
Retrieves information about a Partner.
The information returned can be of different scope. Scope refers to the amount/detail of information that is returned. The scope is defined with the APartnerInfoScope parameter. Larger scope means longer time is needed for the retrieval of the data and a larger DataSet to transfer to the Client (if this Method is called from the Client)!
| APartnerKey | PartnerKey of Partner to find the short name for |
| ALocationKey | Location Key of the Location that the information should be retrieved for. |
| APartnerInfoScope | Defines the scope of data that should be returned for the Partner. |
| APartnerInfoDS | Typed DataSet of Type PartnerInfoTDS that contains the Partner Information that was requested for the Partner. |
|
inlinestatic |
Retrieves information about a Partner.
The information returned can be of different scope. Scope refers to the amount/detail of information that is returned. The scope is defined with the APartnerInfoScope parameter. Larger scope means longer time is needed for the retrieval of the data and a larger DataSet to transfer to the Client (if this Method is called from the Client)!
| APartnerKey | PartnerKey of Partner to find the short name for |
| APartnerInfoScope | Defines the scope of data that should be returned for the Partner. |
| APartnerInfoDS | Typed DataSet of Type PartnerInfoTDS that contains the Partner Information that was requested for the Partner. |
|
inlinestatic |
Is this the key of a valid Gift Recipient?
| APartnerKey |
|
inlinestatic |
Is this Recipient, if of type CC, linked?
| ALedgerNumber | The ledger where the partner should be linked to a cost center. This can be overwritten by the parameter LedgerForPartnerCCLinks in the config file |
| APartnerKey |
|
inlinestatic |
|
inlinestatic |
Verifies the existence of a Partner.
| APartnerKey | PartnerKey of Partner to find the short name for. |
| AValidPartnerClasses | Pass in a array of valid PartnerClasses that the Partner is allowed to have (eg. [PERSON, FAMILY], or an empty array ( [] ). |
| APartnerExists | True if the Partner exists in the database or if PartnerKey is 0. |
| APartnerShortName | ShortName for the found Partner ('' if Partner doesn't exist or PartnerKey is 0). |
| APartnerClass | Partner Class of the found Partner (FAMILY if Partner doesn't exist or PartnerKey is 0). |
| APartnerStatus | Partner Status |
|
inlinestatic |
Verifies the existence of a Partner and checks if the current user can modify it.
| APartnerKey | PartnerKey of Partner to find the short name for |
| APartnerShortName | ShortName for the found Partner ('' if Partner doesn't exist or PartnerKey is 0) |
| APartnerClass | Partner Class of the found Partner (FAMILY if Partner doesn't exist or PartnerKey is 0) |
| AIsMergedPartner | true if the Partner' Partner Status is MERGED, otherwise false |
| AUserCanAccessPartner | true if the current user has the rights to access this partner |
|
inlinestatic |