Detailed
Design Document Department of Computer
Science Page maintainer: Terrence
Asgar-Deen |
Viewing a customer is described in the above diagram. The user passes the unique customer ID to the system. The customer associated with the customer ID is retrieved from the datastore. This customer information is returned to the user.
The returned status corresponds to the success of the operation.
Process ID | 1.A.2 |
---|---|
Process Name | View Customer |
Inputs | customer ID |
Outputs | customer info |
Permissible User | Administrator, Salesperson |
Assumptions | All information entered is syntactically correct. |
Error Conditions | The customer ID entered does not exist. |
Name | customer |
---|---|
Kind | Data movement in DFD |
Type | Instance of an Entity |
Description | This data element corresponds to a complete instance of the Entity Customer. |
Name | customer 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 Customer. Not all fields in the Customer data table are necessarily present in an instance of the customer information. |
Name | customer ID |
---|---|
Kind | Primary Key |
Type | Integer |
Description | A primary key attribute of entity Customer. The maximum length is exactly 8 digits long. The format is the type integer. The primary key represents a unique customer. This unique ID is used to distinguish between the customers. |
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. |
The View Customer area can be accessed by selecting View Details from the Items menu, or clicking on the View Details toolbar button when in the Customers, or Modify Customers areas.
The View Customers area displays all the customer's information. None of the fields are editable. Additionally, the button, View Orders, will jump to the Purchase Orders area and list all the orders made by the particular customer.
There are several buttons at the lower left side of the area. While the View Customer area only displays one customer at a time, these buttons allow the user to move to other customers. The left and right buttons move to the previous and next customers. The outer two buttons move to the first and last customers.
Since this information is displayed in the work area, all the menu commands are available. The Print and Print Preview menu items in the File menu will print a report containing all the details for the current customer. The Edit and Delete menu items in the Items menu will open the "Modify Customer" area and delete the customer respectively.
Salespeople have access to this area.