Professional Documents
Culture Documents
COURSE REPORT
5.
6.
7. GROUP MEMBERS:
8. Lê Thiện An 19110105
9. Lê Duy Tường 19110065
10. Đỗ Trần Công Phương 19110133
11. Nguyễn Thành Thiện 19110150
12.
FOREWORD
For Vietnam in particular and the world in general, Cyber Game is a fairly popular
form of business. Especially after the time of the Covid-19 pandemic, when everyone
started to return to community activities, returning to Cyber Games to both play games
and enjoy Cyber's food is indispensable. Therefore, we chose the topic of building an
analysis and design to manage the Super League football tournament for the final project
of the course.
Because the implementation time is limited and the scope of the topic is quite
wide, the content of the project is not very complete and accurate with reality. Hopefully,
when conditions allow, the content of the project can be expanded more fully and can be
applied in practice.
We sincerely thank Mr. Nguyen Tran Thi Van has imparted to us the necessary
knowledge for this subject. We would also like to thank you for your guidance in
consulting our project.
TABLE OF CONTENTS
INSTRUCTOR’S COMMENTS............................................................................................................ii
FOREWORD..........................................................................................................................................iii
TABLE OF CONTENTS.......................................................................................................................iv
LIST OF FIGURES...............................................................................................................................vii
LIST OF TABLES................................................................................................................................viii
OVERVIEW ABOUT CYBER GAME.................................................................................................ix
1. CHAPTER 1: SURVEY......................................................................................................................1
1.1. Survey:.......................................................................................................................................1
1.2. Objectives:.................................................................................................................................1
1.3. Scope of the topic:.....................................................................................................................1
2. CHAPTER 2: ANALYSIS...................................................................................................................2
2.1. Entity Detection.........................................................................................................................2
2.2. Model Interpretation.................................................................................................................2
2.3. Survey the current status and requirements..............................................................................3
2.4. Identify actors and functions in use case diagrams....................................................................4
2.5. Actors and Use cases description...............................................................................................5
2.5.1. Actors description.......................................................................................................................5
2.5.2. Use cases description:................................................................................................................5
2.6. Use Case Diagram:.....................................................................................................................7
2.6.1. Use Case Diagrams:....................................................................................................................7
2.6.2. Use Case Specifications:...........................................................................................................10
2.7. Sequence Diagrams:.................................................................................................................16
3. CHAPTER 3: LIST OF SOFTWARE REQUIREMENTS............................................................25
3.1. List of system functional requirements:...................................................................................25
3.2. List of non-functional requirements of the system:..................................................................25
4. CHAPTER 4: DATA DESIGN.........................................................................................................27
4.1. ERD:.........................................................................................................................................27
4.2. Detailed data sheets:...............................................................................................................29
4.2.1. Account: Account(UserName, DisplayName, Password, Type).................................................29
4.2.2. Computer Order: ComputerOrder (id, name, status)...............................................................29
LIST OF FIGURES
Figure 2.6-1. Use Case General system..............................................................................7
Figure 2.6-2. Use Case Hired PC Management.................................................................8
Figure 2.6-3. Use Case Account Management....................................................................8
Figure 2.6-4. Use Case Menu Management........................................................................9
Figure 2.6-5. Use Case Statistic..........................................................................................9
Figure 5.1-1. Transformation Diagram.............................................................................32
Figure 5.2-1. Login screen................................................................................................33
Figure 5.2-2. Event diagram Login screen........................................................................34
Figure 5.2-3. Main screen.................................................................................................34
Figure 5.2-4. Turnover screen...........................................................................................35
Figure 5.2-5. Order screen................................................................................................36
Figure 5.2-6. Account screen............................................................................................37
Figure 5.2-7. Account user screen.....................................................................................38
Figure 5.2-8. Computer management screen.....................................................................39
Figure 5.2-9. Order and payment screen...........................................................................40
Figure 5.2-10. Rate us screen............................................................................................41
Figure 6.1-1. Singleton Pattern Structure..........................................................................42
Figure 6.1-2. Create Instance............................................................................................43
Figure 6.1-3. Singleton for AccountDAO.........................................................................43
Figure 6.2-1. Decorator Pattern Strucrture........................................................................44
Figure 6.2-2. Decorator Pattern Setting............................................................................44
Figure 6.2-3. Using Decorator Pattern..............................................................................45
Figure 6.3-1. Façade Pattern Structure..............................................................................46
Figure 6.3-2. Façade Pattern Setting.................................................................................47
Figure 6.3-3. Using Façade Patter.....................................................................................47
Figure 7.1-1. Data Access Layer.......................................................................................50
Figure 7.1-2. Data Transfer Object...................................................................................51
Figure 7.1-3. View............................................................................................................51
Figure 7.2-1. Login test.....................................................................................................52
LIST OF TABLES
Table 2.4-1. Actors and Use cases......................................................................................5
Table 2.5-1. Actors and their roles......................................................................................5
Table 2.5-2. Use cases description......................................................................................6
Table 2.6-1. Use Case Login Specifications.....................................................................10
Table 2.6-2. Use Case Lease PC Specifications................................................................10
Table 2.6-3. Use Case Return PC Specifications..............................................................11
Table 2.6-4. Use Case Ordering food Specifications........................................................11
Table 2.6-5. Use Case Add food Specifications................................................................12
Table 2.6-6. Use Case Delete food Specifications............................................................12
Table 2.6-7. Use Case Update food Specifications...........................................................13
Table 2.6-8. Use Case Add new account Specifications...................................................14
Table 2.6-9. Use Case Delete account Specifications.......................................................14
Table 2.6-10. Use Case Update account information Specifications.................................15
Table 2.7-1. Sequence Diagram Login..............................................................................16
Table 2.7-2. Sequence Diagram Hired PC Management...................................................17
Table 2.7-3. Sequence Diagram Return PC Management.................................................18
Table 2.7-4. Sequence Diagram Add new Food...............................................................19
Table 2.7-5. Sequence Diagram Delete Food....................................................................20
Table 2.7-6. Sequence Diagram Update Food..................................................................21
Table 2.7-7. Sequence Diagram Update Account.............................................................22
Table 2.7-8. Sequence Diagram Add new Account..........................................................23
Table 2.7-9. Sequence Diagram Delete Account..............................................................24
Table 5.2-1. Objects in the login screen............................................................................33
Table 5.2-2. Objects in the Main screen............................................................................34
Table 5.2-3. Objects in the Turnover screen.....................................................................35
Table 5.2-4. Objects in the Order screen...........................................................................37
Table 5.2-5. Objects in the Account screen.......................................................................38
Table 5.2-6. Objects in the Account user screen...............................................................39
Table 5.2-7. Objects in the Computer management screen...............................................39
Table 5.2-8. Objects in the Order and payment screen.....................................................40
Table 5.2-9. Objects in the Rate us screen........................................................................41
1. CHAPTER 1: SURVEY
1.1. Survey:
Through press and media to collect information.
1.2. Objectives:
Analyze and design the management system of the most popular type of Cyber
Game today with the functions of playtime, food, drinks,...
2. CHAPTER 2: ANALYSIS
2.1. Entity Detection
Entity 1: Account
Entity 2: Bill
Atttributes: id, DateCheckIn, DateCheckOut, IdComputer, status
Entity 3: BillInfo
Atttributes: id, idBill, idOrder, ViTri
Entity 4: Category
Attributes: MSVD, TenVD
Entity 5: Order
Attributes: id, name, idCategory, price
Entity 6: OrderCategory
Atttributes: id, name
Entity 7: Computer
Attributes: id, name, status
Users also have the function to add, delete, edit playtime or ordered dishes.
There is also a very necessary feature that is to change the machine when the
machine is playing with problems or damage.
For Admins:
Admin can manage how many hours the player has ordered, what dishes and
drinks are ordered from the restaurant and bill the player.
Show list of invoices
Show list of food and drink
Add, remove, edit Cyber's food and drink
Show list of player accounts
Print invoices for players
Each Cyber Game will have about 20-30 computers for users to use and each
player will be able to order food and drink to see the bill they need to spend. In which the
administrators will be the ones who have the function to manage 20-30 machines of
Cyber with the management of the player's food and drink playtime.
Requirements:
Store:
User's information: username, password, display name
Admin information: username, password, display name
Invoice: Play time, amount to be paid.
Menu: number of hours of play, food, drinks, price of each type
Computer: Status on or off
Search:
Look up information about food
Look up drink information
- Login
- PC management
- Account management
- Menu/Food management
Storekeeper
- Lease PC
- Food ordering management
- Payment management
- Statistic
- Login
- Lease PC
Staff
- Food ordering management
- Payment management
- Order food
- Make a payment
Table 2.4-1. Actors and Use cases
2.5. Actors and Use cases description
2.5.1. Actors description
Actors Use cases
- Login
- Lease PC
- Let the customer return PC
- Let the customer order food
- Add new food
Store keeper
- Delete food
- Update food/menu
- Add new account
- Delete account
- Update account (in private)
- Login
- Lease PC
Staff - Let the customer return PC
- Let the customer order food
- Update account (in private)
- View PC list
- Rent PC
Customer
- View menu
- Order food
Table 2.5-2. Actors and their roles
2.5.2. Use cases description:
Login
Manage hired PC
Manage food
ordering
Staff
Manage payment
Manage accounts
Storekeeper
Manage menu
uc Manage Hired PC
PC reimbursement Payment
management «extend»
PC rental
management
«extend»
Sav e bill
Staff
«extend»
Food ordering
management
uc Account Management
Create account
Delete account
Storekeeper
Update account
View account
uc Menu Management
Update menu
uc Statistic
Computer list
statistics
Food ordering
statistics
Staff
Actors Staff.
Description Staff reset the rented status of returned PC (to empty) and let
the customer make a payment.
Actors Staff
Actors Staff
Description Every time there is a new food, the store owner will add a new
one to update the system continuously.
Pre-conditions The shop owner has information about the new food and the food is not
already in the database.
Description The shop owner deletes food information from the database.
Description The store owner adds an account when a new employee comes
to work at the store.
password.
(7) After entering, the store owner clicks the “Add” button
to save the information in the database.
(8) The system connects to the database, creates a new
account, and displays the message “Add successfully”
Table 2.6-11. Use Case Add new account Specifications
Database
Staff
frmLogin frmMain
loop
Check password()
Send result()
Enter frmMain()
Close Form()
sd Hired PC management
Database
Staff
frmMain
PC management()
Query()
Display PC list()
Select PC()
Query()
Send result()
sd Hired PC management
Database
Staff
frmMain
PC management()
Query()
Display PC list()
Select payment()
Query()
Send result()
sd Update menu
Database
Storekeeper
frmMain frmAdmin frmAddFood
Admin()
Show()
Add food()
Show()
loop
[Add new food]
Input new food information()
Save()
Send result()
sd Delete food
Database
Storekeeper
frmMain frmAdmin frmFoodList
Admin()
Show()
Order()
Show()
Select food()
Delete()
Query
()
Send result()
sd Update food
Database
Storekeeper
frmMain frmAdmin frmFoodList
Admin()
Show()
Order()
Show()
Select food()
Delete()
Save()
Send result()
sd Update Account
Database
Staff
frmMain frmUserInfo
User Information()
Show()
Save()
Save()
Send result()
sd Add Account
Database
Storekeeper
frmMain frmAdmin frmAccount
Admin()
Show()
Account()
Show()
Add()
Save()
Send result()
sd Delete Account
Database
Storekeeper
frmMain frmAdmin frmAccount
Admin()
Show()
Account()
Show()
Add()
Save()
Send result()
OrOrd
Content Standarard Detailed description Note
er
existing Excel
files.
the Excel file with a
The screens have a
reasonable structure.
general
consistency
4.
1 Account - Chứa thông tin cá nhân và thông tin đăng nhập của
Admin và User
2 ComputerOrder - Chứa thông tin về tên mỗi máy tính ở trạng thái trống
hay có người
5 IdCategory - Chứa thông tin bao gồm những loại có trong Order
Các ràng buộc khác - Trong mỗi dự án, ngày bắt đầu phải nhỏ hơn ngày kết
thúc
4 count Integer
Screen Description:
Go to the main
Login screen with the
Click login account you just
screen
logged in
Regions Use
1 Move to the screen Admin, Account, ...
2 Click to view invoice information from your computer, See if
it's empty or used
3 Food order area and view bill information
4 Payment area and functions of changing PC, feedback,...
Table 5.2-24. Objects in the Main screen
2.2.3.1. Turnover
Uses: View sales statistics over time
Screen Description:
adjustment
3 TextBox Show the details of the service
4 SimpleButton Perform operations such as view, edit,
delete
Table 5.2-26. Objects in the Order screen
2.2.3.3. Account Screen
Uses: Manage customer and employee accounts
Screen Description:
adjusted
2 SimpleButton Perform operations such as view, edit,
delete
3 TextBox Show the details of the account
Table 5.2-27. Objects in the Account screen
2.2.4. User Account:
Uses: Change personal account information
Screen Description:
Type Use
SimpleButto Select the computer to view the information
n
Table 5.2-29. Objects in the Computer management screen
This class is responsible for communicating with the end user to collect data and
display the results/data through elements in the user interface. This layer will use the
services provided by the Business Logic layer. In .NET, we can use Windows Forms,
ASP.NET or Mobile Forms to implement this class.
Business
Logic Layer This layer performs the main system operations, uses the services
provided by the Data Access layer, and provides services to the Presentation layer.
Data Access Layer
This layer performs operations related to storing and retrieving the application's
data. Usually this class will use the services of database management systems such as
SQL Server, Oracle, etc. to perform its tasks.
As for other accounts, they will not have access to admin rights:
When you have not selected the computer to order, the application will display as:
In the payment section, it can be divided into 2 types of payment with cash
payment and Momo. Alternatively, it is possible to give feedback to our app with the
feedback button
5. CHAPTER 8: CONCLUSION:
5.1. Knowledge and skills:
Through the process of implementing the project Management of a store that sells
and rents movie discs, the student group has accumulated extremely useful knowledge
and experiences:
Know the process of building and designing software
Practice interviewing and teamwork skills
Practice programming on C# with 3-layer model - Apply Design Patterns to the
project
5.3. Development
Because the first time building software and programming experience is still
weak, the program inevitably makes mistakes. In the future, the team will try to perfect
the program and update more features, such as: helping store owners see the activity
history of customers and employees, updating the function of creating database backup
files, Complete data deletion function. The program also depends on the creation of the
database, so next time the team will make the program run without depending on the
database creation and the SQL Server version.
6. REFERENCES
[1] https://refactoring.guru/
[2] How Kteam - Free Education | How Kteam
[3] http://stackoverflow.com/
[4] Design Patterns & Refactoring (sourcemaking.com)
7. JOB TABLE
Name Work Report assignment