You are on page 1of 54

PROJECT REPORT

TOURIST TRACKING SYSTEM

In partial fulfillment of the requirements for the award of the degree of

Bachelor of Computer Science of Bharathiar University,Coimbatore-46.

Submitted by

PRAVEENKUMAR.S

(Regno.2122k0035)

Under the Guidance of

Dr.S.DURAISAMY MCA.,M.Phil.,Ph.D

Assistant Professor

DEPARTMENT OF COMPUTER SCIENCE

CHIKKANNA GOVERNMENT ARTS COLLEGE

(Affiliated To Bharathiar University Coimbatore)

Tirupur-641602

MARCH-2024
CERTIFICATES
CHIKKANNA GOVERNMENT ARTS COLLEGE

(Affiliated To Bharathiar University)

Tirupur-641602

This is to certify that the project work entitled

TOURIST TRACKING SYSTEM

Is the bonafide record of project work done by

PRAVEENKUMAR.S

(Reg.No:2122K0035)

In partial fulfillment of requirements for the degree of Bachelor of

Science in Computer Science of Bharathiar University

Guide Head of the Department

Submitted for the viva voce Examination held on

Internal Examiner External Examiner


DECLARATION
DECLARATION

PRAVEENKUMAR S (2122K0035) hereby declares that the project entitled TOURIST


TRACKING SYSTEM submitted to Bharathiar University in partial fulfilment of the
requirements for the award of the degree of Bachelor of Science in Computer Science. The
project is a record of original software development carried the by me during the period (2021-
2024)of study in CHIKKANNA GOVERNMENT ARTS COLLEGE under the guidance of
Dr.S.DURAISAMY MCA.,M.Phil.,Ph.D, Assistant Professor, Department of Computer
Science and that this work has not been submitted to any other university for any other degree.

Place: Signature of the candidate

PRAVEENKUMAR.S
( 2122K0035)
Date:
ACKNOWLEDGEMENT
ACKNOWLEDEMENT

I obliged to our great almighty god for showering all his precious blessing upon me as the
psalmist who says unless the lord builds the house Its builders labour in vain I felt his help and
sustaining proper sufficient in every step.

Gratitude is the memory of heart I wish to my sincere thanks to our Principal Dr V.


KRISHNAN M.A.,M.Phil.,B.Ed., Ph.D.,, because allowing me to have the extensive use of
the college facilities to the Project.

I thank Dr. R.SHANKAR MCA.,M.Phil.,Ph.D,Associate Professor and Head of the


Department of Computer Science CHIKKANNA GOVERNMENT ARTS COLLEGE,
Tirupur for the guidance and valuable suggestion during the course of my study.

I would like to express my hearty thanks to Dr.S.DURAISAMY MCA.,M.Phil.,Ph.D,


Assistant Professor, Department of Computer Science CHIKKANNA GOVERNMENT ARTS
COLLEGE Tirupur for his valuable guidance and encouragement during the project work.

I would also like to thank all the staff members and other authorities who helped and
supported me throughout my course of study. Above all, I would like to thank my Beloved
Parents and Friends who have encouraged and supported me during the course of my project
work. I dedicate this project to them.
SYNOPSIS
SYNOPSIS

The Tourist Tracking System Is a Digital Platform Designed To Monitor And


Manage Tourist Movements Within a Specific Area Or Region. It Typically Includes
Features Such AsGPS Tracking, Check-in / Check-out Functionalities, Emergency
Alerts And DataAnalytics For Tourism Management Purposes. The System Allows
Tourism Authorities ToBetter Understand Tourist Flows, Ensure Safety, Provides
Assistance When Needed And Optimize Tourism Resources. Additionally, It Can
Facilitate Communication Between Tourists And Local Authorities,
Enhancing The Over all Tourist Experience.

This Project Is Designed With VB.net As Front End And MS Access As Back End In The
Windows Platform.
CONTENTS
CONTENTS

S.NO DESCRIPTION Page No.

CERTIFICATES
I

ACKNOWLEDGEMENT
II

DECLARATION
III

SYNOPSIS
IV
1 INTRODUCTION 1

1.1 ORGANIZATIONAL PROFILE 2

1.2 SYSTEM SPECIFICA TION 3

1.2.1 HARDWARE CONFIGURATION 3

1.2.2 SOFTWARE SPECIFICATION 4

2 SYSTEM STUDY 8

2.1 EXISTING SYSTEM 9

2.2 PROPOSED SYSTEM 10

3 SYSTEM DESIGN AND DEVELOPMENT 11

3.1 FILE DESIGN 11

3.2 INPUT DESIGN 12

3.3 OUTPUT DESIGN 13

3.4 DATABASE DESIGN 14

3.5 SYSTEM DEVELOPMENT 15

3.5.1 DESCRIPTION OF MODULES 15


DESCRIPTION Page No.
S.NO
4 SYSTEM TESTING AND IMPLEMENTATION 17

4.1 SYSTEM TESTING 17

4.1.1 UNIT TESTING 17

4.1.2 INTEGRA TION TESTING 17

4.1.3 VALIDA TION TESTING


18

4.1.4 OUTPUT TESTING 18

4.1.5 USER ACCEPTANCE TESTING 18

4.2 SYSTEM IMPLEMENTATION 19


5
CONCLUSION 20

BIBLIOGRAPHY 21

WEBSITES 21

APPENDICES 22

A. DATA FLOW DIAGRAM 22

B. TABLE STRUCTURE 26

C. SAMPLE FORM DESIGN 28

D. SAMPLE CODE 31
1. INTRODUCTION

The project entitled “Tourist Tracking System” is aimed to develop using VB .NET as
front end and MS Access as back end under windows platform. The main objective of this
project is to maintain all manual process of the Tour Operator System and convert those manual
works into systematic and computerized tasks.
The system has been developed to reduce the response time and ensure flexibility.
System is also comfortable for further development and enhancement of the existing system.
It computerizes the process of entire official work of Cab Services; it helps to maintain
information like Availability of cab, Cab Booking, Front office Maintenance, Customer
Details, Employee Details, and Billing etc. The system have been stored all these information.

1
1.1 Organizational Profile

At Magma Mind Solutions, we provide assistance in software development and we


engender people in learning technologies. We accentuate the development of career skills in
people. We are the pioneers in the field of English communication as well. We have solved
many intricacies in the field of computers. MMS trainers have trained more than a lakh people
in different domains. MMS is the substantially dedicated firm to educate people.

Benevolent services

• Customized training program.


• Various project ideas and implementation
• Spoken English/Hindi program
.

2
1.2 System Specification

1.2.1 Hardware Configuration

Processor : Dual core

Hard disk : 40GB

RAM : 512MB

Monitor : 15”SVGA Digital Color Monitor

Pen drive : 512 MB

CD-ROM drive : 52X

Modem : D Link 56Kbps

Key board : 104 keys

Mouse : Optical Mouse

3
1.2.2 Software Specification

Front-End Design : VB .NET

Back-End Database : MS ACCESS

Operating System : Windows XP, Vista, Windows

4
SOFTWARE FEATURES
VISUAL BASIC.NET

Visual Baic.Net has revolutionized windows programming windows programming and


with an object based, event driven approach to software designs. Visual basic.Net applications
act as a front end to the database. Visual basic.Net application provides the interface between
the user and the database. Sophisticated features that make the language truly object oriented
and interfaces it with the latest in the database technology.

.NET provides a new, object-oriented API as a set of classes that will be accessible from
any programming language. This book describes this framework of classes and provides a
reference to what is available and how you can use this framework to write Windows
applications in the brave new world of .NET.

Microsoft .NET Framework is a computing platform for developing distributed


applications for the Internet. Following are the design goals of Microsoft .NET Framework:

1. To provide a very high degree of language interoperability


2. To provide a runtime environment that completely manages code execution
3. To provide a very simple software deployment and versioning model
4. To provide high-level code security through code access security and strong type
checking
5. To provide a consistent object-oriented programming model
6. To facilitate application communication by using industry standards such as SOAP
and XML.
7. To simplify Web application development

Visual basic.net lets the user to add menus, text boxes, command buttons, option
buttons, check boxes, list boxes, scroll bars, and file directory boxes to blank windows. Visual
basic.net has many different tools.

The Common Language Runtime

The CLR is the mechanism through which .NET code is executed. It is built upon a
single, common language—IL—into which source languages are compiled and includes

5
mechanisms for executing the compiled code. This includes code verification and just-in-time
(JIT) compilation, garbage collection and enforcement of security policies, and the provision
of profiling and debugging services.

The CLR provides a lot of added value to the programs it supports. Because it controls
how a .NET program executes and sits between the program and the operating system, it can
implement security, versioning support, automatic memory management through garbage
collection, and provide transparent access to system services

IMPORTANT FEATURES

• The application is a graphical user interface.


• Client-Server architecture benefits picture and image box can be easily
handled using bit mapped files and icons.
• Bit mapped files and icons are used as simple debugging tools.
• With the advent of .NET, Microsoft has introduced many new
technologies that make writing component-based distributed systems
easier, more flexible, and more powerful than ever before.
• It is now easier than it has ever been to write components in any
programming language that can interoperate with components on other
machines, which may not be Windows-based at all.

MS Access 2007
MS-Access is a powerful program to create and manage data bases. It has many builtin
features to assist in co-structuring and viewing information. Access is much more involve and
is a more genuine data base application then other program such as MS works the system is
developed using back-end MS-Access.MS-Access product of Microsoft access has to create
and maintain large database large quickly and easily.
An access data consist of tables that hold the data and all the related objects such as
forms and reports that are used to manage the data in the tables. Access supported almost all
the database that are supported most other database. The field property can be provided forthe
field in the penal by the access.
MS-Access satisfies all the condition which is normally wanted for database
administrators. The client can erase and update. The access is the database management system
which is powerful in the maintenance of the database.

6
Features
• MS-Access is the powerful relational database that stores related data in place.
• Relational database make it easier to find, analysis, maintain and product the
data since stored in one place.
• Data‟s can be stored in one table, but can be moved in multiple locations.
• MS-Access retrieves data from one or more tables and displays on the screen.

7
2. SYSTEM STUDY

System study may be defined as the process of dividing the problem into parts,
identifying each part and establishing relationship in the part. System study is a detailed study
of the various operations performed by a system and relationship within and outside of the
system. System Study is a continuing activity at all stages of the project. It is the process of
studying problem to find the best solution to the problem, by which the existing problems are
understood. Objectives and requirements are defined and the solution is evaluated. Once system
study is complicated, the analyst has a firm understanding of what is to be done.

System study consists of two sub phases planning and requirement definition.
They include understanding the customer‟s problem, performing a feasibility study, developing
a recommended solution strategy, determining the acceptance criteria and planning the
development process. The products of the system definition and project plan.

The system definition typically expressed in English or some other languages and
may incorporate charts, figures, graphs, tables and equations of various kinds. The exact
notations used in definition and highly dependent of the problem area. Obviously, one uses
different terminology to describe a process control system.

8
2.1 Existing System

At present all the activities in transaction are handled manually. Manual data processing
system, whole providing economy, flexibility and adaptability at low data volumes become
more complex when the volume of data becomes large. As an organization expands in size and
function, a stage is reached when manual procedures become inadequate and inefficient. No
matter how many clerks are employed a stage is reached then it becomes impossible to
systemize such a large amount of information. What is required then is an upgrading in the
class of information processing technology.
The present system is not sufficient to hold all the information that is necessary for the
processing. So the Fleet Cab Services is in need of new computerized system, which is very
flexible, user-friendly and capable of holding the system in a robust manner.

Problems in existing system


There were a lot of reasons for the introduction of the new system. They are mainly due
to the drawbacks and efficiency of the existing system.

❖ Physical volume of the data is very large.


❖ The delay in information search and retrieval.
❖ Problems in updating and backup.
❖ Damage of papers containing the information.
❖ Considerable time taken for report generation.
❖ Accuracy of data is very lower in manual system.

9
2.2 Proposed System
The main purpose of proposed system is essentially to automate entire operations and
Information of Customer, Booking, Vehicles at a particular given point of time. So that the
Tour Operator and Their Customer can get best and fast Information about Their Tour
Packages, Vehicles and drivers at any Point of Time. He needs to exercise tight control on the
operations and input costs if he is to provide good service at reasonable rates and yet remain
profitable.

.features of proposed system


• Time saving.
• Record maintenance.
• Automated report generations
• Maintaining employee and other booking information along with the customer records
in automated system

10
3. SYSTEM DEISGN AND DEVELOPMENT
3.1 FILE DESIGN
FILE DESIGN FUNDAMENTALS
• File design is one of the first detailed design activities
• The new file designs provide structures used to create sample input and output forms
and report.
• In practice, design work switches among the file output and input design.

TRADITIONAL FILE TYPES


Master File Master file contains data that is seldom changed but it is often used by
referentially processes within the system
Transaction File Transaction file contains data that describes an event that pertains to
some part of the information system. One kind of transaction is
associated with batch processing, the either with Online Transaction
processing (OTP).
Batch File Transaction that are collected together for processing sometime after the
event they describe.
Online Transaction that are individually processed as soon as possible and they
usually place in a history file.
History File History file contains data that describes what happened in the past.
Backup File Back file contains duplicate data from another file.
Temporary File Temporary file contains data that need not be retained the current
processing.

11
3.2 INPUT DESIGN
The input design is the key to success of any good system and a good design takes
time. All data entry screen are interactive in nature. Online help is available to the user in the
form of massages, which prompts for correct entries, some other features are:
• The form clearly states the purpose of the form
• The heading of each data item is clearly given.
• Adequate space is provided from the data item.
• Paper validation of input should be provided.

Inaccurate input data is the most common source of error in data processing, which can be controlled
by input design. Input design is the purpose of converting user originated input to system design.

The system consist of following forms

Employee Entry

This form consist of the information like employee id, employee name, designation, address,
contact no, mail id.

Cab Booking Entry

This form consists of the information about the booking in the organization. It contains
information like customer id, name, cab number, pick up place, time, duration of the cab
booking etc.

Customer Entry

This form includes the information about customer like name, address, contact no, birth date,
sex etc.

Transaction Entry

This type includes two form in it. Those are maintenance and running cost for the cab for tour
and the tariff received for the cab services. In short it maintain all the cash in and out transaction
of the Tour booking Services.

12
3.3 OUTPUT DESIGN
Computer output is the most important and direct source of information to the user.
Proficient and intelligible output design should improve the system relationship with the user
and helps in decision-making. A major form of output is a hardcopy from a printer. Printout
should be designed around the output requirement of the user.
Output from computer system is required primarily to communicate the result of
processing to the user in a form which they can understand and which meet their requirements.
Output are the most important and direct source of information to the management. They are
obtained in the form of various reports. Efficient output design improves system relationship
with the user and the process of decision-making.
The reports in the system are

Employee Report

This report used to show the details of the employee working in the Fleet Cab services.

Booking Report

This report shows the details of the booking done for the cab in the Fleet Cab Services

Customer Report

This report shows the details of the customer and the previous bookings of the particular
customer

Transaction Report

This report shows the details of the cash in and out transactions done in the Fleet Cab
Services.

13
3.4 DATABASE DESIGN
It is a process of converting a relationship to a standard form. The process is used to
handle the problems that can arise due to data redundancy (i.e.) repetition of data in the
database, maintain data integrity as well as handle problem that can arise due to insertion,
update and deletion anomalies.
Decomposing is the process of splitting relations to eliminate anomalies and maintain
data integrity. To do this we use normal forms or rules for structuring relation.
Insertion Anomaly
Inability to add data to database due to absence of other data.
Deletion Anomaly
Unintended loss of data due to deletion of other data
Update Anomaly
Data inconsistency resulting from data redundancy and partial update
Normal Forms
These are the rules form structuring relation that eliminates anomalies.
First Normal Form
A relation is said to be in first normal form if the values in the relation are atomic for every
attribute in the relation. By this we mean simply that no attribute value can be set of values or
as it is sometimes expressed a repeating group.
Second Normal Form
Relationship is said to be in second normal form if it is in first normal form and it should satisfy
any one of the following rules:
• Primary key is not a composite primary key
• No non-key attribute are present
• Every non-key attribute is fully functionally dependent on full set of primary key
Third Normal Form
A relationship said to be in third normal form if there exists no transitive dependency.
Transitive dependency
If two non-key attributes depend on each other as well as on the primary key then they are said
to be transitively dependent.

14
3.5 SYSTEM DEVELOPMENT

System development is the process of defining, designing, testing and implementing a


new software application or a program. It could include the internal development of customized
systems, the creation of database system or the acquisition of third party developed software.
Written standards and procedures must guide all information system processing functions. The
Organization management must define and implement standards and adopt an appropriate
system development lifecycle methodology. Governing the process of developing, acquiring,
implementing and maintaining computerized information and related technology.

3.5.1 Description of Modules

This project includes the following modules in it

• Booking
• Customer
• Facilities
• Employee

Booking

This module shows the availability of the cab as well as the booking details of the Tour
packages. Tour Booking has many packages according to the price and the service level. Those
are all handled in this module. And also the maintenance of the booking details also done in
this module,

Customer

This module stores the information about the customer booking the Tour . This includes
the customers booking details as well as the personal and contact details of the customer. We
can also view the payment information regarding the customer with this module.

15
Hotel

While booking the Tour it also includes the details like facilities available for the customer
other than the Tour details. This includes the details like tour guide needed, catering service,
Room Stay Services etc.

Employee
This module is used to maintain the staff details who work in the tour booking process.
It includes personal as well as official information of the staff/employee. Information like name
designation, date of joining, salary details are considered official information. Address of the
employee, phone number, blood group details are considered as personal information.
Package
This module is used to maintain the package details of tour booking process. It includes
personal as well as official information of the cuatomer. Information like name days, nights,
Rate, from , to date.

16
4.SYSTEM TESTING AND IMPLEMENTATION

4.1 SYSTEM TESTING


The most important phase in system development life cycle is system testing. The number
and nature of errors in a newly designed system depends on the system specifications and the
time frame given for the design.
A newly designed system should have all the subsystems working together, but in reality
each subsystems work independently. During this phase, all the subsystems are gathered into
one pool and tested to determine whether it meets the user requirements.
Testing is done at two levels. Testing of individual modules and testing the entire system.
During the system testing, the system is used experimentally to ensure that the software will
run according to the specifications and in the way the user expects. Each test case is designed
with the intent of finding errors in the way the system will process it.

4.1.1 UNIT TESTING


Unit testing is the first level of testing. The different modules are tested against the
specifications produced during the integration. This is done to test the internal logic of each
module. Those resulting from the interaction between modules are initially avoided. The input
received and output generated is also tested to see whether it falls in the expected range

of values. Unit testing is performed from the bottom up, starting with the smallest and lowest
modules and proceeding one at a time.
The units in a system are the modules and routines that are assembled and integrated
to perform a specific function. The programs are tested for correctness of logic applied and
detection of errors in coding. Each of the modules was tested and errors are rectified. They
were then found to function properly.
For example, in Tourist Tracking System user enters the username and password to
login. The validation is performed to identify the valid user. After the validation is successful
the system allows the user to enter into the Tourist Tracking System.

4.1.2 INTEGRATIONTESTING
Integration testing is testing in which, the tested modules are combined into sub-
systems, which are then tested. The goal of integration testing to check whether the modules
can be integrated properly emphasizing on the interfaces between modules. The different
modules were linked together and integration testing done on them.
17
After unit testing all the forms are integrated to the respective pages. While integrating,
the application developer checked whether the integrated forms are working properly or not.
The pages like new lead adding and editing, Project, General settings, etc. are integrated with
the system. These programs were tested individually at last all these programs were combined
together by creating another program.

4.1.3 VALIDATIONTESTING
The objective of the validation test is to tell the user about the validity and reliability of the
system. It verifies whether the system operates as specified and the integrity of important data
is maintained. User motivation is very important for the successful performance of the system.
In validation testing, each fields like User id no, employee no, name, email, gender, contact
number, etc. for example, the validation is mainly for login page and registration page. The
user name must contain an alphabet. Password is alpha numeric. The user contact number must
contain numbers (0-9) only. The username must contain only alphabets. The login id and
password field must not be blank. User id no must be unique.

4.1.4 OUTPUT TESTING


After performing validation testing the next step is output testing of the proposed system.Since
the system cannot be useful if it does not produce the required output. Asking the user about the
format in which the system is required tests output displayed or generated by the system user
consideration. And the output comes according to the specifications requested by the user.
In output testing, the reports are verified and tested by the admin. User reports, Employee
ports, Transaction reports, are the main reports generated in this application. For example,
blank and empty reports are not allowed to generate.

4.1.5 USERACCEPTENCE TESTING


User acceptance is a type of testing performed by the Client to certify the system with
respect to the requirements that was agreed upon. This testing happens in the final phase of
testing before moving the software application to Market or Production environment.
The steps taken for User Acceptance Testing typically involve one or more of the following:
• User Acceptance Test (UAT) Planning
• Designing UA Test Cases
• Selecting a Team that would execute the (UAT)Test Cases
• Executing Test Cases
• Documenting the Defects found during UAT
• Resolving the issues/Bug Fixing

18
• Sign Off
For example, to ensure an effective User Acceptance Testing Test cases are created for
Tourist Tracking System. These Test cases can be created using various use cases identified
during the Requirements definition stage. The Test cases ensure proper coverage of all the
scenarios during testing.
4.2 SYSTEM IMPLEMENTATION
System implementation is the stage of the project that the theoretical design is turned
into a working system. If the implementation stage is not properly planned and controlled, it
can cause error. Thus it can be considered to be the most crucial stage in achieving a successful
new system and in giving the user confidence that the new system with work and be effective.
Normally this stage involves setting up a coordinate committee which will act as a
sounding board for ideas, complaints and problems. The first task is implementation planning
that is designing on the method and time scale to be adopted. Apart from planning to major

task of preparing for implementation are education taken place much earlier in the project, at
the implementation stage the emphasis must be on training in new skills to be give staff
confidence that they can use the system once staff has been trained, the system can be tested.
After the implementation phase, the user staff is adjusted to the changes created by the
candidate system, evaluation and maintenance to bring the new system to standard. The
activities of implementation can be summarized as
• Implementation planning
• Education planning
• System planning

19
CONCLUSION
The project “Tourist Tracking System” was successfully designed and developed as
per the requirements and specification. It is concluded that the application works well. The
application is tested very well and errors are properly debugged. The application is
simultaneously accessed from more than one system. Simultaneous login from more than
one place is tested.
This system is user friendly so everyone can use easily. Proper documentation is
provided. The end user can easily understand how the whole system is implemented by
going through the documentation. The system is tested, implemented and the performance
is found to be satisfactory. All necessary output is generated. Thus, the project is completed
successfully.

20
BIBLIOGRAPHY
1. Ramachandran Mc Carthus “Professional VB .NET” 2nd Edition, 2003.
2. Mathew Reynolds and John Roth “Desktop Application using VB .NET” 1st Edition,
2003.
3. Lan Sommerville “Software Engineering” 5th Edition, 1998.
4. Holzner “Visual Basic .NET Programming Black Book” 2005 Edition.
5. Paul Kimmel “Visual Basic .NET Unleashed”

WEBSITES
http://www.codeproject.com
http://www.vbdotnetheaven.com
http://www.a1vbcode.com
http://www.support.microsoft.com
http://startvbdotnet.com

21
APPENDICES

A) DATA FLOW DIAGRAM


Data flows are data structures in motion, while data stores are data structures. Data
flows are paths or „pipe lines‟, along which data structures travel, whereas the data stores are
place where data structures are kept until needed.
Data flows are data structures in motion, while data stores are data structures at rest.
Hence it is possible that the data flow and the data store would be made up of the same data
structure.
Data flow diagrams is a very handy tool for the system analyst because it gives the
analyst the overall picture of the system, it is a diagrammatic approach.
A DFD is a pictorial representation of the path which data takes From its initial
interaction with the existing system until it completes any interaction. The diagram will
describe the logical data flows dealing the movements of any physical items. The DFD also
gives the insight into the data that is used in the system i.e., who actually uses it is temporarily
stored.
A DFD does not show a sequence of steps. A DFD only shows what the different
process in a system is and what data flows between them.
The following are some DFD symbols used in the project

External entities

Process: A transaction of information that


resides within the bounds of the system to be
module.

Data Flows
DATASTORE: A repository of data that is to
be stored for use by one or more processes,
may be as simple as buffer of queue or as a
relational database.

22
RULES OF DFD:
• Fix the scope of the system by means of context diagrams.
• Organize the DFD so that the main sequence of the actions reads left to
right and top to bottom.
• Identify all inputs and outputs.
• Identify and label each process internal to the system with rounded
circles.
• A process is required for all the data transformation and transfers.
Therefore, never connect a data store to a data source or the destinations
or another data store with just a data flow arrow.
• Do not indicate hardware and ignore control information.
• Make sure the names of the processes accurately convey everything the
process is done.
• There must not be unnamed process.
• Indicate external sources and destinations of the data, with squares.
• Number each occurrence of repeated external entities.
• Identify all data flows for each process step, except simple Record
retrievals.
• Label data flow on each arrow.
• Use details flow on each arrow.
• Use the details flow arrow to indicate data movements.
• There can‟t be unnamed data flow.
• A data flow can‟t connect two external entities.
LEVELS OF DFD:

The complexity of the business system means that it is a responsible to represent the
operations of any system of single data flow diagram. At the top level, an Overview of the
different systems in an organization is shown by the way of context analysis diagram. When
exploded into DFD
They are represented by:
• LEVEL-0 : SYSTEM INPUT/OUTPUT
• LEVEL-1:SUBSYSTEM LEVEL DATAFLOW FUNCTIONAL
• LEVEL-2 : FILE LEVEL DETAIL DATA FLOW.

23
The input and output data shown should be consistent from one level to the next.
LEVEL-0: SYSTEM INPUT/OUTPUT LEVEL
A level-0 DFD describes the system-wide boundaries, dealing inputs to and outputs
from the system and major processes. This diagram is similar to the combined user-level
context diagram.

LEVEL-1: SUBSYSTEM LEVEL DATA FLOW


A level-1 DFD describes the next level of details within the system, detailing the data
flows between subsystems, which makeup the whole.

LEVEL-2: FILE LEVEL DETAIL DATA FLOW


All the projects are feasible given unlimited resources and infinite time. It is both
necessary and prudent to evaluate the feasibility of the project at the earliest possible time.
Feasibility and the risk analysis are pertained in many ways. If project risk is great.

DFD Level 0:

Admin/User Tourist DataBase


Tracking
System

DFD Level 1:
Valid
Password
Admin/User Login Tourist
Tracking
System

Invalid Password

24
DFD Level 2:

package tbl

Login Tourist
Tracking Utilities
System

Package
Admin/Use
r

Booking

New Employee
Customer
Booking Tbl
Hotel
Empl_tbl

Customer
tbl
Hotel tbl

25
B)TABLE STRUCTURE
Table Name: Login
S.No Name Data Type Description
1 Login_Id Text Login ID
2 Psswd Text Password

Table Name: Booking


S.No Name Data Type Description
1 B_Id Number Booking Id
2 C_Id Numer Customer Id
3 C_Name Text Customer Name
4 Addr Text Address
5 City Text City
6 Zip Number Zip code
7 Mobile Number Mobile Number
8 S_date Date/time Start Date
9 S_time Date/Time start Time
10 R_date Date/time Return Date
11 R_time Date/Time Return Time
12 DOT Varchar Duration of Tour
13 V_Type Text Vehicle Type
14 D_Name Text Driver Name

Table Name: Customer


S.No Name Data Type Description
1 Id Number Customer Id
2 Name Text Customer Name
3 Address Text Customer Address
4 Phone Number Phone Number
5 Email Text Email

26
6 Country Text Country
7 State Text State

Table Name:package
S.No Name Data Type Description
1 P_Id Number Package Id
2 P_N Text Package Name
3 Days Number Days
4 Nights Number Nights
5 Rate Number Rate
6 From Date/Time From
7 To Date/Time To

Table Name: Emp_Details


S.No Name Data Type Description
1 Emp_id Number Employee Id
2 Name Text Employee Name
3 DOB Date/Time Date of Birth
4 DOJ Date/Time Date of Joining
5 Address Text Address
6 Contact Number Phone Number
7 Designation Text Designation

Table Name:Hotel
S.No Name Data Type Description
1 C_Id Number Customer ID
2 H_N Text Hotel name
3 Addr Text Address
4 Zipcode Number Zipcode
5 R_Category Text Room Category
6 B-Type Text Bed Type
7 Rate Number Amount

27
C)SAMPLE FORM DESIGN
Login Form

Package Details

28
Customer Details

Hotel Details

29
Employee Details

Booking Details

30
D)SAMPLECODE

Login Form
Public Class Login

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


System.EventArgs) Handles Button2.Click
If TextBox1.Text = "Admin" And TextBox2.Text = "Admin" Then
Mainpage.Show()
ElseIf TextBox1.Text = "" And TextBox2.Text = "" Then
MsgBox("Username and Password must not be empty")
ElseIf TextBox1.Text = "" Then
MsgBox("Username must not be empty")
ElseIf TextBox2.Text = "" Then
MsgBox("Password must not be empty")
Else
MsgBox("Invalid")
End If

End Sub
End Class

Booking Form
Imports System.Data.OleDb

Public Class BOOKING


Dim con As OleDbConnection
Dim cmd As OleDbCommand
Dim s As String
Dim dr As OleDbDataReader
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Try
s = "insert into book values ('" + TextBox1.Text + "','" +
ComboBox1.Text + "','" + TextBox2.Text + "','" + TextBox3.Text + "','" +
TextBox4.Text + "','" + TextBox5.Text + "','" + MaskedTextBox1.Text + "','"
+ DateTimePicker1.Text + "','" + TextBox6.Text + "','" +
DateTimePicker2.Text + "','" + TextBox7.Text + "','" + TextBox8.Text +
"','" + ComboBox2.Text + "','" + ComboBox3.Text + "') "
cmd = New OleDbCommand(s, con)
cmd.ExecuteNonQuery()
MsgBox("YOUR CURRENT RECORD HAS BEEN ADDED SUCCESSFULLY")
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""

DateTimePicker1.Text = ""
DateTimePicker2.Text = ""
ComboBox1.Text = ""
ComboBox2.Text = ""
ComboBox3.Text = ""
MaskedTextBox1.Text = ""

31
Catch ex As Exception
MsgBox(ex.Message.ToString)
End Try
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Dim i As Integer
Try
s = "select * from BOOK where BID='" + TextBox1.Text + "'"
cmd = New OleDbCommand(s, con)
dr = cmd.ExecuteReader()
While dr.Read
i = 0
TextBox1.Text = dr(0)
ComboBox1.Text = dr(1)
TextBox2.Text = dr(2)
TextBox3.Text = dr(3)
TextBox4.Text = dr(4)
TextBox5.Text = dr(5)
MaskedTextBox1.Text = dr(6)
DateTimePicker1.Text = dr(7)
TextBox6.Text = dr(8)
DateTimePicker2.Text = dr(9)
TextBox7.Text = dr(10)
TextBox8.Text = dr(11)
ComboBox2.Text = dr(12)
ComboBox3.Text = dr(13)
End While
If i <> 0 Then
MsgBox("invalid id")
End If
dr.Close()
Catch ex As Exception
MsgBox(ex.Message.ToString)
End Try
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
s = "delete from BOOK where BID='" + TextBox1.Text + "'"
cmd = New OleDbCommand(s, con)
cmd.ExecuteNonQuery()
MsgBox("YOUR CURRENT RECORD HAS BEEN DELETED SUCESSFULLY")
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
DateTimePicker1.Text = ""
DateTimePicker2.Text = ""
ComboBox1.Text = ""
ComboBox2.Text = ""
ComboBox3.Text = ""
MaskedTextBox1.Text = ""
TextBox8.Text = ""

End Sub

32
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button5.Click
Me.Hide()

End Sub

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


System.EventArgs) Handles Button4.Click
s = "update BOOK set CID='" + ComboBox1.Text + "',cname='" +
TextBox2.Text + "',address='" + TextBox3.Text + "',country='" +
TextBox4.Text + "',zip='" + TextBox5.Text + "',ph='" + MaskedTextBox1.Text
+ "',sdate='" + DateTimePicker1.Text + "',stime='" + TextBox6.Text +
"',rdate='" + DateTimePicker2.Text + "',rtime='" + TextBox7.Text +
"',duration='" + TextBox8.Text + "',vtype='" + ComboBox2.Text +
"',driver='" + ComboBox3.Text + "' where BID='" + TextBox1.Text + "'"
cmd = New OleDbCommand(s, con)
cmd.ExecuteNonQuery()
MsgBox("YOUR CURRENT RECORD HAS BEEN UPDATED SUCESSFULLY")
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
DateTimePicker1.Text = ""
DateTimePicker2.Text = ""
ComboBox1.Text = ""
ComboBox2.Text = ""
ComboBox3.Text = ""
MaskedTextBox1.Text = ""

End Sub

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


System.EventArgs) Handles MyBase.Load
con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=D:\TravelMgmt\TravelMgmt\Travel.mdb")
con.Open()
Dim i As Integer
Try
s = "select max(BID) from BOOK"
cmd = New OleDbCommand(s, con)
dr = cmd.ExecuteReader()
While dr.Read
i = 0
TextBox1.Text = dr(0) + 1
End While
If i <> 0 Then
MsgBox("invalid id")
End If
dr.Close()
Catch ex As Exception
MsgBox(ex.Message.ToString)
End Try
End Sub

End Class

33
Customer From
Imports System.Data.OleDb
Public Class Form3
Dim con As OleDbConnection
Dim cmd As OleDbCommand
Dim s As String
Dim dr As OleDbDataReader
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Try
s = "insert into Cusit values (" + TextBox21.Text + ",'" +
TextBox22.Text + "','" + TextBox23.Text + "','" + DateTimePicker1.Text +
"','" + DateTimePicker2.Text + "','" + DateTimePicker3.Text + "','" +
TextBox24.Text + "','" + TextBox25.Text + "','" + TextBox26.Text + "','" +
TextBox27.Text + "','" + TextBox1.Text + "') "
cmd = New OleDbCommand(s, con)
cmd.ExecuteNonQuery()
MsgBox("YOUR CURRENT RECORD HAS BEEN ADDED SUCCESSFULLY")
TextBox1.Text = ""
' TextBox2.Text = ""
DateTimePicker1.Text = ""
DateTimePicker2.Text = ""
DateTimePicker3.Text = ""
TextBox21.Text = ""
TextBox22.Text = ""
TextBox23.Text = ""
TextBox24.Text = ""
TextBox25.Text = ""
TextBox26.Text = ""
TextBox27.Text = ""
Catch ex As Exception
MsgBox(ex.Message.ToString)
End Try
End Sub

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


System.EventArgs) Handles Me.Load
con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=D:\TravelMgmt\TravelMgmt\Travel.mdb")
con.Open()
Dim i As Integer
Try
s = "select max(Cusid) from Cusit"
cmd = New OleDbCommand(s, con)
dr = cmd.ExecuteReader()
While dr.Read
i = 0
TextBox21.Text = dr(0) + 1
' TextBox2.Text = dr(11)
End While
If i <> 0 Then
MsgBox("invalid id")
End If
dr.Close()
Catch ex As Exception
MsgBox(ex.Message.ToString)
End Try
End Sub

34
Private Sub Button4_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button4.Click
s = "update Cusit set CusName='" + TextBox22.Text + "',agentname='"
+ TextBox23.Text + "',bdate='" + DateTimePicker1.Text + "',sdate='" +
DateTimePicker2.Text + "',edate='" + DateTimePicker3.Text + "',noadult='" +
TextBox24.Text + "',nochil='" + TextBox25.Text + "',amt='" + TextBox26.Text
+ "',pp='" + TextBox27.Text + "',acom='" + TextBox1.Text + "' where Cusid="
+ TextBox1.Text + ""
cmd = New OleDbCommand(s, con)
cmd.ExecuteNonQuery()
MsgBox("YOUR CURRENT RECORD HAS BEEN UPDATED SUCESSFULLY")
TextBox1.Text = ""
'TextBox2.Text = ""
DateTimePicker1.Text = ""
DateTimePicker2.Text = ""
DateTimePicker3.Text = ""
TextBox21.Text = ""
TextBox22.Text = ""
TextBox23.Text = ""
TextBox24.Text = ""
TextBox25.Text = ""
TextBox26.Text = ""
TextBox27.Text = ""
End Sub
Private Sub Button2_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button2.Click
Dim i As Integer
Try
s = "select * from Cusit where Cusid=" + TextBox21.Text + ""
cmd = New OleDbCommand(s, con)
dr = cmd.ExecuteReader()
While dr.Read
i = 0
TextBox21.Text = dr(0)
TextBox22.Text = dr(1)
TextBox23.Text = dr(2)
DateTimePicker1.Text = dr(3)
DateTimePicker2.Text = dr(4)
DateTimePicker3.Text = dr(5)
TextBox24.Text = dr(6)
TextBox25.Text = dr(7)
TextBox26.Text = dr(8)
TextBox27.Text = dr(9)
TextBox1.Text = dr(10)
' TextBox2.Text = dr(11)
End While
If i <> 0 Then
MsgBox("invalid id")
End If
dr.Close()
Catch ex As Exception
MsgBox(ex.Message.ToString)
End Try
End Sub
Private Sub Button3_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button3.Click
s = "delete from Cusit where Cusid=" + TextBox21.Text + ""
cmd = New OleDbCommand(s, con)
cmd.ExecuteNonQuery()
MsgBox("YOUR CURRENT RECORD HAS BEEN DELETED SUCESSFULLY")
TextBox1.Text = ""

35
'TextBox2.Text = ""
DateTimePicker1.Text = ""
DateTimePicker2.Text = ""
DateTimePicker3.Text = ""
TextBox21.Text = ""
TextBox22.Text = ""
TextBox23.Text = ""
TextBox24.Text = ""
TextBox25.Text = ""
TextBox26.Text = ""
TextBox27.Text = ""
End Sub

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


System.EventArgs) Handles Button5.Click
Me.Hide()
Mainpage.Show()
End Sub
End Class

Hotel Form
Imports System.Data.OleDb
Public Class Form2
Dim con As OleDbConnection
Dim cmd As OleDbCommand
Dim s As String
Dim dr As OleDbDataReader

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


System.EventArgs) Handles MyBase.Load
con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=D:\TravelMgmt\TravelMgmt\Travel.mdb")
con.Open()
Dim table As New DataTable()
Dim da As New OleDbDataAdapter("select * from Cusit", con)
da.Fill(table)
ComboBox1.DataSource = New BindingSource(table, Nothing)
ComboBox1.DisplayMember = "Cusid"
ComboBox1.ValueMember = "Cusid"
End Sub

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


System.EventArgs) Handles Button1.Click
Try

s = "insert into hoteltariff values ('" + ComboBox1.Text +


"','" + ComboBox2.Text + "','" + TextBox21.Text + "','" + TextBox22.Text +
"','" + ComboBox3.Text + "','" + ComboBox4.Text + "','" + TextBox23.Text +
"')"
cmd = New OleDbCommand(s, con)
cmd.ExecuteNonQuery()
MsgBox("YOUR CURRENT RECORD HAS BEEN ADDED SUCCESSFULLY")
TextBox21.Text = ""
TextBox22.Text = ""
TextBox23.Text = ""
ComboBox1.Text = ""
ComboBox2.Text = ""
ComboBox3.Text = ""
ComboBox4.Text = ""

36
'TextBox24.Text = ""
'TextBox25.Text = ""
'TextBox26.Text = ""
'TextBox27.Text = ""
Catch ex As Exception
MsgBox(ex.Message.ToString)

End Try
End Sub

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


System.EventArgs) Handles Button2.Click
Dim i As Integer
Try

s = "select * from Hoteltariff where hid='" + ComboBox1.Text +


"'"
cmd = New OleDbCommand(s, con)

dr = cmd.ExecuteReader()
While dr.Read
i = 0
ComboBox1.Text = dr(0)
ComboBox2.Text = dr(1)
TextBox21.Text = dr(2)
TextBox22.Text = dr(3)
ComboBox3.Text = dr(4)
ComboBox4.Text = dr(5)
TextBox23.Text = dr(6)
End While
If i <> 0 Then
MsgBox("invalid id")

End If
dr.Close()

Catch ex As Exception
MsgBox(ex.Message.ToString)

End Try
End Sub

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


System.EventArgs) Handles Button3.Click
s = "delete from Hoteltariff where hid='" + TextBox21.Text + "'"
cmd = New OleDbCommand(s, con)

cmd.ExecuteNonQuery()
MsgBox("YOUR CURRENT RECORD HAS BEEN DELETED SUCESSFULLY")

TextBox21.Text = ""
TextBox22.Text = ""
TextBox23.Text = ""
ComboBox1.Text = ""
ComboBox2.Text = ""
ComboBox3.Text = ""
ComboBox4.Text = ""
End Sub

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


System.EventArgs) Handles Button4.Click

37
s = "update Hoteltariff set hname='" + ComboBox2.Text + "',addr='"
+ TextBox21.Text + "',zipc='" + TextBox22.Text + "',rc='" + ComboBox3.Text
+ "',bedtype='" + ComboBox4.Text + "',rate='" + TextBox23.Text + "' where
hid='" + ComboBox1.Text + "'"
cmd = New OleDbCommand(s, con)
cmd.ExecuteNonQuery()
MsgBox("YOUR CURRENT RECORD HAS BEEN UPDATED SUCESSFULLY")

TextBox21.Text = ""
TextBox22.Text = ""
TextBox23.Text = ""
ComboBox1.Text = ""
ComboBox2.Text = ""
ComboBox3.Text = ""
ComboBox4.Text = ""

End Sub

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


System.EventArgs) Handles Button5.Click
Me.Hide()
Mainpage.Show()
End Sub
End Class

Package From
Imports System.Data.OleDb

Public Class PACKAGE


Dim con As OleDbConnection
Dim cmd As OleDbCommand
Dim s As String
Dim dr As OleDbDataReader
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Try

s = "insert into PACK values ('" + TextBox1.Text + "','" +


TextBox2.Text + "','" + TextBox3.Text + "','" + TextBox4.Text + "','" +
TextBox5.Text + "','" + TextBox6.Text + "','" + TextBox7.Text + "') "
cmd = New OleDbCommand(s, con)

cmd.ExecuteNonQuery()
MsgBox("YOUR CURRENT RECORD HAS BEEN ADDED SUCCESSFULLY")
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
Catch ex As Exception
MsgBox(ex.Message.ToString)

End Try
End Sub

38
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Dim i As Integer
Try

s = "select * from PACK where id='" + TextBox1.Text + "'"


cmd = New OleDbCommand(s, con)

dr = cmd.ExecuteReader()
While dr.Read
i = 0

TextBox1.Text = dr(0)
TextBox2.Text = dr(1)
TextBox3.Text = dr(2)
TextBox4.Text = dr(3)
TextBox5.Text = dr(4)
TextBox6.Text = dr(5)
TextBox7.Text = dr(6)

End While
If i <> 0 Then
MsgBox("invalid id")

End If
dr.Close()

Catch ex As Exception
MsgBox(ex.Message.ToString)

End Try
End Sub

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


System.EventArgs) Handles Button3.Click
s = "delete from PACK where id='" + TextBox1.Text + "'"
cmd = New OleDbCommand(s, con)

cmd.ExecuteNonQuery()
MsgBox("YOUR CURRENT RECORD HAS BEEN DELETED SUCESSFULLY")
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
End Sub

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


System.EventArgs) Handles Button5.Click
s = "update PACK set pname='" + TextBox2.Text + "',pdays='" +
TextBox3.Text + "',nights='" + TextBox4.Text + "',rate='" + TextBox5.Text +
"',pfrom='" + TextBox6.Text + "',pto='" + TextBox7.Text + "' where id='" +
TextBox1.Text + "'"
cmd = New OleDbCommand(s, con)
cmd.ExecuteNonQuery()
MsgBox("YOUR CURRENT RECORD HAS BEEN UPDATED SUCESSFULLY")
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""

39
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""

End Sub

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


System.EventArgs) Handles Button4.Click
Me.Hide()
Mainpage.Show()

End Sub

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


System.EventArgs) Handles MyBase.Load
con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=D:\TravelMgmt\TravelMgmt\Travel.mdb")
con.Open()
Dim i As Integer
Try

s = "select max(id) from PACK"


cmd = New OleDbCommand(s, con)

dr = cmd.ExecuteReader()
While dr.Read
i = 0

TextBox1.Text = dr(0) + 1

End While
If i <> 0 Then
MsgBox("invalid id")

End If
dr.Close()

Catch ex As Exception
MsgBox(ex.Message.ToString)

End Try
End Sub
End Class

Employee Form
Imports System.Data.OleDb

Public Class STAFF


Dim con As OleDbConnection
Dim cmd As OleDbCommand
Dim s As String
Dim dr As OleDbDataReader
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Try
s = "insert into STAFF values ('" + TextBox1.Text + "','" +
TextBox2.Text + "','" + ComboBox1.Text + "','" + TextBox3.Text + "','" +
DateTimePicker1.Text + "','" + DateTimePicker2.Text + "','" + TextBox4.Text

40
+ "','" + TextBox5.Text + "','" + MaskedTextBox1.Text + "','" +
TextBox6.Text + "','" + TextBox7.Text + "') "
cmd = New OleDbCommand(s, con)
cmd.ExecuteNonQuery()
MsgBox("YOUR CURRENT RECORD HAS BEEN ADDED SUCCESSFULLY")
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
MaskedTextBox1.Text = ""
DateTimePicker1.Text = ""
DateTimePicker2.Text = ""
Catch ex As Exception
MsgBox(ex.Message.ToString)
End Try
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Dim i As Integer
Try
s = "select * from STAFF where id='" + TextBox1.Text + "'"
cmd = New OleDbCommand(s, con)
dr = cmd.ExecuteReader()
While dr.Read
i = 0
TextBox1.Text = dr(0)
TextBox2.Text = dr(1)
ComboBox1.Text = dr(2)
TextBox3.Text = dr(3)
DateTimePicker1.Text = dr(4)
DateTimePicker2.Text = dr(5)
TextBox4.Text = dr(6)
TextBox5.Text = dr(7)
MaskedTextBox1.Text = dr(8)
TextBox6.Text = dr(9)
TextBox7.Text = dr(10)
End While
If i <> 0 Then
MsgBox("invalid id")
End If
dr.Close()
Catch ex As Exception
MsgBox(ex.Message.ToString)
End Try
End Sub

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


System.EventArgs) Handles Button3.Click
s = "delete from STAFF where id='" + TextBox1.Text + "'"
cmd = New OleDbCommand(s, con)

cmd.ExecuteNonQuery()
MsgBox("YOUR CURRENT RECORD HAS BEEN DELETED SUCESSFULLY")
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""

41
TextBox6.Text = ""
TextBox7.Text = ""
MaskedTextBox1.Text = ""
DateTimePicker1.Text = ""
DateTimePicker2.Text = ""

End Sub

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


System.EventArgs) Handles Button4.Click
s = "update STAFF set sname='" + TextBox2.Text + "',desig='" +
ComboBox1.Text + "',salary='" + TextBox3.Text + "',doj='" +
DateTimePicker1.Text + "',dob='" + DateTimePicker2.Text + "',qua='" +
TextBox4.Text + "',address='" + TextBox5.Text + "',ph='" +
MaskedTextBox1.Text + "',mail='" + TextBox6.Text + "',bgroup='" +
TextBox7.Text + "' where id='" + TextBox1.Text + "'"
cmd = New OleDbCommand(s, con)
cmd.ExecuteNonQuery()
MsgBox("YOUR CURRENT RECORD HAS BEEN UPDATED SUCESSFULLY")
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
MaskedTextBox1.Text = ""
DateTimePicker1.Text = ""
DateTimePicker2.Text = ""

End Sub
Private Sub AGENT_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=D:\TravelMgmt\TravelMgmt\Travel.mdb")
con.Open()
Dim i As Integer
Try
s = "select max(id) from STAFF"
cmd = New OleDbCommand(s, con)
dr = cmd.ExecuteReader()
While dr.Read
i = 0
TextBox1.Text = dr(0) + 1

End While
If i <> 0 Then
MsgBox("invalid id")
End If
dr.Close()
Catch ex As Exception
MsgBox(ex.Message.ToString)
End Try
End Sub

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


System.EventArgs) Handles Button5.Click
Me.Hide()
End Sub
End Class
42

You might also like