Академический Документы
Профессиональный Документы
Культура Документы
SOFTWARE REQUIREMENT :
Windows 9X/2000/NT Based System.
Microsoft access 97 or higher version
Creating an application:
There are three main steps for creating an application in Visual Basic:
2. Set properties.
3. Write Code.
Forms are objects that expose properties which define their appearance, methods
which define their behavior, and events which define their interaction with the user. By
setting the properties of the form and writing Visual Basic code to respond to its events,
one customizes the object to meet the requirements of the application.
Controls are objects that are contained within form objects. Each type of control
has its own set of properties, methods and events that make it suitable for a particular
purpose. Some of the controls that have been used in this application are best suited for
entering or displaying text. Other controls let us access other applications and process
data as if the remote application was part of our code.
Setting properties:
Properties window lists the property settings for the selected form or control. A
property is a characteristic of an object, such as size, caption, or color. According to the
requirements, we set the design time properties of the forms and the controls listed in
the properties window.
Writing Code:
The Code Editor window is where we write Visual Basic code for our
application. Code consists of language statements, constants, and declarations. Using
the Code Editor window, we can quickly view and edit any of the code in our
application.
The Code window includes the following elements:
Displays the name of the selected object. Click the arrow to the right of the list
box to display a list of all objects associated with the form.
Lists the procedures or events, for an object. The box displays the name of the
selected procedure — for example, Click. Choose the arrow to the right of the box to
display all the procedures for the object.
Code in Visual Basic is stored in modules. There are three kinds of modules:
Form
Standard
Class
Form Modules:
Form modules (.FRM file name extension) are the foundation of most Visual
Basic applications. They can contain procedures that handle events, general procedures,
and form-level declarations of variables, constants, types, and external procedures. The
code that is written in a form module is specific to the particular application to which
the form belongs; it might also reference other forms or objects within that application.
Standard Modules:
Standard modules (.BAS file name extension) are containers for procedures and
declarations commonly accessed by other modules within the application. They contain
global (available to the whole application) or module-level declarations of variables,
constants, types, external procedures, and global procedures. The code that is written in
a sta ndard module isn't necessarily tied to a particular application.
Class Modules:
Class modules (.CLS file name extension) are the foundation of object-oriented
programming in Visual Basic.
Visual Basic provides a wealth of tools for creating and accessing database on both
individual machines and networks.
Procedures are smaller logical components into which a program can be broken.
• Property procedures can return and assign values, and set references to objects.
Sub Procedures:
• Like a Sub procedure, a Function procedure is a separate procedure that can take
arguments, perform a series of statements, and change the value of its arguments. Unlike
a Sub procedure, a Function procedure can return a value to the calling procedure.
3. Integrity problem:
The data stored in the database must satisfy certain consistency constraints.
When new constraints are added, it is difficult to change the programs to enforce them.
To overcome these problems, the development of DBMS has been prompted. Next we
look up some terminologies of DBMS.
the database. To simplify this interaction of the users with the system, the view level
of abstraction is described.
1. Physical data independence is the ability to modify the physical schema without
causing application programs to be rewritten.
2. Logical data independence is the ability to modify the logical schema without
causing application program to be rewritten.
The Primary Key:
In a relation database system, each record has a unique identifier that is used to
indicate the record and to relate it to other records in other tables. Often, a close
inspection of the data will reveal an exiting characteristic that makes each record
unique; frequently, this can become the primary key. This type of primary key is called
composite.
When there is not an apparent field or set of field that can be used to form a
composite primary key, Visual Basic’s database management system can automatically
generate a unique numeric key for each record. This type of key made by adding a field
to your table and setting it to the field type. An AutoNumber field automatically
Data models
Data model is a set of concepts that can be used to describe the structure of a database.
The common data models are:
1. E-R Model:
In this project, the language used is Visual Basic 6.0 for managing the database and for
creating the interface to interact with the user and data is stored and managed in Micro Soft
Access-XP.
Back end :-
Microsoft Access
MS Access is a relational Database Management Program. RDBMS is a set of two-dimensional
tables in which the data is represented in rows and columns. A relationship between tables can be
build. When a report has to be generated, a relationship can be build between the tables and
fields from different tables can be combined together.
To form the report in this manner only the data required is displayed. An Access database
consists of objects such as tables, which contains the data, forms, queries and reports. These
objects are used to manage the data in the database.
Front end :-
Microsoft Visual Basic
The high-level, visual programming version of the Basic language developed by
Microsoft for building Windows-based applications. Visual Basic commands can be added to
forms, reports, and the controls that are placed on them, to perform specialized tasks. Visual
Basic is a powerful tool; it is not just a language but is an Integrated Development Environment.
FOR
In our system a customer comes into the hotel. Then the operator checks the
room availability, customer’s choice of room according to his budget he books the
room for the customer. It computes the expenses done by the customer, generates
the bill when customer leaves the hotel.
The main merit of DFD is that it can provide an overview of what data a system would
process, what transformation of data are done, what files are used, and where the result flow.
DFD are structured in such a way that starting from a diagram which gives a broad
overview at a glance, they can be expanded to a hierarchy of diagrams giving more and more
detail.
Cu_indate, cu_out
Login Form :-
First of all a login form will appear. For using the software user has to enter correct
“user name” and “password”. User can only login when his profile is created
previously otherwise he is unable to use the software.
After successfully login this form will appear and this will provide you these options.
1. File
2. Administration
3. View
4. Copyright
1. File :-
This is the left most option present at the menu bar. This provide option to the user
management that contains 4 options shown below
Select one of the name from the list box or you can directly enter the name in the text box
and new password to change the password of any of the user.
Enter new user name and new password and confirm the password
There will be a new user created.
Delete user :-
Just enter the user name and press the delete button. One message box will appear if you
are sure to delete the user, you have to click on the “yes”. User will be deleted.
When any new customer comes into the hotel the operator will fill this entry form. It
contain all the details about the customer. Date and time will be automatically filled by
the software (Values of date and time are according to the system.). There is a tool bar in
the form it provides various of functionalities like Add, Delete, Save, Modify, Find etc.
This form shows types of room available in the hotel their prices can be manipulated. If
there is new category is launched by the hotel then it could be also added.
Every room in the hotel has a distinct Room ID. Each room belongs to a specified
category. The rent of the room depends upon its category.
This form also gives information which room is free and which room is not.
There are various other services provided buy the hotel. Like swimming, Casino, Bear
bar, Trips, Lunch, Dinner, breakfast and many more. When customer uses any of the
services corresponding charge and his Id entered in the form. When bill will be generated
these charges are added into the main bill.
When customer will check out a bill will be generated using this form.
We are happy to say that our project of database Lab about “HOTEL
MANAGEMENT SYSYTEM” over field of database management system.
At last we would like to conclude that how an engineer works. He is one of the
team members or might be possible a group leader as well. Development of this s/w
takes a lot of efforts from us. The thing this s/w give a lot of self satisfaction to all of us
Though every task is never said to be perfect in this engineering field even more
improvements may be possible in this software.
We learned so many things gained a lot of knowledge about Visual Basic during
Development of this software. I hope this will prove fruitful to us.