Form MainForm
- Unit name: Forms.Main.pas
- Form name: TMainForm
- Old unit/form name: MAIN.pas/TMain
Synopsis
Main form of the application. It allows the user to open the other forms of the application, depending on the rights he/she has.
Functionalities
- On Create the serveraccess module is instantiated, this is done by accessing it (singleton pattern).
- On create The logging is configured.
- On show, the login dialog is shown modally if the user is not yet logged in. If the login form returns a modal result other than
- On succesful login, the user name is displayed in the form caption
- On succesful login, the server date is retrieved. If it is differs from the date on the current computer, a message is shown and the user is logged out.
-
On succesful login, the server SQL version is retrieved. If it is different from the date on the current computer, a message is shown and the user is logged out.
-
A logout menu/button allows to log out the user, the login dialog is then re-displayed
The following forms can be accessed directly from the main form:
- Receptions:
Show form TReceptionForm.
Only enabled if the user has ruReception in his rights. - Settings:
Show form TSettingsForm
Only enabled if the user has ruSettings in his rights. - Deliveries:
Show form TDeliveriesGridForm
Only enabled if the user has ruDeliveries in his rights. - Suppliers:
Show form TSuppliersGridForm
Only enabled if the user has SuppliersGrid in his rights. - Clients:
Show form TClientsGridForm
Only enabled if the user has ruClients in his rights. - Stock:
Show form TStockPerLocationForm
Only enabled if the user has ruStock in his rights. - Import files:
Show form TImportFilesForm
Only enabled if the user has ruImport in his rights. - Pick & Pack:
Show form TPickAndPackForm
Only enabled if the user has ruPickPack in his rights. - Labels:
Show form TUserGridForm
Only enabled if the user has ruUsers in his rights.
Tables/Views
Geen. Deze form heeft geen directe toegang tot de database nodig.