├── Algorithm.pdf
├── Documentation.pdf
├── README.md
├── build.xml
├── build
└── classes
│ ├── .netbeans_automatic_build
│ ├── .netbeans_update_resources
│ ├── hotel
│ └── management
│ │ └── system
│ │ ├── AddDrivers.class
│ │ ├── AddEmployee$1.class
│ │ ├── AddEmployee.class
│ │ ├── AddRoom.class
│ │ ├── CheckOut$1.class
│ │ ├── CheckOut$2.class
│ │ ├── CheckOut$3.class
│ │ ├── CheckOut$4.class
│ │ ├── CheckOut.class
│ │ ├── CustomerInfo$1.class
│ │ ├── CustomerInfo$2.class
│ │ ├── CustomerInfo$3.class
│ │ ├── CustomerInfo.class
│ │ ├── Dashboard$1.class
│ │ ├── Dashboard$2.class
│ │ ├── Dashboard$3.class
│ │ ├── Dashboard$4.class
│ │ ├── Dashboard.class
│ │ ├── Department$1.class
│ │ ├── Department$2.class
│ │ ├── Department$3.class
│ │ ├── Department.class
│ │ ├── Employee$1.class
│ │ ├── Employee$2.class
│ │ ├── Employee$3.class
│ │ ├── Employee.class
│ │ ├── HotelManagementSystem.class
│ │ ├── Login.class
│ │ ├── ManagerInfo$1.class
│ │ ├── ManagerInfo$2.class
│ │ ├── ManagerInfo$3.class
│ │ ├── ManagerInfo.class
│ │ ├── NewCustomer$1.class
│ │ ├── NewCustomer$2.class
│ │ ├── NewCustomer$3.class
│ │ ├── NewCustomer.class
│ │ ├── PickUp$1.class
│ │ ├── PickUp$2.class
│ │ ├── PickUp$3.class
│ │ ├── PickUp.class
│ │ ├── Reception$1.class
│ │ ├── Reception$10.class
│ │ ├── Reception$11.class
│ │ ├── Reception$12.class
│ │ ├── Reception$2.class
│ │ ├── Reception$3.class
│ │ ├── Reception$4.class
│ │ ├── Reception$5.class
│ │ ├── Reception$6.class
│ │ ├── Reception$7.class
│ │ ├── Reception$8.class
│ │ ├── Reception$9.class
│ │ ├── Reception.class
│ │ ├── Room$1.class
│ │ ├── Room$2.class
│ │ ├── Room$3.class
│ │ ├── Room.class
│ │ ├── SearchRoom$1.class
│ │ ├── SearchRoom$2.class
│ │ ├── SearchRoom$3.class
│ │ ├── SearchRoom.class
│ │ ├── UpdateCheck$1.class
│ │ ├── UpdateCheck$2.class
│ │ ├── UpdateCheck$3.class
│ │ ├── UpdateCheck$4.class
│ │ ├── UpdateCheck.class
│ │ ├── UpdateRoom$1.class
│ │ ├── UpdateRoom$2.class
│ │ ├── UpdateRoom$3.class
│ │ ├── UpdateRoom$4.class
│ │ ├── UpdateRoom.class
│ │ ├── conn.class
│ │ └── icons
│ │ ├── eight.jpg
│ │ ├── eleven.jpg
│ │ ├── fifith.jpg
│ │ ├── fifth.jpg
│ │ ├── fifth.png
│ │ ├── first.jpg
│ │ ├── fourth.jpg
│ │ ├── nine.jpg
│ │ ├── second.jpg
│ │ ├── seventh.jpg
│ │ ├── sixth.jpg
│ │ ├── tenth.jpg
│ │ ├── third.jpg
│ │ ├── tick.png
│ │ └── twelve.jpg
│ └── newpackage
│ └── rs2xml.jar
├── database commands.txt
├── manifest.mf
├── nbproject
├── build-impl.xml
├── genfiles.properties
├── private
│ ├── config.properties
│ ├── private.properties
│ └── private.xml
├── project.properties
└── project.xml
├── src
├── hotel
│ └── management
│ │ └── system
│ │ ├── AddDrivers.java
│ │ ├── AddEmployee.java
│ │ ├── AddRoom.java
│ │ ├── CheckOut.java
│ │ ├── CustomerInfo.java
│ │ ├── Dashboard.java
│ │ ├── Department.java
│ │ ├── Employee.java
│ │ ├── HotelManagementSystem.java
│ │ ├── Login.java
│ │ ├── ManagerInfo.java
│ │ ├── NewCustomer.java
│ │ ├── PickUp.java
│ │ ├── Reception.java
│ │ ├── Room.java
│ │ ├── SearchRoom.java
│ │ ├── UpdateCheck.java
│ │ ├── UpdateRoom.java
│ │ ├── conn.java
│ │ └── icons
│ │ ├── eight.jpg
│ │ ├── eleven.jpg
│ │ ├── fifith.jpg
│ │ ├── fifth.jpg
│ │ ├── fifth.png
│ │ ├── first.jpg
│ │ ├── fourth.jpg
│ │ ├── nine.jpg
│ │ ├── second.jpg
│ │ ├── seventh.jpg
│ │ ├── sixth.jpg
│ │ ├── tenth.jpg
│ │ ├── third.jpg
│ │ ├── tick.png
│ │ └── twelve.jpg
└── newpackage
│ └── rs2xml.jar
└── test
└── rs2xml.jar
/Algorithm.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/Algorithm.pdf
--------------------------------------------------------------------------------
/Documentation.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/Documentation.pdf
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Hotel Management System
2 | The project, Hotel Management System is a desktop-based application that allows the hotel manager to handle all hotel activities online. Interactive GUI and the ability to manage various rooms, employees, drivers and customers make this system very flexible and convenient. The hotel manager is a very busy person and does not have the time to sit and manage the entire activities manually on paper. This application gives him the power and flexibility to manage the entire system from a single online system. Hotel management project provides room booking, staff management and other necessary hotel management features. The system allows the manager to post available rooms in the system.
3 |
4 |
5 | • Add a new Room \
6 | • Add an Employee \
7 | • Add a new Customer \
8 | • Check room status \
9 | • Check all employees’ details \
10 | • Check all Customers’ details \
11 | • Update room status \
12 | • Update check status etc.
13 |
--------------------------------------------------------------------------------
/build.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | Builds, tests, and runs the project JavaApplication5.
12 |
13 |
73 |
74 |
--------------------------------------------------------------------------------
/build/classes/.netbeans_automatic_build:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/.netbeans_automatic_build
--------------------------------------------------------------------------------
/build/classes/.netbeans_update_resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/.netbeans_update_resources
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/AddDrivers.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/AddDrivers.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/AddEmployee$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/AddEmployee$1.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/AddEmployee.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/AddEmployee.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/AddRoom.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/AddRoom.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/CheckOut$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/CheckOut$1.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/CheckOut$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/CheckOut$2.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/CheckOut$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/CheckOut$3.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/CheckOut$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/CheckOut$4.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/CheckOut.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/CheckOut.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/CustomerInfo$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/CustomerInfo$1.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/CustomerInfo$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/CustomerInfo$2.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/CustomerInfo$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/CustomerInfo$3.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/CustomerInfo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/CustomerInfo.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Dashboard$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Dashboard$1.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Dashboard$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Dashboard$2.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Dashboard$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Dashboard$3.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Dashboard$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Dashboard$4.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Dashboard.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Dashboard.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Department$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Department$1.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Department$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Department$2.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Department$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Department$3.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Department.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Department.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Employee$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Employee$1.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Employee$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Employee$2.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Employee$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Employee$3.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Employee.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Employee.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/HotelManagementSystem.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/HotelManagementSystem.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Login.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Login.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/ManagerInfo$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/ManagerInfo$1.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/ManagerInfo$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/ManagerInfo$2.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/ManagerInfo$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/ManagerInfo$3.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/ManagerInfo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/ManagerInfo.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/NewCustomer$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/NewCustomer$1.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/NewCustomer$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/NewCustomer$2.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/NewCustomer$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/NewCustomer$3.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/NewCustomer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/NewCustomer.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/PickUp$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/PickUp$1.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/PickUp$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/PickUp$2.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/PickUp$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/PickUp$3.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/PickUp.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/PickUp.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Reception$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Reception$1.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Reception$10.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Reception$10.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Reception$11.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Reception$11.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Reception$12.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Reception$12.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Reception$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Reception$2.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Reception$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Reception$3.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Reception$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Reception$4.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Reception$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Reception$5.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Reception$6.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Reception$6.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Reception$7.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Reception$7.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Reception$8.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Reception$8.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Reception$9.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Reception$9.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Reception.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Reception.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Room$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Room$1.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Room$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Room$2.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Room$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Room$3.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/Room.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/Room.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/SearchRoom$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/SearchRoom$1.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/SearchRoom$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/SearchRoom$2.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/SearchRoom$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/SearchRoom$3.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/SearchRoom.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/SearchRoom.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/UpdateCheck$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/UpdateCheck$1.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/UpdateCheck$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/UpdateCheck$2.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/UpdateCheck$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/UpdateCheck$3.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/UpdateCheck$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/UpdateCheck$4.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/UpdateCheck.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/UpdateCheck.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/UpdateRoom$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/UpdateRoom$1.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/UpdateRoom$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/UpdateRoom$2.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/UpdateRoom$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/UpdateRoom$3.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/UpdateRoom$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/UpdateRoom$4.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/UpdateRoom.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/UpdateRoom.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/conn.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/conn.class
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/icons/eight.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/icons/eight.jpg
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/icons/eleven.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/icons/eleven.jpg
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/icons/fifith.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/icons/fifith.jpg
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/icons/fifth.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/icons/fifth.jpg
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/icons/fifth.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/icons/fifth.png
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/icons/first.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/icons/first.jpg
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/icons/fourth.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/icons/fourth.jpg
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/icons/nine.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/icons/nine.jpg
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/icons/second.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/icons/second.jpg
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/icons/seventh.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/icons/seventh.jpg
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/icons/sixth.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/icons/sixth.jpg
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/icons/tenth.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/icons/tenth.jpg
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/icons/third.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/icons/third.jpg
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/icons/tick.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/icons/tick.png
--------------------------------------------------------------------------------
/build/classes/hotel/management/system/icons/twelve.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/hotel/management/system/icons/twelve.jpg
--------------------------------------------------------------------------------
/build/classes/newpackage/rs2xml.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/build/classes/newpackage/rs2xml.jar
--------------------------------------------------------------------------------
/database commands.txt:
--------------------------------------------------------------------------------
1 | create table login(username varchar(40), password varchar(40));
2 |
3 |
4 | insert into login values('admin','12345');
5 |
6 | create table room(room_number varchar(20) NOT NULL, availability varchar(20) NOT NULL, clean_status varchar(20) NOT NULL, price varchar(20) NOT NULL, bed_type varchar(30) NOT NULL, primary KEY (`room_number`));
7 |
8 |
9 | create table customer(id varchar(30) NOT NULL, number varchar(30) NOT NULL, name varchar(30) NOT NULL, gender varchar(30) NOT NULL, country varchar(30) NOT NULL, room_number varchar(30) NOT NULL, status varchar(30) NOT NULL, deposit varchar(30) NOT NULL, PRIMARY KEY (`id`), FOREIGN KEY(`room_number`) REFERENCES room(`room_number`));
10 |
11 |
12 | create table employee(name varchar(30) NOT NULL, age varchar(10) NOT NULL, gender varchar(30) NOT NULL, job varchar(30) NOT NULL, salary varchar(30) NOT NULL, phone varchar(30) NOT NULL, aadhar varchar(30) NOT NULL, email varchar(40) NOT NULL);
13 |
14 |
15 | create table driver(name varchar(30) NOT NULL, age varchar(10) NOT NULL, gender varchar(20) NOT NULL, company varchar(30) NOT NULL, brand varchar(30) NOT NULL, available varchar(10) NOT NULL, location varchar(50) NOT NULL);
16 |
17 |
18 | create table department(department varchar(30) NOT NULL, budget varchar(30) NOT NULL);
--------------------------------------------------------------------------------
/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=15279d8e
2 | build.xml.script.CRC32=4c7c7629
3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=15279d8e
7 | nbproject/build-impl.xml.script.CRC32=e64da18b
8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
9 |
--------------------------------------------------------------------------------
/nbproject/private/config.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/nbproject/private/config.properties
--------------------------------------------------------------------------------
/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | compile.on.save=true
2 | do.depend=false
3 | do.jar=true
4 | javac.debug=true
5 | javadoc.preview=true
6 | user.properties.file=C:\\Users\\viraj\\AppData\\Roaming\\NetBeans\\8.2\\build.properties
7 |
--------------------------------------------------------------------------------
/nbproject/private/private.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | file:/C:/Users/viraj/OneDrive/Desktop/Hotel%20Management%20System/JavaApplication4/src/JavaApplication5/src/hotel/management/system/Room.java
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/nbproject/project.properties:
--------------------------------------------------------------------------------
1 | annotation.processing.enabled=true
2 | annotation.processing.enabled.in.editor=false
3 | annotation.processing.processors.list=
4 | annotation.processing.run.all.processors=true
5 | annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
6 | application.title=JavaApplication5
7 | application.vendor=viraj
8 | build.classes.dir=${build.dir}/classes
9 | build.classes.excludes=**/*.java,**/*.form
10 | # This directory is removed when the project is cleaned:
11 | build.dir=build
12 | build.generated.dir=${build.dir}/generated
13 | build.generated.sources.dir=${build.dir}/generated-sources
14 | # Only compile against the classpath explicitly listed here:
15 | build.sysclasspath=ignore
16 | build.test.classes.dir=${build.dir}/test/classes
17 | build.test.results.dir=${build.dir}/test/results
18 | # Uncomment to specify the preferred debugger connection transport:
19 | #debug.transport=dt_socket
20 | debug.classpath=\
21 | ${run.classpath}
22 | debug.test.classpath=\
23 | ${run.test.classpath}
24 | # Files in build.classes.dir which should be excluded from distribution jar
25 | dist.archive.excludes=
26 | # This directory is removed when the project is cleaned:
27 | dist.dir=dist
28 | dist.jar=${dist.dir}/JavaApplication5.jar
29 | dist.javadoc.dir=${dist.dir}/javadoc
30 | endorsed.classpath=
31 | excludes=
32 | file.reference.rs2xml.jar=src/newpackage/rs2xml.jar
33 | includes=**
34 | jar.compress=false
35 | javac.classpath=\
36 | ${libs.MySQLDriver.classpath}:\
37 | ${file.reference.rs2xml.jar}
38 | # Space-separated list of extra javac options
39 | javac.compilerargs=
40 | javac.deprecation=false
41 | javac.external.vm=true
42 | javac.processorpath=\
43 | ${javac.classpath}
44 | javac.source=1.8
45 | javac.target=1.8
46 | javac.test.classpath=\
47 | ${javac.classpath}:\
48 | ${build.classes.dir}
49 | javac.test.processorpath=\
50 | ${javac.test.classpath}
51 | javadoc.additionalparam=
52 | javadoc.author=false
53 | javadoc.encoding=${source.encoding}
54 | javadoc.noindex=false
55 | javadoc.nonavbar=false
56 | javadoc.notree=false
57 | javadoc.private=false
58 | javadoc.splitindex=true
59 | javadoc.use=true
60 | javadoc.version=false
61 | javadoc.windowtitle=
62 | main.class=hotel.management.system.Login
63 | manifest.file=manifest.mf
64 | meta.inf.dir=${src.dir}/META-INF
65 | mkdist.disabled=false
66 | platform.active=default_platform
67 | run.classpath=\
68 | ${javac.classpath}:\
69 | ${build.classes.dir}
70 | # Space-separated list of JVM arguments used when running the project.
71 | # You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
72 | # To set system properties for unit tests define test-sys-prop.name=value:
73 | run.jvmargs=
74 | run.test.classpath=\
75 | ${javac.test.classpath}:\
76 | ${build.test.classes.dir}
77 | source.encoding=UTF-8
78 | src.dir=src
79 | test.src.dir=test
80 |
--------------------------------------------------------------------------------
/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | JavaApplication5
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/hotel/management/system/AddDrivers.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package hotel.management.system;
7 |
8 |
9 | import java.awt.*;
10 | import javax.swing.*;
11 | import javax.swing.border.*;
12 | import java.awt.event.*;
13 | import java.sql.*;
14 | import java.util.*;
15 |
16 | public class AddDrivers extends JFrame implements ActionListener{
17 |
18 | private JPanel contentPane;
19 | private JTextField t1,t2,t3,t4, t5;
20 | private JComboBox comboBox, comboBox_1;
21 | JButton b1,b2;
22 | Choice c1;
23 |
24 | public static void main(String[] args) {
25 | new AddDrivers().setVisible(true);
26 | }
27 |
28 |
29 | public AddDrivers() {
30 | setBounds(450, 200, 1000, 500);
31 | contentPane = new JPanel();
32 | setContentPane(contentPane);
33 | contentPane.setLayout(null);
34 |
35 | ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("hotel/management/system/icons/eleven.jpg"));
36 | Image i3 = i1.getImage().getScaledInstance(500, 300,Image.SCALE_DEFAULT);
37 | ImageIcon i2 = new ImageIcon(i3);
38 | JLabel l15 = new JLabel(i2);
39 | l15.setBounds(400,30,500,370);
40 | add(l15);
41 |
42 | JLabel l10 = new JLabel("Add Drivers");
43 | l10.setFont(new Font("Tahoma", Font.BOLD, 18));
44 | l10.setBounds(194, 10, 120, 22);
45 | contentPane.add(l10);
46 |
47 |
48 |
49 | JLabel l1 = new JLabel("Name");
50 | l1.setForeground(new Color(25, 25, 112));
51 | l1.setFont(new Font("Tahoma", Font.BOLD, 14));
52 | l1.setBounds(64, 70, 102, 22);
53 | contentPane.add(l1);
54 |
55 |
56 | t1 = new JTextField();
57 | t1.setBounds(174, 70, 156, 20);
58 | contentPane.add(t1);
59 |
60 |
61 | JLabel l2 = new JLabel("Age");
62 | l2.setForeground(new Color(25, 25, 112));
63 | l2.setFont(new Font("Tahoma", Font.BOLD, 14));
64 | l2.setBounds(64, 110, 102, 22);
65 | contentPane.add(l2);
66 |
67 | t2 = new JTextField();
68 | t2.setBounds(174, 110, 156, 20);
69 | contentPane.add(t2);
70 |
71 |
72 | JLabel l3 = new JLabel("Gender");
73 | l3.setForeground(new Color(25, 25, 112));
74 | l3.setFont(new Font("Tahoma", Font.BOLD, 14));
75 | l3.setBounds(64, 150, 102, 22);
76 | contentPane.add(l3);
77 |
78 | comboBox = new JComboBox(new String[] { "Male", "Female" });
79 | comboBox.setBounds(176, 150, 154, 20);
80 | contentPane.add(comboBox);
81 |
82 | JLabel l4 = new JLabel("Car Company");
83 | l4.setForeground(new Color(25, 25, 112));
84 | l4.setFont(new Font("Tahoma", Font.BOLD, 14));
85 | l4.setBounds(64, 190, 102, 22);
86 | contentPane.add(l4);
87 |
88 | t3 = new JTextField();
89 | t3.setBounds(174, 190, 156, 20);
90 | contentPane.add(t3);
91 |
92 | JLabel l5 = new JLabel("Car Brand");
93 | l5.setForeground(new Color(25, 25, 112));
94 | l5.setFont(new Font("Tahoma", Font.BOLD, 14));
95 | l5.setBounds(64, 230, 102, 22);
96 | contentPane.add(l5);
97 |
98 |
99 | t4 = new JTextField();
100 | t4.setBounds(174, 230, 156, 20);
101 | contentPane.add(t4);
102 |
103 |
104 | JLabel l6 = new JLabel("Available");
105 | l6.setForeground(new Color(25, 25, 112));
106 | l6.setFont(new Font("Tahoma", Font.BOLD, 14));
107 | l6.setBounds(64, 270, 102, 22);
108 | contentPane.add(l6);
109 |
110 |
111 | comboBox_1 = new JComboBox(new String[] { "Yes", "No" });
112 | comboBox_1.setBounds(176, 270, 154, 20);
113 | contentPane.add(comboBox_1);
114 |
115 |
116 | JLabel l7 = new JLabel("Location");
117 | l7.setForeground(new Color(25, 25, 112));
118 | l7.setFont(new Font("Tahoma", Font.BOLD, 14));
119 | l7.setBounds(64, 310, 102, 22);
120 | contentPane.add(l7);
121 |
122 |
123 | t5 = new JTextField();
124 | t5.setBounds(174, 310, 156, 20);
125 | contentPane.add(t5);
126 |
127 |
128 |
129 | b1 = new JButton("Add");
130 | b1.addActionListener(this);
131 | b1.setBounds(64, 380, 111, 33);
132 | b1.setBackground(Color.BLACK);
133 | b1.setForeground(Color.WHITE);
134 | contentPane.add(b1);
135 |
136 | b2 = new JButton("Back");
137 | b2.addActionListener(this);
138 | b2.setBounds(198, 380, 111, 33);
139 | b2.setBackground(Color.BLACK);
140 | b2.setForeground(Color.WHITE);
141 | contentPane.add(b2);
142 |
143 |
144 | contentPane.setBackground(Color.WHITE);
145 |
146 | }
147 |
148 | public void actionPerformed(ActionEvent ae){
149 | try{
150 |
151 | if(ae.getSource() == b1){
152 | try{
153 | conn c = new conn();
154 | String name = t1.getText();
155 | String age = t2.getText();
156 | String gender = (String)comboBox.getSelectedItem();
157 | String company = t3.getText();
158 | String brand = t4.getText();
159 | String available = (String)comboBox_1.getSelectedItem();
160 | String location = t5.getText();
161 | String str = "INSERT INTO driver values( '"+name+"', '"+age+"', '"+gender+"','"+company+"', '"+brand+"', '"+available+"','"+location+"')";
162 |
163 |
164 | c.s.executeUpdate(str);
165 | JOptionPane.showMessageDialog(null, "Driver Successfully Added");
166 | this.setVisible(false);
167 |
168 | }catch(Exception ee){
169 | System.out.println(ee);
170 | }
171 | }
172 | else if(ae.getSource() == b2){
173 | this.setVisible(false);
174 | }
175 | }catch(Exception eee){
176 |
177 | }
178 | }
179 | }
180 |
--------------------------------------------------------------------------------
/src/hotel/management/system/AddEmployee.java:
--------------------------------------------------------------------------------
1 | package hotel.management.system;
2 |
3 |
4 | import java.awt.EventQueue;
5 |
6 |
7 | import java.awt.*;
8 | import java.awt.event.*;
9 | import java.sql.*;
10 | import javax.swing.*;
11 |
12 | public class AddEmployee extends JFrame{ //Third Frame
13 |
14 |
15 | JTextField textField,textField_1,textField_2,textField_3,textField_4,textField_5,textField_6;
16 | JComboBox c1;
17 |
18 | public AddEmployee(){
19 | getContentPane().setForeground(Color.BLUE);
20 | getContentPane().setBackground(Color.WHITE);
21 | setTitle("ADD EMPLOYEE DETAILS");
22 |
23 | setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
24 | setSize(778,486);
25 | getContentPane().setLayout(null);
26 |
27 | JLabel Passportno = new JLabel("NAME");
28 | Passportno.setFont(new Font("Tahoma", Font.PLAIN, 17));
29 | Passportno.setBounds(60, 30, 150, 27);
30 | add(Passportno);
31 |
32 | textField = new JTextField();
33 | textField.setBounds(200, 30, 150, 27);
34 | add(textField);
35 |
36 | JButton Next = new JButton("SAVE");
37 | Next.setBounds(200, 420, 150, 30);
38 | Next.setBackground(Color.BLACK);
39 | Next.setForeground(Color.WHITE);
40 | add(Next);
41 |
42 | JLabel Pnrno = new JLabel("AGE");
43 | Pnrno.setFont(new Font("Tahoma", Font.PLAIN, 17));
44 | Pnrno.setBounds(60, 80, 150, 27);
45 | add(Pnrno);
46 |
47 | textField_1 = new JTextField();
48 | textField_1.setBounds(200, 80, 150, 27);
49 | add(textField_1);
50 |
51 | JLabel Gender = new JLabel("GENDER");
52 | Gender.setFont(new Font("Tahoma", Font.PLAIN, 17));
53 | Gender.setBounds(60, 120, 150, 27);
54 | add(Gender);
55 |
56 | JRadioButton NewRadioButton = new JRadioButton("MALE");
57 | NewRadioButton.setBackground(Color.WHITE);
58 | NewRadioButton.setBounds(200, 120, 70, 27);
59 | add(NewRadioButton);
60 |
61 | JRadioButton Female = new JRadioButton("FEMALE");
62 | Female.setBackground(Color.WHITE);
63 | Female.setBounds(280, 120, 70, 27);
64 | add(Female);
65 |
66 |
67 | JLabel Address = new JLabel("JOB");
68 | Address.setFont(new Font("Tahoma", Font.PLAIN, 17));
69 | Address.setBounds(60, 170, 150, 27);
70 | add(Address);
71 |
72 | String course[] = {"Front Desk Clerks","Porters","Housekeeping","Kitchen Staff","Room Service","Waiter/Waitress","Manager","Accountant","Chef"};
73 | c1 = new JComboBox(course);
74 | c1.setBackground(Color.WHITE);
75 | c1.setBounds(200,170,150,30);
76 | add(c1);
77 |
78 | JLabel Nationality = new JLabel("SALARY");
79 | Nationality.setFont(new Font("Tahoma", Font.PLAIN, 17));
80 | Nationality.setBounds(60, 220, 150, 27);
81 | add(Nationality);
82 |
83 | textField_3 = new JTextField();
84 | textField_3.setBounds(200, 220, 150, 27);
85 | add(textField_3);
86 |
87 | JLabel Name = new JLabel("PHONE");
88 | Name.setFont(new Font("Tahoma", Font.PLAIN, 17));
89 | Name.setBounds(60, 270, 150, 27);
90 | add(Name);
91 |
92 | textField_4 = new JTextField();
93 | textField_4.setBounds(200, 270, 150, 27);
94 | add(textField_4);
95 |
96 | JLabel Phno = new JLabel("AADHAR");
97 | Phno.setFont(new Font("Tahoma", Font.PLAIN, 17));
98 | Phno.setBounds(60, 320, 150, 27);
99 | add(Phno);
100 |
101 | textField_5 = new JTextField();
102 | textField_5.setBounds(200, 320, 150, 27);
103 | add(textField_5);
104 |
105 |
106 | JLabel email = new JLabel("EMAIL");
107 | email.setFont(new Font("Tahoma", Font.PLAIN, 17));
108 | email.setBounds(60, 370, 150, 27);
109 | add(email);
110 |
111 | textField_6 = new JTextField();
112 | textField_6.setBounds(200, 370, 150, 27);
113 | add(textField_6);
114 |
115 | setVisible(true);
116 |
117 | JLabel AddPassengers = new JLabel("ADD EMPLOYEE DETAILS");
118 | AddPassengers.setForeground(Color.BLUE);
119 | AddPassengers.setFont(new Font("Tahoma", Font.PLAIN, 31));
120 | AddPassengers.setBounds(450, 24, 442, 35);
121 | add(AddPassengers);
122 |
123 |
124 | ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("hotel/management/system/icons/tenth.jpg"));
125 | Image i3 = i1.getImage().getScaledInstance(500, 500,Image.SCALE_DEFAULT);
126 | ImageIcon i2 = new ImageIcon(i3);
127 | JLabel image = new JLabel(i2);
128 | image.setBounds(410,80,480,410);
129 | add(image);
130 |
131 |
132 | Next.addActionListener(new ActionListener(){
133 | public void actionPerformed(ActionEvent ae){
134 | String name = textField.getText();
135 | String age = textField_1.getText();
136 | String salary = textField_3.getText();
137 | String phone = textField_4.getText();
138 | String aadhar = textField_5.getText();
139 | String email = textField_6.getText();
140 |
141 | String gender = null;
142 |
143 | if(NewRadioButton.isSelected()){
144 | gender = "male";
145 |
146 | }else if(Female.isSelected()){
147 | gender = "female";
148 | }
149 |
150 |
151 | String s6 = (String)c1.getSelectedItem();
152 |
153 | try {
154 | conn c = new conn();
155 | String str = "INSERT INTO employee values( '"+name+"', '"+age+"', '"+gender+"','"+s6+"', '"+salary+"', '"+phone+"','"+aadhar+"', '"+email+"')";
156 |
157 | c.s.executeUpdate(str);
158 | JOptionPane.showMessageDialog(null,"Employee Added");
159 | setVisible(false);
160 |
161 | } catch (Exception e) {
162 | e.printStackTrace();
163 | }
164 | }
165 | });
166 |
167 | setSize(900,600);
168 | setVisible(true);
169 | setLocation(530,200);
170 |
171 | }
172 |
173 | public static void main(String[] args){
174 | new AddEmployee();
175 | }
176 | }
--------------------------------------------------------------------------------
/src/hotel/management/system/AddRoom.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package hotel.management.system;
7 |
8 |
9 | import java.awt.*;
10 | import javax.swing.*;
11 | import javax.swing.border.*;
12 | import java.awt.event.*;
13 | import java.sql.*;
14 | import java.util.*;
15 |
16 | public class AddRoom extends JFrame implements ActionListener{
17 |
18 | private JPanel contentPane;
19 | private JTextField t1,t2,t3,t4;
20 | private JComboBox comboBox, comboBox_1, comboBox_2, comboBox_3;
21 | JButton b1,b2;
22 | Choice c1;
23 |
24 | public static void main(String[] args) {
25 | new AddRoom().setVisible(true);
26 | }
27 |
28 |
29 | public AddRoom() {
30 | setBounds(450, 200, 1000, 450);
31 | contentPane = new JPanel();
32 | setContentPane(contentPane);
33 | contentPane.setLayout(null);
34 |
35 | ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("hotel/management/system/icons/twelve.jpg"));
36 | Image i3 = i1.getImage().getScaledInstance(500, 300,Image.SCALE_DEFAULT);
37 | ImageIcon i2 = new ImageIcon(i3);
38 | JLabel l15 = new JLabel(i2);
39 | l15.setBounds(400,30,500,370);
40 | add(l15);
41 |
42 | JLabel l10 = new JLabel("Add Rooms");
43 | l10.setFont(new Font("Tahoma", Font.BOLD, 18));
44 | l10.setBounds(194, 10, 120, 22);
45 | contentPane.add(l10);
46 |
47 |
48 |
49 | JLabel l1 = new JLabel("Room Number");
50 | l1.setForeground(new Color(25, 25, 112));
51 | l1.setFont(new Font("Tahoma", Font.BOLD, 14));
52 | l1.setBounds(64, 70, 102, 22);
53 | contentPane.add(l1);
54 |
55 |
56 | t4 = new JTextField();
57 | t4.setBounds(174, 70, 156, 20);
58 | contentPane.add(t4);
59 |
60 |
61 | JLabel l2 = new JLabel("Availability");
62 | l2.setForeground(new Color(25, 25, 112));
63 | l2.setFont(new Font("Tahoma", Font.BOLD, 14));
64 | l2.setBounds(64, 110, 102, 22);
65 | contentPane.add(l2);
66 |
67 | comboBox = new JComboBox(new String[] { "Available", "Occupied" });
68 | comboBox.setBounds(176, 110, 154, 20);
69 | contentPane.add(comboBox);
70 |
71 |
72 | JLabel l3 = new JLabel("Cleaning Status");
73 | l3.setForeground(new Color(25, 25, 112));
74 | l3.setFont(new Font("Tahoma", Font.BOLD, 14));
75 | l3.setBounds(64, 150, 102, 22);
76 | contentPane.add(l3);
77 |
78 | comboBox_2 = new JComboBox(new String[] { "Cleaned", "Dirty" });
79 | comboBox_2.setBounds(176, 150, 154, 20);
80 | contentPane.add(comboBox_2);
81 |
82 | JLabel l4 = new JLabel("Price");
83 | l4.setForeground(new Color(25, 25, 112));
84 | l4.setFont(new Font("Tahoma", Font.BOLD, 14));
85 | l4.setBounds(64, 190, 102, 22);
86 | contentPane.add(l4);
87 |
88 | t2 = new JTextField();
89 | t2.setBounds(174, 190, 156, 20);
90 | contentPane.add(t2);
91 |
92 | JLabel l5 = new JLabel("Bed Type");
93 | l5.setForeground(new Color(25, 25, 112));
94 | l5.setFont(new Font("Tahoma", Font.BOLD, 14));
95 | l5.setBounds(64, 230, 102, 22);
96 | contentPane.add(l5);
97 |
98 |
99 | comboBox_3 = new JComboBox(new String[] { "Single Bed", "Double Bed"});
100 | comboBox_3.setBounds(176, 230, 154, 20);
101 | contentPane.add(comboBox_3);
102 |
103 |
104 |
105 |
106 |
107 | b1 = new JButton("Add");
108 | b1.addActionListener(this);
109 | b1.setBounds(64, 321, 111, 33);
110 | b1.setBackground(Color.BLACK);
111 | b1.setForeground(Color.WHITE);
112 | contentPane.add(b1);
113 |
114 | b2 = new JButton("Back");
115 | b2.addActionListener(this);
116 | b2.setBounds(198, 321, 111, 33);
117 | b2.setBackground(Color.BLACK);
118 | b2.setForeground(Color.WHITE);
119 | contentPane.add(b2);
120 |
121 |
122 | contentPane.setBackground(Color.WHITE);
123 |
124 | }
125 |
126 | public void actionPerformed(ActionEvent ae){
127 | try{
128 |
129 | if(ae.getSource() == b1){
130 | try{
131 | conn c = new conn();
132 | String room = t4.getText();
133 | String available = (String)comboBox.getSelectedItem();
134 | String status = (String)comboBox_2.getSelectedItem();
135 | String price = t2.getText();
136 | String type = (String)comboBox_3.getSelectedItem();
137 | String str = "INSERT INTO room values( '"+room+"', '"+available+"', '"+status+"','"+price+"', '"+type+"')";
138 |
139 |
140 | c.s.executeUpdate(str);
141 | JOptionPane.showMessageDialog(null, "Room Successfully Added");
142 | this.setVisible(false);
143 |
144 | }catch(Exception ee){
145 | System.out.println(ee);
146 | }
147 | }
148 | else if(ae.getSource() == b2){
149 | this.setVisible(false);
150 | }
151 | }catch(Exception eee){
152 |
153 | }
154 | }
155 | }
156 |
--------------------------------------------------------------------------------
/src/hotel/management/system/CheckOut.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package hotel.management.system;
7 |
8 | import java.awt.BorderLayout;
9 | import java.awt.*;
10 | import java.awt.EventQueue;
11 |
12 |
13 | import java.sql.*;
14 | import javax.swing.*;
15 | import javax.swing.border.EmptyBorder;
16 |
17 | import java.awt.Font;
18 | import java.awt.event.*;
19 | import java.awt.event.ActionEvent;
20 |
21 | public class CheckOut extends JFrame{
22 | Connection conn = null;
23 | PreparedStatement pst = null;
24 | private JPanel contentPane;
25 | private JTextField t1;
26 | Choice c1;
27 |
28 | /**
29 | * Launch the application.
30 | */
31 | public static void main(String[] args) {
32 | EventQueue.invokeLater(new Runnable() {
33 | public void run() {
34 | try {
35 | CheckOut frame = new CheckOut();
36 | frame.setVisible(true);
37 | } catch (Exception e) {
38 | e.printStackTrace();
39 | }
40 | }
41 | });
42 | }
43 | public void close(){
44 | this.dispose();
45 | }
46 |
47 | /**
48 | * Create the frame.
49 | * @throws SQLException
50 | */
51 | public CheckOut() throws SQLException {
52 | //conn = Javaconnect.getDBConnection();
53 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
54 | setBounds(530, 200, 800, 294);
55 | contentPane = new JPanel();
56 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
57 | setContentPane(contentPane);
58 | contentPane.setLayout(null);
59 |
60 | ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("hotel/management/system/icons/sixth.jpg"));
61 | Image i3 = i1.getImage().getScaledInstance(400, 225,Image.SCALE_DEFAULT);
62 | ImageIcon i2 = new ImageIcon(i3);
63 | JLabel l1 = new JLabel(i2);
64 | l1.setBounds(300,0,500,225);
65 | add(l1);
66 |
67 | JLabel lblCheckOut = new JLabel("Check Out ");
68 | lblCheckOut.setFont(new Font("Tahoma", Font.PLAIN, 20));
69 | lblCheckOut.setBounds(70, 11, 140, 35);
70 | contentPane.add(lblCheckOut);
71 |
72 | JLabel lblName = new JLabel("Number :");
73 | lblName.setBounds(20, 85, 80, 14);
74 | contentPane.add(lblName);
75 |
76 | c1 = new Choice();
77 | try{
78 | conn c = new conn();
79 | ResultSet rs = c.s.executeQuery("select * from customer");
80 | while(rs.next()){
81 | c1.add(rs.getString("number"));
82 | }
83 | }catch(Exception e){ }
84 | c1.setBounds(130, 82, 150, 20);
85 | contentPane.add(c1);
86 |
87 | ImageIcon i4 = new ImageIcon(ClassLoader.getSystemResource("hotel/management/system/icons/tick.png"));
88 | Image i5 = i4.getImage().getScaledInstance(20, 20,Image.SCALE_DEFAULT);
89 | ImageIcon i6 = new ImageIcon(i5);
90 | JButton l2 = new JButton(i6);
91 | l2.setBounds(290,82,20,20);
92 | add(l2);
93 |
94 | l2.addActionListener(new ActionListener(){
95 |
96 | public void actionPerformed(ActionEvent ae){
97 | System.out.println("Hi");
98 | try{
99 |
100 | conn c = new conn();
101 | String number = c1.getSelectedItem();
102 | ResultSet rs = c.s.executeQuery("select * from customer where number = "+number);
103 |
104 | if(rs.next()){
105 | System.out.println("clicked");
106 | t1.setText(rs.getString("room_number"));
107 | }
108 | }catch(Exception e){ }
109 | }
110 | });
111 |
112 |
113 | JLabel lblRoomNumber = new JLabel("Room Number:");
114 | lblRoomNumber.setBounds(20, 132, 86, 20);
115 | contentPane.add(lblRoomNumber);
116 |
117 | t1 = new JTextField();
118 | t1.setBounds(130, 132, 150, 20);
119 | contentPane.add(t1);
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 | JButton btnCheckOut = new JButton("Check Out");
128 | btnCheckOut.addActionListener(new ActionListener() {
129 | public void actionPerformed(ActionEvent e) {
130 | String id = c1.getSelectedItem();
131 | String s1 = t1.getText();
132 | String deleteSQL = "Delete from customer where number = "+id;
133 | String q2 = "update room set availability = 'Available' where room_number = "+s1;
134 |
135 |
136 | conn c = new conn();
137 |
138 | try{
139 |
140 |
141 | c.s.executeUpdate(deleteSQL);
142 | c.s.executeUpdate(q2);
143 | JOptionPane.showMessageDialog(null, "Check Out Successful");
144 | new Reception().setVisible(true);
145 | setVisible(false);
146 | }catch(SQLException e1){
147 | System.out.println(e1.getMessage());
148 | }
149 | }
150 | });
151 | btnCheckOut.setBounds(50, 200, 100, 25);
152 | btnCheckOut.setBackground(Color.BLACK);
153 | btnCheckOut.setForeground(Color.WHITE);
154 | contentPane.add(btnCheckOut);
155 |
156 | JButton btnExit = new JButton("Back");
157 | btnExit.addActionListener(new ActionListener() {
158 | public void actionPerformed(ActionEvent e) {
159 | new Reception().setVisible(true);
160 | setVisible(false);
161 | }
162 | });
163 | btnExit.setBounds(160, 200, 100, 25);
164 | btnExit.setBackground(Color.BLACK);
165 | btnExit.setForeground(Color.WHITE);
166 | contentPane.add(btnExit);
167 |
168 |
169 | getContentPane().setBackground(Color.WHITE);
170 | }
171 |
172 | }
--------------------------------------------------------------------------------
/src/hotel/management/system/CustomerInfo.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package hotel.management.system;
7 |
8 | import java.awt.BorderLayout;
9 | import java.awt.*;
10 |
11 | import javax.swing.JFrame;
12 | import javax.swing.JPanel;
13 | import javax.swing.border.EmptyBorder;
14 |
15 | import net.proteanit.sql.DbUtils;
16 | import java.sql.*;
17 | import javax.swing.*;
18 | import javax.swing.JTable;
19 | import javax.swing.JButton;
20 | import java.awt.event.ActionListener;
21 | import java.awt.event.ActionEvent;
22 |
23 | public class CustomerInfo extends JFrame {
24 | Connection conn = null;
25 | private JPanel contentPane;
26 | private JLabel lblId;
27 | private JLabel lblNewLabel;
28 | private JLabel lblGender;
29 | private JTable table;
30 | private JLabel lblCountry;
31 | private JLabel lblRoom;
32 | private JLabel lblStatus;
33 | private JLabel lblNewLabel_1;
34 |
35 | /**
36 | * Launch the application.
37 | */
38 | public static void main(String[] args) {
39 | EventQueue.invokeLater(new Runnable() {
40 | public void run() {
41 | try {
42 | CustomerInfo frame = new CustomerInfo();
43 | frame.setVisible(true);
44 | } catch (Exception e) {
45 | e.printStackTrace();
46 | }
47 | }
48 | });
49 | }
50 | public void close()
51 | {
52 | this.dispose();
53 | }
54 | /**
55 | * Create the frame.
56 | * @throws SQLException
57 | */
58 | public CustomerInfo() throws SQLException {
59 | //conn = Javaconnect.getDBConnection();
60 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
61 | setBounds(530, 200, 900, 600);
62 | contentPane = new JPanel();
63 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
64 | setContentPane(contentPane);
65 | contentPane.setLayout(null);
66 |
67 |
68 | JButton btnExit = new JButton("Back");
69 | btnExit.addActionListener(new ActionListener() {
70 | public void actionPerformed(ActionEvent e) {
71 | new Reception().setVisible(true);
72 | setVisible(false);
73 | }
74 | });
75 | btnExit.setBounds(450, 510, 120, 30);
76 | btnExit.setBackground(Color.BLACK);
77 | btnExit.setForeground(Color.WHITE);
78 | contentPane.add(btnExit);
79 |
80 | JButton btnLoadData = new JButton("Load Data");
81 | btnLoadData.addActionListener(new ActionListener() {
82 | public void actionPerformed(ActionEvent arg0) {
83 | try{
84 | conn c = new conn();
85 |
86 | String displayCustomersql = "select * from Customer";
87 | ResultSet rs = c.s.executeQuery(displayCustomersql);
88 | table.setModel(DbUtils.resultSetToTableModel(rs));
89 | }
90 | catch(Exception e)
91 | {
92 | e.printStackTrace();
93 | }
94 | }
95 |
96 |
97 | });
98 | btnLoadData.setBounds(300, 510, 120, 30);
99 | btnLoadData.setBackground(Color.BLACK);
100 | btnLoadData.setForeground(Color.WHITE);
101 | contentPane.add(btnLoadData);
102 |
103 | lblId = new JLabel("ID");
104 | lblId.setBounds(31, 11, 46, 14);
105 | contentPane.add(lblId);
106 |
107 | JLabel l1 = new JLabel("Number");
108 | l1.setBounds(150, 11, 46, 14);
109 | contentPane.add(l1);
110 |
111 | lblNewLabel = new JLabel("Name");
112 | lblNewLabel.setBounds(270, 11, 65, 14);
113 | contentPane.add(lblNewLabel);
114 |
115 | lblGender = new JLabel("Gender");
116 | lblGender.setBounds(360, 11, 46, 14);
117 | contentPane.add(lblGender);
118 |
119 | table = new JTable();
120 | table.setBounds(0, 40, 900, 450);
121 | contentPane.add(table);
122 |
123 | lblCountry = new JLabel("Country");
124 | lblCountry.setBounds(480, 11, 46, 14);
125 | contentPane.add(lblCountry);
126 |
127 | lblRoom = new JLabel("Room");
128 | lblRoom.setBounds(600, 11, 46, 14);
129 | contentPane.add(lblRoom);
130 |
131 | lblStatus = new JLabel("Check-in Status");
132 | lblStatus.setBounds(680, 11, 100, 14);
133 | contentPane.add(lblStatus);
134 |
135 | lblNewLabel_1 = new JLabel("Deposit");
136 | lblNewLabel_1.setBounds(800, 11, 100, 14);
137 | contentPane.add(lblNewLabel_1);
138 |
139 | getContentPane().setBackground(Color.WHITE);
140 | }
141 | }
--------------------------------------------------------------------------------
/src/hotel/management/system/Dashboard.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package hotel.management.system;
7 |
8 |
9 | import java.awt.*;
10 | import javax.swing.*;
11 | import java.awt.event.*;
12 |
13 |
14 | public class Dashboard extends JFrame{
15 |
16 | public static void main(String[] args) {
17 | new Dashboard().setVisible(true);
18 | }
19 |
20 | public Dashboard() {
21 | super("HOTEL MANAGEMENT SYSTEM");
22 |
23 | setForeground(Color.CYAN);
24 | setLayout(null);
25 |
26 |
27 | ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("hotel/management/system/icons/third.jpg"));
28 | Image i2 = i1.getImage().getScaledInstance(1950, 1000,Image.SCALE_DEFAULT);
29 | ImageIcon i3 = new ImageIcon(i2);
30 | JLabel NewLabel = new JLabel(i3);
31 | NewLabel.setBounds(0, 0, 1950, 1000);
32 | add(NewLabel);
33 |
34 | JLabel AirlineManagementSystem = new JLabel("THE TAJ GROUP WELCOMES YOU");
35 | AirlineManagementSystem.setForeground(Color.WHITE);
36 | AirlineManagementSystem.setFont(new Font("Tahoma", Font.PLAIN, 46));
37 | AirlineManagementSystem.setBounds(600, 60, 1000, 85);
38 | NewLabel.add(AirlineManagementSystem);
39 |
40 |
41 | JMenuBar menuBar = new JMenuBar();
42 | setJMenuBar(menuBar);
43 |
44 | JMenu AirlineSystem = new JMenu("HOTEL MANAGEMENT");
45 | AirlineSystem.setForeground(Color.BLUE);
46 | menuBar.add(AirlineSystem);
47 |
48 | JMenuItem FlightDetails = new JMenuItem("RECEPTION");
49 | AirlineSystem.add(FlightDetails);
50 |
51 | JMenu AirlineSystemHello = new JMenu("ADMIN");
52 | AirlineSystemHello.setForeground(Color.RED);
53 | menuBar.add(AirlineSystemHello);
54 |
55 | JMenuItem FlightDetailshello1 = new JMenuItem("ADD EMPLOYEE");
56 | AirlineSystemHello.add(FlightDetailshello1);
57 |
58 | FlightDetailshello1.addActionListener(new ActionListener(){
59 | public void actionPerformed(ActionEvent ae){
60 | try{
61 | new AddEmployee().setVisible(true);
62 | }catch(Exception e ){}
63 | }
64 | });
65 |
66 |
67 | JMenuItem FlightDetailshello2 = new JMenuItem("ADD ROOMS");
68 | AirlineSystemHello.add(FlightDetailshello2);
69 |
70 | FlightDetailshello2.addActionListener(new ActionListener(){
71 | public void actionPerformed(ActionEvent ae){
72 | try{
73 | new AddRoom().setVisible(true);
74 | }catch(Exception e ){}
75 | }
76 | });
77 |
78 |
79 | FlightDetails.addActionListener(new ActionListener(){
80 | public void actionPerformed(ActionEvent ae){
81 | new Reception();
82 | }
83 | });
84 |
85 |
86 | JMenuItem FlightDetailshello3 = new JMenuItem("ADD DRIVERS");
87 | AirlineSystemHello.add(FlightDetailshello3);
88 |
89 | FlightDetailshello3.addActionListener(new ActionListener(){
90 | public void actionPerformed(ActionEvent ae){
91 | try{
92 | new AddDrivers().setVisible(true);
93 | }catch(Exception e ){}
94 | }
95 | });
96 |
97 |
98 | setSize(1950,1090);
99 | setVisible(true);
100 | getContentPane().setBackground(Color.WHITE);
101 | }
102 | }
103 |
--------------------------------------------------------------------------------
/src/hotel/management/system/Department.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package hotel.management.system;
7 |
8 | import java.awt.BorderLayout;
9 | import java.awt.*;
10 |
11 | import javax.swing.JFrame;
12 | import javax.swing.JPanel;
13 | import javax.swing.border.EmptyBorder;
14 |
15 | import net.proteanit.sql.DbUtils;
16 |
17 | import javax.swing.JTable;
18 | import java.sql.*;
19 | import javax.swing.*;
20 | import java.awt.event.ActionListener;
21 | import java.awt.event.ActionEvent;
22 | public class Department extends JFrame {
23 | Connection conn = null;
24 | private JPanel contentPane;
25 | private JTable table;
26 | private JLabel lblNewLabel;
27 | private JLabel lblNewLabel_1;
28 |
29 | /**
30 | * Launch the application.
31 | */
32 | public static void main(String[] args) {
33 | EventQueue.invokeLater(new Runnable() {
34 | public void run() {
35 | try {
36 | Department frame = new Department();
37 | frame.setVisible(true);
38 | } catch (Exception e) {
39 | e.printStackTrace();
40 | }
41 | }
42 | });
43 | }
44 | public void close()
45 | {
46 | this.dispose();
47 | }
48 |
49 | /**
50 | * Create the frame.
51 | * @throws SQLException
52 | */
53 | public Department() throws SQLException {
54 | //conn = Javaconnect.getDBConnection();
55 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
56 | setBounds(600, 200, 700, 500);
57 | contentPane = new JPanel();
58 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
59 | setContentPane(contentPane);
60 | contentPane.setLayout(null);
61 |
62 | table = new JTable();
63 | table.setBounds(0, 40, 700, 350);
64 | contentPane.add(table);
65 |
66 | JButton btnNewButton = new JButton("Load Data");
67 | btnNewButton.addActionListener(new ActionListener() {
68 | public void actionPerformed(ActionEvent e) {
69 | try{
70 | conn c = new conn();
71 |
72 | String displayCustomersql = "select * from Department";
73 | ResultSet rs = c.s.executeQuery(displayCustomersql);
74 | table.setModel(DbUtils.resultSetToTableModel(rs));
75 |
76 |
77 | }
78 | catch (Exception e1){
79 | e1.printStackTrace();
80 | }
81 |
82 | }
83 | });
84 | btnNewButton.setBounds(170, 410, 120, 30);
85 | btnNewButton.setBackground(Color.BLACK);
86 | btnNewButton.setForeground(Color.WHITE);
87 | contentPane.add(btnNewButton);
88 |
89 | JButton btnNewButton_1 = new JButton("Back");
90 | btnNewButton_1.addActionListener(new ActionListener() {
91 | public void actionPerformed(ActionEvent e) {
92 | new Reception().setVisible(true);
93 | setVisible(false);
94 | }
95 | });
96 | btnNewButton_1.setBounds(400, 410, 120, 30);
97 | btnNewButton_1.setBackground(Color.BLACK);
98 | btnNewButton_1.setForeground(Color.WHITE);
99 | contentPane.add(btnNewButton_1);
100 |
101 | lblNewLabel = new JLabel("Department");
102 | lblNewLabel.setBounds(145, 11, 105, 14);
103 | contentPane.add(lblNewLabel);
104 |
105 | lblNewLabel_1 = new JLabel("Budget");
106 | lblNewLabel_1.setBounds(431, 11, 75, 14);
107 | contentPane.add(lblNewLabel_1);
108 |
109 | getContentPane().setBackground(Color.WHITE);
110 | }
111 |
112 | }
--------------------------------------------------------------------------------
/src/hotel/management/system/Employee.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package hotel.management.system;
7 |
8 | import java.awt.BorderLayout;
9 | import java.awt.*;
10 |
11 | import javax.swing.JFrame;
12 | import javax.swing.JPanel;
13 | import javax.swing.border.EmptyBorder;
14 |
15 | import net.proteanit.sql.DbUtils;
16 |
17 | import javax.swing.JTable;
18 | import java.sql.*;
19 | import javax.swing.*;
20 | import java.awt.event.ActionListener;
21 | import java.awt.event.ActionEvent;
22 | public class Employee extends JFrame {
23 | Connection conn = null;
24 | private JPanel contentPane;
25 | private JTable table;
26 | private JLabel lblNewLabel;
27 | private JLabel lblJob;
28 | private JLabel lblName;
29 | private JLabel lblDepartment;
30 |
31 | /**
32 | * Launch the application.
33 | */
34 | public static void main(String[] args) {
35 | EventQueue.invokeLater(new Runnable() {
36 | public void run() {
37 | try {
38 | Employee frame = new Employee();
39 | frame.setVisible(true);
40 | } catch (Exception e) {
41 | e.printStackTrace();
42 | }
43 | }
44 | });
45 | }
46 | public void close()
47 | {
48 | this.dispose();
49 | }
50 | /**
51 | * Create the frame.
52 | * @throws SQLException
53 | */
54 | public Employee() throws SQLException {
55 | //conn = Javaconnect.getDBConnection();
56 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
57 | setBounds(430, 200, 1000, 600);
58 | contentPane = new JPanel();
59 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
60 | setContentPane(contentPane);
61 | contentPane.setLayout(null);
62 |
63 | table = new JTable();
64 | table.setBounds(0, 34, 1000, 450);
65 | contentPane.add(table);
66 |
67 | JButton btnLoadData = new JButton("Load Data");
68 | btnLoadData.addActionListener(new ActionListener() {
69 | public void actionPerformed(ActionEvent e) {
70 | try{
71 | conn c = new conn();
72 | String displayCustomersql = "select * from Employee";
73 | ResultSet rs = c.s.executeQuery(displayCustomersql);
74 | table.setModel(DbUtils.resultSetToTableModel(rs));
75 | }
76 | catch(Exception e1){
77 | e1.printStackTrace();
78 | }
79 | }
80 |
81 | });
82 | btnLoadData.setBounds(350, 500, 120, 30);
83 | btnLoadData.setBackground(Color.BLACK);
84 | btnLoadData.setForeground(Color.WHITE);
85 | contentPane.add(btnLoadData);
86 |
87 | JButton btnExit = new JButton("Back");
88 | btnExit.addActionListener(new ActionListener() {
89 | public void actionPerformed(ActionEvent e) {
90 | new Reception().setVisible(true);
91 | setVisible(false);
92 | }
93 | });
94 | btnExit.setBounds(510, 500, 120, 30);
95 | btnExit.setBackground(Color.BLACK);
96 | btnExit.setForeground(Color.WHITE);
97 | contentPane.add(btnExit);
98 |
99 | lblNewLabel = new JLabel("Name");
100 | lblNewLabel.setBounds(41, 11, 46, 14);
101 | contentPane.add(lblNewLabel);
102 |
103 | lblJob = new JLabel("Age");
104 | lblJob.setBounds(159, 11, 46, 14);
105 | contentPane.add(lblJob);
106 |
107 | lblName = new JLabel("Gender");
108 | lblName.setBounds(273, 11, 46, 14);
109 | contentPane.add(lblName);
110 |
111 | lblDepartment = new JLabel("Job");
112 | lblDepartment.setBounds(416, 11, 86, 14);
113 | contentPane.add(lblDepartment);
114 |
115 | JLabel l1 = new JLabel("Salary");
116 | l1.setBounds(536, 11, 86, 14);
117 | contentPane.add(l1);
118 |
119 | JLabel l2 = new JLabel("Phone");
120 | l2.setBounds(656, 11, 86, 14);
121 | contentPane.add(l2);
122 |
123 | JLabel l3 = new JLabel("Aadhar");
124 | l3.setBounds(786, 11, 86, 14);
125 | contentPane.add(l3);
126 |
127 | JLabel l4 = new JLabel("Gmail");
128 | l4.setBounds(896, 11, 86, 14);
129 | contentPane.add(l4);
130 |
131 | getContentPane().setBackground(Color.WHITE);
132 | }
133 | }
--------------------------------------------------------------------------------
/src/hotel/management/system/HotelManagementSystem.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package hotel.management.system;
7 |
8 | import java.awt.*;
9 | import javax.swing.*;
10 | import java.awt.event.*;
11 |
12 | public class HotelManagementSystem extends JFrame implements ActionListener{
13 |
14 | JLabel l1;
15 | JButton b1;
16 |
17 | public HotelManagementSystem() {
18 |
19 | setSize(1366,430); // setContentPane(300,300,1366,390); frame size
20 | setLayout(null);
21 | setLocation(300,300);
22 |
23 | l1 = new JLabel("");
24 | b1 = new JButton("Next");
25 |
26 | b1.setBackground(Color.WHITE);
27 | b1.setForeground(Color.BLACK);
28 |
29 |
30 |
31 | ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("hotel/management/system/icons/first.jpg"));
32 | Image i3 = i1.getImage().getScaledInstance(1366, 390,Image.SCALE_DEFAULT);
33 | ImageIcon i2 = new ImageIcon(i3);
34 | l1 = new JLabel(i2);
35 |
36 | JLabel lid=new JLabel("HOTEL MANAGEMENT SYSTEM");
37 | lid.setBounds(30,300,1500,100);
38 | lid.setFont(new Font("serif",Font.PLAIN,70));
39 | lid.setForeground(Color.red);
40 | l1.add(lid);
41 |
42 | b1.setBounds(1170,325,150,50);
43 | l1.setBounds(0, 0, 1366, 390);
44 |
45 | l1.add(b1);
46 | add(l1);
47 |
48 | b1.addActionListener(this);
49 | setVisible(true);
50 |
51 | while(true){
52 | lid.setVisible(false); // lid = j label
53 | try{
54 | Thread.sleep(500); //1000 = 1 second
55 | }catch(Exception e){}
56 | lid.setVisible(true);
57 | try{
58 | Thread.sleep(500);
59 | }catch(Exception e){}
60 | }
61 | }
62 |
63 | public void actionPerformed(ActionEvent ae){
64 | new Login().setVisible(true);
65 | this.setVisible(false);
66 |
67 | }
68 |
69 | public static void main(String[] args) {
70 | HotelManagementSystem window = new HotelManagementSystem();
71 | window.setVisible(true);
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/src/hotel/management/system/Login.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package hotel.management.system;
7 |
8 | import java.awt.*;
9 | import javax.swing.*;
10 | import java.awt.event.*;
11 | import java.sql.*;
12 |
13 | public class Login extends JFrame implements ActionListener{
14 |
15 | JLabel l1,l2;
16 | JTextField t1;
17 | JPasswordField t2;
18 | JButton b1,b2;
19 |
20 | Login(){
21 |
22 | super("Login");
23 |
24 | setLayout(null);
25 |
26 | l1 = new JLabel("Username");
27 | l1.setBounds(40,20,100,30);
28 | add(l1);
29 |
30 | l2 = new JLabel("Password");
31 | l2.setBounds(40,70,100,30);
32 | add(l2);
33 |
34 | t1=new JTextField();
35 | t1.setBounds(150,20,150,30);
36 | add(t1);
37 |
38 | t2=new JPasswordField();
39 | t2.setBounds(150,70,150,30);
40 | add(t2);
41 |
42 | ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("hotel/management/system/icons/second.jpg"));
43 | Image i2 = i1.getImage().getScaledInstance(200,200,Image.SCALE_DEFAULT);
44 | ImageIcon i3 = new ImageIcon(i2);
45 | JLabel l3 = new JLabel(i3);
46 | l3.setBounds(350,10,150,150);
47 | add(l3);
48 |
49 |
50 | b1 = new JButton("Login");
51 | b1.setBounds(40,140,120,30);
52 | b1.setFont(new Font("serif",Font.BOLD,15));
53 | b1.addActionListener(this);
54 | b1.setBackground(Color.BLACK);
55 | b1.setForeground(Color.WHITE);
56 | add(b1);
57 |
58 | b2=new JButton("Cancel");
59 | b2.setBounds(180,140,120,30);
60 | b2.setFont(new Font("serif",Font.BOLD,15));
61 | b2.setBackground(Color.BLACK);
62 | b2.setForeground(Color.WHITE);
63 | add(b2);
64 |
65 | b2.addActionListener(this);
66 |
67 |
68 | getContentPane().setBackground(Color.WHITE);
69 |
70 | setVisible(true);
71 | setSize(600,300);
72 | setLocation(600,350);
73 |
74 | }
75 |
76 | public void actionPerformed(ActionEvent ae){
77 | if(ae.getSource()==b1){
78 | try{
79 | conn c1 = new conn();
80 | String u = t1.getText();
81 | String v = t2.getText();
82 |
83 | String q = "select * from login where username='"+u+"' and password='"+v+"'";
84 |
85 | ResultSet rs = c1.s.executeQuery(q);
86 | if(rs.next()){
87 | new Dashboard().setVisible(true);
88 | setVisible(false);
89 | }else{
90 | JOptionPane.showMessageDialog(null, "Invalid login");
91 | setVisible(false);
92 | }
93 | }catch(Exception e){
94 | e.printStackTrace();
95 | }
96 | }else if(ae.getSource()==b2){
97 | System.exit(0);
98 | }
99 | }
100 | public static void main(String[] arg){
101 | new Login();
102 | }
103 | }
104 | //
105 | //import java.awt.EventQueue;
106 | //import java.sql.*;
107 | //import javax.swing.*;
108 | //import java.awt.event.ActionListener;
109 | //import java.awt.event.ActionEvent;
110 | //import java.awt.Image;
111 | //
112 | //public class Login {
113 | //Connection conn = null;
114 | //ResultSet rs = null;
115 | //PreparedStatement pst = null;
116 | //
117 | // private JFrame frame;
118 | // private JTextField txt_username;
119 | // private JPasswordField txt_password;
120 | //
121 | // /**
122 | // * Launch the application.
123 | // */
124 | // public static void main(String[] args) {
125 | // EventQueue.invokeLater(new Runnable() {
126 | // public void run() {
127 | // try {
128 | // Login window = new Login();
129 | // window.frame.setVisible(true);
130 | // } catch (Exception e) {
131 | // e.printStackTrace();
132 | // }
133 | // }
134 | // });
135 | // }
136 | //
137 | // /**
138 | // * Create the application.
139 | // * @throws SQLException
140 | // */
141 | // public Login() throws SQLException {
142 | // initialize();
143 | // //conn = Javaconnect.getDBConnection();
144 | // }
145 | // public void close(){
146 | // this.frame.dispose();
147 | // }
148 | //
149 | // /**
150 | // * Initialize the contents of the frame.
151 | // */
152 | // private void initialize() {
153 | // frame = new JFrame();
154 | // frame.setBounds(100, 100, 683, 445);
155 | // frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
156 | // frame.getContentPane().setLayout(null);
157 | //
158 | // JLabel lblUsername = new JLabel("Username:");
159 | // lblUsername.setBounds(357, 114, 67, 27);
160 | // frame.getContentPane().add(lblUsername);
161 | //
162 | // JLabel lblPassword = new JLabel("Password:");
163 | // lblPassword.setBounds(357, 187, 67, 27);
164 | // frame.getContentPane().add(lblPassword);
165 | //
166 | // txt_username = new JTextField();
167 | // txt_username.setBounds(419, 117, 86, 20);
168 | // frame.getContentPane().add(txt_username);
169 | // txt_username.setColumns(10);
170 | //
171 | // JButton btnLogin = new JButton("Login");
172 | // btnLogin.addActionListener(new ActionListener() {
173 | // public void actionPerformed(ActionEvent arg0) {
174 | // String loginsql = "select * from Manager where m_name=? and password=?";
175 | //// try{
176 | //// pst = conn.prepareStatement(loginsql);
177 | //// pst.setString(1, txt_username.getText());
178 | //// pst.setString(2, txt_password.getText());
179 | ////
180 | //// rs = pst.executeQuery();
181 | //// if(rs.next()){
182 | //// JOptionPane.showMessageDialog(null, "Login Successful");
183 | //// Manager manager = new Manager();
184 | //// manager.setVisible(true);
185 | //// close();
186 | //// }
187 | //// else
188 | //// {
189 | //// JOptionPane.showMessageDialog(null, "Username and Password is incorrect");
190 | //// }
191 | //// }
192 | //// catch(Exception e){
193 | //// JOptionPane.showMessageDialog(null, "Username and Password is incorrect");
194 | //// }
195 | // }
196 | // });
197 | // btnLogin.setBounds(400, 275, 89, 23);
198 | // frame.getContentPane().add(btnLogin);
199 | //
200 | // txt_password = new JPasswordField();
201 | // txt_password.setBounds(418, 190, 87, 20);
202 | // frame.getContentPane().add(txt_password);
203 | // }
204 | //}
--------------------------------------------------------------------------------
/src/hotel/management/system/ManagerInfo.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package hotel.management.system;
7 |
8 | import java.awt.BorderLayout;
9 | import java.awt.*;
10 |
11 | import javax.swing.JFrame;
12 | import javax.swing.JPanel;
13 | import javax.swing.border.EmptyBorder;
14 |
15 | import net.proteanit.sql.DbUtils;
16 |
17 | import javax.swing.JTable;
18 | import java.sql.*;
19 | import javax.swing.*;
20 | import java.awt.event.ActionListener;
21 | import java.awt.event.ActionEvent;
22 | public class ManagerInfo extends JFrame {
23 | Connection conn = null;
24 | private JPanel contentPane;
25 | private JTable table;
26 | private JLabel lblNewLabel;
27 | private JLabel lblJob;
28 | private JLabel lblName;
29 | private JLabel lblDepartment;
30 |
31 | /**
32 | * Launch the application.
33 | */
34 | public static void main(String[] args) {
35 | EventQueue.invokeLater(new Runnable() {
36 | public void run() {
37 | try {
38 | ManagerInfo frame = new ManagerInfo();
39 | frame.setVisible(true);
40 | } catch (Exception e) {
41 | e.printStackTrace();
42 | }
43 | }
44 | });
45 | }
46 | public void close()
47 | {
48 | this.dispose();
49 | }
50 | /**
51 | * Create the frame.
52 | * @throws SQLException
53 | */
54 | public ManagerInfo() throws SQLException {
55 | //conn = Javaconnect.getDBConnection();
56 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
57 | setBounds(430, 200, 1000, 600);
58 | contentPane = new JPanel();
59 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
60 | setContentPane(contentPane);
61 | contentPane.setLayout(null);
62 |
63 | table = new JTable();
64 | table.setBounds(0, 34, 1000, 450);
65 | contentPane.add(table);
66 |
67 | JButton btnLoadData = new JButton("Load Data");
68 | btnLoadData.addActionListener(new ActionListener() {
69 | public void actionPerformed(ActionEvent e) {
70 | try{
71 | conn c = new conn();
72 | String displayCustomersql = "select * from Employee where job = 'Manager'";
73 | ResultSet rs = c.s.executeQuery(displayCustomersql);
74 | table.setModel(DbUtils.resultSetToTableModel(rs));
75 | }
76 | catch(Exception e1){
77 | e1.printStackTrace();
78 | }
79 | }
80 |
81 | });
82 | btnLoadData.setBounds(350, 500, 120, 30);
83 | btnLoadData.setBackground(Color.BLACK);
84 | btnLoadData.setForeground(Color.WHITE);
85 | contentPane.add(btnLoadData);
86 |
87 | JButton btnExit = new JButton("Back");
88 | btnExit.addActionListener(new ActionListener() {
89 | public void actionPerformed(ActionEvent e) {
90 | new Reception().setVisible(true);
91 | setVisible(false);
92 | }
93 | });
94 | btnExit.setBounds(510, 500, 120, 30);
95 | btnExit.setBackground(Color.BLACK);
96 | btnExit.setForeground(Color.WHITE);
97 | contentPane.add(btnExit);
98 |
99 | lblNewLabel = new JLabel("Name");
100 | lblNewLabel.setBounds(41, 11, 46, 14);
101 | contentPane.add(lblNewLabel);
102 |
103 | lblJob = new JLabel("Age");
104 | lblJob.setBounds(159, 11, 46, 14);
105 | contentPane.add(lblJob);
106 |
107 | lblName = new JLabel("Gender");
108 | lblName.setBounds(273, 11, 46, 14);
109 | contentPane.add(lblName);
110 |
111 | lblDepartment = new JLabel("Job");
112 | lblDepartment.setBounds(416, 11, 86, 14);
113 | contentPane.add(lblDepartment);
114 |
115 | JLabel l1 = new JLabel("Salary");
116 | l1.setBounds(536, 11, 86, 14);
117 | contentPane.add(l1);
118 |
119 | JLabel l2 = new JLabel("Phone");
120 | l2.setBounds(656, 11, 86, 14);
121 | contentPane.add(l2);
122 |
123 | JLabel l3 = new JLabel("Aadhar");
124 | l3.setBounds(786, 11, 86, 14);
125 | contentPane.add(l3);
126 |
127 | JLabel l4 = new JLabel("Gmail");
128 | l4.setBounds(896, 11, 86, 14);
129 | contentPane.add(l4);
130 |
131 | getContentPane().setBackground(Color.WHITE);
132 | }
133 | }
--------------------------------------------------------------------------------
/src/hotel/management/system/NewCustomer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package hotel.management.system;
7 |
8 | import java.awt.BorderLayout;
9 | import java.awt.*;
10 | import java.awt.EventQueue;
11 |
12 | import javax.swing.border.EmptyBorder;
13 |
14 | import java.awt.Font;
15 | import java.awt.Image;
16 | import java.sql.*;
17 | import javax.swing.*;
18 | import java.awt.event.ActionListener;
19 | import java.awt.event.ActionEvent;
20 | public class NewCustomer extends JFrame {
21 | Connection conn = null;
22 | PreparedStatement pst = null;
23 | private JPanel contentPane;
24 | private JTextField t1,t2,t3,t4,t5,t6;
25 | JComboBox comboBox;
26 | JRadioButton r1,r2;
27 | Choice c1;
28 | /**
29 | * Launch the application.
30 | */
31 | public static void main(String[] args) {
32 | EventQueue.invokeLater(new Runnable() {
33 | public void run() {
34 | try {
35 | NewCustomer frame = new NewCustomer();
36 | frame.setVisible(true);
37 | } catch (Exception e) {
38 | e.printStackTrace();
39 | }
40 | }
41 | });
42 | }
43 |
44 | public NewCustomer() throws SQLException {
45 |
46 | setBounds(530, 200, 850, 550);
47 | contentPane = new JPanel();
48 | setContentPane(contentPane);
49 | contentPane.setLayout(null);
50 |
51 | ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("hotel/management/system/icons/fifth.png"));
52 | Image i3 = i1.getImage().getScaledInstance(300, 400,Image.SCALE_DEFAULT);
53 | ImageIcon i2 = new ImageIcon(i3);
54 | JLabel l1 = new JLabel(i2);
55 | l1.setBounds(480,10,300,500);
56 | add(l1);
57 |
58 | JLabel lblName = new JLabel("NEW CUSTOMER FORM");
59 | lblName.setFont(new Font("Yu Mincho", Font.PLAIN, 20));
60 | lblName.setBounds(118, 11, 260, 53);
61 | contentPane.add(lblName);
62 |
63 | JLabel lblId = new JLabel("ID :");
64 | lblId.setBounds(35, 76, 200, 14);
65 | contentPane.add(lblId);
66 |
67 | comboBox = new JComboBox(new String[] {"Passport", "Aadhar Card", "Voter Id", "Driving license"});
68 | comboBox.setBounds(271, 73, 150, 20);
69 | contentPane.add(comboBox);
70 |
71 | JLabel l2 = new JLabel("Number :");
72 | l2.setBounds(35, 111, 200, 14);
73 | contentPane.add(l2);
74 |
75 | t1 = new JTextField();
76 | t1.setBounds(271, 111, 150, 20);
77 | contentPane.add(t1);
78 | t1.setColumns(10);
79 |
80 | JLabel lblName_1 = new JLabel("Name :");
81 | lblName_1.setBounds(35, 151, 200, 14);
82 | contentPane.add(lblName_1);
83 |
84 | t2 = new JTextField();
85 | t2.setBounds(271, 151, 150, 20);
86 | contentPane.add(t2);
87 | t2.setColumns(10);
88 |
89 |
90 | JLabel lblGender = new JLabel("Gender :");
91 | lblGender.setBounds(35, 191, 200, 14);
92 | contentPane.add(lblGender);
93 |
94 | r1 = new JRadioButton("Male");
95 | r1.setFont(new Font("Raleway", Font.BOLD, 14));
96 | r1.setBackground(Color.WHITE);
97 | r1.setBounds(271, 191, 80, 12);
98 | add(r1);
99 |
100 | r2 = new JRadioButton("Female");
101 | r2.setFont(new Font("Raleway", Font.BOLD, 14));
102 | r2.setBackground(Color.WHITE);
103 | r2.setBounds(350, 191, 100, 12);
104 | add(r2);
105 |
106 | JLabel lblCountry = new JLabel("Country :");
107 | lblCountry.setBounds(35, 231, 200, 14);
108 | contentPane.add(lblCountry);
109 |
110 | JLabel lblReserveRoomNumber = new JLabel("Allocated Room Number :");
111 | lblReserveRoomNumber.setBounds(35, 274, 200, 14);
112 | contentPane.add(lblReserveRoomNumber);
113 |
114 | c1 = new Choice();
115 | try{
116 | conn c = new conn();
117 | ResultSet rs = c.s.executeQuery("select * from room");
118 | while(rs.next()){
119 | c1.add(rs.getString("room_number"));
120 | }
121 | }catch(Exception e){ }
122 | c1.setBounds(271, 274, 150, 20);
123 | contentPane.add(c1);
124 |
125 | JLabel lblCheckInStatus = new JLabel("Checked-In :");
126 | lblCheckInStatus.setBounds(35, 316, 200, 14);
127 | contentPane.add(lblCheckInStatus);
128 |
129 | JLabel lblDeposite = new JLabel("Deposit :");
130 | lblDeposite.setBounds(35, 359, 200, 14);
131 | contentPane.add(lblDeposite);
132 |
133 |
134 |
135 |
136 |
137 | t3 = new JTextField();
138 | t3.setBounds(271, 231, 150, 20);
139 | contentPane.add(t3);
140 | t3.setColumns(10);
141 |
142 |
143 | t5 = new JTextField();
144 | t5.setBounds(271, 316, 150, 20);
145 | contentPane.add(t5);
146 | t5.setColumns(10);
147 |
148 | t6 = new JTextField();
149 | t6.setBounds(271, 359, 150, 20);
150 | contentPane.add(t6);
151 | t6.setColumns(10);
152 |
153 | JButton btnNewButton = new JButton("Add");
154 | btnNewButton.addActionListener(new ActionListener() {
155 | public void actionPerformed(ActionEvent e) {
156 | conn c = new conn();
157 | String radio = null;
158 |
159 | if(r1.isSelected()){
160 | radio = "Male";
161 | }
162 | else if(r2.isSelected()){
163 | radio = "Female";
164 | }
165 |
166 | String s6 = c1.getSelectedItem();
167 |
168 | try{
169 |
170 | String s1 = (String)comboBox.getSelectedItem();
171 | String s2 = t1.getText();
172 | String s3 = t2.getText();
173 | String s4 = radio;
174 | String s5 = t3.getText();
175 | String s7 = t5.getText();
176 | String s8 = t6.getText();
177 |
178 | String q1 = "insert into customer values('"+s1+"','"+s2+"','"+s3+"','"+s4+"','"+s5+"','"+s6+"','"+s7+"','"+s8+"')";
179 | String q2 = "update room set availability = 'Occupied' where room_number = "+s6;
180 | c.s.executeUpdate(q1);
181 | c.s.executeUpdate(q2);
182 |
183 |
184 | JOptionPane.showMessageDialog(null, "Data Inserted Successfully");
185 | new Reception().setVisible(true);
186 | setVisible(false);
187 | }catch(SQLException e1){
188 | System.out.println(e1.getMessage());
189 | }
190 | catch(NumberFormatException s){
191 | JOptionPane.showMessageDialog(null, "Please enter a valid Number");
192 | }
193 | }
194 | });
195 | btnNewButton.setBounds(100, 430, 120, 30);
196 | btnNewButton.setBackground(Color.BLACK);
197 | btnNewButton.setForeground(Color.WHITE);
198 | contentPane.add(btnNewButton);
199 |
200 | JButton btnExit = new JButton("Back");
201 | btnExit.addActionListener(new ActionListener() {
202 | public void actionPerformed(ActionEvent e) {
203 | new Reception().setVisible(true);
204 | setVisible(false);
205 | }
206 | });
207 | btnExit.setBounds(260, 430, 120, 30);
208 | btnExit.setBackground(Color.BLACK);
209 | btnExit.setForeground(Color.WHITE);
210 | contentPane.add(btnExit);
211 |
212 | getContentPane().setBackground(Color.WHITE);
213 | }
214 | }
--------------------------------------------------------------------------------
/src/hotel/management/system/PickUp.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package hotel.management.system;
7 |
8 |
9 |
10 | import java.awt.BorderLayout;
11 | import java.awt.*;
12 |
13 | import java.sql.*;
14 | import javax.swing.*;
15 | import javax.swing.border.EmptyBorder;
16 |
17 | import net.proteanit.sql.DbUtils;
18 |
19 | import java.awt.Font;
20 | import java.awt.event.ActionListener;
21 | import java.awt.event.ActionEvent;
22 |
23 | public class PickUp extends JFrame {
24 | Connection conn = null;
25 | PreparedStatement pst = null;
26 | ResultSet rs = null;
27 | private JPanel contentPane;
28 | private JTable table;
29 | Choice c1;
30 |
31 | /**
32 | * Launch the application.
33 | */
34 | public static void main(String[] args) {
35 | EventQueue.invokeLater(new Runnable() {
36 | public void run() {
37 | try {
38 | PickUp frame = new PickUp();
39 | frame.setVisible(true);
40 | } catch (Exception e) {
41 | e.printStackTrace();
42 | }
43 | }
44 | });
45 | }
46 | public void close()
47 | {
48 | this.dispose();
49 | }
50 |
51 | /**
52 | * Create the frame.
53 | * @throws SQLException
54 | */
55 | public PickUp() throws SQLException {
56 | //conn = Javaconnect.getDBConnection();
57 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
58 | setBounds(530, 200, 800, 600);
59 | contentPane = new JPanel();
60 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
61 | setContentPane(contentPane);
62 | contentPane.setLayout(null);
63 |
64 | JLabel lblPickUpService = new JLabel("Pick Up Service");
65 | lblPickUpService.setFont(new Font("Tahoma", Font.PLAIN, 20));
66 | lblPickUpService.setBounds(90, 11, 158, 25);
67 | contentPane.add(lblPickUpService);
68 |
69 | JLabel lblTypeOfCar = new JLabel("Type of Car");
70 | lblTypeOfCar.setBounds(32, 97, 89, 14);
71 | contentPane.add(lblTypeOfCar);
72 |
73 |
74 | c1 = new Choice();
75 | try{
76 | conn c = new conn();
77 | ResultSet rs = c.s.executeQuery("select * from driver");
78 | while(rs.next()){
79 | c1.add(rs.getString("brand"));
80 | }
81 | }catch(Exception e){ }
82 | c1.setBounds(123, 94, 150, 25);
83 | contentPane.add(c1);
84 |
85 |
86 |
87 | JLabel lblInfo = new JLabel("Name");
88 | lblInfo.setBounds(24, 208, 46, 14);
89 | contentPane.add(lblInfo);
90 |
91 | JButton btnRegister = new JButton("Display");
92 | btnRegister.addActionListener(new ActionListener() {
93 | public void actionPerformed(ActionEvent arg0) {
94 | String SQL = "select * from driver where brand = '"+c1.getSelectedItem()+"'";
95 | try{
96 |
97 | conn c = new conn();
98 | rs = c.s.executeQuery(SQL);
99 | table.setModel(DbUtils.resultSetToTableModel(rs));
100 |
101 |
102 |
103 | }catch (SQLException ss)
104 | {
105 | ss.printStackTrace();
106 | }
107 |
108 |
109 | }
110 | });
111 | btnRegister.setBounds(200, 500, 120, 30);
112 | btnRegister.setBackground(Color.BLACK);
113 | btnRegister.setForeground(Color.WHITE);
114 | contentPane.add(btnRegister);
115 |
116 | JButton btnExit = new JButton("Back");
117 | btnExit.addActionListener(new ActionListener() {
118 | public void actionPerformed(ActionEvent arg0) {
119 | new Reception().setVisible(true);
120 | setVisible(false);
121 | }
122 | });
123 | btnExit.setBounds(420, 500, 120, 30);
124 | btnExit.setBackground(Color.BLACK);
125 | btnExit.setForeground(Color.WHITE);
126 | contentPane.add(btnExit);
127 |
128 | table = new JTable();
129 | table.setBounds(0, 233, 800, 250);
130 | contentPane.add(table);
131 |
132 | JLabel lblNewLabel = new JLabel("Age");
133 | lblNewLabel.setBounds(165, 208, 46, 14);
134 | contentPane.add(lblNewLabel);
135 |
136 | JLabel lblGender = new JLabel("Gender");
137 | lblGender.setBounds(264, 208, 46, 14);
138 | contentPane.add(lblGender);
139 |
140 | JLabel lblTypeOfDriver = new JLabel("Company");
141 | lblTypeOfDriver.setBounds(366, 208, 80, 14);
142 | contentPane.add(lblTypeOfDriver);
143 |
144 | JLabel lblDateOfThe = new JLabel("Brand");
145 | lblDateOfThe.setBounds(486, 208, 105, 14);
146 | contentPane.add(lblDateOfThe);
147 |
148 | JLabel lblAirport = new JLabel("Available");
149 | lblAirport.setBounds(600, 208, 86, 14);
150 | contentPane.add(lblAirport);
151 |
152 | JLabel lblAvailable = new JLabel("Location");
153 | lblAvailable.setBounds(700, 208, 73, 14);
154 | contentPane.add(lblAvailable);
155 |
156 |
157 |
158 | getContentPane().setBackground(Color.WHITE);
159 | }
160 | }
--------------------------------------------------------------------------------
/src/hotel/management/system/Reception.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package hotel.management.system;
7 |
8 | import javax.swing.*;
9 |
10 | import java.sql.*;
11 | import java.awt.event.*;
12 | import java.awt.*;
13 |
14 | public class Reception extends JFrame {
15 |
16 | private JPanel contentPane;
17 |
18 | public static void main(String[] args) {
19 | new Reception();
20 | }
21 |
22 | public Reception(){
23 |
24 | setBounds(530, 200, 850, 570);
25 | contentPane = new JPanel();
26 | setContentPane(contentPane);
27 | contentPane.setLayout(null);
28 |
29 | ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("hotel/management/system/icons/fourth.jpg"));
30 | Image i3 = i1.getImage().getScaledInstance(500, 500,Image.SCALE_DEFAULT);
31 | ImageIcon i2 = new ImageIcon(i3);
32 | JLabel l1 = new JLabel(i2);
33 | l1.setBounds(250,30,500,470);
34 | add(l1);
35 |
36 | JButton btnNewCustomerForm = new JButton("New Customer Form");
37 | btnNewCustomerForm.addActionListener(new ActionListener() {
38 | public void actionPerformed(ActionEvent e) {
39 | try{
40 | NewCustomer custom = new NewCustomer();
41 | custom.setVisible(true);
42 | setVisible(false);
43 | }catch(Exception e1){
44 | e1.printStackTrace();
45 | }
46 | }
47 | });
48 | btnNewCustomerForm.setBounds(10, 30, 200, 30);
49 | btnNewCustomerForm.setBackground(Color.BLACK);
50 | btnNewCustomerForm.setForeground(Color.WHITE);
51 | contentPane.add(btnNewCustomerForm);
52 |
53 | JButton btnNewButton = new JButton("Room");
54 | btnNewButton.addActionListener(new ActionListener() {
55 | public void actionPerformed(ActionEvent arg0) {
56 | try{
57 | Room room = new Room();
58 | room.setVisible(true);
59 | setVisible(false);
60 | }
61 | catch(Exception e){
62 | e.printStackTrace();
63 | }
64 |
65 | }
66 | });
67 | btnNewButton.setBounds(10, 70, 200, 30);
68 | btnNewButton.setBackground(Color.BLACK);
69 | btnNewButton.setForeground(Color.WHITE);
70 |
71 | contentPane.add(btnNewButton);
72 |
73 | JButton btnNewButton_1 = new JButton("Department");
74 | btnNewButton_1.addActionListener(new ActionListener() {
75 | public void actionPerformed(ActionEvent e) {
76 | try{
77 | Department dept = new Department();
78 | dept.setVisible(true);
79 | setVisible(false);
80 |
81 | }
82 | catch (Exception e1){
83 | e1.printStackTrace();
84 | }
85 |
86 | }
87 | });
88 | btnNewButton_1.setBounds(10, 110, 200, 30);
89 | btnNewButton_1.setBackground(Color.BLACK);
90 | btnNewButton_1.setForeground(Color.WHITE);
91 |
92 | contentPane.add(btnNewButton_1);
93 |
94 | JButton btnNewButton_2 = new JButton("All Employee Info");
95 | btnNewButton_2.addActionListener(new ActionListener() {
96 | public void actionPerformed(ActionEvent e) {
97 | try{
98 |
99 | Employee em = new Employee();
100 | em.setVisible(true);
101 | setVisible(false);
102 |
103 | }
104 | catch (Exception e1){
105 | e1.printStackTrace();
106 | }
107 |
108 | }
109 | });
110 | btnNewButton_2.setBounds(10, 150, 200, 30);
111 | btnNewButton_2.setBackground(Color.BLACK);
112 | btnNewButton_2.setForeground(Color.WHITE);
113 |
114 | contentPane.add(btnNewButton_2);
115 |
116 | JButton btnNewButton_3 = new JButton("Customer Info");
117 | btnNewButton_3.addActionListener(new ActionListener() {
118 | public void actionPerformed(ActionEvent e) {
119 | try{
120 | //error ---------------------
121 | CustomerInfo customer = new CustomerInfo();
122 | customer.setVisible(true);
123 | setVisible(false);
124 | }
125 | catch (Exception e1){
126 | e1.printStackTrace();
127 | }
128 | }
129 | });
130 | btnNewButton_3.setBounds(10, 190, 200, 30);
131 | btnNewButton_3.setBackground(Color.BLACK);
132 | btnNewButton_3.setForeground(Color.WHITE);
133 |
134 | contentPane.add(btnNewButton_3);
135 |
136 | JButton btnManagerInfo = new JButton("Manager Info");
137 | btnManagerInfo.addActionListener(new ActionListener() {
138 | public void actionPerformed(ActionEvent e) {
139 | try{
140 | ManagerInfo mana = new ManagerInfo();
141 | mana.setVisible(true);
142 | setVisible(false);
143 | }
144 | catch (Exception e1){
145 | e1.printStackTrace();
146 | }
147 | }
148 | });
149 | btnManagerInfo.setBounds(10, 230, 200, 30);
150 | btnManagerInfo.setBackground(Color.BLACK);
151 | btnManagerInfo.setForeground(Color.WHITE);
152 |
153 | contentPane.add(btnManagerInfo);
154 |
155 | JButton btnNewButton_4 = new JButton("Check Out");
156 | btnNewButton_4.addActionListener(new ActionListener() {
157 | public void actionPerformed(ActionEvent e) {
158 | CheckOut check;
159 | try {
160 | check = new CheckOut();
161 | check.setVisible(true);
162 | setVisible(false);
163 | } catch (SQLException e1) {
164 | // TODO Auto-generated catch block
165 | e1.printStackTrace();
166 | }
167 | }
168 | });
169 | btnNewButton_4.setBounds(10, 270, 200, 30);
170 | btnNewButton_4.setBackground(Color.BLACK);
171 | btnNewButton_4.setForeground(Color.WHITE);
172 |
173 | contentPane.add(btnNewButton_4);
174 |
175 | JButton btnNewButton_5 = new JButton("Update Check Status");
176 | btnNewButton_5.addActionListener(new ActionListener() {
177 | public void actionPerformed(ActionEvent e) {
178 | try{
179 | UpdateCheck update = new UpdateCheck();
180 | update.setVisible(true);
181 | setVisible(false);
182 | }
183 | catch(Exception e1){
184 | e1.printStackTrace();
185 | }
186 | }
187 | });
188 | btnNewButton_5.setBounds(10, 310, 200, 30);
189 | btnNewButton_5.setBackground(Color.BLACK);
190 | btnNewButton_5.setForeground(Color.WHITE);
191 |
192 | contentPane.add(btnNewButton_5);
193 |
194 | JButton btnNewButton_6 = new JButton("Update Room Status");
195 | btnNewButton_6.addActionListener(new ActionListener() {
196 | public void actionPerformed(ActionEvent e) {
197 | try{
198 | UpdateRoom room = new UpdateRoom();
199 | room.setVisible(true);
200 | setVisible(false);
201 | }catch(Exception s)
202 | {
203 | s.printStackTrace();
204 | }
205 | }
206 | });
207 | btnNewButton_6.setBounds(10, 350, 200, 30);
208 | btnNewButton_6.setBackground(Color.BLACK);
209 | btnNewButton_6.setForeground(Color.WHITE);
210 |
211 | contentPane.add(btnNewButton_6);
212 |
213 | JButton btnPickUpSerice = new JButton("Pick up Service");
214 | btnPickUpSerice.addActionListener(new ActionListener() {
215 | public void actionPerformed(ActionEvent arg0) {
216 | try{
217 | PickUp pick = new PickUp();
218 | pick.setVisible(true);
219 | setVisible(false);
220 | }
221 | catch(Exception e){
222 | e.printStackTrace();
223 | }
224 | }
225 | });
226 | btnPickUpSerice.setBounds(10, 390, 200, 30);
227 | btnPickUpSerice.setBackground(Color.BLACK);
228 | btnPickUpSerice.setForeground(Color.WHITE);
229 |
230 | contentPane.add(btnPickUpSerice);
231 |
232 | JButton btnSearchRoom = new JButton("Search Room");
233 | btnSearchRoom.addActionListener(new ActionListener() {
234 | public void actionPerformed(ActionEvent e) {
235 | try {
236 | SearchRoom search = new SearchRoom();
237 | search.setVisible(true);
238 | setVisible(false);
239 | }
240 | catch (Exception ss){
241 | ss.printStackTrace();
242 | }
243 | }
244 | });
245 | btnSearchRoom.setBounds(10, 430, 200, 30);
246 | btnSearchRoom.setBackground(Color.BLACK);
247 | btnSearchRoom.setForeground(Color.WHITE);
248 |
249 | contentPane.add(btnSearchRoom);
250 |
251 | JButton btnNewButton_7 = new JButton("Log Out");
252 | btnNewButton_7.addActionListener(new ActionListener() {
253 | public void actionPerformed(ActionEvent ae) {
254 | try {
255 | new Login().setVisible(true);
256 | setVisible(false);
257 |
258 | } catch (Exception e) {
259 | e.printStackTrace();
260 | }
261 |
262 | }
263 | });
264 | btnNewButton_7.setBounds(10, 470, 200, 30);
265 | btnNewButton_7.setBackground(Color.BLACK);
266 | btnNewButton_7.setForeground(Color.WHITE);
267 |
268 | contentPane.add(btnNewButton_7);
269 | getContentPane().setBackground(Color.WHITE);
270 |
271 | setVisible(true);
272 | }
273 | }
274 |
--------------------------------------------------------------------------------
/src/hotel/management/system/Room.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package hotel.management.system;
7 |
8 | import java.awt.BorderLayout;
9 | import java.awt.*;
10 |
11 | import javax.swing.JFrame;
12 | import javax.swing.JPanel;
13 | import javax.swing.border.EmptyBorder;
14 |
15 | import net.proteanit.sql.DbUtils;
16 |
17 | import javax.swing.JTable;
18 | import java.sql.*;
19 | import javax.swing.*;
20 | import java.awt.event.ActionListener;
21 | import java.awt.event.ActionEvent;
22 | public class Room extends JFrame {
23 | Connection conn = null;
24 | private JPanel contentPane;
25 | private JTable table;
26 | private JLabel lblAvailability;
27 | private JLabel lblCleanStatus;
28 | private JLabel lblNewLabel;
29 | private JLabel lblNewLabel_1;
30 | private JLabel lblRoomNumber;
31 | private JLabel lblId;
32 |
33 | /**
34 | * Launch the application.
35 | */
36 | public static void main(String[] args) {
37 | EventQueue.invokeLater(new Runnable() {
38 | public void run() {
39 | try {
40 | Room frame = new Room();
41 | frame.setVisible(true);
42 | } catch (Exception e) {
43 | e.printStackTrace();
44 | }
45 | }
46 | });
47 | }
48 |
49 |
50 | public Room() throws SQLException {
51 | //conn = Javaconnect.getDBConnection();
52 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
53 | setBounds(450, 200, 1100, 600);
54 | contentPane = new JPanel();
55 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
56 | setContentPane(contentPane);
57 | contentPane.setLayout(null);
58 |
59 | ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("hotel/management/system/icons/eight.jpg"));
60 | Image i3 = i1.getImage().getScaledInstance(600, 600,Image.SCALE_DEFAULT);
61 | ImageIcon i2 = new ImageIcon(i3);
62 | JLabel l1 = new JLabel(i2);
63 | l1.setBounds(500,0,600,600);
64 | add(l1);
65 |
66 |
67 | table = new JTable();
68 | table.setBounds(0, 40, 500, 400);
69 | contentPane.add(table);
70 |
71 | JButton btnLoadData = new JButton("Load Data");
72 | btnLoadData.addActionListener(new ActionListener() {
73 | public void actionPerformed(ActionEvent e) {
74 | try{
75 | conn c = new conn();
76 | String displayCustomersql = "select * from Room";
77 | //PreparedStatement pst = conn.prepareStatement(displayCustomersql);
78 | ResultSet rs = c.s.executeQuery(displayCustomersql);
79 | table.setModel(DbUtils.resultSetToTableModel(rs));
80 |
81 |
82 | }
83 | catch(Exception e1){
84 | e1.printStackTrace();
85 | }
86 | }
87 | });
88 | btnLoadData.setBounds(100, 470, 120, 30);
89 | btnLoadData.setBackground(Color.BLACK);
90 | btnLoadData.setForeground(Color.WHITE);
91 | contentPane.add(btnLoadData);
92 |
93 | JButton btnNewButton = new JButton("Back");
94 | btnNewButton.addActionListener(new ActionListener() {
95 | public void actionPerformed(ActionEvent e) {
96 | new Reception().setVisible(true);
97 | setVisible(false);
98 | }
99 | });
100 | btnNewButton.setBounds(290, 470, 120, 30);
101 | btnNewButton.setBackground(Color.BLACK);
102 | btnNewButton.setForeground(Color.WHITE);
103 | contentPane.add(btnNewButton);
104 |
105 | lblAvailability = new JLabel("Availability");
106 | lblAvailability.setBounds(119, 15, 69, 14);
107 | contentPane.add(lblAvailability);
108 |
109 | lblCleanStatus = new JLabel("Clean Status");
110 | lblCleanStatus.setBounds(216, 15, 76, 14);
111 | contentPane.add(lblCleanStatus);
112 |
113 | lblNewLabel = new JLabel("Price");
114 | lblNewLabel.setBounds(330, 15, 46, 14);
115 | contentPane.add(lblNewLabel);
116 |
117 | lblNewLabel_1 = new JLabel("Bed Type");
118 | lblNewLabel_1.setBounds(417, 15, 76, 14);
119 | contentPane.add(lblNewLabel_1);
120 |
121 |
122 | lblId = new JLabel("Room Number");
123 | lblId.setBounds(12, 15, 90, 14);
124 | contentPane.add(lblId);
125 |
126 | getContentPane().setBackground(Color.WHITE);
127 | }
128 |
129 | }
--------------------------------------------------------------------------------
/src/hotel/management/system/SearchRoom.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package hotel.management.system;
7 |
8 | import java.awt.BorderLayout;
9 | import java.awt.*;
10 |
11 | import java.sql.*;
12 | import javax.swing.*;
13 | import javax.swing.JFrame;
14 | import javax.swing.JPanel;
15 | import javax.swing.border.EmptyBorder;
16 |
17 | import net.proteanit.sql.DbUtils;
18 |
19 | import java.awt.Font;
20 | import java.awt.event.ActionListener;
21 | import java.awt.event.ActionEvent;
22 |
23 | public class SearchRoom extends JFrame {
24 | Connection conn = null;
25 | PreparedStatement pst = null;
26 | ResultSet rs = null;
27 | private JPanel contentPane;
28 | private JTextField txt_Type;
29 | private JTable table;
30 | Choice c1;
31 |
32 | /**
33 | * Launch the application.
34 | */
35 | public static void main(String[] args) {
36 | EventQueue.invokeLater(new Runnable() {
37 | public void run() {
38 | try {
39 | SearchRoom frame = new SearchRoom();
40 | frame.setVisible(true);
41 | } catch (Exception e) {
42 | e.printStackTrace();
43 | }
44 | }
45 | });
46 | }
47 | public void close()
48 | {
49 | this.dispose();
50 | }
51 |
52 | /**
53 | * Create the frame.
54 | * @throws SQLException
55 | */
56 | public SearchRoom() throws SQLException {
57 | //conn = Javaconnect.getDBConnection();
58 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
59 | setBounds(530, 200, 700, 500);
60 | contentPane = new JPanel();
61 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
62 | setContentPane(contentPane);
63 | contentPane.setLayout(null);
64 |
65 | JLabel lblSearchForRoom = new JLabel("Search For Room");
66 | lblSearchForRoom.setFont(new Font("Tahoma", Font.PLAIN, 20));
67 | lblSearchForRoom.setBounds(250, 11, 186, 31);
68 | contentPane.add(lblSearchForRoom);
69 |
70 | JLabel lblRoomAvailable = new JLabel("Room Bed Type:");
71 | lblRoomAvailable.setBounds(50, 73, 96, 14);
72 | contentPane.add(lblRoomAvailable);
73 |
74 | JLabel lblRoomType = new JLabel("Room Number");
75 | lblRoomType.setBounds(23, 162, 96, 14);
76 | contentPane.add(lblRoomType);
77 |
78 | JLabel lblRoomAvailable_1 = new JLabel("Availability");
79 | lblRoomAvailable_1.setBounds(175, 162, 120, 14);
80 | contentPane.add(lblRoomAvailable_1);
81 |
82 | JLabel lblPrice_1 = new JLabel("Price");
83 | lblPrice_1.setBounds(458, 162, 46, 14);
84 | contentPane.add(lblPrice_1);
85 |
86 | JLabel l1 = new JLabel("Bed Type");
87 | l1.setBounds(580, 162, 96, 14);
88 | contentPane.add(l1);
89 |
90 | JCheckBox checkRoom = new JCheckBox("Only display Available");
91 | checkRoom.setBounds(400, 69, 205, 23);
92 | checkRoom.setBackground(Color.WHITE);
93 | contentPane.add(checkRoom);
94 |
95 |
96 | c1 = new Choice();
97 | c1.add("Single Bed");
98 | c1.add("Double Bed");
99 | c1.setBounds(153, 70, 120, 20);
100 | contentPane.add(c1);
101 |
102 | JButton btnSearch = new JButton("Search");
103 | btnSearch.addActionListener(new ActionListener() {
104 | public void actionPerformed(ActionEvent e) {
105 | String SQL = "select * from Room where bed_type = '"+c1.getSelectedItem()+"'";
106 | String SQL2 = "select * from Room where availability = 'Available' AND bed_type = '"+c1.getSelectedItem()+"'";
107 | try{
108 | conn c = new conn();
109 | rs = c.s.executeQuery(SQL);
110 | table.setModel(DbUtils.resultSetToTableModel(rs));
111 |
112 | if(checkRoom.isSelected())
113 | {
114 | rs = c.s.executeQuery(SQL2);
115 | table.setModel(DbUtils.resultSetToTableModel(rs));
116 | }
117 |
118 |
119 | }catch (SQLException ss)
120 | {
121 | ss.printStackTrace();
122 | }
123 |
124 | }
125 | });
126 | btnSearch.setBounds(200, 400, 120, 30);
127 | btnSearch.setBackground(Color.BLACK);
128 | btnSearch.setForeground(Color.WHITE);
129 | contentPane.add(btnSearch);
130 |
131 | JButton btnExit = new JButton("Back");
132 | btnExit.addActionListener(new ActionListener() {
133 | public void actionPerformed(ActionEvent e) {
134 | new Reception().setVisible(true);
135 | setVisible(false);
136 | }
137 | });
138 | btnExit.setBounds(380, 400, 120, 30);
139 | btnExit.setBackground(Color.BLACK);
140 | btnExit.setForeground(Color.WHITE);
141 | contentPane.add(btnExit);
142 |
143 | table = new JTable();
144 | table.setBounds(0, 187, 700, 300);
145 | contentPane.add(table);
146 |
147 | JLabel lblCleanStatus = new JLabel("Clean Status");
148 | lblCleanStatus.setBounds(306, 162, 96, 14);
149 | contentPane.add(lblCleanStatus);
150 |
151 | getContentPane().setBackground(Color.WHITE);
152 | }
153 | }
--------------------------------------------------------------------------------
/src/hotel/management/system/UpdateCheck.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package hotel.management.system;
7 |
8 | import java.awt.BorderLayout;
9 | import java.awt.*;
10 |
11 | import java.sql.*;
12 | import javax.swing.*;
13 | import javax.swing.border.EmptyBorder;
14 |
15 | import java.awt.Font;
16 | import java.awt.event.ActionListener;
17 | import java.awt.event.ActionEvent;
18 |
19 | public class UpdateCheck extends JFrame {
20 | Connection conn = null;
21 | PreparedStatement pst = null;
22 | private JPanel contentPane;
23 | private JTextField txt_ID;
24 | private JTextField txt_Room;
25 | private JTextField txt_Status;
26 | private JTextField txt_Date;
27 | private JTextField txt_Time;
28 | private JTextField txt_Payment;
29 |
30 | Choice c1, c2;
31 | /**
32 | * Launch the application.
33 | */
34 | public static void main(String[] args) {
35 | EventQueue.invokeLater(new Runnable() {
36 | public void run() {
37 | try {
38 | UpdateCheck frame = new UpdateCheck();
39 | frame.setVisible(true);
40 | } catch (Exception e) {
41 | e.printStackTrace();
42 | }
43 | }
44 | });
45 | }
46 | public void close(){
47 | this.dispose();
48 | }
49 |
50 | /**
51 | * Create the frame.
52 | * @throws SQLException
53 | */
54 | public UpdateCheck() throws SQLException {
55 | //conn = Javaconnect.getDBConnection();
56 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
57 | setBounds(500, 200, 950, 500);
58 | contentPane = new JPanel();
59 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
60 | setContentPane(contentPane);
61 | contentPane.setLayout(null);
62 |
63 | JLabel lblUpdateCheckStatus = new JLabel("Check-In Details");
64 | lblUpdateCheckStatus.setFont(new Font("Tahoma", Font.PLAIN, 20));
65 | lblUpdateCheckStatus.setBounds(124, 11, 222, 25);
66 | contentPane.add(lblUpdateCheckStatus);
67 |
68 | ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("hotel/management/system/icons/nine.jpg"));
69 | JLabel l1 = new JLabel(i1);
70 | l1.setBounds(450,70,476,270);
71 | add(l1);
72 |
73 | JLabel lblNewLabel = new JLabel("ID:");
74 | lblNewLabel.setBounds(25, 88, 46, 14);
75 | contentPane.add(lblNewLabel);
76 |
77 | c1 = new Choice();
78 | try{
79 | conn c = new conn();
80 | ResultSet rs = c.s.executeQuery("select * from customer");
81 | while(rs.next()){
82 | c1.add(rs.getString("number"));
83 | }
84 | }catch(Exception e){ }
85 | c1.setBounds(248, 85, 140, 20);
86 | contentPane.add(c1);
87 |
88 | JLabel lblNewLabel_1 = new JLabel("Room Number :");
89 | lblNewLabel_1.setBounds(25, 129, 107, 14);
90 | contentPane.add(lblNewLabel_1);
91 |
92 |
93 | txt_ID = new JTextField();
94 | txt_ID.setBounds(248, 126, 140, 20);
95 | contentPane.add(txt_ID);
96 |
97 | JLabel lblNewLabel_2 = new JLabel("Name : ");
98 | lblNewLabel_2.setBounds(25, 174, 97, 14);
99 | contentPane.add(lblNewLabel_2);
100 |
101 | JLabel lblNewLabel_3 = new JLabel("Checked-in :");
102 | lblNewLabel_3.setBounds(25, 216, 107, 14);
103 | contentPane.add(lblNewLabel_3);
104 |
105 | JLabel lblNewLabel_4 = new JLabel("Amount Paid (Rs) : ");
106 | lblNewLabel_4.setBounds(25, 261, 107, 14);
107 | contentPane.add(lblNewLabel_4);
108 |
109 | JLabel lblNewLabel_5 = new JLabel("Pending Amount (Rs) : ");
110 | lblNewLabel_5.setBounds(25, 302, 150, 14);
111 | contentPane.add(lblNewLabel_5);
112 |
113 |
114 | txt_Status = new JTextField();
115 | txt_Status.setBounds(248, 171, 140, 20);
116 | contentPane.add(txt_Status);
117 | txt_Status.setColumns(10);
118 |
119 | txt_Date = new JTextField();
120 | txt_Date.setBounds(248, 216, 140, 20);
121 | contentPane.add(txt_Date);
122 | txt_Date.setColumns(10);
123 |
124 | txt_Time = new JTextField();
125 | txt_Time.setBounds(248, 258, 140, 20);
126 | contentPane.add(txt_Time);
127 | txt_Time.setColumns(10);
128 |
129 | txt_Payment = new JTextField();
130 | txt_Payment.setBounds(248, 299, 140, 20);
131 | contentPane.add(txt_Payment);
132 | txt_Payment.setColumns(10);
133 |
134 | JButton btnUpdate = new JButton("Update");
135 | btnUpdate.addActionListener(new ActionListener() {
136 | public void actionPerformed(ActionEvent ae) {
137 | try{
138 | conn c = new conn();
139 |
140 | String s1 = c1.getSelectedItem();
141 | String s2 = txt_ID.getText(); //room_number;
142 | String s3 = txt_Status.getText(); //name
143 | String s4 = txt_Date.getText(); //status;
144 | String s5 = txt_Time.getText(); //deposit
145 |
146 | c.s.executeUpdate("update customer set room_number = '"+s2+"', name = '"+s3+"', status = '"+s4+"', deposit = '"+s5+"' where number = '"+s1+"'");
147 |
148 | JOptionPane.showMessageDialog(null, "Data Updated Successfully");
149 | new Reception().setVisible(true);
150 | setVisible(false);
151 | }catch(Exception ee){
152 | System.out.println(ee);
153 | }
154 |
155 |
156 |
157 | }
158 | });
159 | btnUpdate.setBounds(168, 378, 89, 23);
160 | btnUpdate.setBackground(Color.BLACK);
161 | btnUpdate.setForeground(Color.WHITE);
162 | contentPane.add(btnUpdate);
163 |
164 | JButton btnExit = new JButton("Back");
165 | btnExit.addActionListener(new ActionListener() {
166 | public void actionPerformed(ActionEvent e) {
167 | new Reception().setVisible(true);
168 | setVisible(false);
169 | }
170 | });
171 | btnExit.setBounds(281, 378, 89, 23);
172 | btnExit.setBackground(Color.BLACK);
173 | btnExit.setForeground(Color.WHITE);
174 | contentPane.add(btnExit);
175 |
176 | JButton btnAdd = new JButton("Check");
177 | btnAdd.addActionListener(new ActionListener() {
178 | public void actionPerformed(ActionEvent e) {
179 | try{
180 | String s1 = c1.getSelectedItem();
181 | conn c = new conn();
182 | ResultSet rs1 = c.s.executeQuery("select * from customer where number = "+s1);
183 |
184 | while(rs1.next()){
185 | txt_ID.setText(rs1.getString("room_number"));
186 | txt_Status.setText(rs1.getString("name"));
187 | txt_Date.setText(rs1.getString("status"));
188 | txt_Time.setText(rs1.getString("deposit"));
189 | }
190 | }catch(Exception ee){}
191 |
192 | try{
193 | String total = "";
194 | conn c = new conn();
195 | ResultSet rs2 = c.s.executeQuery("select * from room where room_number = "+txt_ID.getText());
196 | while(rs2.next()){
197 | total = rs2.getString("price");
198 |
199 | }
200 | String paid = txt_Time.getText();
201 | int pending = Integer.parseInt(total)- Integer.parseInt(paid);
202 |
203 | txt_Payment.setText(Integer.toString(pending));
204 |
205 | }catch(Exception ee){}
206 | }
207 | });
208 | btnAdd.setBounds(56, 378, 89, 23);
209 | btnAdd.setBackground(Color.BLACK);
210 | btnAdd.setForeground(Color.WHITE);
211 | contentPane.add(btnAdd);
212 |
213 | getContentPane().setBackground(Color.WHITE);
214 | }
215 |
216 | }
--------------------------------------------------------------------------------
/src/hotel/management/system/UpdateRoom.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package hotel.management.system;
7 |
8 | import java.awt.BorderLayout;
9 | import java.awt.*;
10 | import java.sql.*;
11 | import javax.swing.*;
12 | import javax.swing.JFrame;
13 | import javax.swing.JPanel;
14 | import javax.swing.border.EmptyBorder;
15 | import java.awt.Font;
16 | import java.awt.event.ActionListener;
17 | import java.awt.event.ActionEvent;
18 |
19 | public class UpdateRoom extends JFrame {
20 | Connection conn = null;
21 | PreparedStatement pst = null;
22 | private JPanel contentPane;
23 | private JTextField txt_ID;
24 | private JTextField txt_Ava;
25 | private JTextField txt_Status;
26 | private JTextField txt_Room;
27 |
28 | Choice c1;
29 |
30 | /**
31 | * Launch the application.
32 | */
33 | public static void main(String[] args) {
34 | EventQueue.invokeLater(new Runnable() {
35 | public void run() {
36 | try {
37 | UpdateRoom frame = new UpdateRoom();
38 | frame.setVisible(true);
39 | } catch (Exception e) {
40 | e.printStackTrace();
41 | }
42 | }
43 | });
44 | }
45 | public void close(){
46 | this.dispose();
47 | }
48 |
49 | /**
50 | * Create the frame.
51 | * @throws SQLException
52 | */
53 | public UpdateRoom() throws SQLException {
54 | //conn = Javaconnect.getDBConnection();
55 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
56 | setBounds(530, 200, 1000, 450);
57 | contentPane = new JPanel();
58 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
59 | setContentPane(contentPane);
60 | contentPane.setLayout(null);
61 |
62 | ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("hotel/management/system/icons/seventh.jpg"));
63 | Image i3 = i1.getImage().getScaledInstance(550, 250,Image.SCALE_DEFAULT);
64 | ImageIcon i2 = new ImageIcon(i3);
65 | JLabel l1 = new JLabel(i2);
66 | l1.setBounds(400,80,600,250);
67 | add(l1);
68 |
69 | JLabel lblUpdateRoomStatus = new JLabel("Update Room Status");
70 | lblUpdateRoomStatus.setFont(new Font("Tahoma", Font.PLAIN, 20));
71 | lblUpdateRoomStatus.setBounds(85, 11, 206, 34);
72 | contentPane.add(lblUpdateRoomStatus);
73 |
74 | JLabel lblNewLabel = new JLabel("Guest ID:");
75 | lblNewLabel.setBounds(27, 87, 90, 14);
76 | contentPane.add(lblNewLabel);
77 |
78 | c1 = new Choice();
79 | try{
80 | conn c = new conn();
81 | ResultSet rs = c.s.executeQuery("select * from customer");
82 | while(rs.next()){
83 | c1.add(rs.getString("number"));
84 | }
85 | }catch(Exception e){ }
86 | c1.setBounds(160, 84, 140, 20);
87 | contentPane.add(c1);
88 |
89 | JLabel lblAvailability = new JLabel("Availability:");
90 | lblAvailability.setBounds(27, 187, 90, 14);
91 | contentPane.add(lblAvailability);
92 |
93 | JLabel lblCleanStatus = new JLabel("Clean Status:");
94 | lblCleanStatus.setBounds(27, 240, 90, 14);
95 | contentPane.add(lblCleanStatus);
96 |
97 |
98 | txt_Ava = new JTextField();
99 | txt_Ava.setBounds(160, 184, 140, 20);
100 | contentPane.add(txt_Ava);
101 | txt_Ava.setColumns(10);
102 |
103 | txt_Status = new JTextField();
104 | txt_Status.setBounds(160, 237, 140, 20);
105 | contentPane.add(txt_Status);
106 | txt_Status.setColumns(10);
107 |
108 | txt_Room = new JTextField();
109 | txt_Room.setBounds(160, 130, 140, 20);
110 | contentPane.add(txt_Room);
111 | txt_Room.setColumns(10);
112 |
113 | JButton b1 = new JButton("Check");
114 | b1.addActionListener(new ActionListener() {
115 | public void actionPerformed(ActionEvent e) {
116 | try{
117 | String s1 = c1.getSelectedItem();
118 | conn c = new conn();
119 | ResultSet rs1 = c.s.executeQuery("select * from customer where number = "+s1);
120 |
121 | while(rs1.next()){
122 | txt_Room.setText(rs1.getString("room_number"));
123 | }
124 | }catch(Exception ee){}
125 | try{
126 | conn c = new conn();
127 | ResultSet rs2 = c.s.executeQuery("select * from room where room_number = "+txt_Room.getText());
128 | while(rs2.next()){
129 | txt_Ava.setText(rs2.getString("availability"));
130 | txt_Status.setText(rs2.getString("clean_status"));
131 | }
132 | }catch(Exception ee){}
133 | }
134 | });
135 | b1.setBounds(120, 315, 89, 23);
136 | b1.setBackground(Color.BLACK);
137 | b1.setForeground(Color.WHITE);
138 | contentPane.add(b1);
139 |
140 | JButton btnUpdate = new JButton("Update");
141 | btnUpdate.addActionListener(new ActionListener() {
142 | public void actionPerformed(ActionEvent e) throws NumberFormatException {
143 |
144 | try{
145 | conn c = new conn();
146 | String str = "update room set clean_status = '"+txt_Status.getText()+"' where room_number = "+txt_Room.getText();
147 | c.s.executeUpdate(str);
148 | JOptionPane.showMessageDialog(null, "Update Sucessful");
149 |
150 | new Reception().setVisible(true);
151 | setVisible(false);
152 | }catch (Exception ee){
153 | ee.printStackTrace();
154 | }
155 |
156 |
157 | }
158 | });
159 | btnUpdate.setBounds(60, 355, 89, 23);
160 | btnUpdate.setBackground(Color.BLACK);
161 | btnUpdate.setForeground(Color.WHITE);
162 | contentPane.add(btnUpdate);
163 |
164 | JButton btnExit = new JButton("Back");
165 | btnExit.addActionListener(new ActionListener() {
166 | public void actionPerformed(ActionEvent e) {
167 | new Reception().setVisible(true);
168 | setVisible(false);
169 | }
170 | });
171 | btnExit.setBounds(180, 355, 89, 23);
172 | btnExit.setBackground(Color.BLACK);
173 | btnExit.setForeground(Color.WHITE);
174 | contentPane.add(btnExit);
175 |
176 | JLabel lblRoomId = new JLabel("Room Number:");
177 | lblRoomId.setBounds(27, 133, 100, 14);
178 | contentPane.add(lblRoomId);
179 |
180 | getContentPane().setBackground(Color.WHITE);
181 | }
182 |
183 | }
--------------------------------------------------------------------------------
/src/hotel/management/system/conn.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package hotel.management.system;
7 |
8 |
9 |
10 |
11 | import java.sql.*;
12 |
13 | public class conn{
14 | Connection c;
15 | Statement s;
16 | public conn(){
17 | try{
18 | Class.forName("com.mysql.jdbc.Driver");
19 | c =DriverManager.getConnection("jdbc:mysql://localhost:3307/hms","root","");
20 |
21 | s =c.createStatement();
22 |
23 |
24 | }catch(Exception e){
25 | System.out.println(e);
26 | }
27 | }
28 | }
29 |
30 |
--------------------------------------------------------------------------------
/src/hotel/management/system/icons/eight.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/src/hotel/management/system/icons/eight.jpg
--------------------------------------------------------------------------------
/src/hotel/management/system/icons/eleven.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/src/hotel/management/system/icons/eleven.jpg
--------------------------------------------------------------------------------
/src/hotel/management/system/icons/fifith.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/src/hotel/management/system/icons/fifith.jpg
--------------------------------------------------------------------------------
/src/hotel/management/system/icons/fifth.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/src/hotel/management/system/icons/fifth.jpg
--------------------------------------------------------------------------------
/src/hotel/management/system/icons/fifth.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/src/hotel/management/system/icons/fifth.png
--------------------------------------------------------------------------------
/src/hotel/management/system/icons/first.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/src/hotel/management/system/icons/first.jpg
--------------------------------------------------------------------------------
/src/hotel/management/system/icons/fourth.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/src/hotel/management/system/icons/fourth.jpg
--------------------------------------------------------------------------------
/src/hotel/management/system/icons/nine.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/src/hotel/management/system/icons/nine.jpg
--------------------------------------------------------------------------------
/src/hotel/management/system/icons/second.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/src/hotel/management/system/icons/second.jpg
--------------------------------------------------------------------------------
/src/hotel/management/system/icons/seventh.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/src/hotel/management/system/icons/seventh.jpg
--------------------------------------------------------------------------------
/src/hotel/management/system/icons/sixth.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/src/hotel/management/system/icons/sixth.jpg
--------------------------------------------------------------------------------
/src/hotel/management/system/icons/tenth.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/src/hotel/management/system/icons/tenth.jpg
--------------------------------------------------------------------------------
/src/hotel/management/system/icons/third.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/src/hotel/management/system/icons/third.jpg
--------------------------------------------------------------------------------
/src/hotel/management/system/icons/tick.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/src/hotel/management/system/icons/tick.png
--------------------------------------------------------------------------------
/src/hotel/management/system/icons/twelve.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/src/hotel/management/system/icons/twelve.jpg
--------------------------------------------------------------------------------
/src/newpackage/rs2xml.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/src/newpackage/rs2xml.jar
--------------------------------------------------------------------------------
/test/rs2xml.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/virajmane/HotelManagementSystem/585a989a826c231a221168395f9071fc58b94ba3/test/rs2xml.jar
--------------------------------------------------------------------------------