CHAPTER III: SYSTEM ANALYSIS AND DESIGN
3.2.1.3. Use Case diagram decomposition
Figure 3.2. Product management use case diagram Table 3.4. Specification of product management chart Use Case
Name Product Management
Describe -Allows users to add, edit, and delete products.
- Allows users to search, view product details or statistics.
Implementer - Administrators Pretreatment
conditions
- User access to the management system.
- Log in with your employee or administrator account After
processing
- When adding, editing or deleting a category is successful, you will return to the product categories list screen.
- When the search is successful, a list of results will be returned.
When viewing product details, the product details screen will be displayed.
Exception
- When adding or editing products, if the data fields are left blank or entered incorrectly, an input data error will be reported.
- When sending a request to the database with an error, the server will be notified of an error and asked to try again.
Implementation steps
- Users access the software.
- Enter account information.
- Click the login button.
- Click on the product management function.
Use Case for category management
Figure 3.3. Category management use case diagram
Table 3.5. Category management chart specification Use Case
Name Category management
Describe - Allows users to add, edit, delete, product categories.
Implementer - Staff Pretreatment
conditions
- User access to the management system.
- Log in with the administrator account
After processing
- When adding, editing or deleting a category is successful, you will return to the product categories list screen.
Exception
- When adding or editing categories, if the data fields are left blank or entered in the wrong format, an input data error will be reported.
- When sending a request to the database with an error, the server will be notified of an error and asked to try again.
Implementation steps
- Users access the software.
- Enter account information.
- Click the login button.
- Click on the category management function.
Use Case for customer management
Figure 3.4. Customer management use case diagram Table 3.7. Specification of customer management chart Use Case
Name Customer management
Describe
- Allows users to edit information and delete customers.
- Allows users to search and view customer details.
Implementer - Administrators
Pretreatment conditions
- User access to the management system.
- Log in with your employee or administrator account
After processing
- When the operation to edit or delete a customer is successful, return to the customer list screen.
- When the search operation is successful, the corresponding customer list is returned.
- When viewing customer details, it will return to the customer details screen.
Exception
- When editing customer information, if the data fields are left blank or entered in the wrong format, an input data error will be reported.
- When sending a request to the database with an error, the server will be notified of an error and asked to try again.
Implementation steps
- Users access the software.
- Enter account information.
- Click the login button.
- Click on the customer management function.
Account management use case
Figure 3.5. Account management use case diagram Table 3.10. Specification of account management chart Use Case
Name Account management
Describe - Allows administrators to add, edit, and delete user accounts.
Implementer - Administrators Pretreatment
conditions
- User access to the management system.
- Log in with the administrator account
After processing
- When adding, editing or deleting accounts successfully, return to the account list screen.
Exception
- When adding or editing account information, if the data fields are left blank or entered in the wrong format, an input data error will be reported.
- When sending a request to the database with an error, the server will be notified of an error and asked to try again.
Implementation steps
- Users access the software.
- Enter account information.
- Click the login button.
- Click on the account management function.
Use Case push notifications
Figure 3.6. Push notification use case diagram Table 3.11. Notification push chart specification Use Case
Name Push notifications
Describe - Allows administrators to create notifications to customers.
Người thực
hiện Implementer
Pretreatment conditions
- User access to the management system.
- Log in with your employee or administrator account
After processing
- When the push notification operation is successful, return to the main screen
Exception
- When entering notification content, if the data fields are left blank or in the wrong format, an input data error will be reported.
- When sending a request to the database with an error, the server will be notified of an error and asked to try again.
Implementation steps
- Users access the software.
- Enter account information.
- Click the login button.
- Click on the notification push function.
- Enter the notification to push and press push.
Use Case for listening to music
Figure 3.7. Music listening use case diagram
Table 3.13. Preferred product management chart specification Use Case
Name Category management
Describe - Allow customers to turn on music, play the next song, the previous song
Implementer - Client Pretreatment
conditions - User accesses the application.
After processing
- When listening, skip, previous, images corresponding to the song appear.
Exception - When sending a request to the database with an error, the server will be notified of an error and asked to try again.
Implementation steps
- Users access the software.
- Enter account information.
- Click the login button.
- Turn on music
Use Case for managing favorite products
Figure 3.8. Use Case diagram for managing favorite products Table 3.13. Preferred product management chart specification Use Case
Name Category management
Describe - Allow customers to add or remove their favorite products.
Implementer - Client Pretreatment
conditions - Users access the sales system.
After processing
- When adding or deleting favorite products successfully, return to the list of favorite products screen.
Exception - When sending a request to the database with an error, the server will be notified of an error and asked to try again.
Implementation steps
- Users access the software.
- Enter account information.
- Click the login button.
- Click on the favorite product management function
Use Case for playlist management
Figure 3.9. Use Case diagram for playlist management Table 3.14. Specification of playlist management use case diagram Use Case
Name Category management
Describe - Allow customers to create their own playlists Implementer - Client
Pretreatment
conditions - User accesses the application.
After processing
- When the playlist creation operation is successful, it will return to the playlist screen
Exception - When sending a request to the database with an error, the server will be notified of an error and asked to try again.
Implementation steps
- User accesses the application.
- Enter account information.
- Click the login button.
- Click on the add playlist function
Usecases manage history
Figure 3.10. Historical management use case diagram Table 3.15. History management use case diagram specification
Tên Use Case Quản lý danh mục
Describe - Allows customers to view previous history Implementer - Client
Pretreatment
conditions - User accesses the application.
After processing
- When viewing history, the screen will display the history of used songs
Exception - When sending a request to the database with an error, the server will be notified of an error and asked to try again.
Implementation steps
- User accesses the application.
- Enter account information.
- Click the login button.
- Click on the history view function