Project Report Template
Project Report Template
Group 6
1.2 UC-2_Sign In 28
IV. Appendix 92
1. Assumptions & Dependencies 92
2. Limitations & Exclusions 92
3. Business Rules 92
I. Overview
The Store ManagementDB project is a web application project for store management. The project is
developed using Microsoft Visual Studio technology, Entity Framework and data is managed by
Microsoft SQL database system. The project was developed to optimise store management capabilities.
1. User Requirements
1.1 Actors
# Actor Description
1 Admin Have full system management, including all CRUD functionality for user
accounts, customers, orders, and order details.
2 Staff
Only permissions to manage customers, orders, and order details, including
all CRUD functionality.
b. Descriptions
2. Overall Functionalities
c2.1 Screens Flow
5 Product Management Product Staff can add, edit or delete products on the products
Management order page
8 Customer Management Customer Admin can add, edit or delete users on the manage
Management customers page
9 Order Management Order Admin can add, edit or delete orders on the orders
Management order page
10 Product Management Product Admin can add, edit or delete products on the
Management products order page
11 Staff Management ManageStaff Admin can add, edit, and delete staff on the staff
management page
12 Account Management Manage Admin can add, edit, and delete staff on the manage
Account account page
13 Admin Dashboard Admin Admin dashboard can view the number of products in
Dashboard stock and can edit product quantities as well as view
the top selling staff of each month and year.
3 Customer Management X X
4 Order Management X X
5 Product Management X X
6 ManageStaff X
7 Manage Account X
8 Admin Dashboard X
b. Table Descriptions
No Table Description
01 AccountMember - Manages user accounts with fields for MemberID, Email, Password,
Role, etc.
- Primary keys: AccountID
02 Customer - Stores customer information with fields for CustomerID, Name,
ContactInfo, etc
- Primary keys: CustomerID
03 Orders - Manages orders with fields for OrderID, CustomerID, OrderDate,
TotalAmount, etc.
- Primary keys: for OrderID
04 OrderItems - Stores items within an order with fields for OrderItemID, OrderID,
ProductID, Quantity, Price, etc.
- Primary keys: OrderItemID
05 staffs - Manage Staffs information
- Primary keys: staff_id
06 Stores - Manage Store information
- Foreign keys: store_id
07 Stocks Manage Stocks information
- Primary keys: StoreID,ProductID
08 Products Manage Product information
- Primary keys: ProductID
4. Class diagram,
4.1.
Description: This use case describes the authentication process for users by verifying their
email and password.
Trigger: User attempts to log in.
Preconditions: PRE-1: User has an existing account.
Postconditions: - POST-1: User is logged into the system and can access authorized
functionalities.
Normal Flow: 1. User enters an email and password.
2. System verifies credentials.
3. If valid, user is logged in; otherwise, an error message is displayed
Alternative Flows: AF-1: User clicks "Forgot Password", redirects to Password Reset page.
Exceptions: EX-1: Database connection error.
Priority: High
Frequency of Use: Frequently used by all users.
Business Rules: BR- 1: Default admin account: MemberID is “Admin” and password is “123456”.
BR- 2: Default staff account: MemberID is “Staff1” and password is “123456”.
Priority: High
Frequency of Use: Usually
Description:
As an admin, I want to manage order information, including adding, updating,
viewing, deleting, and clearing order records.
Trigger: Admin clicks on the "Order Manage" button in the Admin Dashboard Screen.
Preconditions: Admin must be logged in to access the order management functionalities.
Postconditions:
Order information is added, updated, viewed, or deleted as per the admin's
actions
Priority: High
Frequency of Use: Frequent
ID and Name:
Created By: HE190002 Date Created:
Nguyen Van B
Primary Actor: Admin Secondary Actors: none
Description: As an admin, I want to manage staff information, including adding, updating, viewing,
deleting, and resetting staff records.
Trigger: Admin clicks on the "Staff Manage" button in the Admin Dashboard Screen
Preconditions: Admin must be logged in to access the staff management functionalities.
Postconditions: Staff information is added, updated, viewed, or deleted as per the admin's actions.
Normal Flow: ● Admin clicks on the "Staff Manage" button.
● The system displays a list of all staff members.
● Admin can choose to add a new staff member by clicking "Add Staff".
● Admin fills in the staff details and clicks "Save".
● The system saves the new staff information and displays it in the list.
● Admin can select an existing staff member to update by clicking "Edit".
● Admin updates the staff details and clicks "Save".
● The system saves the updated staff information and updates the list.
● Admin can delete a staff member by selecting it and clicking "Delete".
● The system deletes the staff member and removes it from the list.
● Admin can clear the input fields by clicking "Reset".
Alternative Flows: If the admin clicks "Cancel" during the add or update process, the system will discard the
changes and return to the staff list without saving.
If the admin attempts to delete a staff member who is associated with existing records,
the system will display a warning and prompt the admin to confirm the deletion.
Exceptions: If there is an error saving staff information, the system will display an error message and
prompt the admin to retry.
If there is an error deleting the staff member, the system will display an error message
and prompt the admin to retry.
Priority: High
Frequency of Use: Usually
Other Information: N/A
Assumptions: N/A
ID and Name:
Created By: Date Created:
Primary Actor: Admin Secondary Actors: none
Description: As an admin, I want to manage account information, including adding, updating,
viewing, deleting, and resetting account records.
Trigger: Admin clicks on the "Manage Account" button in the Admin Dashboard Screen.
Preconditions: Admin must be logged in and have appropriate permissions to manage account
information.
Postconditions: Account information is added, updated, viewed, or deleted according to the admin's
actions.
Normal Flow: ● Admin clicks on the "Manage Account" button.
● The system displays a list of all accounts.
● Admin can choose to add a new account by clicking "Add Account".
● Admin fills in the account details and clicks "Save".
● The system saves the new account information and displays it in the list.
● Admin can select an existing account to update by clicking "Edit".
● Admin updates the account details and clicks "Save".
● The system saves the updated account information and updates the list.
● Admin can delete an account by selecting it and clicking "Delete".
● The system deletes the account and removes it from the list.
● Admin can clear the input fields by clicking "Reset".
Alternative Flows: If the admin clicks "Cancel" during the add or update process, the system will discard
the changes and return to the account list without saving.
If the admin attempts to delete an account that has associated records or is currently in
use, the system will display a warning and prompt the admin to confirm the deletion.
Exceptions: If there is an error saving account information, the system will display an error message
and prompt the admin to retry.
If there is an error deleting the account, the system will display an error message and
prompt the admin to retry.
Priority: High
Frequency of Use: Usually
Other Information: N/A
Assumptions: N/A
1.7 UC7_Manage Account
ID and Name:
Created By: HE190003 Date Created:
Nguyen Van C
Primary Actor: Admin Secondary Actors: None
Description: As an admin, I want to manage various functionalities on the Admin Dashboard, including adding,
updating, deleting, and resetting records, and viewing the top-selling staff members.
Trigger: Admin clicks on the "Admin Dashboard" button in the main menu.
Preconditions: Admin must be logged in and have appropriate permissions to access the Admin Dashboard.
Postconditions: Admin has managed records and viewed top-selling staff information as required.
Normal Flow: Admin clicks on the "Admin Dashboard" button.
The system displays the Admin Dashboard screen.
Admin can view various sections including:
● List of records (e.g., orders, accounts) with options to add, update, delete, and reset.
● A section displaying top-selling staff based on sales performance.
Admin can choose to add a new record by clicking "Add Record".
Admin fills in the details for the new record and clicks "Save".
The system saves the new record and updates the list.
Admin can select an existing record to update by clicking "Edit".
Admin updates the record details and clicks "Save".
The system saves the updated record and updates the list.
Admin can delete a record by selecting it and clicking "Delete".
The system deletes the record and removes it from the list.
Admin can clear the input fields by clicking "Reset".
The system refreshes the top-selling staff information, displaying the current top performers.
Alternative Flows: If the admin clicks "Cancel" during the add or update process, the system will discard the changes
and return to the dashboard without saving.
If the admin attempts to delete a record that has dependencies or is currently in use, the system
will display a warning and prompt the admin to confirm the deletion.
Exceptions: If there is an error saving or updating record information, the system will display an error message
and prompt the admin to retry.
If there is an error deleting the record, the system will display an error message and prompt the
admin to retry.
If there is an issue retrieving the top-selling staff information, the system will display an error
message.
Priority: High
Frequency of Use: Usually
Other Information: N/A
Assumptions: N/A
User name Text Box This is for user to input user name for logging in
Password Password Box This is for user to input password for logging in
Login Button User clicks to authenticate him/herself into the system with
provided email/user name & password
3. Staff can add, edit or delete users on the manage customers page
4. Staff can add, edit or delete orders on the orders order page
5. Staff can add, edit or delete products on the products order page
5. Admin can add, edit or delete products on the products order page
11. Admin can add, edit, and delete staff on the staff management page
12. Admin can add, edit, and delete staff on the manage account page
13. Admin dashboard can view the number of products in stock and can edit product quantities
as well as view the top selling staff of each month and year.
IV. Appendix
1. Assumptions & Dependencies
AS-1: The system will be used within the organization's internal network.
DE-1: Users have basic knowledge of using Windows applications.