Git Product home page Git Product logo

hotel-system_java's Introduction

hotel

Abstract: This paper contains steps to create a complete hotel system for the Java project, we will see how to create a hotel reservation management system in the Java programming language with the MySQL database. We will see the project creation step and will display the project UML. tools:

  • netbeans ide 8.2.
  • java programming language.
  • xampp server.
  • mysql database.
  • phpmyadmin. Introduction: Today, software development has become a new era other than features of work in many areas, and software has become indispensable in many institutions. It plays a very large role in facilitating transactions and it has a fundamental role in reducing human interference and some organizations whose entire system depends on software. Today we will talk about the use of software development in creating a complete hotel system. Many institutions have become mainly dependent on a software system that reduces human intervention and reduces paper. Because the software system is fast, organized, and easy to use. We will do a project for employees to manage the hotel, such as reserving rooms for visitors and other services. Reservation of rooms. We will use Java language. This system will work on desktop systems The Database Schema: the database will contains 4 tables: 1 - table users: to store the users usernames and passwords and allow them to login. 2 - table resident: to store and manage the hotel clients data. 3 - table room's type: to store the hotel rooms categories ( single, double, family, suite ). 4 - table rooms: to store and manage the hotel rooms data. 5- table reservations : to store and manage the hotel rooms reservations data. The Hotel System: The system consists of 8 user interface to control each window has a role either in adding or displaying data from databases we will talk about each interface in detail.
    1-Loginform 2-All_Rooms_Types_Form 3-MainForm 4-ManageResidentsForm 5-ManageResirvationsForm 6-ManageRoomsForm 7-check-out 8-check-in

image

Login Form: the login form will allow the Users to login into the application Main Form. the user need to enter his username and password before clicking the login button. UML image

image

if the user enter wrong username or password or let any one of this two fields empty an error message will show up telling him what's the problem.

image

and if everything is ok, when you click on the login button the main hotel system form will show up and the login form will close itself.

Main Form:
UML

image image

and he can select where he want to go.

Manage Residents Form: when you select "Clients" form the main form menu, the Manage Residents Form will show up
UML:

image

image

  • when this form load all clients will be displayed into a jtable.

  • to add a new client enter his data and click on "Add New Client" button.

  • to edit a client you need to select him first from the jtable and enter the his newdata. - when you want to delete a product just select the product you want to remove and click on the "Remove" button.

  • when you Edit or Remove a CLIENT click on the "Refresh" button to see the new results in the jtable.

Manage Rooms Form: UML: image here the user can add a new room to the hotel system. when you add a new room you need to select the type of room (single, double, family, suite). and like the client form you can view all rooms in a datagridview and add, edit, remove the selecte one + a combobox populated with all room's categories.
here the user can add a new room to the hotel system. when you add a new room you need to select the type of room (single, double, family, suite). and like the client form you can view all rooms in a datagridview and add, edit, remove the selecte one + a combobx populated with all room's categories.

image image

i you click on the show types button this form will show up with all the room's types available in this hotel managemnt system.

Note: there is no form to mange room's types, if you want to add, edit, delete a category you can do that directly from the database.

image image

ManageResirvationsForm: UML:

image

This form allow the user to manage the clients room reservations. to create a reservation you need: 1) enter the reservation id, 2) select the client who will reserve, 3) you need to select the room where the client will stay. when you add a new reservation the system will check:

  • if the user enter all required informations.
  • if the user enter a date in that is equal or come after the current day date.
  • if the user enter a date out that is equal or come after the date in.

image image

Client-form: UML:

image

Log in as a user. The user name and password are written and you click on the login button as a customer

image

Then you will be taken to client-form
After logging in, the page displays all customer information

image

There is in this interface 2 buttons, the first is responsible for reserving rooms for the customer and the second is to cancel the rooms reservation. If we press the button to reserve rooms, it will take us to the room reservation interface. check-in: UML:

image

In this interface the customer makes a reservation

image

After filling in the data, the program returns to the main page to display the data, and the program adjusts the databases in the table of rooms, it is reserved and the room number is written in the customer information in the customer table

image

Cancel reservation button scans the room and cancels the reservation of the customer

image

Now all the operating windows of the program have been explained All_Rooms_Types_Form class: image

The conclusion:

We learned how to create desktop software in Java and created a complete system project for a hotel with databases

Refrences: 1-https://netbeans.org/downloads/6.1/index.html 2-https://www.apachefriends.org/index.html 3-https://guigarage.com/javafx-book/ 4-https://stackoverflow.com/questions/22433952/what-are-javafx-fxml-and-scenebuilder

hotel-system_java's People

Contributors

moaz544 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.