0% found this document useful (0 votes)
172 views14 pages

Project Report

This document describes a hotel management system project that was developed using Java and MySQL. It includes features like room booking, customer management, food ordering, and staff management. The system uses various frames for different functions, and connects to database tables like customers, rooms, bookings, staff and food items. Testing was done on key functions and future enhancements are discussed. Technologies used include Java, NetBeans IDE, MySQL, Draw.io and GitHub.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
172 views14 pages

Project Report

This document describes a hotel management system project that was developed using Java and MySQL. It includes features like room booking, customer management, food ordering, and staff management. The system uses various frames for different functions, and connects to database tables like customers, rooms, bookings, staff and food items. Testing was done on key functions and future enhancements are discussed. Technologies used include Java, NetBeans IDE, MySQL, Draw.io and GitHub.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

Page 1 of 14

Poornima Group of Insitution

Kavita Pahadiya

Neha khatri

Mr. Ajay Maurya

Abstract
TOPIC:

OBJECTIVES:
Page 2 of 14

APPROACH:

RESULTS:

TOOLS USED:

Table of Content
S. no. Title Page no.

1 Introduction 4
2 Feature Implemented 5
3 ER Diagram 6
4 Implementation and Coding 7-12
5 Testing 13
6 Technologies Used 14
7 Conclusion and Future Enhancements 15-16
8 References 17
Page 3 of 14

Introduction

Features Implemented


Page 4 of 14

••


Page 5 of 14

ER Diagram
Page 6 of 14

Implementation and Coding

About the Framework:

Database Used:

Connecting with the Database:

try{
Class.forName("com.mysql.jdbc.Driver"); Connection con;
con=DriverManager.getConnection("JDBC:mysql://localhost:3306/mysql","root",Credentials
.
sqlPassword);
Statement stmt;
stmt = con.createStatement();
stmt.executeUpdate("USE hotelsystem");
stmt.executeUpdate("insert into staff(name,contact,aadhar,username,password,work)
values('"+name+"','"+contact+"','"+aadhar+"','"+usr+"','"+pass+"','"+work+"');");
JOptionPane.showMessageDialog(frame, "Staff Added");
new MainScreen().setVisible(true);
this.setVisible(false);
}
catch( Exception e){
System.out.println(“Exception: “+e);
}
Page 7 of 14

Frames in the project:


Page 8 of 14

Login

MainScreen






RoomList:

private void tableMouseClicked(java.awt.event.MouseEvent evt) {


int row = table.rowAtPoint(evt.getPoint());
String room = (String) table.getValueAt(row, 0);
RoomBooking rb = new RoomBooking();
rb.setTextField(room);
rb.setVisible(true);
this.setVisible(false);
}

void setTextField(String room){


roomf.setText(room);
}
Page 9 of 14

RoomBooking:

Date date = new Date();


long time = date.getTime();

CustomerList:

long div = 1000*60*60*24;


long days = (time-chkin)/div+1; //time is current time i.e. checkout time
bill+=price*days; //bill contains existing bill i.e. restaurant bill and price is the rate of the
room

RestMenu:

BookFood:

StaffInfo:
Page 10 of 14

AddStaff:

Tables in the project:

Customer:

Field Type Null Key


aadhar varchar NO PRIMARY KEY
name varchar NO
contact varchar NO
address varchar YES
nation varchar YES

Room:

Field Type Null Key


id int NO PRIMARY KEY
beds int NO
capacity int NO
price int NO
occupied int NO

Bookings:

Field Type Null Key Default Extra


id int NO PRIMARY NULL AUTO_INCREMENT
KEY
aadhar varchar NO NULL
number_of_persons int NO NULL
room int NO NULL
checkin varchar NO NULL
checkout varchar YES NULL
amount int YES 0
Page 11 of 14

Staff:

Field Type Null Key Default Extra


id int NO PRIMARY NULL AUTO_INCREMENT
KEY
name varchar NO NULL
contact varchar NO NULL
aadhar varchar NO NULL
username varchar NO UNIQUE NULL
password varchar NO NULL
work varchar NO NULL

Restitem:

Field Type Null Key


Item_name varchar NO
Item_price varchar NO

Bookfood:

Field Type Null Key


Room int NO
Item_name varchar NO

Testing
Page 12 of 14

Checks Implemented:

Room Booking:
• •••

• •

Add
Staff:
• ••

Book Food:
• •

Add Menu Item:



Delete Manu Item:


• •

Technologies Used
JAVA
Page 13 of 14

NetBeans Editor

MySQL

Draw.io

GitHub
Page 14 of 14

Conclusion and Future Enhancement

References
• Database System Concepts, SIXTH EDITION by Abraham Silberschatz, Henry F. Korth,
S. Sudarshan
• Java Platform Standard Edition 8 Documentation - Oracle Docs
https://docs.oracle.com/javase/8/docs/
• MySQL Documentation https://dev.mysql.com/doc/
• Wikipedia https://wikipedia.com

You might also like