OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Server.MPartner.PartnerFind.TPartnerFind Class Reference

Base for the Partner Find Screen UIConnector. We need this in MPartner.Common, so that we can use the functionality from the SimplePartnerFind WebConnector as well More...

Public Member Functions

void PerformSearch (DataTable ACriteriaData, bool ADetailedResults, bool AUseDifferentThread=true)
 Procedure to execute a Find query. Although the full query results are retrieved from the DB and stored internally in an object, data will be returned in 'pages' of data, each page holding a defined number of records. More...
 
void PerformSearchByBankDetails (DataTable ACriteriaData)
 Procedure to execute a Find query. Although the full query results are retrieved from the DB and stored internally in an object, data will be returned in 'pages' of data, each page holding a defined number of records. More...
 
DataTable GetDataPagedResult (System.Int16 APage, System.Int16 APageSize, out System.Int32 ATotalRecords, out System.Int16 ATotalPages)
 Returns the specified find results page. More...
 
Int16 GetPageNumberContainingPartnerKey (Int64 APartnerKey, System.Int16 AStartPage, System.Int16 APageSize)
 Gets the page number containing given partner key. More...
 
Int32 AddAllFoundPartnersToExtract (string AExtractName, string AExtractDescription, int AExtractID, out TVerificationResultCollection AVerificationResult)
 Adds all Partners that were last found to an Extract. More...
 
DataTable FilterResultByBestAddress ()
 Modify search result: filter each result partner for best address only More...
 
bool CheckIfResultsContainPartnerKey (long APartnerKey)
 Checks if a search result contains a given partner More...
 

Properties

TProgressState Progress [get]
 Returns current state of progress More...
 

Detailed Description

Base for the Partner Find Screen UIConnector. We need this in MPartner.Common, so that we can use the functionality from the SimplePartnerFind WebConnector as well

Member Function Documentation

◆ AddAllFoundPartnersToExtract()

Int32 Ict.Petra.Server.MPartner.PartnerFind.TPartnerFind.AddAllFoundPartnersToExtract ( string  AExtractName,
string  AExtractDescription,
int  AExtractID,
out TVerificationResultCollection  AVerificationResult 
)
inline

Adds all Partners that were last found to an Extract.

Parameters
AExtractNameName of the Extract to add the Partners to.
AExtractDescriptionDescription of the Extract to add the Partners to.
AExtractIDExtractID of the Extract to add the Partners to.
AVerificationResultContains DB call exceptions, if there are any.
Returns
The number of Partners that were added to the Extract, or -1 if DB call exeptions occured.

◆ CheckIfResultsContainPartnerKey()

bool Ict.Petra.Server.MPartner.PartnerFind.TPartnerFind.CheckIfResultsContainPartnerKey ( long  APartnerKey)
inline

Checks if a search result contains a given partner

Parameters
APartnerKeyPartner key of partner
Returns
True if partner is included, false if not.

◆ FilterResultByBestAddress()

DataTable Ict.Petra.Server.MPartner.PartnerFind.TPartnerFind.FilterResultByBestAddress ( )
inline

Modify search result: filter each result partner for best address only

Returns
DataTable with filtered result

◆ GetDataPagedResult()

DataTable Ict.Petra.Server.MPartner.PartnerFind.TPartnerFind.GetDataPagedResult ( System.Int16  APage,
System.Int16  APageSize,
out System.Int32  ATotalRecords,
out System.Int16  ATotalPages 
)
inline

Returns the specified find results page.

@comment Pages can be requested in any order!

Parameters
APagePage to return
APageSizeNumber of records to return per page
ATotalRecordsThe amount of rows found by the SELECT statement
ATotalPagesThe number of pages that will be needed on client-side to hold all rows found by the SELECT statement
Returns
DataTable containing the find result records for the specified page

◆ GetPageNumberContainingPartnerKey()

Int16 Ict.Petra.Server.MPartner.PartnerFind.TPartnerFind.GetPageNumberContainingPartnerKey ( Int64  APartnerKey,
System.Int16  AStartPage,
System.Int16  APageSize 
)
inline

Gets the page number containing given partner key.

Parameters
APartnerKeyPartner key to search for
AStartPagePage to start searching
APageSizeSize of a page.
Returns

◆ PerformSearch()

void Ict.Petra.Server.MPartner.PartnerFind.TPartnerFind.PerformSearch ( DataTable  ACriteriaData,
bool  ADetailedResults,
bool  AUseDifferentThread = true 
)
inline

Procedure to execute a Find query. Although the full query results are retrieved from the DB and stored internally in an object, data will be returned in 'pages' of data, each page holding a defined number of records.

Parameters
ACriteriaDataHashTable containing non-empty Partner Find parameters.
ADetailedResultsReturns more (when true) or less (when false) columns.
AUseDifferentThreadif true, a different thread is used. otherwise the call is made directly, without progress tracker.

◆ PerformSearchByBankDetails()

void Ict.Petra.Server.MPartner.PartnerFind.TPartnerFind.PerformSearchByBankDetails ( DataTable  ACriteriaData)
inline

Procedure to execute a Find query. Although the full query results are retrieved from the DB and stored internally in an object, data will be returned in 'pages' of data, each page holding a defined number of records.

Parameters
ACriteriaDataHashTable containing non-empty Partner Find parameters.

Property Documentation

◆ Progress

TProgressState Ict.Petra.Server.MPartner.PartnerFind.TPartnerFind.Progress
get

Returns current state of progress


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