|
OpenPetra
Free Administration Software for Non-Profits
|
methods for extract master list More...
Static Public Member Functions | |
| static ExtractTDSMExtractMasterTable | GetAllExtractHeaders () |
| retrieve all extract master records More... | |
| static MExtractMasterTable | GetAllExtractHeaders (String AExtractNameFilter, Boolean AAllUsers, String AUserCreated, String AUserModified) |
| retrieve all extract master records that match given criteria More... | |
| static ExtractTDSMExtractMasterTable | GetAllExtractHeaders (String AExtractNameFilter, String AExtractDescFilter, Boolean AAllUsers, String AUserCreated, String AUserModified, DateTime? ADateCreatedFrom, DateTime? ADateCreatedTo, DateTime? ADateModifiedFrom, DateTime ? ADateModifiedTo) |
| retrieve all extract master records that match given criteria More... | |
| static Boolean | ExtractExists (String AExtractName) |
| check if extract with given name already exists More... | |
| static Int32 | GetExtractId (String AExtractName) |
| return extract id for given extract name More... | |
| static String | GetExtractName (Int32 AExtractId) |
| return extract id for given extract name More... | |
| static Boolean | CreateEmptyExtract (ref int AExtractId, String AExtractName, String AExtractDescription) |
| create an empty extract with given name and description More... | |
| static Boolean | CreateNewExtractFromPartnerKeys (ref int AExtractId, String AExtractName, String AExtractDescription, DataTable APartnerKeysTable, int APartnerKeysColumnId, bool AIgnoreInactive, bool AIgnoreNonMailingLocations, bool AIgnoreNoSolicitations, out int ANumberOfRowsCreated, out List< long >AIgnoredKeyList) |
| Creates a new extract containing the partners whose keys are specified in the table More... | |
| static Boolean | CreateFamilyMembersExtract (int ABaseExtractId, ref int AExtractId, String AExtractName, String AExtractDescription) |
| create an extract of all family members (persons) existing in a base extract More... | |
| static Boolean | CreateFamilyExtractForPersons (int ABaseExtractId, ref int AExtractId, String AExtractName, String AExtractDescription) |
| create an extract containing all families of persons in a base extract More... | |
| static Int32 | PurgeExtractsCount (int ANumberOfDays, Boolean AAllUsers, String AUserName) |
| Get the number of extracts that would be deleted if a purge (delete) operation were executed for specific users and older than x days. This method can be used to give the client an idea of how many extract swill get deleted if they proceed with an actual purge. More... | |
| static Boolean | PurgeExtracts (int ANumberOfDays, Boolean AAllUsers, String AUserName) |
| purge (delete) extracts for specific users and older than x days More... | |
| static ExtractTDSMExtractTable | GetExtractRowsWithPartnerData (int AExtractId) |
| retrieve extract records and include partner name and class More... | |
| static TSubmitChangesResult | SaveExtractMaster (ref MExtractMasterTable AExtractMasterTable) |
| save extract master table records (includes cascading delete if record is deleted) More... | |
| static TSubmitChangesResult | SaveExtract (int AExtractId, ref MExtractTable AExtractTable) |
| save extract table records More... | |
| static Boolean | SubscriptionExists (Int64 APartnerKey, String APublicationCode) |
| retrieve information if partner has subscription for certain publication More... | |
| static void | AddSubscription (int AExtractId, ref PSubscriptionTable ATable, out PPartnerTable AExistingSubscriptionPartners, out int ASubscriptionsAdded) |
| add subscription for all partners in a given extract More... | |
| static void | ChangeSubscription (int AExtractId, ref PSubscriptionTable ATable, List< String >AFieldsToChange, out PPartnerTable APartnersWithoutSubscription, out int ASubscriptionsChanged) |
| change subscription for all partners in a given extract for which the subscription exists More... | |
| static Boolean | DeleteSubscription (int AExtractId, Int64 APartnerKey, String APublicationCode) |
| delete subscription for a partner in a given extract More... | |
| static void | UpdatePartnerType (int AExtractId, Boolean AAdd, String ATypeCode) |
| update solicitations flag for all partners in given extract More... | |
| static Boolean | UpdateSolicitationFlag (int AExtractId, Boolean ANoSolicitations, out int ARowsAffected) |
| update solicitations flag for all partners in given extract More... | |
| static Boolean | UpdateEmailGiftStatement (int AExtractId, Boolean AEmailGiftStatement, out int ARowsAffected) |
| update email gift statement flag for all partners in given extract More... | |
| static Boolean | UpdateReceiptFrequency (int AExtractId, Boolean AUpdateReceiptLetterFrequency, String AReceiptLetterFrequency, Boolean AUpdateReceiptEachGift, Boolean AReceiptEachGift) |
| update receipt letter frequency and 'receipt each gift' flag for all partners in given extract More... | |
| static Boolean | CombineExtracts (String ANewExtractName, String ANewExtractDescription, List< Int32 >ACombineExtractIdList, out Int32 ANewExtractId) |
| Creates a new extract by combining a list of given extracts. More... | |
| static Boolean | IntersectExtracts (String ANewExtractName, String ANewExtractDescription, List< Int32 >AIntersectExtractIdList, out Int32 ANewExtractId) |
| Creates a new extract by intersecting a list of given extracts. More... | |
| static Boolean | SubtractExtracts (String ANewExtractName, String ANewExtractDescription, String ABaseExtractName, List< Int32 >ASubtractExtractIdList, out Int32 ANewExtractId) |
| Creates a new extract by subractin a list of given extracts from a base extract. More... | |
methods for extract master list
|
inlinestatic |
add subscription for all partners in a given extract
| AExtractId | extract to add subscription to |
| ATable | table with only one subscription row to be added for each partner |
| AExistingSubscriptionPartners | table containing partners that already have subscription for given publication |
| ASubscriptionsAdded | number of subscriptions added |
|
inlinestatic |
change subscription for all partners in a given extract for which the subscription exists
| AExtractId | extract to add subscription to |
| ATable | table with only one subscription row to be changed for each partner |
| AFieldsToChange | table with only one subscription row to be changed for each partner |
| APartnersWithoutSubscription | table containing partners that do not have the given subscription |
| ASubscriptionsChanged | number of subscriptions changed |
|
inlinestatic |
Creates a new extract by combining a list of given extracts.
| ANewExtractName | Name of the Extract to be created. |
| ANewExtractDescription | Description of the Extract to be created. |
| ACombineExtractIdList | List of Ids of extracts to be combined. |
| ANewExtractId | Extract Id of the created Extract, or -1 if the creation of the Extract was not successful. |
|
inlinestatic |
create an empty extract with given name and description
| AExtractId | |
| AExtractName | |
| AExtractDescription |
|
inlinestatic |
create an extract containing all families of persons in a base extract
| ABaseExtractId | |
| AExtractId | |
| AExtractName | |
| AExtractDescription |
|
inlinestatic |
create an extract of all family members (persons) existing in a base extract
| ABaseExtractId | |
| AExtractId | |
| AExtractName | |
| AExtractDescription |
|
inlinestatic |
Creates a new extract containing the partners whose keys are specified in the table
| AExtractId | The resulting extract ID |
| AExtractName | A name for the extract |
| AExtractDescription | A description for the extract |
| APartnerKeysTable | A table of partner keys |
| APartnerKeysColumnId | The column ID for the partner keys |
| AIgnoreInactive | true if inactive partners should be ignored |
| AIgnoreNonMailingLocations | true to ignore if the partner's best address is a non-mailing location |
| AIgnoreNoSolicitations | true to ignore partners where the No Solicitations flag is set |
| ANumberOfRowsCreated | Returns the number of partner keys in the final extract (any duplicates are excluded) |
| AIgnoredKeyList | A reference to a List of long. If not null the server will fill it with the partner keys that were ignored. Does not include duplicates. |
|
inlinestatic |
delete subscription for a partner in a given extract
| AExtractId | |
| APublicationCode | |
| APartnerKey |
|
inlinestatic |
check if extract with given name already exists
| AExtractName |
|
inlinestatic |
retrieve all extract master records
|
inlinestatic |
retrieve all extract master records that match given criteria
| AExtractNameFilter | |
| AAllUsers | |
| AUserCreated | |
| AUserModified |
|
inlinestatic |
retrieve all extract master records that match given criteria
| AExtractNameFilter | |
| AExtractDescFilter | |
| AAllUsers | |
| AUserCreated | |
| AUserModified | |
| ADateCreatedFrom | |
| ADateCreatedTo | |
| ADateModifiedFrom | |
| ADateModifiedTo |
|
inlinestatic |
return extract id for given extract name
| AExtractName |
|
inlinestatic |
return extract id for given extract name
| AExtractId |
|
inlinestatic |
retrieve extract records and include partner name and class
| AExtractId |
|
inlinestatic |
Creates a new extract by intersecting a list of given extracts.
| ANewExtractName | Name of the Extract to be created. |
| ANewExtractDescription | Description of the Extract to be created. |
| AIntersectExtractIdList | List of Ids of extracts to be intersected. |
| ANewExtractId | Extract Id of the created Extract, or -1 if the creation of the Extract was not successful. |
|
inlinestatic |
purge (delete) extracts for specific users and older than x days
| ANumberOfDays | |
| AAllUsers | |
| AUserName |
|
inlinestatic |
Get the number of extracts that would be deleted if a purge (delete) operation were executed for specific users and older than x days. This method can be used to give the client an idea of how many extract swill get deleted if they proceed with an actual purge.
| ANumberOfDays | |
| AAllUsers | |
| AUserName |
|
inlinestatic |
save extract table records
| AExtractId | |
| AExtractTable |
|
inlinestatic |
save extract master table records (includes cascading delete if record is deleted)
| AExtractMasterTable |
|
inlinestatic |
retrieve information if partner has subscription for certain publication
| APartnerKey | |
| APublicationCode |
|
inlinestatic |
Creates a new extract by subractin a list of given extracts from a base extract.
| ANewExtractName | Name of the Extract to be created. |
| ANewExtractDescription | Description of the Extract to be created. |
| ABaseExtractName | Base extract to subtract other extracts from. |
| ASubtractExtractIdList | List of Ids of extracts to be subtracted from base extract. |
| ANewExtractId | Extract Id of the created Extract, or -1 if the creation of the Extract was not successful. |
|
inlinestatic |
update email gift statement flag for all partners in given extract
| AExtractId | |
| AEmailGiftStatement | |
| ARowsAffected |
|
inlinestatic |
update solicitations flag for all partners in given extract
| AExtractId | |
| AAdd | if true then add type, otherwise delete it |
| ATypeCode |
|
inlinestatic |
update receipt letter frequency and 'receipt each gift' flag for all partners in given extract
| AExtractId | |
| AUpdateReceiptLetterFrequency | |
| AReceiptLetterFrequency | |
| AUpdateReceiptEachGift | |
| AReceiptEachGift |
|
inlinestatic |
update solicitations flag for all partners in given extract
| AExtractId | |
| ANoSolicitations | |
| ARowsAffected |