Analysis and Design TEMPLATE
Analysis and Design TEMPLATE
Project Participants:
The proposed system (Supermarket Management System) will provide three logins at the initial interface
i.e. Admin, Seller, and Customer. These are the person with attributes ID, Name, Phone No, Username,
and Password. There is no other person who is of interest to the supermarket. And a person can only be
an admin, seller, or customer at a single time. Admin will be able to manage the product lines
(ProductLineID, ProductLineName), Products (ProductID, ProductName), Customers, and Seller’s
information.
The products are grouped into several product lines. A particular product belongs to only a single product
line but a product line contains many products.
Sellers will be able to sell/add different products. Customers can submit orders for many products; a
product may be there in a number of orders and for each order, the record of OrderQuantity is also
maintained. Customers will be able to view the product categories(product lines) and product details and
will be able to make purchases by adding items to the cart at the end, an Invoice, bearing an invoice
number and invoice date, is generated which can then be printed out. A single invoice is issued to only a
customer, but a customer may be assigned multiple invoices.
Business Rules:
• Access to the functionality of the system is not possible unless correct username and password
along with correct role selected is entered.
• A particular product belongs to only single product line but a product line contains many products.
• Customer can submit orders for many products and a product may be there in a number of orders
• A single invoice is issued to only a single customer but a customer may be assigned with multiple
invoices.
• The Customer must not be able to modify the products details.
• Seller cannot view the Customer’s details.
• System must generate a comprehensive error message on each exception.
PERSON
ADMIN
AdminID
SELLER
SellerID
CUSTOMER
CustomerID
PRODUCT_LINE
PRODUCT
ORDER
ORDER_LINE
INVOICE
PERSON
LOG_IN
Username Password
ADMIN
AdminID
SELLER
SellerID
CUSTOMER
CustomerID
PRODUCT_LINE
ORDER
ORDER_LINE
INVOICE
• Splash Form
• Login Form
• Products Form
• Form for Admin to View Seller’s Data
• Customer Form
• Seller Form
• Admin Form
Chapter Three
Final Classes of the Project:
• Person
• Log_in
• Seller
• Admin
• Customer
• Product
• Order
• Product_Line
• Order_Line
• Invoice
Person
Display info():void
CheckLoginInfo():string
Log_in
ToString() : string
Seller
Sell_products():void
Customer
PurchaseProducts():void
SubmitOrder():void
printReciept() : void
Product
Display_data() : void
Admin
AddProduct() : void
EditProduct() : void
DeleteProduct() : void
ViewSellersData() : void
ViewCustomersData() : void
Class Diagram
_____________________________________________________________________________________