Detailed
Design Document Department of Computer
Science Page maintainer: Terrence
Asgar-Deen |
Viewing a user is described in the above diagram. The administrator passes a unique user ID to the system. The user associated with this user ID is retrieved from the datastore. The user information is returned to the administrator.
The returned status corresponds to the success of the operation. If the user is successfully retrieved from the datastore, the status returns Successful. If the user ID does not exist, the corresponding error message is returned.
Process ID | 1.D.2 |
---|---|
Process Name | View User |
Inputs | user ID |
Outputs | user info |
Permissible User | Administrator |
Assumptions | All information entered is syntactically correct. |
Error Conditions | The user ID entered does not exist. Successful |
Name | user ID |
---|---|
Kind | Primary Key |
Type | Integer |
Description | A primary key attribute of entity User. The maximum length is 8 digits. The format is the type integer. The primary key specifies the unique user identification number in the company. |
Name | status |
---|---|
Kind | Data movement in DFD |
Type | Return Message |
Description | This data element corresponds to an error message being returned from an operation. An error message may be both successful and unsuccessful. Unsuccessful error messages are further subcategorized into different errors based on the possible errors that can occur in an operation. |
Name | user |
---|---|
Kind | Data movement in DFD |
Type | Instance of an Entity |
Description | This data element corresponds to a complete instance of the Entity User. |
Name | user info |
---|---|
Kind | Data movement in DFD |
Type | Multiple Field User Input |
Description | These fields are input values from the User. They correspond to the fields in the Entity User. Not all fields in the User data table are necessarily present in an instance of the user information. |
The View Users area can be accessed by selecting View Details from the Items menu, or clicking on the View Details toolbar button when in the Users, or Modify Users areas. The View User area displays all the user's information. None of the fields are editable. Additionally, if the user is a salesperson, the button, View Orders, will jump to the Purchase Orders area and list the orders placed by the particular salesperson.
There are several buttons at the lower left side of the area. While the View User area only displays one user at a time, these buttons allow the user of the system to move to other users. The left and right buttons move to the previous and next user. The outer two buttons move to the first and last user.
Since this information is displayed in the work area, all the menu commands are still available. The Print and Print Preview menu items in the File menu, will print a report containing all the details for the current salesperson. The Edit and Delete menu items in the Items menu, will open the "Modify User" area and delete the user respectively.
Salespeople are not allowed in the Users area, therefore they do not have access to this area.