SWD392 Group5 DetailDesign NguyenThanhHau
SWD392 Group5 DetailDesign NguyenThanhHau
TRAINING
FPT UNIVERSITY
Group 5
HE153240 - Cao Thịnh Hưng
HE161752 - Phan Quang Huy
Group Member HE163707 - Phùng Công Tự
HE161733 - Vũ Duy Hưng
HE170842 - Nguyễn Thanh Hậu
Supervisor <Name>
Ext. Supervisor
Project Code CRMS
- Hanoi, 05/2012 -
CRMS | Detailed Design FPT University | School of Engineering
Table of Contents
1 DETAILED DESIGN 3
1.1 Common Design 3
1.2 <UC xx- Use case name>
1.2.1 Class Diagram 3
1.2.2 Class Description 3
1.2.3 Screen Design 4
1.2.4 Sequence Diagram 5
2 DATABASE DESIGN 5
2.1 Entity Relationship Diagram 5
2.2 Database Diagram 6
2.3 Table Descriptions 6
2.3.1 Table xxx 6
2.3.2 Table xxx 6
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
1 DETAILED DESIGN
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
1.2.2.1 Login_Screeen.xaml.cs
Class Login_Screen.xaml.cs
Description Is the layer that allows the user login to CRMS system through the UI
Prototype
Namespace CRMS/Login
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
1.2.2.2 Employees
Class Employeess
Prototype
Namespace CRMS/Models
EmployeeID int
EmployeeName nvarchar(200)
Address nvarchar(400)
PhoneNumber varchar(12)
Gender bit
StartDayOfWork datetime
Password varchar(30)
PositionID varchar(50)
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
1.2.2.3 EmployeeManagements
Class EmployeeManagements
Constructor
Prototype
Namespace CRMS/Managements
1.2.2.4 EmployeeRepositorys
Class EmployeeRepositorys
Constructor
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
Prototype
Namespace CRMS/Services
1.2.2.5 EmployeeServices
Class EmployeeServices
Prototype
Namespace CRMS/Services
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
pwdPassword
<Screen Definition>
Table 4-1: Login
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
system
Quên mật khẩu Forgot link option Send new password to email
password if user forgot password
Nut đăng nhập Login button yes Allow user login to the
system
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
1.3.2Class Description
1.3.2.1 Logout
Class Logout
Description
Base Class
Constructor
Prototype
Source File
Namespace
1.3.2.2 Employees
Class Employeess
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
Prototype
Namespace CRMS/Models
EmployeeID int
EmployeeName nvarchar(200)
Address nvarchar(400)
PhoneNumber varchar(12)
Gender bit
StartDayOfWork datetime
Password varchar(30)
PositionID varchar(50)
1.3.2.3 EmployeeManagements
Class EmployeeManagements
Constructor
Prototype
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
Namespace CRMS/Managements
1.3.2.4 EmployeeRepositorys
Class EmployeeRepositorys
Constructor
Prototype
Namespace CRMS/Services
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
1.3.2.5 EmployeeServices
Class EmployeeServices
Prototype
Namespace CRMS/Services
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
password to login
1.3.2.6 AuthenticationServices
Class AuthenticationServices
Constructor
Prototype
Namespace CRMS/Services
1.3.2.7 SessionServices
Class SessionServices
Prototype
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
Namespace CRMS/Services
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
1.4.2Class Description
1.4.2.1 ChangePassword_Screen.xaml.cs
Class ChangePassword_Screen.xaml.cs
Description Is the layer that allow the user change password in CRMS through the UI
Prototype
Namespace CRMS/ChangePass
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
password on CRMS
1.4.2.2 Employees
Class Employeess
Prototype
Namespace CRMS/Models
EmployeeID int
EmployeeName nvarchar(200)
Address nvarchar(400)
PhoneNumber varchar(12)
Gender bit
StartDayOfWork datetime
Password varchar(30)
PositionID varchar(50)
1.4.2.3 EmployeeManagements
Class EmployeeManagements
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
Constructor
Prototype
Namespace CRMS/Managements
1.4.2.4 EmployeeRepositorys
Class EmployeeRepositorys
Constructor
Prototype
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
Namespace CRMS/Services
1.4.2.5 EmployeeServices
Class EmployeeServices
Prototype
Namespace CRMS/Services
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
position ID to login
<Screen Definition>
Table 4-x: Manage news- Delete news
Mật khẩu mới New password textbox yes Fill new password
Xác nhận mật Confirm password textbox yes Confirm new password
khẩu mới
Nút lưu dữ liệu Save button option Save to database new
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
password
Nút hủy thao tác Cancel button option Cancel the operation
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
1.5.2.1 Login_Screeen.xaml.cs
Class Login_Screen.xaml.cs
Description Is the layer that allows the user login to CRMS system through the UI
Prototype
Namespace CRMS/Login
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
1.5.2.2 ForgotPassword_Screen.xaml.cs
Class ForgotPassword_Screen.xaml.cs
Description Is the layer that allows the user receive new password by email to login to CRMS
system through the UI
Prototype
Namespace CRMS/Login
1.5.2.3 Employees
Class Employeess
Prototype
Namespace CRMS/Models
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
EmployeeID int
EmployeeName nvarchar(200)
Address nvarchar(400)
PhoneNumber varchar(12)
Gender bit
StartDayOfWork datetime
Password varchar(30)
PositionID varchar(50)
1.5.2.4 EmployeeManagements
Class EmployeeManagements
Constructor
Prototype
Namespace CRMS/Managements
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
pwdPassword
1.5.2.5 EmployeeRepositorys
Class EmployeeRepositorys
Constructor
Prototype
Namespace CRMS/Services
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
eAdd employee
1.4.2.6 EmployeeServices
Class EmployeeServices
Prototype
Namespace CRMS/Services
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
Nút gửi dữ liệu Send button option Send new password to email
Nút hủy thao tác Cancel button option Cancel the operation
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
2 DATABASE DESIGN
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
# Entity Description
1 Areas To indicate what areas there are in the cafe
restaurant
2 Tables Is a list of all the tables in the restaurant
3 Customers Are customers who create cumulate points cards in
the system
4 CommodityCatego These are the types of food that restaurants
rys provide such as Coffee, snacks, fruits...
5 Commoditys Is a list of dishes that the restaurant offers
6 Orders This is a list of sold invoices of the cafe restaurant
system
7 OrderDetails Contains detailed information of each order such as
which dish, quantity, and ordering time
8 Positions Are positions available in the restaurant system
9 Employee Is a list of restaurant employees
10 WorkingTime These are the work shifts that the restaurant has
along with the salary for each shift
11 AttendanceDays Used to keep track of employees' working days
12 SigningSalarys Use to save employee salary receipts
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
Feb-2024- SE 1709
CRMS | Detailed Design FPT University | School of Engineering
Feb-2024- SE 1709