Design and Implementation of A CBased Hotel Manage
Design and Implementation of A CBased Hotel Manage
Abstract: In this paper, we use C++ as the development language and QT to design and develop a hotel management system
for the current development of the hotel industry. The system adopts the B/S model to connect the object with the database, so
that it has better flexibility and reusability. Its functional modules mainly include customer service module, front-end processing
module, back-end management module, data storage module and other parts, which mainly realize the hotel customer's
reservation, check-in and check-out and the management of the hotel internal staff and other functions. The development cost of
the system is low and the operation is simple, which reduces the learning cost of the staff, improves the management efficiency
of the hotel and facilitates the maintenance and management at a later stage.
Keywords: Hotel Management System; C++; Functional Modules; Database.
36
the staff's name, age, work number, ID number, origin, can access different information. The staff class is the base
position and system authority, etc. All hotel staff need to be class, the administrator class inherits all its permissions, while
registered. Ordinary employees can check their current controlling other permission classes, has the right to manage
schedule, sign in and clock out, and make applications to the and control them, modify other staff permissions, can read
management, etc. The employee application function is and modify all the information in the information class of the
mainly used for employees' leave and shift transfer information, which, the system administrator generally uses
applications. Front desk staff can register and confirm its own permissions, which is mainly responsible for the daily
customers' information at check-in, give feedback to maintenance of the system. The front desk staff class contains
customers' room reservation, help call service staff or the general staff class, which can notify the users when they
maintenance staff, check and update hotel room information, need it, so that the staff of corresponding functions can meet
respond to customers' service requests after check-in, and the needs of customers, such as daily cleaning and
help settle accounts after customers leave the hotel, record maintenance work, while the front desk can view the
customers' opinions and comments, etc. according to the corresponding customer information, room information, and
rights assigned by the administrator. Managers such as the can modify this information. The general staff class mainly
hotel manager can check the basic information of employees, completes the work arrangement from the manager, and can
review the application of employees, check the operation of also make application to the manager.
the hotel, make work arrangement for other employees,
review the financial situation, check the customer information, 3.2. Database Design
modify the room information, check the evaluation of the
Clients
hotel by the customers who have stayed in the hotel, etc. after
logging into the system. If an employee takes a leave of 1
1
absence, other employees can be drawn to fill the missing Submit 1 Reservation
position in time, and at the same time, some relevant N
N
information about special offers can be released. The system Orders
Check in
1
administrator has all the rights of the system, but can only use Room
M
Hotel Management
Clients Management
Staff
N N
The database is the data support for the system and the data
h e h m y nu e Ao af
e w e ti dr ur n oo yi yn t
c c S c ep ev dm iw dr sg st e
k R k e l nm li ia z im tu te
- o o r e ae ic tt ao fa er en S
tr t a a y
that comes into the system is put into the database for storage.
i o u v a nn ve i yi mt mn
n m t i n ct e o ik o i c
s
t
c i e r n o n o e e
e n y n n m
g
37
deposit, consumption of room items during the stay, number system, such as the expected time of stay, the number of days
of occupants, occupancy (5) order statistics table: including of stay, the number of people staying, the reservation
order number, room usage, room type, etc.; (6) consumption information, contact information, room information, etc. The
details table: including order number, settlement time, system will generate the order after the customer fills in the
consumption details, consumption total, check-out personnel, relevant information, and if there is key information not filled
etc.; (7) system user information table: user ID, account in, then the system will prompt the customer and help him/her
number, name, contact information, ID, etc., account number, to improve the information. After the user confirms that the
name, contact information, ID number, user points, user information is correct and clicks to submit the order, the
check-in history, historical orders, etc.; (8) hotel personnel reservation of the hotel room will be completed, and then the
information table: employee ID, work number, name, login system will send the relevant order information and customer
account, gender, age, contact information, position, system information to the relevant personnel of the hotel for review
rights, department, etc.; (9) hotel employee application form: and confirmation. After the hotel completes the confirmation
employee name, work number, application content, etc.; (10) and ensures that the room is successfully reserved, feedback
system rights assignment table: user type, user rights. information will be sent back to the customer through the
Customer information table includes: name, contact system for secondary confirmation, thus completing the entire
information, document type, document number, room number, booking process. After the reservation is completed, the
length of stay, stay time, comments and other parts. Customer customer can check the relevant order information in the
name is generally 2-4 Chinese characters, using varchar type, personal center, make changes to the relevant information, or
a Chinese character needs three bytes, so set its length to 12; cancel the outstanding order.
contact information is generally 11 digits cell phone number,
so set it to the length of 11 varchar type; document type is 4.3. Implementation of Front-end Functional
Chinese characters, there are a variety of types, so set it to the Modules
length of 128 varchar type; document number is generally The The front desk function module can realize the functions of
ID number is usually 18 Arabic digits, so set it as a varchar of customer information registration, verification, room
length 18; the length of stay is from a certain day to a certain reservation, remote reception and self-service departure
day, so its data type is datetime; the check-in time refers to a settlement through the Internet, in addition to updating the
certain day and a certain time when the customer checks in, status of hotel rooms, reporting maintenance, and
so its type is datetime; the note refers to the note information summarizing related reports. After a customer has made a
left by the customer when booking the room, so set it as a reservation, the front desk of the hotel needs to respond by
varchar of length 128; The user priority is decided according confirming the current status of the reserved room, reserving
to the customer's consumption in the hotel, and its data type the room, generating a report, and providing feedback to the
is set to int with a length of 5, which is used to identify customer. [5] After helping the customer to complete the
whether the customer can enjoy priority service and reservation, the relevant information is stored in the system
personalized service. Other information tables are designed in so that the management can view it. When a customer books
the same way. [4] After analyzing the ER relationship diagram, a room, the front desk staff can see the customer's priority
the basic structure of the database tables can be constructed, level and provide priority service or better personalized
and three main tables are selected in this section for structural service according to the customer's level to improve the
design demonstration. customer's stay experience.
38
so the administrator authority is generally not used. storage module and several other parts were designed and
implemented, the specific development practice of the main
5. System Functionality Testing functional modules was carried out, and the testing work of
the relevant functional modules was completed, the results
After completing the design of the hotel management
showed that the functions in the system run stably, the
system, it is necessary to conduct corresponding functional
operation is relatively simple, the efficiency of the hotel
and performance tests on the system. These include system
management system was improved, and it has a strong
interaction test, stability test, corresponding ability test and
practical role.
security test, etc. The relevant tests all need to simulate the
operation of front desk staff, administrators, customers and References
other personnel. During the test, it was found that there were
some conflicts in the authority of some classes and the [1] Dong Huajun.Design and implementation of hotel management
authority was not clear enough, after which the problem was system [J].Industrial Control Computer,2022,35(01):140-141.
solved by redefining the classes and solving the conflicts [2] Dai Lujun,Liu Zhanfeng.Design and implementation of
between some statements. From the overall test results, the elevator simulation program based on C++[J].Computer
system's functionality and related performance could meet the Development and Applications,2014,27(03):40-42+45.
expected requirements and no further problems occurred. [3] Qian Chunxia.Research on the design of hotel chain
management system[J]. Electronic Technology and Software
6. Conclusion Engineering, 2022,No.229(11):216-219.
The article completed the development of the chain hotel [4] Xu Xiaoya,Li Junfang.Database design for SQL Server
management system based on C++ in windows environment, database performance optimization analysis[J].Information
combined with the practical work, the design and and Computer(Theory Edition),2017(02):177-179+185.
development of the hotel management system was explored, [5] Liu Cong.Design and research of hotel management system[J].
the basic functional requirements of the hotel management Electronic Technology and Software Engineering, 2021(01):
system was explored, the customer service module, front-end 165-166.
processing module, back-end management module, data
39