Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 71

1

HARDWARE & SOFTWARE SPECIFICATION

Hardware Specification of machine used:

CPU Pentium IV
RAM 256 MB

HDD 20 GB

KEYBOARD 102 Keys

MOUSE Windows Compatible

MONITOR 256” (Color)

Software (O.S. Language, Packages) used along version:

OPERATING SYSTEM WINDOWS 7

FRONT END Vb.Net

BACK END Sql-Server 2008

PACKAGE MS-Word
2
3

TABLE OF CONTENTS

Chapter 1

Introduction

 Project of objective

Chapter 2

Software Background

 Study of window 7
 About VB
 Why SQL server

Chapter 3

Problem Analysis

 Software requirement
 System planning
 Project estimation
 Project Risk Analysis

Chapter 4
4

System Designing

 Input & output


 Data flow diagram
 Project structure

Chapter 5

Implementation

 Source code
 Testing
 Installation

Chapter 6

System Analysis

 Feasibility study
 Methodology Adopted
 Detail Hardware and software

Chapter 7

Security of the System

 Database security
 Application security
 Transaction security
 System security
 Conclusion
 Bibliography
5
6

INTRODUCTION

Hotel needs to maintain the record of guests and rooms beforehand. Customers should be able to
know the availability of the rooms on a particular date. They should be able to reserve the available
rooms according to their need in advance. To make their stay comfortable, they are provided with
food other services.
The record of the food taken by each customer and the services availed by the customer should be
kept.
These records help in generating bill.
7

Chapter 1

Introduction

 Project of objective
8

Objective of Project:-
Today every work is going to computerized. Manpower is used with computer system

to increase the efficiency and reliability of the work .it also provides a lot of time to do

that work with friendliness. This project are the major advantage of manage the agency

information and all record are saved in project.

Whenever a new project is undertaken or a new system is proposed it has always

certain objective. The main objective of the project “Hotel Automation” on the

VB.net is highlight as follows:

 This project is a development of the VB.net in software.

 To establish the advantage of the computerized for “Hotel Automation”

 Computerization will have a great effect on the proper use of resource, thus

Contributing to the agency standard and to solve the complication that occur

Handling through the paper work.

 This reduces the extra cost and efforts that are spend while performing all the

Tasks manually.

 This are used to each to simple understand and good performance.


9

Chapter 2

Software Background

 Study of window 7

 Why vb.net

 Why SQL Server


10

Study of window 7

Windows 7 is an operating system, that provides the high level of security because security in

windows 7 is assigned on a per user rather then per recourse basis, a user need to remember only

single windows 7 user account name and password log on and use local and network resources. With

windows 7 security, all resources and actions are protected by discretionary access control, means

that some users can be permitted access to resources or perform an action while other user can be

prevented form accessing the same resource or action security is very flexible for example-different

permission for different users. User can be set on different files in a directory. Windows 7 security

applies both to users working at the computer where the resource is located and to user accessing the

resource over the network.

For windows 7, the basic unit of security and administration is realized in the domain name. A

domain name is a collection of computer that recognized a common security account database. Four

types of computers participate in domain security:-

 Primary domain controllers (PDCs).

 Backup domain controllers (BDCs).

 Servers.

 Workstations.

Each domain has one PDC, which maintains the security account database for the

Domain. A domain can have any number of BDCs. Each BDCs receives a copy of domain security

accounts database and assists the PDC by sharing the load of authentication.
11

WHY VB.NET

Taken directly from VB .NET home, VB .NET , "VB .NET is an HTML-embedded scripting
language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique
VB .NET -specific features thrown in. The goal of the language is to allow web developers to
write dynamically generated pages quickly."
This is generally a good definition of VB .NET . However, it does contain a lot of terms you
may not be used to. Another way to think of VB.NET is a powerful, behind the scenes
scripting language that your visitors won't see!
When someone visits your VB .NET webpage, your web server processes the VB .NET code. It
then sees which parts it needs to show to visitors (content and pictures) and hides the other
stuff(file operations, math calculations, etc.) then translates your VB.NET into HTML. After
the translation into HTML, it sends the webpage to your visitor's web browser.
It is also helpful to think of VB.NET in terms of what it can do for you. VB.NET will allow you
to:
 Reduce the time to create large websites.
 Create customized user experience for visitors based on information that you have gathered
from them.
 Open up thousands of possibilities for online tools. Check out VB .NET - Hot Scripts for
examples of the great things that are possible with VB .NET .
 Allow creation of shopping carts for e-commerce websites.

VB.NET 's syntax and semantics are similar to most other programming languages (C, Java,
Perl) with the addition that all VB .NET code is contained with a tag, of sorts.
12

WHY SQL SERVER


A database is a collection of information related to a particular subject or purpose such as tracking

customer order or maintaining bike information in Agency. If your database is not stored on a

computer or only part of it are we may be tracking information from a variety of sources that we

have to coordinate and organize yourself .Using Microsoft SQL-Server, we can manage all our

information from a single database file. Within the file, divide our data into separate storage

containers called table, view and update table data using offline forms, and retrieve just the data we

want using quires and analyze or print the data in a specific layout using report.

1. To store our data create one table for each type of information we track. To

bring the from multiple tables together I a query, form or report, we define the

relationship between the table.

2. To find the retrieve just the data that meets conditions we specify, including

data from multiple tables, create a query. A query can also update or delete

single records at the one time, and perform built-in or custom calculations on

the our data.

3. To analyze our data or present it a certain way it print, create a reports.


13

Chapter 3

Problem Analysis:-

 Software requirement

 System planning

 Project estimation

 Project Risk Analysis


14

Software requirement Analysis and specification

During our analysis of the project, we referred various books and manuals and conduct questionnaire
with various administrators. The job of system administrator involves the maintains the new entry
broker who are wanted to do testing, getting detail knowledge ofthe testing own Bikes, searching
Bike Information who was tested, searching about testing , and also done the modify any test and bike
or staff information and so on . This task is usually entrusted to a single person, the system
administrator, also known as the super user. He has vest powers, having access to practically
everything.
15

System planning

Scheduling of a software project does not differ greatly from System administrator in window 7 is not

quite demanding and requires form the administrator an in depth knowledge of the different

components. The above stated task of a system administration is considered as routine duties of an

administrator. But system problem can be quite grave and unexpected By identify the system

responsibilities of a administrator to be quite demanding requiring a through knowledge of the system,

which makes it a cumbersome job. We identified a need of “graphical tool for the task of system

administration as its menu and screens will guide him through the whole process.” scheduling of any

multitask engineering effort. Therefore, generalized project scheduling tool and techniques can be

applied with little modification to software projects. Program evaluation and review Technique (PERT)

and critical path method (CPM) are two project scheduling method that can be applied to software

development. Both techniques are driven by information already development in project planning

activities:

 Estimates of Effort

 A decomposition of the product function

 The selection of the appropriate process model and task set

 Decomposition of tasks
16

Project Estimation:-

The project size is another important factor for the project estimation that can affect
accuracy and efficacy of estimations. As size increase, the interdependency among
various elements of the software grown rapidly.

Risk Analysis:-

Risk analysis and management are a series of steps that help a software team to

understand and manage uncertainty. Many problems can infect a software project. A

risk is a potential problem-it might happen it might not. But regardless of the outcome,

it’s a really good idea of identify it, assess its probability of occurrence, estimate its

impact, and establish a possibility plan should the problem actually occur.

For Risk analysis firstly recognizing what can go wrong that is called “risk Identification

“.Next, each risk is analyzed to determine the probability that it will occur and the

damage that will do if it does occur. Once this information is established, risks are

ranked, by probability and impact. Finally a plan is developed to manage those risks with

high probability and high impact.


17

Chapter 4

System Designing

 Data flow Diagram

 Input & output


18

0-LEVEL DFD

Input Output

Process

Database
19

First Level DFD


Log In

Mdi

Registration

Information

Out

Detail

Log Out
20
21

Customer Detail

Customer Id

Chec Room Type


k In
Room No.

Check In Date

Room Information No. Of Days

Room No.

Room Type

Status

Detail
Rate

Total Room
Amount Service Tax

Total
Amount
Check Out Bill Payment
Check Out
Date

Check In
Date

Room Type

Customer Id Room No.

Check In
Date Customer Id
Check Out

No. Of Days
22

Employee Id Name

Father Name

Address

Country
Employee Registration

Gender

DOB

Employee
Education Type
Joining Date
23
24

Login form
25

MDI FORM
26

EMPLOYEE REGISTRATION
27

CHECK IN
28

ROOM INFORMATION
29

CHECK OUT DETAIL


30

BILL
31

CHEK IN DETAIL
32

CHECK OUT DEATIL


33

EMPLOYEE REGISTRATION
34

CHECK IN
35

ROOM INFORMATION
36

CHECK OUT
37

BILL
38

login

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click
If (TextBox1.Text = "soni") Then
If (TextBox2.Text = "1234") Then
Me.Hide()
Form2.Show()
End If
End If
End Sub

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load

End Sub
39

MDI

Private Sub BillPaymentToolStripMenuItem_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs)
Form7.MdiParent = Me
Form7.Show()
End Sub

Private Sub MenuStrip1_ItemClicked(ByVal sender As System.Object, ByVal


e As System.Windows.Forms.ToolStripItemClickedEventArgs) Handles
MenuStrip1.ItemClicked

End Sub

Private Sub EmployeeRegistrationToolStripMenuItem1_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
EmployeeRegistrationToolStripMenuItem1.Click
emply.MdiParent = Me
emply.Show()
End Sub

Private Sub CheckInToolStripMenuItem_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
CheckInToolStripMenuItem.Click
Form6.MdiParent = Me
Form6.Show()
End Sub

Private Sub RoomInformationToolStripMenuItem_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
RoomInformationToolStripMenuItem.Click
Form4.MdiParent = Me
Form4.Show()
End Sub

Private Sub CheckOutToolStripMenuItem1_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
CheckOutToolStripMenuItem1.Click
Form3.MdiParent = Me
40

Form3.Show()
End Sub

Private Sub BillPaymentToolStripMenuItem1_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
BillPaymentToolStripMenuItem1.Click
Form7.MdiParent = Me
Form7.Show(1)
End Sub

Private Sub AboutUsToolStripMenuItem_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
AboutUsToolStripMenuItem.Click

End Sub

Private Sub CheckInDetailToolStripMenuItem_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
CheckInDetailToolStripMenuItem.Click
Form9.MdiParent = Me
Form9.Show()
End Sub

Private Sub CheckOutDetailToolStripMenuItem_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
CheckOutDetailToolStripMenuItem.Click
Form8.MdiParent = Me
Form8.Show()
End Sub
41

EMPLOYEE RAJISTRATION
Public Class emply
Dim con As New SqlClient.SqlConnection
Dim cmd As New SqlClient.SqlCommand
Dim dr As SqlClient.SqlDataReader
Dim da As New SqlClient.SqlDataAdapter
Dim ds As New DataSet
Dim s As String
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs)

End Sub

Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As


System.Object, ByVal e As System.EventArgs)

End Sub

Private Sub Form4_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load
con = New SqlClient.SqlConnection("Data Source=.\
SQLEXPRESS;AttachDbFilename=C:\Users\arif raza\Documents\
room_info.mdf;Integrated Security=True;Connect Timeout=30;User
Instance=True")
con.Open()
MsgBox("connection established")

End Sub

Private Sub Label8_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Label8.Click

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click

If RadioButton1.Checked Then
s = RadioButton1.Text
End If
42

If RadioButton2.Checked = True Then


s = RadioButton2.Text
End If

cmd = New SqlClient.SqlCommand("insert into employee1 values('" &


TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" &
TextBox4.Text & "','" & TextBox5.Text & "','" & TextBox6.Text & "','" & s &
"','" & TextBox7.Text & "','" & TextBox8.Text & "','" & TextBox9.Text &
"','" & TextBox10.Text & "','" & TextBox11.Text & "')", con)
cmd.ExecuteNonQuery()
MsgBox("RECORD SAVED")
TextBox1.Text = " "
TextBox2.Text = " "
TextBox3.Text = " "
TextBox4.Text = " "
TextBox5.Text = " "
TextBox6.Text = " "
s = " "
TextBox7.Text = " "
TextBox8.Text = " "
TextBox9.Text = " "
TextBox10.Text = " "
TextBox11.Text = " "

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs)

End Sub

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button4.Click

If RadioButton1.Checked Then
s = RadioButton1.Text
End If
If RadioButton2.Checked = True Then
s = RadioButton2.Text
End If

cmd = New SqlClient.SqlCommand("update employee1 set name='" &


TextBox2.Text & "',father_name='" & TextBox3.Text & "',address='" &
TextBox4.Text & "',dob='" & TextBox5.Text & "',education='" & TextBox8.Text
& "',joining_date='" & TextBox6.Text & "',age='" & TextBox7.Text & "' where
employee_id ='" & TextBox1.Text & "' ", con)
cmd.ExecuteNonQuery()
MsgBox("RECORD UPDATE")
43

TextBox1.Text = " "


TextBox2.Text = " "
TextBox3.Text = " "
TextBox4.Text = " "
TextBox5.Text = " "
TextBox6.Text = " "
s = " "
TextBox7.Text = " "
TextBox8.Text = " "
TextBox9.Text = " "
TextBox10.Text = " "
TextBox11.Text = " "

End Sub

Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button6.Click
Me.Hide()
Form2.Show()
End Sub

Private Sub TextBox4_TextChanged(ByVal sender As System.Object, ByVal e


As System.EventArgs) Handles TextBox4.TextChanged

End Sub

Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e


As System.EventArgs) Handles TextBox2.TextChanged

End Sub

Private Sub TextBox3_TextChanged(ByVal sender As System.Object, ByVal e


As System.EventArgs) Handles TextBox3.TextChanged

End Sub

Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e


As System.EventArgs) Handles TextBox1.TextChanged

End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button3.Click

cmd = New SqlClient.SqlCommand("select * from employee1 where


employee_id = '" & TextBox1.Text & "'", con)
dr = cmd.ExecuteReader()
44

dr.Read()
'TextBox1.Text = dr.Item("employee_id ")
TextBox2.Text = dr.Item("name")
TextBox3.Text = dr.Item("father_name")
TextBox4.Text = dr.Item("address")
TextBox5.Text = dr.Item("country")
TextBox6.Text = dr.Item("state")
TextBox7.Text = dr.Item("dob")
TextBox8.Text = dr.Item("emplyee_type")
TextBox9.Text = dr.Item("education")
TextBox10.Text = dr.Item("joining_date")
TextBox11.Text = dr.Item("age")

dr.Close()
MsgBox("record find")
End Sub

Private Sub GroupBox1_Enter(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles GroupBox1.Enter

End Sub

Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button5.Click
cmd = New SqlClient.SqlCommand("delete from employee1 where
employee_id= '" & TextBox1.Text & "'", con)
cmd.ExecuteNonQuery()
MsgBox("RECORD DELETE")
TextBox1.Text = " "
TextBox2.Text = " "
TextBox3.Text = " "
TextBox4.Text = " "
TextBox5.Text = " "
TextBox6.Text = " "
s = " "
TextBox7.Text = " "
TextBox8.Text = " "
TextBox9.Text = " "
TextBox10.Text = " "
TextBox11.Text = " "

End Sub
45

CHECK IN
Public Class Form6
Dim con As New SqlClient.SqlConnection
Dim cmd As New SqlClient.SqlCommand
Dim dr As SqlClient.SqlDataReader
Dim da As New SqlClient.SqlDataAdapter
Dim ds As New DataSet
Dim s As String

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button4.Click
Me.Hide()
Form2.Show()
End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button3.Click
If RadioButton1.Checked Then
s = RadioButton1.Text
End If
If RadioButton2.Checked = True Then
s = RadioButton2.Text
End If

cmd = New SqlClient.SqlCommand("update check_in1 set room_type='" &


TextBox2.Text & "',room_no='" & TextBox3.Text & "',rate='" & TextBox4.Text &
"',no_of_days='" & TextBox5.Text & "',no_of_adult='" & TextBox6.Text &
"',no_of_child='" & TextBox7.Text & "',name='" & TextBox8.Text & "',age='" &
TextBox9.Text & "',contact='" & TextBox10.Text & "',house_no='" &
TextBox11.Text & "',village='" & TextBox12.Text & "',district='" &
TextBox13.Text & "',state='" & TextBox14.Text & "',country='" &
TextBox15.Text & "' where customer_id ='" & TextBox1.Text & "' ", con)
cmd.ExecuteNonQuery()
MsgBox("RECORD UPDATE")
TextBox1.Text = " "
TextBox2.Text = " "
TextBox3.Text = " "
TextBox4.Text = " "
TextBox5.Text = " "
TextBox6.Text = " "
TextBox7.Text = " "
TextBox8.Text = " "
TextBox9.Text = " "
s = " "
46

TextBox10.Text = " "


TextBox11.Text = " "
TextBox12.Text = " "
TextBox13.Text = " "
TextBox14.Text = " "
TextBox15.Text = " "

End Sub

Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click
If RadioButton1.Checked Then
s = RadioButton1.Text
End If
If RadioButton2.Checked = True Then
s = RadioButton2.Text
End If

cmd = New SqlClient.SqlCommand("insert into check_in1 values('" &


TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" &
TextBox4.Text & "','" & DateTimePicker1.Value & "','" &
DateTimePicker2.Value & "','" & TextBox5.Text & "','" & TextBox6.Text &
"','" & TextBox7.Text & "','" & TextBox8.Text & "','" & TextBox9.Text &
"','" & s & "','" & TextBox10.Text & "','" & TextBox11.Text & "','" &
TextBox12.Text & "','" & TextBox13.Text & "','" & TextBox14.Text & "','" &
TextBox15.Text & "')", con)
cmd.ExecuteNonQuery()
MsgBox("RECORD SAVED")
TextBox1.Text = " "
TextBox2.Text = " "
TextBox3.Text = " "
TextBox4.Text = " "
TextBox5.Text = " "
TextBox6.Text = " "
TextBox7.Text = " "
TextBox8.Text = " "
TextBox9.Text = " "
s = " "
TextBox10.Text = " "
TextBox11.Text = " "
TextBox12.Text = " "
TextBox13.Text = " "
TextBox14.Text = " "
TextBox15.Text = " "

End Sub
47

Private Sub Form6_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load
con = New SqlClient.SqlConnection("Data Source=.\
SQLEXPRESS;AttachDbFilename=C:\Users\arif raza\Documents\
room_info.mdf;Integrated Security=True;Connect Timeout=30;User
Instance=True")
con.Open()
MsgBox("connection established")
End Sub

End Class
48

ROOM INFORMATION

Public Class Form4


Dim con As New SqlClient.SqlConnection
Dim cmd As New SqlClient.SqlCommand
Dim dr As SqlClient.SqlDataReader
Dim da As New SqlClient.SqlDataAdapter
Dim ds As New DataSet
Private Sub Form4_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
con = New SqlClient.SqlConnection("Data Source=.\
SQLEXPRESS;AttachDbFilename=C:\Users\arif raza\Documents\
room_info.mdf;Integrated Security=True;Connect Timeout=30;User
Instance=True")
con.Open()

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click
Me.Hide()
Form2.Show()
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button2.Click
cmd = New SqlClient.SqlCommand("insert into room_info values('" &
TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" &
TextBox4.Text & "')", con)
cmd.ExecuteNonQuery()
MsgBox("RECORD SAVED")
TextBox1.Text = " "
TextBox2.Text = " "
TextBox3.Text = " "
TextBox4.Text = " "
End Sub

Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e


As System.EventArgs) Handles TextBox1.TextChanged

End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button3.Click
cmd = New SqlClient.SqlCommand("select * from room_info where
room_no = '" & TextBox1.Text & "'", con)
49

dr = cmd.ExecuteReader()
dr.Read()
TextBox2.Text = dr.Item("room_type")
TextBox3.Text = dr.Item("status")
TextBox4.Text = dr.Item("rate")
dr.Close()
MsgBox("record find")

End Sub

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button4.Click
da = New SqlClient.SqlDataAdapter("select * from room_info", con)
da.Fill(ds, "room_info")
DataGridView1.DataSource = ds.Tables("room_info").DefaultView

End Sub

Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button5.Click

cmd = New SqlClient.SqlCommand("update room_info set room_type='" &


TextBox2.Text & "',status='" & TextBox3.Text & "',rate='" & TextBox4.Text &
"' ", con)
cmd.ExecuteNonQuery()
MsgBox("RECORD UPDATE")
TextBox1.Text = " "
TextBox2.Text = " "
TextBox3.Text = " "
TextBox4.Text = " "
End Sub

Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button6.Click
TextBox1.Text = " "
TextBox2.Text = " "
TextBox3.Text = " "
TextBox4.Text = " "

End Sub

Private Sub DataGridView1_CellContentClick(ByVal sender As


System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs)
Handles DataGridView1.CellContentClick

End Sub
End Class
50

CHECK OUT

Public Class Form3


Dim con As New SqlClient.SqlConnection
Dim cmd As New SqlClient.SqlCommand
Dim dr As SqlClient.SqlDataReader
Dim da As New SqlClient.SqlDataAdapter
Dim ds As New DataSet

Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load
con = New SqlClient.SqlConnection("Data Source=.\
SQLEXPRESS;AttachDbFilename=C:\Users\arif raza\Documents\
room_info.mdf;Integrated Security=True;Connect Timeout=30;User
Instance=True")

con.Open()
MsgBox("connection established")
End Sub

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button4.Click
Me.Hide()
Form2.Show()
End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs)

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button2.Click
cmd = New SqlClient.SqlCommand("insert into check_out values('" &
TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" &
TextBox4.Text & "','" & TextBox5.Text & "','" & DateTimePicker1.Value &
"','" & DateTimePicker2.Value & "','" & TextBox7.Text & "','" &
TextBox8.Text & "','" & TextBox9.Text & "')", con)
cmd.ExecuteNonQuery()
MsgBox("RECORD SAVED")
TextBox1.Text = " "
51

TextBox2.Text = " "


TextBox3.Text = " "
TextBox4.Text = " "
TextBox5.Text = " "
TextBox7.Text = " "
TextBox8.Text = " "
TextBox9.Text = " "

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click
Me.Hide()
Form7.Show()
End Sub

Private Sub TextBox3_TextChanged(ByVal sender As System.Object, ByVal e


As System.EventArgs) Handles TextBox3.TextChanged

End Sub

Private Sub Button3_Click_1(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button3.Click
cmd = New SqlClient.SqlCommand("select * from check_in1 where
customer_id = '" & TextBox1.Text & "'", con)
dr = cmd.ExecuteReader()
dr.Read()
TextBox2.Text = dr.Item("name")
TextBox3.Text = dr.Item("room_type")
TextBox4.Text = dr.Item("room_no")
TextBox5.Text = dr.Item("rate")
DateTimePicker1.Value = dr.Item("check_in_date")
DateTimePicker2.Value = dr.Item("check_out_date")
TextBox7.Text = dr.Item("no_of_days")
TextBox8.Text = dr.Item("no_of_adult")
TextBox9.Text = dr.Item("no_OF_child")
dr.Close()
MsgBox("record find")
End Sub
End Class
52

BILL
Public Class Form7
Dim con As New SqlClient.SqlConnection
Dim cmd As New SqlClient.SqlCommand
Dim dr As SqlClient.SqlDataReader
Dim da As New SqlClient.SqlDataAdapter
Dim ds As New DataSet
Dim s As String

Private Sub Label4_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs)

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click
Me.Hide()
Form2.Show()
End Sub

Private Sub Form7_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load
con = New SqlClient.SqlConnection("Data Source=.\
SQLEXPRESS;AttachDbFilename=C:\Users\arif raza\Documents\
room_info.mdf;Integrated Security=True;Connect Timeout=30;User
Instance=True")
con.Open()
MsgBox("connection established")
End Sub

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button4.Click
cmd = New SqlClient.SqlCommand("select * from check_in1 where
customer_id = '" & TextBox2.Text & "'", con)
dr = cmd.ExecuteReader()
dr.Read()
TextBox3.Text = dr.Item("name")
TextBox4.Text = dr.Item("room_type")
TextBox5.Text = dr.Item("room_no")
TextBox6.Text = dr.Item("rate")
DateTimePicker1.Value = dr.Item("check_in_date")
DateTimePicker2.Value = dr.Item("check_out_date")
TextBox7.Text = dr.Item("no_of_days")
TextBox8.Text = dr.Item("no_of_adult")
53

TextBox9.Text = dr.Item("no_OF_child")
dr.Close()
MsgBox("record find")
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button2.Click

cmd = New SqlClient.SqlCommand("insert into bill1 values('" &


TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" &
TextBox4.Text & "','" & TextBox5.Text & "','" & TextBox6.Text & "','" &
DateTimePicker1.Value & "','" & DateTimePicker2.Value & "','" &
DateTimePicker3.Value & "','" & TextBox7.Text & "','" & TextBox8.Text &
"','" & TextBox9.Text & "','" & TextBox10.Text & "','" & TextBox11.Text &
"','" & TextBox12.Text & "')", con)
cmd.ExecuteNonQuery()
TextBox10.Text = Val(TextBox6.Text) * Val(TextBox7.Text)
TextBox11.Text = Val(TextBox10.Text) * 10 / 100
TextBox12.Text = Val(TextBox10.Text) + Val(TextBox11.Text)

MsgBox("RECORD SAVED")
End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button3.Click
TextBox1.Text = " "
TextBox2.Text = " "
TextBox3.Text = " "
TextBox4.Text = " "
TextBox5.Text = " "
TextBox6.Text = " "
TextBox7.Text = " "
TextBox8.Text = " "
TextBox9.Text = " "
End Sub
End Class
54

CHECK IN DETAIL

Public Class Form9


Dim con As New SqlClient.SqlConnection
Dim cmd As New SqlClient.SqlCommand
Dim dr As SqlClient.SqlDataReader
Dim da As New SqlClient.SqlDataAdapter
Dim ds As New DataSet

Private Sub Form9_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load
con = New SqlClient.SqlConnection("Data Source=.\
SQLEXPRESS;AttachDbFilename=C:\Users\arif raza\Documents\
room_info.mdf;Integrated Security=True;Connect Timeout=30;User
Instance=True")
con.Open()
MsgBox("connection established")
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click
da = New SqlClient.SqlDataAdapter("select * from bill1", con)
da.Fill(ds, "bill1")
DataGridView1.DataSource = ds.Tables("bill1").DefaultView
End Sub
End Class
55

CHECK OUT DEATIL


Public Class Form5
Dim con As New SqlClient.SqlConnection
Dim cmd As New SqlClient.SqlCommand
Dim dr As SqlClient.SqlDataReader
Dim da As New SqlClient.SqlDataAdapter
Dim ds As New DataSet

Private Sub Form5_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load
con = New SqlClient.SqlConnection("Data Source=.\
SQLEXPRESS;AttachDbFilename=C:\Users\arif raza\Documents\
room_info.mdf;Integrated Security=True;Connect Timeout=30;User
Instance=True")
con.Open()
MsgBox("connection established")
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click
da = New SqlClient.SqlDataAdapter("select * from check_in1", con)
da.Fill(ds, "check_in1")
DataGridView1.DataSource = ds.Tables("check_in1").DefaultView
End Sub
End Class
56

Testing

Testing Techniques:-

The time dependent asynchronous nature of many real-time application adds anew and potential

difficult element of mix time. Not only does the test case designer have to consider white-box

testing black-box testing cases but also event handling (i.e. interrupt processing) the timing of the

data, and the parallelism of the tasks (process) that handle the data.

Comprehensive test case design methods for real-time system have yet to

evolve. However an overall four step strategy can be proposed:

 Task Testing

 Behavioral Testing

 Inter task Testing

 System Testing

Task Testing:-
The first step in the testing of real time software is to test each task

independently. That is white box testing and black box testing are designed and

executed for each task. Each task is executed independently during these tests.

Task testing uncovers error in logic and function but not timing or behavioral.
57

Behavioral Testing:-

Using system models created with CASE tools, it is possible to simulate the

behavioral of a real-time system and examine its behavioral as a consequence of

external events. These analysis activities can serve as the basic for the design of

test case that is conducted when the real time software has been built. Using a

technique that is similar to equivalent partitioning, events (e.g. interrupts,

control signals) are categorized for testing. For example, events for the

photocopier might be user interrupts (e.g. reset counter), mechanical interrupts

(e.g., paper jammed), system interrupts (e.g., toner low), and failure mode (e.g.,

roller overhead). Each of these events tested individually and the behavioral of

the executable system is examined to detect errors that occur as a consequence

of processing associated with these events. The behavior of system model and

as the executable software can be compared for performance.

Inter task Testing:


Once error an individual tasks and in the system behavior have been isolated.

Testing shifts to time-related errors. Asynchronous tasks that are known to

communicate with one another are tested with different data rates and

processing load to determine if Intertask synchronization errors will occur. Task

that communicate via a message queue or data store are tested to uncover errors

in the sizing of these data storage areas.


58

System Testing:-

Software and hardware are integrated and a full range of the system test are

conducted in an attempt to attempts to uncover error at the software / hardware

interface. Most real-time system process interrupts. The tester develops a list of

all possible interrupts and the processing that occurs as a consequence of the

interrupts. Tests are then designed to asses the following system characteristics:

 Are interrupts priorities properly assigned and properly handle?

 Is processing for each interrupts handled correctly?

 Does the performance of each interrupts-handling procedure conform to

requirements?

 Does a high volume of interrupts arriving at critical times create problem in

Function of performance?
59

1. White-Box Testing:-

It is also called glass box testing. It is a test case design method that uses the

control structure of the procedural design to derive test cases. In this all

statement in the program has been executed at least once during testing that all

logical conditions have been exercised. Using white box testing methods ,

software engineer can derive test cases that

 Guarantee that all independent paths within a module have been exercised at least once.

 Exercise all loops at their boundaries and within their operational bounds.

 Exercise all logical decision on their true and false sides.

 Exercise internal data structure to assure their validity.

Basic path testing, a white box technique, makes use of program graphs to drive

the set of linearly independent tests that will insure coverage. Conditional and

data flow testing further exercise program logic, and loop testing complements

other white box technique by providing a procedure for exercising loops of

varying degrees of complexity.


60

2. Black Box Testing:-


It focuses on the functional requirements of the software i.e. black box testing

enables the software engineer to derive sets of input condition that will fully

exercise all functional requirements for a program. Black box Testing is not

alternative to white box testing. Rather, it is a complementary approach that is

likely to uncover different class errors than white box testing.

. Black box Testing attempts to find errors in the following categories:-

I. Incorrect or missing function.

II. Interface error.

III. Errors in the data structure or external database.

IV. Performance error.

V. Initialization and termination errors.

The testing process which we have followed for our software is black box

testing. In this type of testing we test the software looking it as a black box

testing without considering the internal details. A required set of inputs are to

be supplied depending upon the software and we get our desired outputs.

In the testing phase of our software we have followed the approach where testing is done in step:-

First we have tested all the function individually by executing then with the

required inputs. If these functions are called by some other functions then it is

checked that the functions returning the correct value, then it is checked that

these objects are created in the desired format. We had to test the functions by

making changes in the code itself so that their returning value can be printed,
61

giving us the idea about their being correct. This is approach is time consuming

but the functionality of each and every function can be best tested using it. The

function is also tested for its syntax and if some syntactical errors was present

then it was also removed and the function was made correct this is called

testing.

Installation:-
To install the network management software on your computer network. Some follows the
instructions of step to step:-

 Insert the setup CD in CD-Drive of a computer and double click the setup.

 Install the software by setup.

 Follow the step to install the software.

Feasibility:-
Feasibility of project can project can be explained in two terms below:

Technical Feasibility:-
Our project is technically feasible, as we have taken visual basic as our front end.

Advantages of language are achieved as:-

 Good interface for user.

 Allow changes as when required.

 It is rapid action development tool, which makes processing fast.

 Coding make technical processing easy.

 VB is event driven which means use is in control of application.

 VB is infinitely extensible through the use of Active-X control.

Economical Feasibility:-
62

1. Before creation of this project all the database and function were managed

manually by persons but after creation there is a need of just a single operator

for complete management, which makes it economically feasible.

2. Our project is quite affordable in term of using of any level and provides
complete functionality as desired.

3. Project can be also being called feasible economically in terms of convenience.


As booking can be phone dialing.

Methodology Adopted
63

To solve the actual problem in an agency setting, software engineer or a team of

engineers must incorporate a development strategy encompasses the process

method and tool and generic phase. This strategy is often referred to as a

process model or a software engineering paradigm. A process model for

software engineering is chosen base on the nature of the project and application,

the methods and tools to used, and the controls and deliverables that are required.

All software development can be categorized as a problem solving loop in

which four distinct stages are encounters. Status quo “represents the current

states of affairs”; problem definition identifies the specific problem to be solve;

technical development solve the problem through the application of some

technology, and the solution integration delivers the result those who requested

the solution in the place.


Problem definition

Technical
Status
Developments
Quo

Solution
Integration
There is a verity of different process model for software engineering. Each

represents attempts to bring order to an inherently chaotic activity it is

important to remember that each of model of the models has been categories.

Linear sequential model:-


64

Some linear sequential some time called classic life cycle waterfall model. The

linear sequential model suggests a systemic sequential approach to software

development that begins system at the level and progresses through analysis,

design, coding, testing and support. Below figure illustrate the linear sequential

model for the software engineering the linear sequential model encompasses

following activities:-

 System / Information engineering and modeling :

Because a software is a part time of a large system, were beginning by

established requirement for all system element the allocating some subset of

these requirements to software. This system view essential when software must

interact with other element such as hardware, people and database. System

engineering and analysis encompasses requirements gathering at the system

level with a small amount of top level design analysis.

o Software requirement analysis :-


The requirements gathering process is intensified and focused specifically on

software. To understand the nature of program to be built, The software

engineer must understand the information domain for the software as well as

require function, behavior, performance, and interface.


65

 Design
Software design is actually multi step process that focuses on four distinct
attribute of program; datastructre, software architecture, interface representation

and procedural detail. The design process translates requirements into a

representation of the software that can be accessed for quality before coding

begins.

o Coding:

The design must be translate in to a machine-readable form. The code

generation step performs this task. If design is perform in a detailed manner,

code generation can accomplished mechanistically.

o Testing:-

Once code has been generated program testing being. The testing process

focuses on the logical internals of the software, ensuring that all statements

have been tested and on functional externals; that is conducting tests to uncover

error and ensure that the defined input will produce the actual results that agree

with required results.

o Supports :-

Software will under go change after it is delivered to the customer, change will

occur because error have been encountered, because the software must to

adopted to accommodate changes in its external environments. Because the

customer requirements functional and performance enhancements.


66

System / in

Analysis Design Coding Testing

Fig: linear sequential model


67

SECURITY OF THE SYSTEM:-

Computer is a versatile instruction with almost enormous capacity computation at

an unimaginable speed. The end user is concerned about security along with

increased dependence on the computer. In system development, the project

manager must consider measures for marinating data and controlling secret at

all time. This involves built in hardware feature, programs procedures to protect

candidate system from unauthorized access. The level of protection depends on

the sensitivity of the data, the reliability of the user, & the complexity of the

system. A well designed system includes control procedure to provide physical

protection (hardware security) and restrict system access (database security).


Application security:
In our project, going password an application security. In our project, if the user

type wrong password and user name then he/she cannot enter inside the project,

if the users want to users want to use or run the project then he/she must enter

the correct user name and password. If the user type three times wrong

password and click three times enter then our project will close and he/she not

enter any type.

Transaction Security:-
In this project, several kinds of transaction securities have been provided such as: -

A. We cannot enter the wrong value/data

B. We can change the login and password code if we know user name and password.

C. We can take modified/deleted records

Database security:-
The database security is most essential to avoid theft or leakage of confidential
68

data. A control must be kept over the issue of data file, so that possibilities of

destruction are minimized. Any person not open database. If he/she know

password then he/she open database.

The security arrangement should be provided by computer installation initially

at time it is being established rather then being added later on. Security is like

sheet belt it does not guarantee there will be not accident. However, when

accident does occur it may be found too much cheaper, it may records. The

system security problem can be divided into following related issues.

System security:-

Hardware security
Hardware security includes arrangement for detection of fire fighting

equipment, alternative arrangement to meet emergency requirement

alternatively and uninterrupted power arrangement and hardware insurance in

case of own hardware equipment.

Software security:-
Software security may need striker control on person an access to the

processing center, the data file storage and the programs file. A copy of all

program May be file stored away from the computer installation as a security

measure.
69

Limitation:-

We invested lots of time & effort to develop present system but still few short

coming are their. Reason might be lack of time or lack of expertise a VB.net.

Bike Agency very vast & to development it completely within a six months

course is almost impossible.

Our system is also having few limitations:-

 There is no automatically facility of saving to main database.

 Any from which will directly close may loss database information.

 There is no facility of trial balance and profit loss.

 There is no automatically edit the records.


70

CONCLUSION

This project is facilitating to its best to a particular “Hotel automation Information”.

I have tried my best to do each and every aspect of the “Hotel automation Information”.

I go to survey to the entire the hotel facility. This was a great activity which was performed

by me my project provides me really a grate thing which I have achieve in my study period.
71

BIBLIOGRAPHY
Visual Basic .net JEFFREY R.SHAPISO

VB.net Black Book Steven holzner

Introduction to VB.net Robert j. oberge

Application Development Robert j. oberge


Using VB.vet

College notes

You might also like