How nhuanld17/hotelmanagementsystem works
Project Overview
This is a Java-based hotel management system using Eclipse and MySQL, following a layered architecture pattern (GUI, Controller, BUS (Business Logic), DAO (Data Access), DTO (Data Transfer Objects)).
Main Components
A. Presentation Layer (GUI)
• GUI components (Login, Employee, Customer, Bill, Charts)
• User types (Admin/Manager) interaction points
B. Controller Layer
• Controllers between GUI and Business Logic
• Connections to respective GUI components
C. Business Logic Layer (BUS)
• Business services (Account, Employee, HoaDon, KhachHang, Phong)
• Validation and processing logic
D. Data Access Layer (DAO)
• DAO components
• DBConn as a central connection manager
E. Data Transfer Objects (DTO)
• Entity classes (Account, Employee, HoaDon, KhachHang, Phong, Chart)
F. Database
• MySQL database
• Connection to DAO layer through DBConn
• Use a database symbol
[User Interface Layer]
• ↓
[Controller Layer]
• ↓
[Business Logic Layer]
• ↓
[Data Access Layer]
• ↓
[Database Layer]
Key Relationships to Highlight
• User role-based access (Admin vs Manager)
• Flow of data from GUI through layers
• CRUD operations flow
• Reporting and chart generation flow
• Authentication flow through layers
Special Features
• PDF generation for invoices
• Excel export functionality
• Chart generation components
• Authentication/Authorization flow
• Revenue calculation and reporting
Implementation Details
• Maintain consistent spacing and alignment
• Related components together
• Use standardized UML notation where appropriate