OpenPetra
Free Administration Software for Non-Profits
|
Helper class for parsing import lines in an import file More...
Static Public Member Functions | |
static String | ImportString (ref String AImportLine, String ADelimiter, String AColumnTitle, DataColumn ADataColumn, int ARowNumber, TVerificationResultCollection AMessages, bool ATreatEmptyStringAsText=true) |
Imports a string value from the specified text line using the specified delimiter More... | |
static Boolean | ImportBoolean (ref String AImportLine, String ADelimiter, String AColumnTitle, DataColumn ADataColumn, int ARowNumber, TVerificationResultCollection AMessages, String ADefaultString="") |
Imports a boolean value from the specified text line using the specified delimiter. More... | |
static Int64 | ImportInt64 (ref String AImportLine, String ADelimiter, String AColumnTitle, DataColumn ADataColumn, int ARowNumber, TVerificationResultCollection AMessages, String ADefaultString="") |
Imports an Int64 value from the specified text line using the specified delimiter More... | |
static Int32 | ImportInt32 (ref String AImportLine, String ADelimiter, String AColumnTitle, DataColumn ADataColumn, int ARowNumber, TVerificationResultCollection AMessages, String ADefaultString="") |
Imports an Int32 value from the specified text line using the specified delimiter More... | |
static decimal | ImportDecimal (ref String AImportLine, String ADelimiter, CultureInfo ACultureInfoNumberFormat, String AColumnTitle, DataColumn ADataColumn, int ARowNumber, TVerificationResultCollection AMessages, String ADefaultString="") |
Imports a decimal value from the specified text line using the specified delimiter and culture info More... | |
static DateTime | ImportDate (ref String AImportLine, String ADelimiter, CultureInfo ACultureInfoDateFormat, bool ADateMayBeAnInteger, String AColumnTitle, DataColumn ADataColumn, int ARowNumber, TVerificationResultCollection AMessages, String ADefaultString="") |
Imports a Date value from the specified text line using the specified delimiter More... | |
static void | FixAccountCodes (int ALedgerNumber, int ARowNumber, ref string AAccountCode, AAccountTable AAccountTableRef, ref string ACostCentreCode, ACostCentreTable ACostCentreTableRef, TVerificationResultCollection AMessages) |
Method to check and, if possible fix, codes that have had leading zeros removed by Excel for example. More... | |
Helper class for parsing import lines in an import file
|
inlinestatic |
Method to check and, if possible fix, codes that have had leading zeros removed by Excel for example.
ALedgerNumber | The ledger number |
ARowNumber | The current row number |
AAccountCode | The account code that may get changed |
AAccountTableRef | The account table that will be checked for valid codes |
ACostCentreCode | The cost centre code that may get changed |
ACostCentreTableRef | The cost centre table that will be checked for valid codes |
AMessages | A message collection. If a change is made a 'Information' (non-critical) message will be added to the collection |
|
inlinestatic |
Imports a boolean value from the specified text line using the specified delimiter.
AImportLine | The line containing the text to be imported. When the method returns the imported value will have been removed from the start ready for the next call to an Import method. |
ADelimiter | The delimiter |
AColumnTitle | |
ADataColumn | |
ARowNumber | |
AMessages | |
ADefaultString | A string to apply if the import returns empty text. Must be either 'yes' or 'no' |
|
inlinestatic |
Imports a Date value from the specified text line using the specified delimiter
AImportLine | The line containing the text to be imported. When the method returns the imported value will have been removed from the start ready for the next call to an Import method. |
ADelimiter | The delimiter |
ACultureInfoDateFormat | |
ADateMayBeAnInteger | |
AColumnTitle | |
ADataColumn | |
ARowNumber | |
AMessages | |
ADefaultString |
|
inlinestatic |
Imports a decimal value from the specified text line using the specified delimiter and culture info
AImportLine | The line containing the text to be imported. When the method returns the imported value will have been removed from the start ready for the next call to an Import method. |
ADelimiter | The delimiter |
ACultureInfoNumberFormat | |
AColumnTitle | |
ADataColumn | |
ARowNumber | |
AMessages | |
ADefaultString |
|
inlinestatic |
Imports an Int32 value from the specified text line using the specified delimiter
AImportLine | The line containing the text to be imported. When the method returns the imported value will have been removed from the start ready for the next call to an Import method. |
ADelimiter | The delimiter |
AColumnTitle | |
ADataColumn | |
ARowNumber | |
AMessages | |
ADefaultString |
|
inlinestatic |
Imports an Int64 value from the specified text line using the specified delimiter
AImportLine | The line containing the text to be imported. When the method returns the imported value will have been removed from the start ready for the next call to an Import method. |
ADelimiter | The delimiter |
AColumnTitle | |
ADataColumn | |
ARowNumber | |
AMessages | |
ADefaultString |
|
inlinestatic |
Imports a string value from the specified text line using the specified delimiter
AImportLine | The line containing the text to be imported. When the method returns the imported value will have been removed from the start ready for the next call to an Import method. |
ADelimiter | The delimiter |
AColumnTitle | |
ADataColumn | |
ARowNumber | |
AMessages | |
ATreatEmptyStringAsText | When true the return value will be the empty string. When false the return value will be null. |