|
- Add Customer Window
- This window contains text entry fields for: last name,
first name, phone number, address, city, province, country,
postal code, max fines, and max books. There is a checkbox
for the restricted field, and the customer ID number and
current fines are also displayed but are not modifiable.
Buttons Present: ADD, QUIT
- ADD
- Once selected, the system checks to see if all of the fields
have been entered correctly and there is an entry for each
field.
If there are any format errors in the information
fields, a message box will pop up and display a message
with a list of each field that was incorrectly entered.
Button Present: OK
- Select 'OK' to close the message box.
The system checks to see if there are duplicate customers in
the database by comparing the first and last names.
If duplicate names exist, then the system will bring up
the customer search window with the first and last names
supplied in the appropriate fields and the list of
duplicate names found in the results section of the window
(the search window is described in the 'Customer Search'
section).
Buttons Present: YES, NO, SEARCH
Search Message:
"Duplicate name(s) found. Continue to add new
customer?"
- YES
- When selected, closes the search window and continues
the add process.
- NO
- Closes the search window and returns control to the 'Add
Customer' window for further modifications
of the add new customer process.
- SEARCH
- Perform a search based on the search criteria as stated
in the 'Customer Search' section.
The system checks if the 'Max Books', 'Max Fines', or
'Restricted' fields have been modified.
If this is the case, a message box will pop up.
Message: "x requires supervisor approval. Do you wish to
continue?" where x is 'Max Books' and/or 'Max
Fines' and/or 'Restricted'
Buttons Present: YES, NO
- YES
- A supervisor approval window pops up (described in
'Supervisor Approval' section). If the approval was ok
then the system will close the message box and continue
to add the customer. Otherwise, the system will close
the message box, change the appropriate fields to their
default values, and discontinue the add process by
returning control to the 'Add Customer' window.
- NO
- Close the message box, change the appropriate fields to
their default values, and discontinue the add process by
returning control to the 'Add Customer' window.
The system will add the customer's information to the
database. If an error occurs at this point, control is
passed to the error handler along with the error code. If
the process was successful, a message box will pop up.
Message: "Process Successful"
Button Present: OK
When selected, the message box is closed as well as the
'Add Customer' window and control is returned to the
'Customer Administration' window.
- QUIT
- If selected, the 'Add Customer' window is closed and control
is returned to the 'Customer Administration' window.
|