Assignment 01 SalesManagement
Assignment 01 SalesManagement
Introduction
Imagine you're an employee of a product retailer named FStore. Your manager
has asked you to develop a Windows Presentation Foundation (WPF) application
for member management, product management, and order management. The
application has a default account whose email is “[email protected]” and
password is “admin@@” that stored in the appsettings.json.
1|Page
Assignment Objectives
In this assignment, you will:
Database Design
2|Page
Main Functions
▪ Member management, Product management, and Order management:
Read, Create, Update and Delete actions. Creating and Updating actions
must be performed by popup dialog
▪ Search Product by ID , ProductName (by keyword of ProductName),
UnitPrice, and UnitInStock
▪ Create a report statistics sales by the period from StartDate to EndDate, and
sort sales in descending order
▪ Member authentication by Email and Password. If the user is “Admin” then
allows to perform all actions, otherwise, the normal user is allowed to
view/create/update the profile and view their orders history.
Guidelines
Step 01. Open the Visual Studio .NET application and create a Blank solution
named Asm01Solution
From the File menu | Add | New Project, on the Add New Project dialog, select
“Class Library” and performs steps as follows:
3|Page
3
4|Page
6
5|Page
1
6|Page
5
Step 05. Create folders and add classes to the projects as follows:
7|Page
Activity 02: Develop BusinessObject project
[02 marks]
Step 01. Write codes to create classes and definition all data members
Step 02. Write codes to perform business rules for data members
8|Page
Activity 03: Develop DataAccess project [03 marks]
Step 01. Add the project reference to the BusinessObject project
Step 02. Write codes for MemberDAO.cs, IMemberRepository.cs and
MemberRepository.cs
Step 03. Write codes for ProductDAO.cs, IProductRepository.cs and
ProductRepository.cs
Step 04. Write codes for OrderDAO.cs, IOrderRepository.cs and
OrderRepository.cs
Step 05. Write codes for OrderDetailDAO.cs, IOrderDetailRepository.cs
and OrderDetailRepository.cs
Hints: If using Entity Framework Core, you can install the AutoMapper
package from Nuget to map Entity with Busines Object
[03 marks]
Step 01. Add the reference to BusinessObject and DataAccess projects
Step 02. Design UI (XAML code) for windows and write codes to perform
functions
Activity 05: Run the WPF project and test all actions
[01 mark]
9|Page