OpenPetra
Free Administration Software for Non-Profits
|
Helper Class that aids in the conversion of certain p_partner_location data columns' content into Contact Details. More...
Classes | |
class | PPartnerAttributeRecord |
Holds data of a p_partner_attribute Record. More... | |
Public Member Functions | |
void | CreatePartnerContactDetailRecord (PPartnerAttributeRecord APPARec, DataSet AMainDS, TDataBase ADataBase=null) |
Creates a PPartnerAttribute Record out of data that is held in a data structure that is a p_partner_attribute representation. More... | |
void | AddOldDBTableColumnsToPartnerLocation (DataTable APartnerLocationDT) |
This adds DataColumns to the p_partner_location Table that will no longer be defined in the DB Schema once the Contact Details schema has been implemented in full. These Columns are needed because Petra 2.x's DB Scheme has them and we need to be able to store that data (temporarily only - for conversion into p_partner_attribute records). More... | |
bool | ExistingPartnerAttributes (PPartnerAttributeRow AImportedPartnerAttribRow, out PPartnerAttributeRow AFoundPartnerAttribDR, TDBTransaction ATransaction) |
Checks whether Partner Attributes of the same Attribute Type exist in the database. More... | |
void | TakeExistingPartnerAttributeRecordAndModifyIt (PPartnerAttributeRow AImportedPartnerAttributeDR, PPartnerAttributeRow AExistingPartnerAttributeDR) |
Takes an PPartnerAttribute Row from the DB and modifies it with data from a PPartnerAttribute Row that got populated from imported data. More... | |
Public Attributes | |
Func< PPartnerAttributeRow, StringCollection, TDBTransaction, PPartnerAttributeTable > | PartnerAttributeLoadUsingTemplate |
Func Delegate for loading of PPartnerAttribute data from the DB using a Template Record. More... | |
Helper Class that aids in the conversion of certain p_partner_location data columns' content into Contact Details.
|
inline |
This adds DataColumns to the p_partner_location Table that will no longer be defined in the DB Schema once the Contact Details schema has been implemented in full. These Columns are needed because Petra 2.x's DB Scheme has them and we need to be able to store that data (temporarily only - for conversion into p_partner_attribute records).
APartnerLocationDT | An instance of the p_partner_location DataTable. |
|
inline |
Creates a PPartnerAttribute Record out of data that is held in a data structure that is a p_partner_attribute representation.
APPARec | Data structure that is p_partner_attribute representation. |
AMainDS | DataSet to which the PPartnerAttribute Record should be added to. |
ADataBase |
|
inline |
Checks whether Partner Attributes of the same Attribute Type exist in the database.
AImportedPartnerAttribRow | PPartnerAttributeRow that holds the imported data. |
AFoundPartnerAttribDR | PPartnerAttributeRow that holds the record that was found - if one was found, otherwise this is null. |
ATransaction | Instantiated DB Transaction. |
|
inline |
Takes an PPartnerAttribute Row from the DB and modifies it with data from a PPartnerAttribute Row that got populated from imported data.
AImportedPartnerAttributeDR | PPartnerAttribute Row that got populated from imported data. |
AExistingPartnerAttributeDR | PPartnerAttribute Row from the DB. |
Func<PPartnerAttributeRow, StringCollection, TDBTransaction, PPartnerAttributeTable> Ict.Petra.Server.MPartner.ImportExport.TPartnerContactDetails_LocationConversionHelper.PartnerAttributeLoadUsingTemplate |
Func Delegate for loading of PPartnerAttribute data from the DB using a Template Record.