OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Server.MPersonnel.Person.DataElements.WebConnectors.TIndividualDataWebConnector Class Reference

Web Connector for the Individual Data of a PERSON. More...

Static Public Member Functions

static IndividualDataTDS GetData (Int64 APartnerKey, TIndividualDataItemEnum AIndivDataItem)
 Passes data as a Typed DataSet to the caller, containing a DataTable that corresponds with AIndivDataItem . More...
 
static bool GetSummaryData (Int64 APartnerKey, ref IndividualDataTDS AIndividualDataDS)
 Retrieves data that will be shown on the 'Overview' UserControl and adds it to AIndividualDataDS . More...
 
static TSubmitChangesResult SubmitChangesServerSide (ref IndividualDataTDS AInspectDS, ref PartnerEditTDS APartnerEditInspectDS, TDBTransaction ASubmitChangesTransaction, out TVerificationResultCollection AVerificationResult)
 Saves data from the Individual Data UserControls (contained in a DataSet). More...
 

Detailed Description

Web Connector for the Individual Data of a PERSON.

Member Function Documentation

◆ GetData()

static IndividualDataTDS Ict.Petra.Server.MPersonnel.Person.DataElements.WebConnectors.TIndividualDataWebConnector.GetData ( Int64  APartnerKey,
TIndividualDataItemEnum  AIndivDataItem 
)
inlinestatic

Passes data as a Typed DataSet to the caller, containing a DataTable that corresponds with AIndivDataItem .

Starts and ends a DB Transaction automatically if there isn't one running yet.

Parameters
APartnerKeyPartnerKey of the Person to load data for.
AIndivDataItemThe Individual Data Item for which data should be returned.
Returns
A Typed DataSet containing a DataTable that corresponds with AIndivDataItem .

◆ GetSummaryData()

static bool Ict.Petra.Server.MPersonnel.Person.DataElements.WebConnectors.TIndividualDataWebConnector.GetSummaryData ( Int64  APartnerKey,
ref IndividualDataTDS  AIndividualDataDS 
)
inlinestatic

Retrieves data that will be shown on the 'Overview' UserControl and adds it to AIndividualDataDS .

Parameters
APartnerKeyPartnerKey of the PERSON to load data for.
AIndividualDataDSTyped DataSet of Type IndividualDataTDS. Needs to be instantiated already!

◆ SubmitChangesServerSide()

static TSubmitChangesResult Ict.Petra.Server.MPersonnel.Person.DataElements.WebConnectors.TIndividualDataWebConnector.SubmitChangesServerSide ( ref IndividualDataTDS  AInspectDS,
ref PartnerEditTDS  APartnerEditInspectDS,
TDBTransaction  ASubmitChangesTransaction,
out TVerificationResultCollection  AVerificationResult 
)
inlinestatic

Saves data from the Individual Data UserControls (contained in a DataSet).

Parameters
AInspectDSDataSet for the Personnel Individual Data.
APartnerEditInspectDSDataSet for the whole Partner Edit screen.
ASubmitChangesTransactionOpen Database transaction.
AVerificationResultNil if all verifications are OK and all DB calls succeded, otherwise filled with 1..n TVerificationResult objects (can also contain DB call exceptions).
Returns
True if all verifications are OK and all DB calls succeeded, false if any verification or DB call failed.

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