Main Menu Module Specs
The main menu module specifications detail the modules needed to startup,
login, process the main menu, logout, and shutdown the system.
The documented modules are:
- Startup
- Called By
- Calls:
- Calling Sequence
- Login
- Main Menu
- Shutdown
- Input
- Output
- Errors
- Description
- The startup module calls the Login module to log
a user into the system. If the login was canceled then the Shutdown
module will be called to exit the program. If a user was logged in
then the Main Menu module will be called. When the user logs out
the Menu Menu module will return to Startup. It will then call
the Login module again.
- Login
- Called By
- Calls:
- Get Login
- Check Login
- Display Menu
- Calling Sequence
- Get Login
- Check Login
- Display Menu
- Input
- Output
- Errors
- Malformed employee name or password
- Non-existant employee
- Wrong password
- Description
- This module calls the Get Login module to prompt the
the employee for his username and password. If the employee chose
cancel then the module will return an employee id of zero. The
module will then call Check Login to check that the username and
password are valid. If an error occured the user will notified
with a dialog box. They will then be prompted for a employee name
and password again.
- Main Menu
- Called By
- Calls:
- Accounting Menu
- Front Desk Menu
- Managment Menu
- Room Service Menu
- Logout
- Shutdown
- Calling Sequence (In any order)
- Accounting Menu
- Front Desk Menu
- Managment Menu
- Room Service Menu
- Logout
- Shutdown
- Input
- Output
- Errors
- Description
- This module displays the main menu and then calls
Get Main Menu Choice which waits for input from the user.
Depending upon what the user choose the main menu calls
one of the 6 menu processing modules. When the user chooses
logout the module will be called, and depending upon its
return value the main menu will return to Startup or not.
When the user chooses other processing modules, depending on
what security level the user is, the system will either let
user in or pop out a message saying "Perminsion Denied".
- Logout
- Called By
- Calls:
- Calling Sequence
- Input
- Output
- 0 - Do not logout
- 1 - Logout
- Errors
- Description
- This module displays a question asking the user if they
really want to log out of the system or not. Depending
upon the answer the module will return either 0 or 1.
- Shutdown
- Called By
- Calls:
- Calling Sequence
- Input
- Output
- Errors
- Description
- This module shuts down the program and exits.