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

store and maintain all contact details with partners, eg. phone calls, letters sent/received, emails, publications sent, etc More...

Static Public Member Functions

static void AddContactAttributeToContacts (int contactId, List< Int64 >APartnerKeys, List< int >attributeCode, List< int >attributeDetailCode)
 
static void AddContactLog (int AExtractId, PContactLogTable AContactLogTable, PPartnerContactAttributeTable APartnerContactAttributeTable)
 Adds a Contact Log record to each Partner in the given Extract More...
 
static void AddContactLog (List< Int64 >APartnerKeys, DateTime AContactDate, string AContactor, string AMethodOfContact, string AComment, string AModuleID, string AMailingCode)
 this is useful when applying contact details to a group of people at the same time More...
 
static DataTable FindContacts (string AContactor, DateTime? AContactDate, string ACommentContains, string AMethodOfContact, string AModuleID, string AMailingCode, PPartnerContactAttributeTable AContactAttributes)
 get all contacts that meet the given criteria. More...
 
static PartnerEditTDS GetPartnerContactLogData (long APartnerKey, TDataBase ADataBase=null)
 This returns all the data needed for the Patner Edit Contact Log tab More...
 
static bool IsContactLogAssociatedWithMoreThanOnePartner (long AContactLogId)
 Determines whether this ContactLog is associated with more than one Partner More...
 
static bool IsContactLogAssociatedWithMoreThanOnePartner (long AContactLogId, TDBTransaction ATransaction)
 Determines whether this ContactLog is associated with more than one Partner More...
 
static void DeleteContacts (DataTable AContactLogs)
 delete all contacts that have been marked for deletion. this should help when something went wrong and needs to be corrected More...
 

Detailed Description

store and maintain all contact details with partners, eg. phone calls, letters sent/received, emails, publications sent, etc

Member Function Documentation

◆ AddContactAttributeToContacts()

static void Ict.Petra.Server.MPartner.Partner.WebConnectors.TContactsWebConnector.AddContactAttributeToContacts ( int  contactId,
List< Int64 >  APartnerKeys,
List< int >  attributeCode,
List< int >  attributeDetailCode 
)
inlinestatic

Parameters
contactId
APartnerKeys
attributeCode
attributeDetailCode

◆ AddContactLog() [1/2]

static void Ict.Petra.Server.MPartner.Partner.WebConnectors.TContactsWebConnector.AddContactLog ( int  AExtractId,
PContactLogTable  AContactLogTable,
PPartnerContactAttributeTable  APartnerContactAttributeTable 
)
inlinestatic

Adds a Contact Log record to each Partner in the given Extract

Parameters
AExtractId
AContactLogTable
APartnerContactAttributeTable

◆ AddContactLog() [2/2]

static void Ict.Petra.Server.MPartner.Partner.WebConnectors.TContactsWebConnector.AddContactLog ( List< Int64 >  APartnerKeys,
DateTime  AContactDate,
string  AContactor,
string  AMethodOfContact,
string  AComment,
string  AModuleID,
string  AMailingCode 
)
inlinestatic

this is useful when applying contact details to a group of people at the same time

Parameters
APartnerKeys
AContactDate
AContactor
AMethodOfContact
AComment
AModuleID
AMailingCode

◆ DeleteContacts()

static void Ict.Petra.Server.MPartner.Partner.WebConnectors.TContactsWebConnector.DeleteContacts ( DataTable  AContactLogs)
inlinestatic

delete all contacts that have been marked for deletion. this should help when something went wrong and needs to be corrected

Parameters
AContactLogstable with deleted rows. edited or untouched rows will not be deleted.

◆ FindContacts()

static DataTable Ict.Petra.Server.MPartner.Partner.WebConnectors.TContactsWebConnector.FindContacts ( string  AContactor,
DateTime?  AContactDate,
string  ACommentContains,
string  AMethodOfContact,
string  AModuleID,
string  AMailingCode,
PPartnerContactAttributeTable  AContactAttributes 
)
inlinestatic

get all contacts that meet the given criteria.

Parameters
AContactoruser id of the person who made the contact
AContactDateonly the date will be used, the time is not considered
ACommentContainscan be an empty string
AMethodOfContact
AModuleID
AMailingCodecan be an empty string
AContactAttributescan be an empty table
Returns
the contacts table with all contacts that match

◆ GetPartnerContactLogData()

static PartnerEditTDS Ict.Petra.Server.MPartner.Partner.WebConnectors.TContactsWebConnector.GetPartnerContactLogData ( long  APartnerKey,
TDataBase  ADataBase = null 
)
inlinestatic

This returns all the data needed for the Patner Edit Contact Log tab

Parameters
APartnerKey
ADataBase
Returns

◆ IsContactLogAssociatedWithMoreThanOnePartner() [1/2]

static bool Ict.Petra.Server.MPartner.Partner.WebConnectors.TContactsWebConnector.IsContactLogAssociatedWithMoreThanOnePartner ( long  AContactLogId)
inlinestatic

Determines whether this ContactLog is associated with more than one Partner

Parameters
AContactLogId
Returns

◆ IsContactLogAssociatedWithMoreThanOnePartner() [2/2]

static bool Ict.Petra.Server.MPartner.Partner.WebConnectors.TContactsWebConnector.IsContactLogAssociatedWithMoreThanOnePartner ( long  AContactLogId,
TDBTransaction  ATransaction 
)
inlinestatic

Determines whether this ContactLog is associated with more than one Partner

Parameters
AContactLogId
ATransaction
Returns

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