Basic functions for access to the Scanjour SOM database.
Inheritance Hierarchy
Scanjour.Workflow4.BaseCommonFunctions
Namespace: Scanjour.Workflow4.Base
Assembly: Scanjour.Workflow4.Base (in Scanjour.Workflow4.Base.dll) Version: 19.1.6.0 (19.1.6.0)
Syntax
The CommonFunctions type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| DateTime2OdataDateTime |
Convert a DateTime to the nullable datetime format used by odata.
| |
| DateTime2SomDateTime |
Convert a DateTime to the string format used by Scanjour SOM.
| |
| EqualDateTimes |
Tests whether two DateTime values are equal within the rounding errors that can occur if a DateTime is written to the SOM database and read back again.
| |
| GetBytesInMegaBytesFormatted |
Converts bytes to Mega bytes and formats with 2 decimals
| |
| GetDatabasesFromRegistry |
Gets the installed databases from registry.
| |
| GetHostBaseUri |
Get base Uri of host for database.
| |
| GetODataUris | ||
| IsProcessInstalled |
Check if process is installed in a database.
| |
| IsProductionDatabase |
Check if a database is a production or historic database.
| |
| OdataDateTime2DateTime |
Convert nullable DateTime to DateTime format used by Som.
| |
| OdataTimeSpan2TimeSpan |
Convert Scanjour SOM string representation of a TimeSpan to TimeSpan.
| |
| Round |
Round to nearest second
| |
| SomDateTime2DateTime |
Convert Scanjour SOM string representation of a DateTime to DateTime.
| |
| SomTimeSpan2TimeSpan |
Convert Scanjour SOM string representation of a TimeSpan to TimeSpan.
| |
| TimeSpan2OdataTimeSpan |
Convert a TimeSpan to the string format used by odata.
| |
| TimeSpan2SomTimeSpan |
Convert a TimeSpan to the string format used by Scanjour SOM.
| |
| ToLocalTime |
Converts a DateTime to local DateTime.
| |
| TruncateString |
Shortens a string to the maximum length specified.
|
See Also