OpenPetra
Free Administration Software for Non-Profits
|
Contains functions to be used by the Server and the Client that perform certain calculations - specific for the Personnel Module. More...
Static Public Member Functions | |
static string | DeterminePersonsNationalities (TGetCacheableDataTableFromCache ACacheRetriever, PmPassportDetailsTable APassportDetailsDT) |
Determines a PERSON's Nationalities (deduced from its passports). More... | |
static string | DeterminePassportNationality (TGetCacheableDataTableFromCache ACacheRetriever, PmPassportDetailsRow APassportDR) |
Returns the 'nationality' of a passport and marks expired passports up. More... | |
Static Public Attributes | |
static readonly String | PASSPORT_EXPIRED = " (" + Catalog.GetString("exp.") + ")" |
Passport expired More... | |
static readonly String | PASSPORTMAIN_EXPIRED = " (" + Catalog.GetString("exp.") + " " + Catalog.GetString("MAIN") + "!)" |
Main passport expired More... | |
Contains functions to be used by the Server and the Client that perform certain calculations - specific for the Personnel Module.
|
inlinestatic |
Returns the 'nationality' of a passport and marks expired passports up.
ACacheRetriever | Delegate that returns the specified DataTable from the data cache (client- or serverside). Delegate Method needs to be for the MPartner Cache (that is, it needs to work with the TCacheableCommonTablesEnum Enum! |
APassportDR | DataRow containing information about a passport. |
|
inlinestatic |
Determines a PERSON's Nationalities (deduced from its passports).
Algorithm:
Order by pm_date_of_issue_d
Check for passport expiration
Elimination of duplicate listings
Additionally, a warning text " MAIN!)" to the postfix " (exp." is added if the expired passport is the 'Main Passport' (pm_main_passport_l=true) of the PERSON.
ACacheRetriever | Delegate that returns the specified DataTable from the data cache (client- or serverside). Delegate Method needs to be for the MPartner Cache (that is, it needs to work with the TCacheableCommonTablesEnum Enum! |
APassportDetailsDT |
|
static |
Passport expired
|
static |
Main passport expired