OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Server.MFinance.AP.UIConnectors.TSupplierEditUIConnector Class Reference

This UIConnector provides data for the finance Accounts Payable screens More...

Public Member Functions

 TSupplierEditUIConnector (TDataBase ADataBase=null)
 constructor More...
 
bool CanFindSupplier (Int64 APartnerKey)
 check if there is already a supplier record for the given partner More...
 
AccountsPayableTDS GetData (Int64 APartnerKey)
 Passes data as a Typed DataSet to the Supplier Edit Screen More...
 
TSubmitChangesResult SubmitChanges (ref AccountsPayableTDS AInspectDS)
 store the AP supplier More...
 

Detailed Description

This UIConnector provides data for the finance Accounts Payable screens

UIConnector Objects are instantiated by the Client's User Interface via the Instantiator classes. They handle requests for data retrieval and saving of data (including data verification).

Their role is to

  • retrieve (and possibly aggregate) data using Business Objects,
  • put this data into///one* DataSet that is passed to the Client and make sure that no unnessary data is transferred to the Client,
  • optionally provide functionality to retrieve additional, different data if requested by the Client (for Client screens that load data initially as well as later, eg. when a certain tab on the screen is clicked),
  • save data using Business Objects.

@Comment These Objects would usually not be instantiated by other Server Objects, but only by the Client UI via the Instantiator classes. However, Server Objects that derive from these objects and that are also UIConnectors are feasible. /summary>

Constructor & Destructor Documentation

◆ TSupplierEditUIConnector()

Ict.Petra.Server.MFinance.AP.UIConnectors.TSupplierEditUIConnector.TSupplierEditUIConnector ( TDataBase  ADataBase = null)
inline

constructor

Member Function Documentation

◆ CanFindSupplier()

bool Ict.Petra.Server.MFinance.AP.UIConnectors.TSupplierEditUIConnector.CanFindSupplier ( Int64  APartnerKey)
inline

check if there is already a supplier record for the given partner

Parameters
APartnerKey
Returns

◆ GetData()

AccountsPayableTDS Ict.Petra.Server.MFinance.AP.UIConnectors.TSupplierEditUIConnector.GetData ( Int64  APartnerKey)
inline

Passes data as a Typed DataSet to the Supplier Edit Screen

◆ SubmitChanges()

TSubmitChangesResult Ict.Petra.Server.MFinance.AP.UIConnectors.TSupplierEditUIConnector.SubmitChanges ( ref AccountsPayableTDS  AInspectDS)
inline

store the AP supplier

All DataTables contained in the Typed DataSet are inspected for added, changed or deleted rows by submitting them to the DataStore.

Parameters
AInspectDSTyped DataSet that needs to contain known DataTables
Returns
TSubmitChangesResult.scrOK in case everything went fine, otherwise throws an Exception.

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