Detailed Design Document
CPSC 451 Supplier Group #1

Department of Computer Science
University of Calgary
27 February 1997

Page maintainer: Terrence Asgar-Deen
terrence@cpsc.ucalgary.ca

  • Terrence Asgar-Deen
  • Patrick Chan
  • Thomas Hui
  • Carsten Jaeger
  • Matthew Johnson
  • Brian Low
  • Hoang Nguyen
  • Kevin Pattison
  • Csaba Suveges
  • Jeremy Tang
  • Leena Thakkar
  • Al-Amin Vira
  • Lin Zhang

  • View Product

     

    Viewing a product is described in the above diagram. The user passes a unique product and motif number combination to the system. The product associated with this product number and motif number is retrieved from the datastore. The product information is returned to the user.

    The returned status corresponds to the success of the operation. If the product is successfully retrieved from the datastore, the status returns Successful. If the product number and/or motif number do not exist, the corresponding error message is returned.


    P-Spec

    Process ID 1.B.2
    Process Name View Product
    Inputs motif number, product number
    Outputs product info
    Permissible User Administrator, Salesperson
    Assumptions All information entered is syntactically correct.
    Error Conditions The product specified by the product number and motif number does not exist.

    Data Elements (Data Dictionary)

    Name motif number
    Kind Primary Key
    Type Alphanumeric
    Description A primary key attribute of entity Product.

    The maximum length is 3 alphanumeric characters.

    The format is: 3 digits motif number (mmm).
    This motif number is classified in the following format (color, design and font).
    For example: csi

    The attribute describes the characteristics of one product. The characteristics includes the different combinations of the components (color, design and font). It is combined with product number to generate the primary key for the entity Product.


    Name product
    Kind Data movement in DFD
    Type Instance of an Entity
    Description This data element corresponds to a complete instance of the Entity Product.

    Name product 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 Product. Not all fields in the Product data table are necessarily present in an instance of the product information.

    Name product number
    Kind Primary key
    Type Integer
    Description A Primary key attribute of entity Product.

    The maximum length is 4 digits.

    The format is the type integer.
    For example: 3634

    The primary key specifies the unique product number of a product. It is combined with motif number to generate the primary key for the entity Product.


    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.

    User Interface (View Product)

    The View Products area can be accessed by selecting View Details from the Items menu, or clicking on the View Details toolbar button when in the Products, or Modify Products areas. The View Product area displays all the product's information. None of the fields are editable. Additionally, the button, View Orders, will jump to the Purchase Orders area and list all the customers that have bought the particular form.

    There are several buttons at the lower left side of the area. While the View Product area only displays one product at a time, these buttons allow the user to move to other products. The left and right buttons move to the previous and next product. The outer two buttons move to the first and last product.

    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 product. The Edit and Delete menu items in the Items menu will open the "Modify Product" area and delete the product respectively.

    Salespeople have access to this area.