3. Thiết kế phần mềm
3.3 Thiết kế xử lý
Stt Mã số Tên Loại Ý nghĩa Ghi chú
1 XL01 Xử lý tài khoản Các xử lý liên quan đến tài khoản nhân viên và tài khoản khách hàng
2 XL02 Xử lý phim Các xử lý liên quan đến phim
3 XL03 Xử lý nghệ sĩ Các xử lý liên quan đến nghệ sĩ
4 XL04 Xử lý phòng Các xử lý liên quan đến phòng
5 XL05 Xử lý hàng ghế Các xử lý liên quan đến hàng ghế
45 6 XL06 Xử lý suất chiếu Các xử lý liên quan đến suất chiếu
7 XL07 Xử lý đặt vé Các xử lý liên quan đến đặt vé
8 XL08 Xử lý bán vé Các xử lý liên quan đến bán vé
9 XL09 Xử lý thống kê Các xử lý liên quan đến thống kê
Chi tiết từng xử lý:
Mã số XL01: Xử lý nhân viên
Stt Tên hàm Ý nghĩa
1 UserService.LoginStaffAsync(LoginRequest request) Thực hiện xử lý việc đăng nhập của tài khoản nhân viên
2 UserService.CreateStaffAsync(UserCreateRequest model) Xử lý việc tạo tài khoản nhân viên 3 UserService.UpdateStaffAsync(UserUpdateRequest model) Xử lý việc cập nhật thông tin cho tài
khoản nhân viên
4 UserService.LoginCustomerAsync(LoginRequest request) Thực hiện xử lý việc đăng nhập của tài khoản khách hàng
5 UserService.CreateCustomerAsync(UserCreateRequest model) Xử lý việc tạo tài khoản khách hàng 6 UserService.UpdateCustomerAsync(UserUpdateRequest model) Xử lý việc cập nhật thông tin cho tài
khoản khách hàng
7 UserService.DeleteAsync(Guid id) Xóa tài khoản người dùng
8 UserService.ChangePasswordAsync(ChangePWRequest request) Thay đổi mật khẩu cho tài khoản người dùng
9 UserService.RoleAssignAsync(RoleAssignRequest request) Phân chia vai trò cho tài khoản
10 UserService.GetUserByIdAsync(Guid id) Lấy ra một tài khoản nhân viên dựa trên id
11 UserService.GetCustomerByIdAsync(Guid id) Lấy ra một tài khoản khách hàng dựa trên id
12 UserService.GetUserPagingAsync(UserPagingRequest request) Lấy ra danh sách tài khoản người dùng 13 UserService.ForgotPasswordAsync(string mail) Gửi liên kết đến email của người dùng
để đặt lại mật khẩu khi quên mật khẩu 14 UserService.ResetPasswordAsync(ResetPasswordRequest request) Đặt lại mật khẩu người dùng
15 UserService.CheckToken(Guid userId, string token) Xác thực tài khoản dựa trên việc so sánh UserId và Token
Mã số XL02: Xử lý phim
Stt Tên hàm Ý nghĩa
1 FilmService.CreateAsync(FilmCreateRequest model) Thực hiện xử lý việc tạo mới một phim
46
2 FilmService.UpdateAsync(FilmUpdateRequest model) Xử lý cập nhật thông tin cho một phim
3 FilmService.DeleteAsync(int id) Xóa một phim
4 FilmService.GetFilmPagingAsync(FilmPagingRequest request) Lấy ra danh sách phim
5 FilmService.GetFilmMDById(int id) Lấy ra một đối tượng phim dựa trên id 6 FilmService.GetFilmVMDById(int id) Lấy ra một đối tượng phim để hiển thị ra
ngoài dựa trên id
7 FilmService.GetAllFilmAsync() Lấy ra tất cả các phim
8 FilmService.GenreAssignAsync(GenreAssignRequest request) Chỉ định thể loại cho phim
9 FilmService.GetAllPlayingFilmAsync() Lấy ra danh sách tất cả các phim đang chiếu
10 FilmService.GetAllUpcomingFilmAsync() Lấy ra danh sách tất cả các phim sắp chiếu
11 FilmService.PosAssignAsync(PosAssignRequest request) Chỉ định vai trò của một nghệ sĩ trong một bộ phim
12 FilmService.DeletePosAssignAsync(PosAssignRequest request) Xóa bỏ vai trò của nghệ sĩ trong một bộ phim
13 FilmService.GetJoiningAsync(int id) Lấy ra thông tin các nghệ sĩ tham gia của một bộ phim
Mã số XL03: Xử lý nghệ sĩ
Stt Tên hàm Ý nghĩa
1 PeopleService.CreateAsync(PeopleCreateRequest request) Thực hiện xử lý tạo mới một nghệ sĩ 2 PeopleService.UpdateAsync(PeopleUpdateRequest request) Thực hiện xử lý cập nhật thông tin
cho nghệ sĩ
3 PeopleService.DeleteAsync(int id) Xóa một nghệ sĩ
4 PeopleService.GetPeoplePagingAsync(PeoplePagingRequest request) Lấy ra danh sách nghệ sĩ
5 PeopleService.GetPeopleById(int id) Lấy ra một nghệ sĩ dựa trên id truyền vào
6 PeopleService.GetAllPeopleAsync() Lấy ra tất cả các nghệ sĩ có trong cơ sở dữ liệu
Mã số XL04: Xử lý phòng
Stt Tên hàm Ý nghĩa
1 RoomService.CreateAsync(RoomCreateRequest request) Thực hiện xử lý tạo mới một phòng
47
2 RoomService.UpdateAsync(RoomUpdateRequest request) Xử lý việc cập nhật thông tin cho một phòng
3 RoomService.DeleteAsync(int id) Xóa một phòng
4 RoomService.GetRoomPagingAsync(RoomPagingRequest request) Lấy ra danh sách phòng
5 RoomService.GetRoomById(int id) Lấy ra một phòng dựa trên id
6 RoomService.GetAllRoomAsync() Lấy ra tất cả các phòng có trong cơ
sở dữ liệu
Mã số XL05: Xử lý hàng ghế
Stt Tên hàm Ý nghĩa
1 SeatRowService.CreateAsync(SeatRowCreateRequest request) Thực hiện xử lý tạo mới một hàng ghế
2 SeatRowService.UpdateAsync(SeatRowUpdateRequest request) Xử lý việc cập nhật thông tin cho một hàng ghế
3 SeatRowService.DeleteAsync(int id) Xóa bỏ một hàng ghế
4 SeatRowService.GetAllSeatRows() Lấy ra tất cả hàng ghế
5 SeatRowService.GetSeatRowPagingAsync(SeatRowPagingRequest request) Lấy ra danh sách hàng ghế
6 SeatRowService.GetSeatRowById(int id) Lấy ra một hàng ghế dựa trên
id
Mã số XL06: Xử lý suất chiếu
Stt Tên hàm Ý nghĩa
1 ScreeningService.CreateAsync(ScreeningCreateRequest request) Thực hiện xử lý việc tạo mới một suất chiếu
2 ScreeningService.UpdateAsync(ScreeningUpdateRequest request)
Xử lý việc cập nhật thông tin cho một suất chiếu
3 ScreeningService.DeleteAsync(int id) Xóa một suất chiếu
4 ScreeningService.GetScreeningMDByIdAsync(int id) Lấy ra một đối tượng suất chiếu dựa trên id
5 ScreeningService.GetScreeningVMDByIdAsync(int id) Lấy ra một đối tượng suất chiếu để hiển thị ra ngoài dựa trên id
6 ScreeningService.
GetScreeningPagingAsync(ScreeningPagingRequest request);
Lấy ra danh sách suất chiếu
7 ScreeningService.GetFilmScreeningInday(DateTime? date) Lấy ra danh sách các phim trong một ngày
48
8 ScreeningService.GetListCreeningOfFilmInWeek(int filmId) Lấy ra danh sách các phim trong một tuần
Mã số XL07: Xử lý đặt vé
Stt Tên hàm Ý nghĩa
1 ReservationService.CreateAsync(ReservationCreateRequest request)
Thực hiện việc xử lý tạo mới một đơn đặt hàng
2 ReservationService.UpdateAsync(ReservationUpdateRequest request)
Xử lý việc cập nhật thông tin cho một đơn đặt hàng
3 ReservationService.DeleteAsync(int id) Xóa một đơn đặt hàng
4 ReservationService.GetReservationById(int Id) Lấy ra một đơn đặt hàng dựa trên id 5 ReservationService.
GetReservationPagingAsync(ReservationPagingRequest request)
Lấy ra danh sách đơn đặt hàng 6 ReservationService.
CalPrePriceAsync(List<TicketCreateRequest> tickets)
Tính tiền cho đơn đặt hàng
7 ReservationService.GetReservationByUserId(Guid userId) Lấy ra một đơn đặt hàng dựa trên UserId
Mã số XL09: Xử lý thống kê
Stt Tên hàm Ý nghĩa
1 StatiticService.GetTopRevenueFilmAsync(CalRevenueRequest request)
Lấy những phim có doanh thu cao nhất 2 StatiticService.GetRevenueAsync(CalRevenueRequest request) Lấy doanh thu trong một khoảng thời
gian 3 StatiticService.GetRevenueTypeAsync(CalRevenueRequest
request)
Lấy doanh thu của từng hình thức bán hàng
4 StatiticService.GetRevenueInNMonthAsync(int n) Lấy doanh thu của n tháng gần nhất
49