USE CASE Specifications:2.4.1 USE CASE Specifications Shopping Cart Pre-condition Minimal Guarantee Shopping cart updates with correct product details Success Guarantee Products are adde
Trang 1FACULTY: ENGINEERING & COMPUTER SCIENCE
ESSAY OBJECT-ORIENTED SOFTWARE DESIGN
81012202493 – TRAN QUANG SANG
81012202499 – NGUYEN NGOC HOANG
LỚP: 22DPM LECTURER: NGUYEN THUY AN
HK2 – YEAR 2023-2024
Trang 2TABLE OF CONTENT
TABLE OF CONTENT 2
DECLARATION 3
FOREWORD 4
EVALUATE 6
CHAPTER 1 OVERVIEW OF THE RESEARCH TOPIC 7
1.1 Reasons for choosing the topic, research field 7
1.2 Research objectives 7
1.3 Research subjects, application scope 7
1.4 Research tasks 7
1.5 Research methods 8
1.6 Achievements of the thesis 8
1.7 Plan for implementing the thesis 9
CHAPTER 2: BASIC THEORITICAL 10
2.1 Introduction to NET Framework 10
2.2 Introduction to ASP.NET 10
2.3 MVC Model 10
2.4 Analyze topics with UML 11
2.4.1 General USE CASE diagram 11
2.4.2 Sequece Diagram 12
2.4.3 Details USE CASE diagram 18
2.4.1 USE CASE Specifications Shopping Cart 25
2.4.1.1 USE CASE Specifications Shopping Cart (Add a product) 26
2.4.1.2 USE CASE Specifications Shopping Cart (Remove Cart) 27
2.4.1.3 USE CASE Specifications Shopping Cart (Update product) 28
2.4.2 USE CASE Specifications Review Product 29
2.4.3.1 USE CASE Specifications New (Add a new) 30
2.4.3.2 USE CASE Specifications New (Update a new) 31
2.4.3.3 USE CASE Specifications New (Remove a new) 32
2.4.4.1 USE CASE Specifications Product (Add a Product) 33
Trang 32.4.4.2 USE CASE Specifications Product (Update a product) 34
2.4.5 USE CASE Specifications Login 35
2.4.6 USE CASE Specifications Register 36
2.4.7 USE CASE Specifications Manage Blog 37
2.5 Class Diagram 38
2.6 Enity Relationship Diagram 39
Chapter 3: Application Design 40
3.1 Requirements Determination 40
3.2 System Requirements 40
3.3 Functional Requirements 40
3.4 Functional Management Diagram 41
3.5 Landing page interface 42
Picture 3.1 Login 42
Picture 3.2 Register 43
Picture 3.3 Landing page (1) 44
Picture 3.3.1 Landing Page (2) 45
Picture 3.4 Filter Iphone 46
Picture 3.4.1 Filter Macbook 47
Picture 3.4.2 Filter Ipad 48
Picture 3.4.3 Filter iMac 49
Picture 3.5 Product details 50
Picture 3.6 Rating Star and Comment 51
Picture 3.7 Cart 52
Picture 3.7.1 Form Cart Before Checkout 53
Picture 3.8 Contact Form 54
Picture 3.9 Blog 55
Picture 3.9.1 Blog Details 56
Picture 3.10 Tracking Order 57
Picture 3.10.1 Tracking Order 58
Picture 3.10.2 Tracking Order Details 59
Picture 3.11 Dashboard Admin 60
Picture 3.12 Product Management 61
Picture 3.12.1 Iphone Management 62
Trang 4Picture 3.12.2 Ipad Management 62
Picture 3.12.3 Laptop Management 62
Picture 3.12.4 iMac Management 63
Picture 3.13 Adding Product 63
Picture 3.14 Product Details 64
Picture 3.15 Voucher Management 65
Picture 3.15.1 Creating Voucher 65
Picture 3.15.2 Voucher Detail 66
Picture 3.15.3 Editting Voucher 66
Picture 3.16 Notification New Order 67
Picture 3.17 Order management 68
Picture 3.17.1 Creating Order 69
Picture 3.17.2 Order Details 70
Picture 3.17.3 Editing Order 70
Picture 3.17.4 Deleting Order 70
CHAPTER 4: CONCLUSION AND DEVELOPMENT ORIENTATION 71
CHAPTER 5: REFERENCES 72
[1] Overview of ASP.NET Core MVC 72
[2] What is jQuery? 72
[3] Entity Framework documentation 72
[4] SQL Server 72
[5] Learn to code in Visual Studio 72
Trang 5I certify that the attached assignment is our work Materials drawn from other sourceshave been acknowledged according to unit-specific requirements for referencing Icertify that this assessment item has not been submitted previously for academic credit
in this or any other course I certify that I have not given a copy or have shown a copy
of this assessment item to another student enrolled in the course I acknowledge thatthe assessor of this assignment may, for the purpose of assessing this assignment:
• Reproduce this assessment item and provide a copy to another member of theStudent of SIU; and/or
• Communicate a copy of this assessment item to a plagiarism-checking service(which may then retain a copy of the item on its database for the purpose of futureplagiarism checking)
• Submit the assessment item to other forms of plagiarism checking I certifythat any electronic version of this assessment item that I have submitted is identical toits paper version
Trang 6All the good results of our work come with support and help, big or small, all ofwhich are valuable and appreciated Throughout the duration of our project, we havereceived a great deal of interest, guidance, and encouragement in many different waysfrom various individuals
With our deepest gratitude, we would like to extend our thanks to MS.Nguyen Thuy
An, our supervising instructor, who shared her knowledge and passion to teach us andsupport us during the project and this report We would also like to express our sincerethanks to the esteemed faculty members and our classmates who have collaboratedwholeheartedly, shared, and encouraged us Without their unconditional support, thisreport would have been difficult to complete
Once again, we sincerely thank everyone involved
Trang 8EVALUATEGroup execution (name of all SVS in the group):
Student ID: 81012202499 Full name: Nguyen Ngoc Hoang
Student ID: 81012202521 Full name: Do Manh Hung
Student ID: 81012202493 Full name: Tran Quang Sang
Project name: TECHNOLOGY SALES WEBSITE
Appraising
No Criteria Grading scale Score Note
3 Get to know the topic and audience of the presentation 1,0
5 Write the following professional criteria 2,0
6 Application of algorithms to the actual problem 1,0
7 Explain/analyze the positive impact and negative of IT
solutions/products on geolocation local and global 1,0
General introduction to the topic of the Thesis The context of its emergence, thepractical demand for the product, or scientific research
Trang 91.1Reasons for choosing the thesis/The urgency of the thesis
1.2Research objectives
1.3Research subjects, application scope
1.4Research tasks
1.5Research methods
1.6Achievements of the Thesis
1.7Plan for implementing the thesis
1.1Reasons for choosing the topic, research field
In today's Information Technology Age, e-commerce has become an integral part ofeveryday life Consumers are increasingly favoring online shopping for convenienceand diversity of products An e-sales website that meets this need will attract manycustomers
1.2 Research objectives
Understand users and their needs: Develop a deep understanding of the target usergroup, including their behavior, preferences, and needs when using technologyproduct websites This goal guides the design and development process to best meetuser needs
The research aims not only to create high-quality web products but also to contribute
to the progress of the information technology sector, providing practical value forusers and businesses
1.3 Research subjects, application scope
The research subjects of this project are consumers, these are people who visit and usethe website to shop for electronic products Research on user behavior, needs, andinteraction is an important part of building and developing a sales website
In terms of application scope this project focuses on building an electronic saleswebsite, allowing users to browse products, add to cart and make payments TheWebsite will support the management of product information, categories, prices,images, and descriptions The Website can integrate customer support via online chat
1.4 Research tasks
The research tasks of a thesis on web technology products typically include designing,analyzing, and implementing solutions to achieve the set research objectives Beloware specific tasks for this topic:
+ Demand Analysis: Research and analyze the needs of users and businesses toidentify the features needed for the website
Trang 10+ System design: develop system architecture, database design, and userinterface following analyzed requirements.
+ Functional development: programming and implementing website functionssuch as Product Management, shopping cart, payment, and order management.+ Testing: perform system testing to ensure that all functions work correctlyand efficiently
+ Reviews and feedback: collect feedback from users to evaluate the website'seffectiveness and continually improve
1.5 Research methods
The research methods for a thesis on web technology products typically involve acombination of theoretical research, analysis, design, and experimentation Below arethe specific research methods applied:
The research methods of this project include:
+ Analysis and design: analyze the needs of users, through which the database designshould be, and data models related to the mode of operation of users on the website.Set the basic functions required for a website
+ Programming and testing: programming and implementing systems using existingweb programming technologies such as NET Core MVC, JavaScript, etc Then checkthe features of the website, and ensure the functionality is performed smoothly,without errors, and the performance of the system
+ Evaluation: collect evaluation data from users thereby improving the system better Combining these methods ensures that the final product meets user needs and adheres
to industry standards and current technology trends It also opens opportunities forexploring and applying new technologies and techniques in product development
1.6 Achievements of the thesis
Creating a user-friendly sales website, with a beautiful interface, performs the basicfunctions required by a website Complete database model
1.7 Plan for implementing the thesis
Trang 11CHAPTER 2: BASIC THEORITICAL
2.1 Introduction to NET Framework
2.2 Introduction to ASP.NET
2.3 MVC Model
2.4 Analyze topics with UML
2.4.1 General USE CASE diagram
2.4.2 Squece Diagram
2.4.3 Details USE CASE diagram
2.1 Introduction to NET Framework
The NET Framework is software made by Microsoft to help build and run NET applications It creates a special environment for developers to focus on building applications without worrying too much about managing memory, system resources, and execution flow
It includes many big libraries and a runtime environment, supporting languages like C#, Visual Basic NET, and F# It offers features like generics, LINQ (Language Integrated Query), async programming support, and many others to enhance application performance and development capabilities
2.2 Introduction to ASP.NET
ASP.NET is web technology from Microsoft, making it easier to build web
applications ASP.NET includes frameworks like Web Forms, ASP.NET MVC (Model-View-Controller), ASP.NET Web Pages, ASP.NET Core (.NET), and Blazor The frameworks in ASP.NET serve different purposes and are chosen based on specific project requirements For example, Web Forms is a traditional framework for web application development, while ASP.NET MVC uses the MVC model to separatebusiness logic, user interface, and control, making development and maintenance easier
Trang 12Views: They contain the user interface logic of the application Views represent the part of the interface that users interact with and are often displayed as HTML Controllers: They contain control logic and handle user requests Controllers receive HTTP requests from users, interact with Models to retrieve and update data, and directusers to corresponding Views
The MVC model makes it easier to develop and maintain applications by separating business logic, user interface, and control into separate components It also encouragesdevelopment based on Test-Driven Development (TDD), with the ability to test each part of the application independently
2.4 Analyze topics with UML
2.4.1 General USE CASE diagram
2.4.1.1 Adm
in
Trang 132.4.1.2 Customer
Trang 142.4.2 Sequece Diagram
- Shoping cart
Trang 15- Review Product
- Product Management
Trang 16- Device Management
- Login
Trang 17- Blog Management
Trang 18- Voucher Management
Trang 19- Tools Management
Trang 20Order Management
- Compare
Trang 21- History Invoice
- Personal Information Management
Trang 23- Wish list management
Trang 242.4.3 Details USE CASE diagram
Trang 30USE CASE Specifications:
2.4.1 USE CASE Specifications Shopping Cart
Pre-condition
Minimal Guarantee Shopping cart updates with correct product details
Success Guarantee Products are added to the shopping cart and quantities
updated
Trigger Customer chooses the shopping cart function
Actor's actions: System's Response:
1.3 The system displays a confirmation message when
an action is successful 1.4 The system saves the shopping cart information to the database
Trang 312.4.1.1USE CASE Specifications Shopping Cart (Add a product)
Pre-condition Customer is looking at items on the website
Minimal Guarantee Cart shows the total number of selected the product
correctly
Success Guarantee Products are added to the shopping cart and quantities
updated
Trigger Customer chooses the shopping cart function
Actor's actions: System's Response:
1 Customer goes to the
"Add to Cart" near
the item's details
3.2 The system adds the item to the cart
3.3 The system shows updated cart with the total number of selected the product
Trang 322.4.1.2 USE CASE Specifications Shopping Cart (Remove Cart)
Pre-condition The cart contains product that has been added
Minimal Guarantee Cart shows the total number of selected the product
correctly
Success Guarantee Products are removed from the cart, and cart
information is updated
Trigger Customer requests remove product from the cart
Actor's actions: System's Response:
1 Customer goes to the
website and then go
to shopping cart
The website will display product that are already available in the database for customer to choose and add to cart when customer have selected that product
Trang 332.4.1.3 USE CASE Specifications Shopping Cart (Update product)
Pre-condition The shopping cart contains products that have been
updated, added, or removed from the shopping cart
Minimal Guarantee The shopping cart accurately reflects the updates
made
Success Guarantee Shopping cart updates to show the total number of
selected the product and recalculates the total price
Trigger Customer requests modify items in the shopping
cart
Actor's actions: System's Response:
1 Customer goes to the
website and then to
shopping cart
The website will display product that are already available in the database for customer to choose and add to cart when customer have selected that product
2 Customer adjust the
number of items or
change the option to
delete product, add a
product to the shopping
Trang 342.4.2 USE CASE Specifications Review Product
Pre-condition Customer is logged in to their account
Minimal Guarantee Product accurately reflects the updates made
Success Guarantee Product reviews and star ratings are added to the
system and can be seen by other customer
Trigger Customer requests leave reviews for products
Actor's actions: System's Response:
1 Customer find product
that they want to review
on the website
1.1 The system checks if customer is eligible for product reviews
2 Customer enter reviews
and choose the number
of stars corresponding
to the level of
satisfaction with
product
3 Customer press the
"Submit review" button
3.1 The system stores reviews and ratings into the database
3.2 The system updates evaluation information on product page
Trang 352.4.3.1 USE CASE Specifications New (Add a new)
Pre-condition Admin logged in successfully to the website
Minimal Guarantee
Success Guarantee The new is added to the database and successfully
displayed to the user interface
Actor's actions: System's Response:
1 Admin goes to the
Trang 362.4.3.2 USE CASE Specifications New (Update a new)
Pre-condition Admin logged in successfully to the website
Minimal Guarantee
Success Guarantee The new is updated to the database and successfully
displayed to the user interface
Actor's actions: System's Response:
4 Admin goes to the
Trang 372.4.3.3 USE CASE Specifications New (Remove a new)
Pre-condition Admin logged in successfully to the website
Minimal Guarantee
Success Guarantee The new is remove to the database and successfully
displayed to the user interface
Actor's actions: System's Response:
7 Admin goes to the
Trang 382.4.4.1 USE CASE Specifications Product (Add a Product)
Pre-conditions Admin logged in successfully to the website
Minimal Guarantee
Success Guarantee The product is added to the database and successfully
displayed to the user interface
Actor's actions: System's Response:
10 Admin goes to the
Trang 392.4.4.2 USE CASE Specifications Product (Update a product)
Pre-conditions Admin logged in successfully to the website
Minimal Guarantee
Success Guarantee The product is updated to the database and
successfully displayed to the user interface
Actor's actions: System's Response:
13 Admin goes to the
Trang 402.4.5 USE CASE Specifications Login
Success Guarantee 1 If the login is successful, the system must transfer the
admin and the customer to the home page or page they requested to access
2 The system must ensure availability and quick response during login
Trigger The Admin and The Customer choose the Login function
Actor’s Action System’s Response
6 Redirect after
successful login
When successful login, the admin and the customer will bemoved to the home page or Target page requested