Standard scenario of use case: edit room
- A manager starts the application to edit the room 305.
- The login interface is appeared with: an input text for username, an input text for password, a button to login.
- The manager enters username as “man01”, password as “******” and then, clicks on the login button.
- The main manager UI is appeared with three options: Manage hotel, manage room, and view report.
- The manager chooses to manage room.
- The room management UI is appeared with three options: add, edit, delete room.
- The manager chooses to edit a room.
- The search room UI is appeared with: an input text for the keyword (name of room), a button to search.
- The manager enters a keyword as “305” and then, clicks on the search button.
- The list of all room whose name contains the entered keywords is appeared as follows:
| id | Name | Price | Type | Description |
| 1 | 305 | 1000 | Double | Sea view |
| 2 | 305bis | 500 | Single | Garden view |
- The manager clicks on the first line, corresponds to the room 305.
- The UI for editing a room is appeared with attributes and their value of the selected room:
id: 1 (view only)
name: 305
price: 1000
type: double
description: see view
nút cập nhật và reset.
- The manager modifies the price to 800 and clicks on the save button.
- A success alert is appeared and then, the system returns to the main manager UI.
Exceptional scenarios:
4. The system alerts that the username/password is incorrect.
10. There is no room found.
Standard scenario for use case: book a room
- A seller A clicks on the booking option in the menu of booking management. A wants to book a room for the client B who is on the call to A to book a room.
- The search available room UI is appeared with: an input date for the check in date, an input date for the check out date, a search button.
- A asks B the desired checkin/checkout date
- B answers to A that he wants to book from 30/04/2020 to 01/05/2020.
- A enters the checkin date as 30/04/2020, checkout date as 01/05/2020 and then, clicks on the search button.
- A list of all available rooms during that period is listed as follows:
| id | Name | Price | Type | Description |
| 1 | 305 | 1000 | Double | Sea view |
| 2 | 201 | 500 | Single | Garden view |
| 3 | 202 | 1000 | Twink | Garden view |
- A informs these room to B and asks B to choose a room.
- B chooses a room with sea view.
- A clicks on the room of 305 (line n.1)
- The client information UI is appeared with inputs: name, id card number, address, telephone, email.
- A asks B to provide those information.
- B informs to A: Name is B, address is “Ha Noi”, id card number is 123456, phone number is 77777777, and email is b77@gmail.com.
- A enters B into name input, and then clicks on search button.
- A list of all client whose name contains the keyword “B” is listed as follows:
| id | Name | Address | Id card number | Phone number | |
| 1 | B | Ha Noi | 123456 | 77777777 | b77@gmail.com |
| 2 | BC | Da Nang | 223344 | 88888888 | bc88@Gmail.com |
| 3 | BB | Ho Chi Minh city | 343434 | 5555555 | null |
- A recognizes that B is already in the system on the line 1. A clicks on the line 1.
- The confirmation UI is appeared with information: The information about the selected room: name 305, double, sea view, price of 1000/night. The information about client: name is B, from Ha Noi… Information about booking: checkin from 30/04 to 01/05. A confirm and a cancel button.
- A repeats those information to B and asks B to confirm.
- B confirm that all is OK.
- A clicks on the confirm button
- The system displays the booking success alert and returns to the main seller UI.
- A informs to B that the booking is success and ends the call.
Exceptional scenarios:
6. There is no available room found
14. There is no client found or the client B is not in the system yet.
Standard scenario for use case: view report
- A manager selects the view report option after logged in. He wants to see the revenue by room from the start of the month.
- The config report UI appeared with: a selection of report object including hotel, room, client, service, revenue. The selection of report criteria including: by time, by revenue.
- The manager selects object as room, criteria is by revenue.
- The UI for view report is appeared with: an input date for the start date, an input date for the end date, and a view button.
- The manager enters the start date as 01/05/2020, the end date as 30/05/2020, and clicks on the view button
- The list of all rooms is listed as follows:
| N0. | Name | Type | Total filled days | Total revenue |
| 1 | 305 | double | 15 | 15000 |
| 2 | 201 | single | 24 | 12000 |
| 3 | 202 | twink | 10 | 10000 |
| 4 | 203 | double | 5 | 5000 |
| 5 | 301 | single | 2 | 1000 |
| 6 | 302 | twink | 0 | 0 |
- The manager clicks on the room of 305 to see the detail.
- The list of all client who stayed in the room of 305 during the period:
| N0. | Client name | Checkin | Checkout | Price | Total days | Total revenue |
| 1 | B | 01/05/20 | 05/05/20 | 1000 | 4 | 4000 |
| 2 | CC | 09/05/20 | 10/05/20 | 1000 | 1 | 1000 |
| 3 | zz | 13/05/20 | 21/05/20 | 1000 | 8 | 8000 |
| 4 | kk | 24/05/20 | 26/05/20 | 1000 | 2 | 2000 |
| Total | 15 | 15000 |
- The manager click on the back button
- The system returns to the main UI of manager.