OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Server.MFinance.ICH.WebConnectors.TGenHOSAFilesReportsWebConnector Class Reference

Class for the generation of "Home Office Statement of Accounts" reports for each foreign cost centre (ledger/fund). This is basically a modified Trial Balance. More...

Static Public Member Functions

static bool GenerateHOSAFiles (int ALedgerNumber, int APeriodNumber, int AIchNumber, string ACostCentre, String ACurrencySelect, string AFileName, out TVerificationResultCollection AVerificationResult, TDataBase ADataBase)
 Performs the ICH code to generate HOSA Files/Reports. Relates to gi3200.p/gi3200-1.i More...
 
static bool ReplaceHeaderInFile (string AFileName, string AHeaderText, ref TVerificationResultCollection AVerificationResult)
 Replaces the first line of a text file with a specified string More...
 
static void ExportGifts (int ALedgerNumber, string ACostCentre, string AAcctCode, string AMonthName, int APeriodNumber, DateTime APeriodStartDate, DateTime APeriodEndDate, string ACurrencySelect, int AIchNumber, DataTable AExportDataTable, TVerificationResultCollection AVerificationResult, TDataBase ADataBase)
 Exports gifts in HOSA file format. Relates to gi3200-1.i More...
 

Detailed Description

Class for the generation of "Home Office Statement of Accounts" reports for each foreign cost centre (ledger/fund). This is basically a modified Trial Balance.

Member Function Documentation

◆ ExportGifts()

static void Ict.Petra.Server.MFinance.ICH.WebConnectors.TGenHOSAFilesReportsWebConnector.ExportGifts ( int  ALedgerNumber,
string  ACostCentre,
string  AAcctCode,
string  AMonthName,
int  APeriodNumber,
DateTime  APeriodStartDate,
DateTime  APeriodEndDate,
string  ACurrencySelect,
int  AIchNumber,
DataTable  AExportDataTable,
TVerificationResultCollection  AVerificationResult,
TDataBase  ADataBase 
)
inlinestatic

Exports gifts in HOSA file format. Relates to gi3200-1.i

Parameters
ALedgerNumber
ACostCentre
AAcctCode
AMonthName
APeriodNumber
APeriodStartDate
APeriodEndDate
ACurrencySelect
AIchNumberIf !=0, only get gifts for this run number
AExportDataTable
AVerificationResult
ADataBase

◆ GenerateHOSAFiles()

static bool Ict.Petra.Server.MFinance.ICH.WebConnectors.TGenHOSAFilesReportsWebConnector.GenerateHOSAFiles ( int  ALedgerNumber,
int  APeriodNumber,
int  AIchNumber,
string  ACostCentre,
String  ACurrencySelect,
string  AFileName,
out TVerificationResultCollection  AVerificationResult,
TDataBase  ADataBase 
)
inlinestatic

Performs the ICH code to generate HOSA Files/Reports. Relates to gi3200.p/gi3200-1.i

Parameters
ALedgerNumberLedger number
APeriodNumberPeriod number
AIchNumberICH number
ACostCentreCost Centre
ACurrencySelectCurrency: B = base I = intl
AFileNameFile name
AVerificationResultError messaging
ADataBase
Returns
True if successful

◆ ReplaceHeaderInFile()

static bool Ict.Petra.Server.MFinance.ICH.WebConnectors.TGenHOSAFilesReportsWebConnector.ReplaceHeaderInFile ( string  AFileName,
string  AHeaderText,
ref TVerificationResultCollection  AVerificationResult 
)
inlinestatic

Replaces the first line of a text file with a specified string

Parameters
AFileNameFile name (including path) to process
AHeaderTextText to insert in first line
AVerificationResultError messaging

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