|
OpenPetra
Free Administration Software for Non-Profits
|
Reads and saves User Defaults. More...
Static Public Member Functions | |
| static bool | HasDefault (String AKey, TDataBase ADataBase=null) |
| Find out if a user default exists already. This is required where the default should be calculated otherwise (e.g. FINANCE_REPORTING_SHOWDIFFFINANCIALYEARSELECTION) More... | |
| static bool | GetBooleanDefault (String AKey, bool ADefault=true, TDataBase ADataBase=null) |
| get boolean default More... | |
| static System.Char | GetCharDefault (String AKey, System.Char ADefault, TDataBase ADataBase=null) |
| get char default More... | |
| static System.Char | GetCharDefault (String AKey) |
| get char default More... | |
| static double | GetDoubleDefault (String AKey, double ADefault=0.0, TDataBase ADataBase=null) |
| get double default value More... | |
| static System.Int16 | GetInt16Default (String AKey, System.Int16 ADefault=0, TDataBase ADataBase=null) |
| get default int value More... | |
| static System.Int32 | GetInt32Default (String AKey, System.Int32 ADefault=0, TDataBase ADataBase=null) |
| get int default More... | |
| static System.Int64 | GetInt64Default (String AKey, System.Int64 ADefault=0, TDataBase ADataBase=null) |
| get int default More... | |
| static String | GetStringDefault (String AKey, String ADefault="", TDataBase ADataBase=null) |
| get string default More... | |
| static void | GetUserDefaults (String AUserName, out SUserDefaultsTable AUserDefaultsDataTable) |
| Reads the User Defaults for a certain user and returns them as a Typed DataTable. DB Table: s_user_defaults More... | |
| static String | GetUserDefault (String AKey, String ADefaultValue, TDataBase ADataBase=null) |
| Gets the value of a UserDefault. More... | |
| static Boolean | LoadUserDefaultsTable (String AUserName, out SUserDefaultsTable AUserDefaultsDataTable, TDataBase ADataBase=null) |
| Loads the UserDefaults DataTable from the DB. DB Table: s_user_defaults More... | |
| static void | SetDefault (String AKey, object AValue, Boolean ASendUpdateInfoToClient=true, TDataBase ADataBase=null) |
| Sets a User Default. More... | |
| static void | UpdateUserDefaultsOnClient (String AUserName, String AChangedUserDefaultCode, String AChangedUserDefaultValue, String AChangedUserDefaultModId, Boolean ASingleCode=true) |
| Update the User Defaults on the Client side (by means of sending a ClientTask). More... | |
| static void | UpdateUserDefaultsOnClient (String AUserName, SUserDefaultsTable AChangedUserDefaultsDT) |
| Update the User Defaults on the Client side (by means of sending a ClientTask). More... | |
Static Public Attributes | |
| const String | FINANCE_DEFAULT_LEDGERNUMBER = "a_default_ledger_number_i" |
| todoComment More... | |
Reads and saves User Defaults.
|
inlinestatic |
get boolean default
| AKey | |
| ADefault | |
| ADataBase | database object |
|
inlinestatic |
get char default
| AKey |
|
inlinestatic |
get char default
| AKey | |
| ADefault | |
| ADataBase | database object |
|
inlinestatic |
get double default value
| AKey | |
| ADefault | |
| ADataBase | database object |
|
inlinestatic |
get default int value
| AKey | The Key of the User Default that should get retrieved. |
| ADefault | The value that should be returned in case the Key is not (yet) in the User Defaults. |
| ADataBase | database object |
|
inlinestatic |
get int default
| AKey | |
| ADefault | |
| ADataBase | database object |
|
inlinestatic |
get int default
| AKey | |
| ADefault | |
| ADataBase | database object |
|
inlinestatic |
get string default
| AKey | |
| ADefault | |
| ADataBase | database object |
|
inlinestatic |
Gets the value of a UserDefault.
| AKey | The Key of the User Default that should get retrieved |
| ADefaultValue | The value that should be returned in case there is no value |
| ADataBase | database object |
|
inlinestatic |
Reads the User Defaults for a certain user and returns them as a Typed DataTable. DB Table: s_user_defaults
| AUserName | User name for which the User Defaults should be read. |
| AUserDefaultsDataTable | Typed DataTable that contains the User Defaults. |
|
inlinestatic |
Find out if a user default exists already. This is required where the default should be calculated otherwise (e.g. FINANCE_REPORTING_SHOWDIFFFINANCIALYEARSELECTION)
|
inlinestatic |
Loads the UserDefaults DataTable from the DB. DB Table: s_user_defaults
| AUserName | UserID to load the UserDefaults for |
| AUserDefaultsDataTable | The loaded UserDefaults DataTable |
| ADataBase | An instantiated TDataBase object, or null (default = null). If null gets passed then the Method executes DB commands with a new Database connection |
|
inlinestatic |
Sets a User Default.
| AKey | The Key of the User Default that should get saved. |
| AValue | The value that should be stored. Note: This can be anything on which ToString can be called. |
| ASendUpdateInfoToClient | If true, the PetraClient is informed about the change to the UserDefault (by means of sending a ClientTask) |
| ADataBase | An instantiated TDataBase object, or null (default = null). If null gets passed then the Method executes DB commands with a new Database connection |
|
inlinestatic |
Update the User Defaults on the Client side (by means of sending a ClientTask).
| AUserName | User name for which the User Defaults should be updated. |
| AChangedUserDefaultCode | DefaultCode(s) that has/have changed. Note: several DefaultCodes can be concatenated using the GCLIENTTASKPARAMETER_SEPARATOR constant! |
| AChangedUserDefaultValue | DefaultValue(s) that has/have changed. Note: several DefaultValues can be concatenated using the GCLIENTTASKPARAMETER_SEPARATOR constant! |
| AChangedUserDefaultModId | ModificationID(s) that has/have changed. Note: several ModificationIDs can be concatenated using the GCLIENTTASKPARAMETER_SEPARATOR constant! |
| ASingleCode | Set to true if the situation from which this function is called arose because a single DefaultCode has changed, or to false to indicate that the situation from which this function is called arose because (potentially) several DefaultCodes have changed. |
|
inlinestatic |
Update the User Defaults on the Client side (by means of sending a ClientTask).
| AUserName | User name for which the User Defaults should be updated. |
| AChangedUserDefaultsDT | DataTable containing one ore more UserDefaults that have changed and that should be updated on the Client side |
|
static |
todoComment