Vous êtes sur la page 1sur 50

HOTEL MANAGEMENT SYSTEM

Submitted in partial fulfillment of the requirements for the award of the

Degree of Bachelor of Computer

Application

Submitted By: Tontang Jonathan Maring Course BCA-6sem Registration No: 520842693
Study Center Sikkim Manipal University, Shillong Meghalaya L.C: 02791

INTERNAL EXAMINER EXTERNAL EXAMINER

SELF CERTIFICATE
I do hereby declare that the Project Work Report entitled HOTEL MANEGEMENT SYSTEM is done by me in an authentic work carried out in partial fulfillment of the requirement for the award of the degree of Bachelor of Computer Application (BCA) under the Study Center, Sikkim Manipal University, Shillong.

I also declare that the matter embodied in this project work has not been submitted for the award of any degree or diploma to the best of my knowledge and belief.

Name: Tontang Janathan Maring Roll No: 510929986 Sikkim Manipal University, Shillong, L.C: 02791

ACKNOWLEDGEMENT
As developing a project was not an easy task, lots of planning, designing, coding, programming, debugging, testing, etc. carried out consistently, stretching over a long period of time then only come into existence. No project is created entirely by an individual, so developing this project for me was absolutely was not possible for me without encouragement, support from various persons in this effort, thats keeps me inspiring and hardworking throughout the period. First off, I would like to thank to Almighty God for enabling me to complete my project work. And also, my teacher Sir, Morwin and Sir Dekie for being an amazing teacher who teaches me with love and dedication. my love and special thanks to my dad, mom, my trainer and my siblings for being very co-operative and lovable till the end of my project. I would like to thanks Sir. Gagan Jain Director of Sikkim Manipal University, Shillong, where I have been allowed to pursue my graduation and all other faculty of Sikkim Manipal University, Shillong. I would also like to thanks my colleague friends for their priceless help and support and their excellent inspirations, moral support and all the peoples and friends who directly and indirectly helped in caring out the project successfully. So I would like to thanks them all with full regards for being so nice toward me when I need their help. I would not have been able to measure the full aspects of this project entitled HOTEL MANEGEMENT SYSTEM without the corporation that has been covered to me by various people. I shall always remember them for their gratitude..

CONTENTS
Project Title University Study Center Certificate Declaration (Self Certificate) Acknowledgement Introduction :

Problem Definition

Different Phases and Theory Industrial profile/ project profile Objectives

Analysis : Software :-

System Analysis

System Analysis Feasibility

Equipment Evaluations Data Flow Diagram Design System Design Database Design Coding and Design Design Methodology Conclusion Bibliography

PROBLEM DEFINITION:
The problem definition is to create the Hotel Management System for maintaining a database of the hotel containing customer details, hotel status, users and securing the database.

DESCRIPTION OF THE PROJECT:

EXISTING AND PROPOSED SYSTEM: The existing system is


wholly based on the manual system. The method of manual entry of hotel record in a register makes the hotel vulnerable to wastage of time, human resources and incorrect entry. The proposed system is a humble approach to overcome the problems and loopholes of the manual system. The new system will be a computerized system, which will help the hotel management with all the complex information gathering and management activities as well as simple day-to-day activities

OBJECTIVES:

This database structure is designed to handle all primary information that required calculating weekly, monthly and yearly statements.

The introduction of this project intends more user friendliness in the various activities such as record updating, maintenance and searching.

In the database or files the entire information cannot be retrieved by whomever who wants, only the authorization user can retrieve the important information which can be easily accessible from the files.

Large volumes of data (i.e. large database support) should be able to handle extremely by the system. System should support multi user environment. It should be fully automated. It should also provide the concrete security features like assigning privileges to users of the system

ARCHITECTURE: This is a two-tier Architecture where the user interface contains the GUI interface.

MODULES: Administrative login module Check in: Room no. Arrival date and time Reservation no. Check in no. Check out:

Check in date

Days stayed Room fees

Other charges Total fees Checkout date New Room entry Room no Type of room Rent of room Feature Room Detail Room no Type of room Rent of room Feature Room Status Extra person Employee Record Employee name Employee ID Contact.no Blood Group HARDWARE REQUIREMENT: Processor RAM Intel Pentium or higher 512 GB RAM

Hard Disk

120 GB

SOFTWARE REQUIREMENT: OS Front End Back End Windows 7 or higher Visual Basic.NET Microsoft SQL Server 2005

Project Profile
Project Done at: Sikkim Manipal University, Shillong center, Shillong.

Project Title: Hotel management System Front End: Microsoft Visual Studio .Net 2008 Back End: MS SQL SERVER 2005 Documentation: Microsoft Word, WordPad Institutional Guide:

Project planning and Scheduling


Project planning:
>Goal is to establish a pragmatic strategy for controlling, tracking, and monitoring a complex technical project > Must deal with: > Project complexity: has a strong effect but is heavily influenced by past practitioner experience > Project size: as size increases the interdependency of elements also grows. Watch out for scope creep (when customers change requirements mid-cycle) >The degree of structural uncertainty: the degree to which requirements are solidified and the ease of functional decomposition >The purpose of project planning is to ensure that the end result is completed on time, within budget, and exhibits quality.

Scheduling:
The Schedule connects the scope, work estimates and deadline into a network of SE tasks

> Must Manage: >Parallelism (tasks can be undertaken simultaneously) >Dependency (task has an effect on subsequent tasks) > Bad Scheduling is a very destructive influence > 90-90 Rule: First 90% of a project is complete in 90% of the scheduled time. The other 10% is also completed in 90% of the time >Program Evaluation and Review Technique (PERT) AKA Critical Path Method (CPM) is a project scheduling method that determines: >Critical Path (the chain of tasks that determine the duration of the project) > Earliest Time that a task can begin if all preceding tasks are completed in the shortest possible time >Latest Time for task initiation that will not delay the project > Latest and Earliest Finish for the overall project >Total Float (the maximum slippage without overall delay)

Analysis of the Project


Analysis is the heart of the project, it is the key component of the first two phase of the cycle, in the first phase we focused on the problem definition and initial investigation, where analysis helps in determining potential solutions. The outcome is system specifications that initiate system design. The analysis part has to be done carefully because specifications are difficult to maintain or modify. Analysis begins by collecting all the information from the application which could be used to develop the requirement of the system. After we analyzed the collected information to obtain a clear and thorough understanding of the system, we proceed to identify and resolve the various requirement problems. The most important requirements problem that we have to identify and eliminate.

Feasibility study:
Feasibility Study as the name suggests feasibility which means the project which we are going to develop is feasible (can be possible to develop or not). Feasibility study involves various terms like gathering information, proposes and evaluates alternatives for computerization and priorities and conclusions. Feasibility study involves 3 stages of study which are as follows:1) Technical Feasibility 2) Operational Feasibility 3) Economic Feasibility

Technical Feasibility:

Technological feasibility is carried out to determine whether the company has the capability, in terms of software, hardware, personnel and expertise, to handle the completion of the project when writing a feasibility report. This project is technically feasible, the language it has chosen technically support all the features so that the system can run accordingly, the following should be taken into consideration:

A brief description of the business. The part of the business being examined. The human and economic factor. The possible solutions to the problems.

Operational feasibility:
The purpose of the system is to computerized the manual system. The idea is to ease activities, data entry, Information retrieval, updating records from various tables and generation of various reports so that the user can view at any time with entering correct name and

password .To do this it is necessary to consult the system user if the propose solution satisfies their objectives and be fitted into current system operation.

Economic feasibility:
Economic analysis is the most frequently used method for evaluating the effectiveness of a new system. More commonly known as cost/ benefit analysis, the procedure is to determine the benefits and savings that are expected from a candidate system and compare them with costs. If benefits outweigh costs, then the decision is made to design and implement the system. An entrepreneur must accurately weigh the cost versus benefits before taking an action.

Cost-based study: It is important to identify cost and

benefit factors, which can be categorized as follows: 1. Development costs; and 2. Operating costs. This is an analysis of the costs to be incurred in the system and the benefits derivable out of the system.

Time-based study: This is an analysis of the time


required to achieve a return on investments. The future value of a project is also a factor. As far the economic feasibility is concern, this project is economic feasible because neither it requires a costly hardware nor it requires a costly software support. In above the three stages of 3 stages of feasibility study, the phase of operational feasibility is very important because it is the phase which will decide that the operations which are specified by the user and fulfilled or not, If the project not according to its operational works then, there is no use that software project. Whereas the other phases also matter because economic phase involves the amount of money which is going to be invested on the project, which should lie in the balance or profit state?

Equipment Evaluation
VB.NET:- In this Application VB.NET is the frontend and MYSQL is backend
The .NET Framework is a software framework for Microsoft Windows

operating systems. It includes a large library, and it supports several programming languages which allow language interoperability (each language can use code written in other languages).
The .NET library is available to all the programming languages that

.NET supports. The framework's Base Class Library provides user interface, data access, database connectivity, cryptography, web application development, numeric algorithms, and network communications.
The class library is used by programmers, who combine it with their

own code to produce applications.


Programs written for the .NET Framework execute in a software

environment, known as the Common Language Runtime (CLR). The CLR is an application virtual machine so that programmers need not consider the capabilities of the specific CPU that will execute the program.
The CLR also provides other important services such as security,

memory management, and exception handling. The class library and the CLR together constitute the .NET Framework.

SQL Server: SQL Server is a relational database management system (RDBMS) from Microsoft that's designed for the enterprise environment. SQL Server runs on T-SQL (Transact -SQL), a set of programming extensions from Sybase and Microsoft that add several features to standard SQL, including transaction control, exception and error handling, row processing, and declared variables. The original SQL Server code was developed by Sybase; in the late 1980s, Microsoft, Sybase and AshtonTate collaborated to produce the first version of the product, SQL Server 4.2 for OS/2. Subsequently, both Sybase and Microsoft offered SQL Server products. Sybase has since renamed their product Adaptive Server Enterprise. What is SQL?

SQL stands for Structured Query Language SQL lets you access and manipulate databases SQL is an ANSI (American National Standards Institute) standard

What Can SQL do?


SQL can SQL can SQL can SQL can SQL can SQL can SQL can SQL can SQL can SQL can views

execute queries against a database retrieve data from a database insert records in a database update records in a database delete records from a database create new databases create new tables in a database create stored procedures in a database create views in a database set permissions on tables, procedures, and

Advantages of SQL Server: When coding an application, the decision to use a SQL server is a requirement for dynamic content. Microsoft SQL Server is a database application that can be used by large or small businesses. It can also be used by the individual for online applications. There are several advantages of using SQL Server over inline SQL commands. Using a SQL Server requires a learning curve, but its overall advantages make it worth the time for implementation. Stored Procedures The one main advantage of using SQL Server is the use of stored procedures. Stored procedures are lines of code that are called by the application. They are placed on the server, and they are pre-compiled for quicker response times. Stored procedures require the knowledge of SQL Server syntax, which is called T-SQL (transaction SQL). The use of stored procedures also centralizes code, so troubleshooting bad database requests can be observed by a database administrator. Scalability The term scalability is used to describe the ability to grow when the business becomes bigger. When businesses grow quickly, a small database application like Access can be a bottleneck for a website or desktop software. Microsoft SQL Server is quick for large and small businesses, so as the business grows, the SQL Server can handle the new volume of database requests. SQL Server can handle millions of records and transactions. Security Security is a major issue for any site. SQL Server allows the administrator to grant access or deny access for users. The SQL Server has a specific section of the application where users are added to the permissions. SQL Server allows administrators to specify which tables and stored procedures users are able to access and query. This limits what records and user information can be queried, which protects the business's customer information.

The above mention front end Vb.Net and database MS SQL Server is used in my project title Database software for A.S.U.S because it is easy to handle and more reliable to use which makes my project better.

Risk analysis

Risk analysis is the science of risks and their probability and evaluation. > Definition of Software Risk: > Concerns future happenings. What risks might cause the project to go astray? > Involves change. How will changes in customer requirements, development technologies, target computers, and other entities affect timeliness and success? > Requires choice. What methods and tools should be used, how many people should be involved to reduce risk? Risk Analysis Questions: > What can go wrong? >What is the likelihood? > What will the damage be? > What can we do about it?

Risk (3xM) Mitigation, Monitoring, and Management: >Mitigation how can we avoid the risk? > Monitoring what factors can we track that will enable us to determine if the risk is becoming more or less likely? > Management what contingency plans do we have if the risk occurs?

Data Flow Diagram:


A data-flow diagram (DFD) is a graphical representation of the system which provides an overview of what data a system would process, what information of data are done, what file are used and where the results flow. DFDs are an important technique for modeling a systems high-level detail by showing how input data is transformed to output results through a sequence of functional transformations. DFDs consist of four components. They are Entities, Processes, Data stores, and Data flows.

The symbols uses in DFD are given below:

Symbol

Meaning

Represent entity set.

Represent the data stores

Represent process

Represent the data flow

E-R DIAGRAM
ER Diagram is called as entity-relationship model, a graphical representation of entities and their relationships to each other, typically used in computing in regard to the organization of data within databases or information systems. An entity is a piece of data-an object or concept about which data is stored. A relationship is how the data is shared between entities.

There are four types of relationships between entities:

One-to-one: one instance of an entity (A) is associated with one other instance of
another entity (B). For example, in a database of employees, each employee name (A) is associated with only one social security number (B).

One-to-many: one instance of an entity (A) is associated with zero, one or many
instances of another entity (B), but for one instance of entity B there is only one instance of entity A. For example, for a company with all employees working in one building, the building name (A) is associated with many different employees (B), but those employees all share the same singular association with entity A.

Many-to-many: one instance of an entity (A) is associated with one, zero or many
instances of another entity (B), and one instance of entity B is associated with one, zero or many instances of entity A. For example, for a company in which all of its employees work on multiple projects, each instance of an employee (A) is

associated with many instances of a project (B), and at the same time, each instance of a project (B) has multiple employees (A) associated with it.

Many-to-one: Many to one relationship is the reverse of one to many relationship.


For ex: relationship of subjects to the course.

The symbols of E-R diagram are as follows:

Symbol

Meaning Entity set.

Week Entity Set

Relationship set

Week Relationship set

Attributes

Multi-value Attributes

Key Attributes

Cardinality

Links attribute to entity sets and entity sets to relationship sets.

CODING

&

DESIGN

Implementation

Sample run of the application with their coding:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Module1.xyz() sqlcon.Open() sqlcom = New SqlCommand("select * from logintb", sqlcon) sqldr = sqlcom.ExecuteReader() While sqldr.Read() If TextBox1.Text = sqldr(0).ToString() And TextBox2.Text = sqldr(1).ToString() Then Me.Hide() MDIform.Show() Else MsgBox("Invalid user", MsgBoxStyle.Critical) End If End While sqldr.Close() sqlcon.Close()

Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click roomdetails.Show() End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Module1.xyz() sqlcon.Open() sqlcom = New SqlCommand("insert into customercheckindetail (customerid,customername,proposeofvisit,dateofarrival,roomno,fea tureofroom,roomstatus,rent,extrabed,timeofarrival,durationofstay ,timeofcheckout,dateofdeparture,typeofroom,permanentadd,contactn o,extraperson) values ('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" & DateTimePicker1.Text & "','" & ComboBox1.Text & "','" & ComboBox2.Text & "','" & ComboBox3.Text & "','" & ComboBox4.Text & "','" & TextBox4.Text & "','" & DateTimePicker2.Text & "','" & ComboBox5.Text & "','" & DateTimePicker3.Text & "','" &

DateTimePicker4.Text & "','" & ComboBox6.Text & "','" & RichTextBox1.Text & "','" & TextBox5.Text & "','" & ComboBox7.Text & "')", sqlcon) sqldr = sqlcom.ExecuteReader() MsgBox("Record Saved", MsgBoxStyle.Information) sqldr.Close() sqlcon.Close() End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Module1.xyz() sqlcon.Open() sqlcom = New SqlCommand("select * from customercheckindetail where customerid='" & TextBox1.Text & "'", sqlcon) sqldr = sqlcom.ExecuteReader() While sqldr.Read() TextBox2.Text = sqldr(1).ToString() TextBox3.Text = sqldr(2).ToString() DateTimePicker1.Text = sqldr(3).ToString() ComboBox1.Text = sqldr(4).ToString ComboBox2.Text = sqldr(5).ToString ComboBox3.Text = sqldr(6).ToString ComboBox4.Text = sqldr(7).ToString TextBox4.Text = sqldr(8).ToString 'DateTimePicker2.Text = sqldr(9).ToString ComboBox5.Text = sqldr(10).ToString DateTimePicker3.Text = sqldr(11).ToString DateTimePicker4.Text = sqldr(12).ToString ComboBox6.Text = sqldr(13).ToString RichTextBox1.Text = sqldr(14).ToString TextBox5.Text = sqldr(15).ToString ComboBox7.Text = sqldr(16).ToString End While sqldr.Close() sqlcon.Close()

mports System.Data.SqlClient Public Class customer_chck_out_detail Dim c As Integer Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) End Sub Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Module1.xyz() sqlcon.Open() sqlcom = New SqlCommand("delete from customerchckoutdetail where customerid ='" & TextBox1.Text & "'", sqlcon) sqldr = sqlcom.ExecuteReader() MsgBox("Record deleted", MsgBoxStyle.Information) sqldr.Close() sqlcon.Close() End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click c = 0 If TextBox1.Text = "" Then MsgBox("please enter the customer ID") Else Try

Module1.xyz() sqlcon.Open() sqlcom = New SqlCommand("select * from customercheckindetail where customerid = '" & TextBox1.Text & "' ", sqlcon) sqldr = sqlcom.ExecuteReader() While sqldr.Read c = 1 TextBox1.Text = sqldr(0).ToString TextBox3.Text = sqldr(10).ToString TextBox2.Text = sqldr(1).ToString ComboBox3.Text = sqldr(4).ToString ComboBox4.Text = sqldr(13).ToString

End While If c = 0 Then MsgBox("employeeid does not exist", MsgBoxStyle.Information) End If Catch ex As Exception Finally sqldr.Close() sqlcon.Close() End Try End If End Sub Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click Me.Hide() MDIform.Show() End Sub Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click Module1.xyz() sqlcon.Open() sqlcom = New SqlCommand("insert into customerchckoutdetail (customerid,dateofarrival,durationofstay,dateofdeparture,custome rname,roomno,typeofroom,advancepaid,totalamount,perdaynight) values ('" & TextBox1.Text & "','" & DateTimePicker1.Text & "','" & TextBox3.Text & "','" & DateTimePicker2.Text & "','" & TextBox2.Text & "','" & ComboBox3.Text & "','" & ComboBox4.Text & "','" & ComboBox5.Text & "','" & TextBox5.Text & "','" & TextBox6.Text & "')", sqlcon) sqldr = sqlcom.ExecuteReader()

MsgBox("Record delet", MsgBoxStyle.Information) sqldr.Close() sqlcom = New SqlCommand("delete from customercheckindetail where customerid ='" & TextBox1.Text & "'", sqlcon) sqldr = sqlcom.ExecuteReader() MsgBox("Record delet", MsgBoxStyle.Information) sqldr.Close() sqlcon.Close() End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click TextBox5.Text = (Convert.ToInt32(TextBox3.Text.ToString) * Convert.ToInt32(TextBox6.Text)).ToString End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Module1.xyz() sqlcon.Open() sqlcom = New SqlCommand("insert into customerchckoutdetail (customerid,dateofarrival,durationofstay,dateofdeparture,custome rname,roomno,typeofroom,advancepaid,totalamount,perdaynight) values ('" & TextBox1.Text & "','" & DateTimePicker1.Text & "','" & TextBox3.Text & "','" & DateTimePicker2.Text & "','" & TextBox2.Text & "','" & ComboBox3.Text & "','" & ComboBox4.Text & "','" & ComboBox5.Text & "','" & TextBox5.Text & "','" & TextBox6.Text & "')", sqlcon) sqldr = sqlcom.ExecuteReader() MsgBox("Record Add", MsgBoxStyle.Information) sqldr.Close() sqlcon.Close() End Sub End Class

Imports System.Data.SqlClient Public Class new_room_entry Private Sub new_room_entry_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Module1.xyz() sqlcon.Open() sqlcom = New SqlCommand("delete from newroomentrytb where typeofroom ='" & ComboBox2.Text & "'", sqlcon) sqldr = sqlcom.ExecuteReader() MsgBox("Record deleted", MsgBoxStyle.Information) sqldr.Close() sqlcon.Close() End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Module1.xyz() sqlcon.Open() sqlcom = New SqlCommand("insert into newroomentrytb (roomno,typeofroom,rentofroom,feature) values ('" & ComboBox1.Text & "','" & ComboBox2.Text & "','" & ComboBox3.Text & "','" & TextBox1.Text & "')", sqlcon) sqldr = sqlcom.ExecuteReader() MsgBox("Record Saved", MsgBoxStyle.Information)

sqldr.Close() sqlcon.Close() End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Module1.xyz() sqlcon.Open() sqlcom = New SqlCommand("insert into newroomentrytb (roomno,typeofroom,rentofroom,feature)values ('" & ComboBox1.Text & "','" & ComboBox2.Text & "','" & ComboBox3.Text & "','" & TextBox1.Text & "')", sqlcon) sqldr = sqlcom.ExecuteReader() MsgBox("Record Saved", MsgBoxStyle.Information) sqldr.Close() sqlcon.Close() End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click roomdetails.Show() End Sub End Class

Imports System.Data.SqlClient Public Class roomdetails Dim c As Integer Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click C = 0 Try Module1.xyz() sqlcon.Open() sqlcom = New SqlCommand("select * from roomdetails where roomno = '" & TextBox1.Text & "' ", sqlcon) sqldr = sqlcom.ExecuteReader() While sqldr.Read c = 1 TextBox1.Text = sqldr(0).ToString ComboBox1.Text = sqldr(1).ToString TextBox2.Text = sqldr(2).ToString ComboBox2.Text = sqldr(3).ToString ComboBox3.Text = sqldr(4).ToString ComboBox4.Text = sqldr(5).ToString

RichTextBox1.Text = sqldr(6).ToString End While If C = 0 Then MsgBox("roomno does not exist", MsgBoxStyle.Information) End If Catch ex As Exception Finally sqldr.Close() sqlcon.Close() End Try End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Module1.xyz() sqlcon.Open() sqlcom = New SqlCommand("insert into roomdetails (roomno,typeofroom,rentofroom,extraperson,extrabed,roomstatus,fe ature) values ('" & TextBox1.Text & "','" & ComboBox1.Text & "','" & TextBox2.Text & "','" & ComboBox2.Text & "','" & ComboBox3.Text & "','" & ComboBox4.Text & "','" & RichTextBox1.Text & "')", sqlcon) sqldr = sqlcom.ExecuteReader() MsgBox("Record Saved", MsgBoxStyle.Information) sqldr.Close() sqlcon.Close() End Sub End Class

Imports System.Data.SqlClient Public Class Employee_record Dim c As Integer Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Module1.xyz() sqlcon.Open() sqlcom = New SqlCommand("insert into employeedt (employeename,employeeid,address,contactno,bloodgroup,sex,dob,na tionality,category,fathername) values ('" & TextBox1.Text & "','" & TextBox2.Text & "','" & RichTextBox1.Text & "','" & TextBox3.Text & "','" & ComboBox1.Text & "','" & ComboBox2.Text & "','" & DateTimePicker1.Text & "','" & TextBox4.Text & "','" & ComboBox3.Text & "','" & TextBox5.Text & "')", sqlcon) sqldr = sqlcom.ExecuteReader() MsgBox("Record Saved", MsgBoxStyle.Information)

sqldr.Close() sqlcon.Close() End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Module1.xyz() sqlcon.Open() sqlcom = New SqlCommand("delete from employeedt where employeeid ='" & TextBox2.Text & "'", sqlcon) sqldr = sqlcom.ExecuteReader() MsgBox("Record deleted", MsgBoxStyle.Information) sqldr.Close() sqlcon.Close() End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Module1.xyz() sqlcon.Open() sqlcom = New SqlCommand("update employeedt set employeename ='" & TextBox1.Text & "',employeeid ='" & TextBox2.Text & "',address ='" & RichTextBox1.Text & "',contactno ='" & TextBox3.Text & "',bloodgroup ='" & ComboBox1.Text & "',sex ='" & ComboBox2.Text & "',dob ='" & DateTimePicker1.Text & "',nationality ='" & TextBox4.Text & "',category ='" & ComboBox3.Text & "',fathername ='" & TextBox5.Text & "' where employeeid ='" & TextBox2.Text & "'", sqlcon) sqldr = sqlcom.ExecuteReader() MsgBox("Record updated", MsgBoxStyle.Information) sqldr.Close() sqlcon.Close() End Sub Private Sub GroupBox1_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GroupBox1.Enter End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click c = 0 Try Module1.xyz() sqlcon.Open() sqlcom = New SqlCommand("select * from employeedt where employeeid = '" & TextBox2.Text & "' ", sqlcon) sqldr = sqlcom.ExecuteReader() While sqldr.Read

c = 1 TextBox1.Text = sqldr(0).ToString TextBox2.Text = sqldr(1).ToString RichTextBox1.Text = sqldr(2).ToString TextBox3.Text = sqldr(3).ToString ComboBox1.Text = sqldr(4).ToString ComboBox2.Text = sqldr(5).ToString DateTimePicker1.Text = sqldr(6).ToString ComboBox3.Text = sqldr(7).ToString TextBox4.Text = sqldr(8).ToString TextBox5.Text = sqldr(9).ToString End While If c = 0 Then MsgBox("employeeid does not exist", MsgBoxStyle.Information) End If Catch ex As Exception Finally sqldr.Close() sqlcon.Close() End Try End Sub Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) TextBox2.Text = "" End Sub End Class

Imports System.Data.SqlClient Public Class searchemployee Dim sqlda As SqlDataAdapter Dim sqldt As DataTable Dim sqlds As DataSet Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Module1.xyz() sqlcon.Open() sqlda = New SqlDataAdapter("select * from employeedt", sqlcon) sqlds = New DataSet sqlda.Fill(sqlds, "employeedt") sqldt = sqlds.Tables(0) DataGridView1.DataSource = sqldt sqlcon.Close() End Sub End Class

Imports System.Data.SqlClient Public Class forgetpassword Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Module1.xyz() sqlcon.Open() sqlcom = New SqlCommand("select * from logintb", sqlcon) sqldr = sqlcom.ExecuteReader() While sqldr.Read() If ComboBox1.Text = sqldr(2).ToString() And TextBox1.Text = sqldr(3).ToString() Then TextBox2.Text = sqldr(1).ToString() TextBox3.Text = sqldr(0).ToString() Else MsgBox("Security Question or Answer not correct", MsgBoxStyle.Critical) End If

End While sqldr.Close() sqlcon.Close() End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.Hide() Form1.Show() End Sub Private Sub forgetpassword_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub End Class

It is the method of transform the art of system Analysis and design into Engineering Type discipline. I fundamentally does the following thing : i. Improve productivity of analyst and Programmer. ii. Improve documentation and subsequent maintenance and enhancement. iii. Cut down drastically on cost over-run and delays . iv. Improve communication among the User and the Designer. v. Simplified design by segmentation.

Design methodology

System Testing

No programmer can write program perfactly in one attempt. Similarly design is in all sense in first attem. Errors in the new design depend upon factors, such as : a) Poor communication between User and Analyst b) Limited time provided for design process c) Programmer/analyst is not capable of doing the job, etc. During system testing, the system is used experimentally to ensure that the software does not fail i.e. , it will run according to its specifications and in the way users expect. A limited number of users may be allowed to use the system so analyst can see whether they use in unforeseen.

System Testing and Debugging


NO program or system is perfect, communication between the user and the designer is not always complete or clear, and time is usually short. The result is errors and more errors. The number and nature of errors in a new design depends on several factors. a) Communication between the user and the designer b) The programmers ability to generate a code that reflects exactly the system specifications c) The time frame for the design

*Basic terminology:
a) Unit testing is testing changes made in an existing or a new program. b) Positive Testing make sure that the new program do infect process certain transaction according to specification. c) Sequential testing is checking the logic of one or more programs in the candidate system. d) Acceptance testing runs the program with live data by actual user.

*Error Fault:
Based on the project report there are many error faults, but it has tackled carefully so that there will be an error-free while executing the project by end users. The errors which are frequently encountered are as follows: a) Database linking b) Updating of data c) Creating reports d) Search engine problems e) Inability for multi (networking system)

Software Engineering Paradigm (project Development life cycle)

The process model or software engineering paradigm applied is the Linear Sequential Model or Waterfall Model. This paradigm was selected because the application area and the requirements are relatively well understood. The design phase does not suffer from as much uncertainty because the current design of the system and its limitations are known. It is therefore less likely that the requirements and design phase will have to be repeated, resulting in a linear development cycle exemplified by the waterfall model. The phases in Software Development were organized in a linear order.

Requirements analysis and specification:


The project began with feasibility analysis. On successfully demonstrating the feasibility of the project, the requirement analysis and project planning began. It was undertaken to define the precise costs and benefits of the proposed software system. In this phase exact requirement of the candidate system was identified and documented.

Design & Specification:


The design started after the requirement analysis was completed. This was done in sub-phases: architectural or high level design or system design and detailed design.

Coding and module testing:


Coding began after the design was completed individual modules developed in this phase were tested before being delivered to the next phase.

Integration and system testing:


Once the programming was completed, the code was integrated and testing was done for the whole system.

Delivery and Maintenance:


After the project is completed with every analysis and test, it is also important for the user who is using the software to know to maintain it.

Life cycle of the Project


A software development process, also known as a software development life cycle (SDLC), is a structure imposed on the development of a software product. Similar terms include software life cycle and software process. It is often considered a subset of systems development life cycle. There are several models for such processes, each describing approaches to a variety of tasks or activities that take place during the process. Some people consider a lifecycle model a more general term and a software development process a more specific term. For example, there are many specific software development processes that 'fit' the spiral lifecycle model. ISO 12207 is an ISO standard for software lifecycle processes. It aims to be the standard that defines all the tasks required for developing and maintaining software.

Software development activities

*Reliability:
This system is highly for many reasons such as: 1) User friendly 2) Portability 3) Simple and yet effective 4) No hardware outages 5) Bug-free software.

System Security:
Security of data in computer is very important. Security of data involves in two main factors: a) Policy to maintain data security b) Technique to implement protection of data

Maintenance
Maintenance is performed most often to improve the existing software rather than to respond to a crisis or system failure. As user requirements change, software and documentation should be changed as part of the maintenance work. Maintenance is also done to update software in response to the change made in an organization. This work is not as substantial as enhancing the software, but it must be done. The system could fail if the system is not properly maintained.

Limitation of the project

Even though the project is running smoothly and datas are being manipulated in the application software. However, there are some limitations that were put into practice. The detailed view and information about the Hotel is not up to the expectation. Information about the courses and content of the project are available but it is not up to my expectation since Im not able to get the detailed information of the particular topic.

Conclusion
With the book of Information Technology, it has been become an uphill task for the Hotel Management System to computerize its whole system. Using this project will partly eliminate excessive use of manpower but will enhance accuracy and flexibility. As always every first attempt at anything is bound to have limitations, this project too is no exception. The project developed does provide a possibility of multi-users and also it covers only a particular selection i.e. about the maintenance of hotel admission from and guests and employees details for particular information, hotel status and so on. In future, efforts may be made to tackle the problems will also allow the system to adapt into a network system environment. This

project has an aspect of flexibility and has the possibility ways and the scopes for more extra facilities that can be incorporated to more advance and standardization such as separates guests detail and users account and other considering to the hotel management system only. Here we are the Hotel Management System, would be successful project for the hotel management. Hope it helps the hotel management in running the hotel in a better way for many days to come.

TABLES
The database tables that are used to develop the system are given below:

1. Table name: Login table

2. Table name : Check in of hotel management

2. Table name: Check out of hotel management

3. New Room entry for hotel management

4. Room Detail for hotel management

5. Employee Record for hotel management

Bibliography
1. Application Development Using Microsoft Visual Studio .Net 2006 (By Robert J. Oberg, Peter Thorsteinsion, Dana L. Wyatt 2. System Analysis and Design (By Elias M. Awad) 3. Fundamentals of information technology

(By Alexis Leon & Matthews Leon) 4. Modern system Analysis & Design (By A Hoffer, F George)

Vous aimerez peut-être aussi