Download - Bharath Yathra Report
-
7/31/2019 Bharath Yathra Report
1/831
2.2 PROBLEM DEFINITION:
The present system of Tour management by companies is a manual system. The registration process is
carried out manually that is, the personal and tour details of a customer who wants to register is
collected through application form. The details in the application form is recorded, which is time
consuming process and needs a lot of manpower. Maintaining tour Package details and often updating
requires lot of manual records and also searching a particular one is time consuming process. Report
generation based on customer details, based on mode of travel and tour packages are very difficult task
and also time consuming. Hence the task involved in this system and more time consuming when there
are more customers. By using "BHARAT YATRA" Software their jobs becomes so easy and
efficient.
The objectives are:
To automate and computerize the day - to - day operations of Tours and Travels ManagementCompany.
To build an interactive project to replace file based database making it easier for its staff to findinformation required efficiently
To achieve the goal, the operational process of Tour Management more efficient and effectivefor the longer Term.
To provide friendly environment for users To minimize the time consuming for the entire event
-
7/31/2019 Bharath Yathra Report
2/832
LITERATURE
SURVEY
-
7/31/2019 Bharath Yathra Report
3/833
2.LITERATURE SURVEY
Every software development requires the survey process. The survey needed to get requirement for the
software. The survey consists of the study about the tools needed for the development of the software.
A proper understanding of the tool is very much following is an extract of the material collected
during the literature survey.
-
7/31/2019 Bharath Yathra Report
4/83
-
7/31/2019 Bharath Yathra Report
5/835
3.1 OPERATING SYSTEM:
Operating system is the system, which may be viewed as collection as software consisting of
procedures for operating the computer and providing an environment for execution of the user
programs to prevent errors and improper use of computer. Operating system is essentially the body of
the computer. Every general Purpose, computer requires some type of operating system that tells the
computer how to utilize other software and hardware that is installed on to the computer. The package
"Placement Cell" is of WINDOWS XP, WINDOWS NT upgrade of 98 with multitask kernel,
incorporation of some of the WINDOWS NT features windows "NEW technology" NT has two
versions namely NT Workstation an NT server. Both versions uses the same kernel code, however NT
server can be configured for client server applications and can act as an application server on Net ware
and Microsoft LAN's. Also it incorporates Internet web server software and the Windows 95 user
interface.
3.2 FRONT END:
Visual Basic 6.0 provides a complete set of tools to simply rapid application development The
"Visual" part refers to the method used to create the graphical user Interface(GUI). Rather than
writing numerous lines of code to describe. The appearance and locations of interface elements, we
simply add rebuilt objects into place onscreen. The "Basic" part refers to the BASIC(Beginners all
purpose symbolic Instruction Code) Language, a language used by more programmers than any other
language in the history of computing, visual basic has evolved from the original BASIC language and
now contains several hundred statements, functions and keywords, many of which relate directly to
the windows GUI.
The visual basic programming language is not unique to visual basic. The visual Basic programming
system, application edition included in Microsoft Excel, Microsoft Access and many other Windows
applications uses the same language. The Visual Basic scripting edition (VB Script) is widely used
-
7/31/2019 Bharath Yathra Report
6/836
language and the subnet of the Visual Basic language. Data access features allow you to create
database, front end applications and scalable server side components for most popular database
formats, including Microsoft SQL server,Oracle and other enterprise level databases. ActiveX
technologies allow you to use the functionality provided by other applications, such as Microsoft
Word processor, Microsoft Excel spread sheet and other windows applications, you can even
automatic applications and objects created using the professional or enterprise editions of visual basic.
Internet capabilities make it easy to provide access to documents and applications across the Internet
or Intranet from within your applications, or to create Internet Server Applications.
3.3 BACK-END:
Oracle Corporation was the first company to offer true Relational DBMS commercially led
innovations in the field of RDBMS. The oracle corporation strategy offers RDBMS i.e. portable,
computable and produces connectable results in a very powerful tool for users, when we speak about
oracle we are not speaking of a single product or program. Oracle is the term used for any of all of the
products that comprise the oracle relational database management system. The collection of tools,
utilities and applications that constitute the oracle RDBMS many of these products are fourth
generation language tools. They let user to use interactive screens create application programs. During
the development phase the system is physically created, necessary programs are coded debugged and
documented operating procedure must be developed based on the specification needed necessary code
is developed in oracle and tested successfully with test data.
3.4 Introduction to RDBMS:
Oracle is relational Database Management System ( RDBMS ), it offers Capability of both relational
and object oriented database systems. Oracle is a large database and it has space management
control.
-
7/31/2019 Bharath Yathra Report
7/837
Features of oracle:
It supports concurrent database users. High transaction processing performance.
Client server environment.
Distributed database system. High, controlled availability. Compatibility.
SQL (Structured Query Language)
The SQL * Plus command language is powerful enough to serve the needs of users who are learning
oracle Relational Database Management system. SQL is a nonprocedural language which is used to
communicate with relational database, which is in turn a set of related information stored in the form
of tables. SQL * PLUS is a program for working with the oracle database.
Data Definition Language (DDL):
These are used for creating and altering the structure of the database, Commands are as follows:
CREATE, ALTER and DROP.
Data Manipulation Language (DML);
These commands are used for adding and modifying the data commands are follows:
INSERT, SELECT, DELETE and UPDATE.
Data Control Language (DCL):
These commands are used for controlling access to the database commands are as follows: GRANT
and REVOKE. These commands are followed by roles and / or privilege and some of those Roles are
Connect, Resource, DBA etc and some of the privileges are unlimited table Space, Alter any role etc,,
these information can be got by oracle Navigator for specified user through platform.
-
7/31/2019 Bharath Yathra Report
8/838
Translation Control Language (TCL):
These commands are used to commit or rollback transactions. These commands are as follows :
COMMIT, ROLLBACK and SAVEPOINT.
Database Management Tools:
This category includes four program of oracles database management system. The oracle database
with its associated tables and views, are stored in Oracles data dictionary and a group of helpful
utilities. All of these are necessary for a database administrators work. The data dictionary is oracles
central documentation system. It stores information related to every fact of the database system. Users
names, user access rights, table names, table attribute names and table storage information and
auditing data for a disaster recovery is all stored in the dictionary. It would be impossible to manage a
DBMS without this tool. Database Management tools are Creating data. Querying data. Updating
data, Storing data, Displaying data., Relational DBMS features.
-
7/31/2019 Bharath Yathra Report
9/839
SYSTEM STUDY
-
7/31/2019 Bharath Yathra Report
10/8310
4. SYSTEM STUDY
4.1EXISTING SYSTEM:
The Existing System of Tour Management is a manual system. The customer booking process,
creating different tour packages and generating report is carried out manually. The details in the
application form is recorded, which is time consuming process and needs a lot of man power. The
details in the application of the customer are entered in the system to prepare reports and take
printouts.
Limitations of the Existing System:
It involves lot of paper work. It may result in duplication of records and files. Delay in processing the information. Retrieval of data is difficulty. Once the customer is registered modification is a difficult process. Report generation is a time consuming job.
4.2 PROPOSED SYSTEM:
The proposed system is an automated system all the process is computerized to make a
process easy. The details of the customer, various tour schedule details, branch details, and booking
details are directly entered in to the package. The package is made secured so that unauthorized
person cannot login. The registered customer details can be view by generating various types of
reports. This package serves the agency by maintaining each and every record the information, to
update any information by just clicking a button the interface built in provides a flexible and straight
forward approach that the person at the counter does not need to know about the database or the
interface.
-
7/31/2019 Bharath Yathra Report
11/8311
Benefits of the Proposed System are:
Workload of agency staff is reduced.
Easy modifications and easy view of data.
Reports are easily generated.
-
7/31/2019 Bharath Yathra Report
12/8312
SYSTEMENVIRONMENT
-
7/31/2019 Bharath Yathra Report
13/8313
5. SYSTEM ENVIRONMENT:
5.1 HARDWARE REQUIREMENTS:
104 Keyboards
Mouse Pentium 100Mg Hz 32 MB of RAM 250 MB Hard Disk 15 VGA Color monitor.
5.2 SOFTWARE REQUIREMENTS:
Front-end :Visual Basic 6.0 Back-end: Oracle 9i Operating System: Windows- XP
-
7/31/2019 Bharath Yathra Report
14/83
-
7/31/2019 Bharath Yathra Report
15/8315
6. SOFTWARE REQUIREMENT SPECIFICATION
6.1 INTRODUCTION:
This Document summarizes the software Requirement Specification of the package Placement Cell
and it also describes the interface for the system.
Purpose:
To design and develop the software model that acts as an interface between the front end user GUI
and the back end Oracle Database server to store and retrieve the data requested by the client.
Scope:
To reduce the problem of responsiveness:As the system is manually operated, it is time consuming; the Process of retrieving data as and
when required is slow.
To decrease the workload:In any organization i.e . managing the storage manually, the Volume of the workload is
very large. Since the person has to keep Record of all details of the issue, maintenance and
updating the records manually is very cumbersome.
To prevent errors:Due to large volumes of data, man a time errors creep in, which generate inconsistent
and fatal errors
-
7/31/2019 Bharath Yathra Report
16/83
-
7/31/2019 Bharath Yathra Report
17/8317
6.3: FUNDAMENTAL REQUIREMENT:
6.3.1 Inputs:
GUI base interface take the below mentioned inputs and passes it to the database server and
these details will be stored in the specified database.
6.3.2 Processing:
Step 1: Establish the connection to the database.
Step 2: Validate username for existence, give appropriate error messages otherwise store the
data into the database.
Step 3: Take input for login if the user already exits.
Step 4: Take inputs for user choice menu display appropriate message if input is invalid
otherwise allow the user to their choice.
Step 5: Take the valid input and perform the specified action like retrieving, saving, deleting,
updating etc.
6.3.3:Output:
Below mentioned data should be stored in the database: Tour Sponsor Information. Individual Customer Information. Booking Information. Fare Details Package details. Various Types of reports. Billing Details.
-
7/31/2019 Bharath Yathra Report
18/8318
Branch Details
6.3.4 Validation:
Session of connection between module and the database will be complete and be continuous. All the
inputs must be provided accurately.
It has to give appropriate signal or message should pop up when the user makes an invalid entry.
6.4 Performance Requirement:
6.4.1 Reliability Requirements:
The system is developed in such a way that it satisfies the following conditions:
The data is available when the user requires it. The system stores data in less redundant way.
6.4.2 Static Requirement:
This module will support a single terminal. It will support only a single user.
6.5 DESIGN CONSTRAINTS:
6.5.1 Standard Compliances:
The report will be in a specified format, which will provide a user-friendly interface
-
7/31/2019 Bharath Yathra Report
19/8319
making the user to work freely and happily. A new programmer will find it easy to understand and
use the system for enhancement or correction if required, as it contains powerful generic modules.
6.5.2 Hardware Limitations:
The module should run on WINDOWS platform storage of 64MB or greater and secondary
Storage of 80MB or greater.
6.5.3 Security:
The module should support only authentic users.
6.6 EXTERNAL INTERFACE REQUIREMENT
6.6.1 Software Interface:
The module should be compactable with the printer to take printouts. The printer has the
capacity to print more than 5 pages per minute.
6.6.2 User Interface:
Permission to access the database with appropriate access rights. The module should be compatible with oracle9i Database. The module should be compatible with developer environment.
6.6.3 Hardware Interface:The screen layout should be such that it should display forms where the users can input
information to the system and retrieve data from the database .
-
7/31/2019 Bharath Yathra Report
20/83
-
7/31/2019 Bharath Yathra Report
21/8321
consumption.
6.7.4 Schedule Feasibility :
The time schedule required for the development of this project is very important
since the project overruns results in escalated project cost. The time schedule of this project is clearly
mentioned that is 3 months.
-
7/31/2019 Bharath Yathra Report
22/8322
SYSTEM DESIGN
-
7/31/2019 Bharath Yathra Report
23/8323
7.1 Data Flow Diagram (DFD):
Data Flow Diagram is also known as Bubble Chart has the purpose of clarifying system
requirements and identifying major transformations that will become programs in the System design.
These are commonly used during analysis. DFD shows the flow of data through system. It shows the
movement of data through the different transformations or process in the system.
DFD SYMBOLS
SYMBOLS DESCRIPTION
Source/Destination
Data Flow
Process
SYSTEM DESIGN
SYSTEM CHART:
FOR THE ADMINSTRATOR:
LOGIN
ADMIN USER
-
7/31/2019 Bharath Yathra Report
24/83
-
7/31/2019 Bharath Yathra Report
25/8325
FIRST LEVEL OF DFD:
CUSTOMER BOOKING
Bharath yathral
TOUR MASTER
COMPANY MASTER
BILLING
BRANCH
VIEW
CANCEL BILL
HOTEL DETAILS
DATABASE
MAP INFO
-
7/31/2019 Bharath Yathra Report
26/8326
Tour Management Process
CUSTOMER MODULE
VIEW
DETAILS
BUS
TICKET
CUSTOMER BOOKING BILLING
AIR TICKET
CANCEL
BILLING RAILWAY TICKET
CUSTOMER
BILLINGTICKET
BOOKIN
REPORTSCANCEL
BOOKING
-
7/31/2019 Bharath Yathra Report
27/8327
7.3 DATABASE DESIGN:
NORMALIZATION:
Normalization is the process of efficiently organizing data in a Database. There are two goals of the
normalization process: eliminating redundant data (for example, storing the same data in more than
one table) and ensuring data dependencies make sense (only storing related data in a table). Both of
these are worthy goals as they reduce the amount of space a database consumes and ensure that data is
logically stored.
Normal Forms:
When designing a relational database, it is normally a good thing to normalize the database. There
are different degrees of normalization, but in general, relational databases should be normalized to the
third normal form. This means that the attributes in each table should dependent on the key.
First Normal Form (1NF):
First Normal Form (1NF) sets the very basic rules for an organized database:
Eliminate duplicative columns from the same table. Create separate tables for ach group of related data. Identify each row with unique column or set of columns (the primary key.
Second Normal Form (2NF):
Second Normal Form (2NF) further address the concept of removing duplicative data:
Meet all the requirement of the First Normal Form. Remove subsets of data apply to multiple rows of a table and place them in separate tables. Create relationships between new tables and their predecessors through the use of foreign keys.
Third Normal Form (3NF):
Third Normal Form (3NF) goes one large step further:
Meet all the requirements of the second normal form. Remove columns that are not dependent upon the primary key.
-
7/31/2019 Bharath Yathra Report
28/8328
DATA REQUIREMENT (TABLE DESIGN)
1. LOGIN:Field Name Field Type Field Size Field Description
LoginType Varchar2 20 Admin/User
LoginDate Date Login date
loginTime Varchar2 20 Login Time
2. COM_REG_DETField Name Field Type Field Size Field Description
COM_REG_NO varchar2 20 Registration Num
REG_DATE Varchar2 30 Registration date
COM_NAME Number 30 Company Name
COM_MANE_NAME Varchar2 30 Manager Name
ADDRESS date 15 Address
CITY Varchar2 40 City Name
E_MAIL Varchar2 10 Email Address of comp
CONT_O_NUM Number 15 Land line num
CONT_MO_NUM number 10 Mobile Num
CON_FAX Varchar2 6 Fax Num
3. CUST_ENQ_DETField Name Field Type Field Size Field Description
ENQ_NO Number 10 Enquiry Number
ENQ_DATE Date Date of Enquiry
PAS_NAME Varchar2 30 Passenger Name
ADDRESS varchar2 30 Address
PINCODE Number 8 Pin code
E_MAIL Varchar2 30 Email Id
CONT_O Varchar2 15 Land Line Number
CONT_MO Number 10 Mobile Number
-
7/31/2019 Bharath Yathra Report
29/8329
CONT_FAX Varchar2 12 Fax Number
ORIG_CITY Varchar2 30 Origin City Name
DEST_CITY varchar2 30 Destination City Name
TRA_DATE Date Travelling Date
CLASS Varchar2 20 Class
FARE_PER Number 9,2 Fare Per Seat
NO_OF_SITS Number 3 No of Seats
TOTAL_AMT Number 9,2 Total Amount
TRA_BY Varchar2 30 Mode Of Travel
4. BILLS
Field Name Field Type Field Size Field Description
BILL_NO Number 10 Bill Number
TRA_DATE Date Travel Date
PAS_NAME Varchar2 30 Passenger Name
ARRIVE_STATION Varchar2 30 Arrival Station Name
DEPARTURE_STATION Varchar2 30 Departure Station Name
DAYS number 3 No. Of. Days
TRAVEL_BY Varchar2 30 Travel Mode
CLASS Varchar2 20 Travel Class
FARE Number Travel Fare/ Seat
NO_OF_SEATS Number 3 No. Of. Seats
TOTAL_AMOUNT Number 9,2 Total Amount
-
7/31/2019 Bharath Yathra Report
30/83
-
7/31/2019 Bharath Yathra Report
31/8331
8.TESTING:
8.1 Unit Testing:
Unit testing is a dynamic method for verification where the programs as is actually
completed and executed. Its coding phase is also called CODING AND TESTING PHASE ( as in
another form of testing) unit . Testing involves executing the code with some test cases and then
entire software system. The programmers does it. After finishing the coding of module programmer
test with some test data. The tested module is then delivered for system in integration and further
testing.
8.2 Integration Testing:
It focuses on testing multiple modules working together. There are 2 types of integration
testing. They are top down approach and bottom up approach.
Top Down Approach:
Testing starts from the top of the hierarchy and then proceeds to the lower levels and
incrementally adds modules which it cells, and then test the new combined system. In this approach a
module which it calls, and then test the new combined system. In this approach a module cannot be
tested in isolation as they invoke some other modules. It is advantageous if major flows occur towards
the top of the hierarchy.
Bottom Up Approach:
The development starts implementing the modules that are at the bottom of the
hierarchy. The implementation proceeds through higher levels. Until it reaches the top. To perform
bottom up testing drivers are needed to setup the appropriate environment and invokes the modules. It
is advantageous if the major flow occur towards the bottom.
-
7/31/2019 Bharath Yathra Report
32/83
-
7/31/2019 Bharath Yathra Report
33/8333
IMPLEMENTATION
-
7/31/2019 Bharath Yathra Report
34/8334
9.IMPLEMENTATION:
9.1 Introduction:Software Installation:
In order to run this package the softwares like Visual Basic 6.0 and Oracle 9i must be
installed.
User Training:
After installing the package the users must explain about module functionality and
screen working.
The Tools Used For Implementation Are:
Windows platform operating system. Oracle 9i as the back end developer. SQL. VB 6.0 as front end interface. Triggers for various operations.
-
7/31/2019 Bharath Yathra Report
35/8335
CODINGS
-
7/31/2019 Bharath Yathra Report
36/8336
LOGIN FORM
Private Sub cmdOK_Click()
If (txtUserName = "") And (txtPassword = "") Then
Call MsgBox("Name and Password ", vbOKOnly + vbInformation + vbApplicationModal, "ENTER")
End If
If (txtUserName = "admin") And (txtPassword = "lion") Then
LoginSucceeded = True
MDIForm1.mnuquery.Enabled = True
MDIForm1.Show
MDIForm1.Enabled = True
MDIForm1.Caption = "BHARAT YATRA --> SYSTEM OF INDIA TOUR. --> ADMINSTRATOR"
Me.Hide
Call admin
Else
MsgBox "Invalid Password OR Make sure caps lock is off then, try again! ", vbInformation, "LOGIN"
txtPassword.SetFocus
SendKeys "{Home}+{End}"
End If
End Sub
-
7/31/2019 Bharath Yathra Report
37/8337
Private Sub Form_Load()
txtUserName.Text = ""
txtPassword.Text = ""
End Sub
Public Function admin()
With historydetails
.Visible = False
.Adodc1.Recordset.AddNew
.Adodc1.Recordset("LoginType") = "Admin"
.Adodc1.Recordset("LoginDate") = Format(Date, "dd-mm-yyyy")
.Adodc1.Recordset("loginTime") = Format(Time, "hh-mm-ss")
.Adodc1.Recordset.Save
End With
End Function
-
7/31/2019 Bharath Yathra Report
38/8338
CUSTOMER ENQUIRY FORM
Dim a
Dim enqno As Integer
Dim count1 As Integer
Public Function adddeletemodifyfalse()
cmdmodify.Enabled = False
cmddelete.Enabled = False
cmdadd.Enabled = False
cmdticket.Enabled = False
End Function
Public Function clear()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
Text12.Text = ""
Text13.Text = ""
-
7/31/2019 Bharath Yathra Report
39/8339
Text14.Text = ""
Text15.Text = ""
Text16.Text = ""
Text17.Text = ""
End Function
Public Function adddeletemodifytrue()
cmdmodify.Enabled = True
cmddelete.Enabled = True
cmdadd.Enabled = True
cmdticket.Enabled = True
End Function
Private Sub cmdadd_Click()
Call adddeletemodifyfalse
Call savecanceltrue
Call frameenable
Call navigationfalse
If (Adodc1.Recordset.EOF And Adodc1.Recordset.BOF) Then
enqno = 1
Else
Adodc1.Recordset.MoveLast
enqno = Adodc1.Recordset("enq_no")
enqno = enqno + 1
End If
-
7/31/2019 Bharath Yathra Report
40/8340
Adodc1.Recordset.AddNew
Call clear
Text1.Text = enqno
'Text2.Text = format(Now, "dd/mm/yyyy")
Text3.SetFocus
End Sub
Private Sub cmdCancel_Click()
mode = 0
Call navigationtrue
Call adddeletemodifytrue
Call framedisable
Call savecancelfalse
On Error Resume Next
Adodc1.Recordset.Cancel
Adodc1.Refresh
On Error GoTo a1:
a1:
MsgBox "This Will NOT SAVE Record..", vbInformation
Exit Sub
End Sub
Private Sub cmddelete_Click()
MsgBox "Are You sure to Delete this node ?", vbYesNo
If vbYes Then
-
7/31/2019 Bharath Yathra Report
41/8341
If (Adodc1.Recordset.EOF = True) Or (Adodc1.Recordset.BOF = True) Then
MsgBox "ALL Node DELETE successfully..", vbInformation
Else
Adodc1.Recordset.Delete adAffectCurrent
Adodc1.Refresh
MsgBox "DELETE successfully..", vbInformation
End If
Else
Exit Sub
End If
Call savecancelfalse
End Sub
Private Sub cmdfirst_Click()
Adodc1.Recordset.MoveFirst
Call checkoption
End Sub
Private Sub cmdlast_Click()
Adodc1.Recordset.MoveLast
Call checkoption
End Sub
Private Sub cmdmodify_Click()
Call adddeletemodifyfalse
-
7/31/2019 Bharath Yathra Report
42/8342
Call savecanceltrue
MsgBox "Modify Records", vbInformation
Call frameenable
If Adodc1.Recordset.EOF And Adodc1.Recordset.BOF Then
MsgBox "No Record To Modify..", vbInformation
mode = 1
Exit Sub
Else
Adodc1.Recordset.Update
Text3.SetFocus
End If
End Sub
Private Sub cmdnext_Click()
On Error Resume Next
If Adodc1.Recordset.EOF Then
Call MsgBox("This is the Last node ", vbOKOnly + vbSystemModal + vbExclamation + vbApplicationModal +
vbDefaultButton1, "LAST")
Else
Adodc1.Recordset.MoveNext
End If
Call checkoption
-
7/31/2019 Bharath Yathra Report
43/8343
End Sub
Private Sub cmdprivious_Click()
On Error Resume Next
If Adodc1.Recordset.BOF Then
Call MsgBox("This is the First node ", vbOKOnly + vbSystemModal + vbExclamation + vbApplicationModal +
vbDefaultButton1, "LAST")
Else
Adodc1.Recordset.MovePrevious
End If
Call checkoption
End Sub
Private Sub cmdsave_Click()
On Error GoTo a1
Call savecancelfalse
Call navigationtrue
Call countempty
If (Text11.Text = "" Or Text12.Text = "" Or Text12.Text = "" Or Text13.Text = "") Then
MsgBox "Enter The Enquiry Details Properly..", vbInformation
Call savecanceltrue
Exit Sub
End If
If Text1.Text = "" Then
MsgBox "PLZ Enter Enquiry No First..", vbInformation
-
7/31/2019 Bharath Yathra Report
44/8344
Call savecanceltrue
Text1.SetFocus
Exit Sub
Else
If (count1 < 7) Then
Adodc1.Recordset.Save
MsgBox " NEW Data Saved Complete ..", vbInformation
Call adddeletemodifytrue
Call framedisable
Else
MsgBox "PLZ Enter 10 Field Atleast ..", vbInformation
Call savecanceltrue
End If
End If
cmdticket.Enabled = True
Exit Sub
a1:
MsgBox Err.Description, vbExclamation, "Check Correct Values.."
MsgBox "Press Cancel And Retry..", vbInformation
Call savecanceltrue
End Sub
Private Sub cmdticket_Click()
-
7/31/2019 Bharath Yathra Report
45/8345
If Text3.Text = "" Or Text10.Text = "" Or Text11.Text = "" Or Text14.Text = "" Or Text15.Text = "" Or Text16.Text
= "" Or Text17.Text = "" Then
MsgBox "PLZ Enter the define fields of Enqiry Details..", vbInformation
Exit Sub
End If
If Text13.Text = "Bus" Then
a = 1
MsgBox "Bus Booking", vbInformation
busbooking.Show
ElseIf Text13.Text = "Train" Then
MsgBox "Railway Booking", vbInformation
railwaybooking.Show
a = 2
ElseIf Text13.Text = "Airline" Then
MsgBox "Airline Book", vbInformation
airlinebooking.Show
a = 3
Else
busbooking.Show
a = 4
End If
If (a = 1 Or a = 4) Then
-
7/31/2019 Bharath Yathra Report
46/8346
With busbooking
.Adodc1.Recordset.AddNew
.clear
.frameenable
.Text3.SetFocus
.adddeletemodifyfalse
.savecanceltrue
.Frame2.Enabled = True
.Text3.Text = cusomerenquiry.Text3.Text
.Text8.Text = cusomerenquiry.Text10.Text
.Text9.Text = cusomerenquiry.Text11.Text
.Text10.Text = cusomerenquiry.Text14.Text
.Text11.Text = cusomerenquiry.Text15.Text
.Text12.Text = cusomerenquiry.Text16.Text
.Text13.Text = cusomerenquiry.Text17.Text
'.Text2.Text = format(Date, "dd/mm/yyyy")
.Text1.SetFocus
End With
-
7/31/2019 Bharath Yathra Report
47/8347
End If
'****************************************************
If a = 2 Then
With railwaybooking
.Adodc1.Recordset.AddNew
.clear
.Text3.Text = cusomerenquiry.Text3.Text
.Text8.Text = cusomerenquiry.Text10.Text
.Text9.Text = cusomerenquiry.Text11.Text
.Text10.Text = cusomerenquiry.Text14.Text
.Text11.Text = cusomerenquiry.Text15.Text
.Text12.Text = cusomerenquiry.Text16.Text
.Text13.Text = cusomerenquiry.Text17.Text
.Frame2.Enabled = True
.Frame4.Enabled = True
.cmdadd.Enabled = False
.cmddelete.Enabled = False
.cmdmodify.Enabled = False
.cmdsave.Enabled = True
.cmdcancel.Enabled = True
End With
End If
'***************************************************
If a = 3 Then
-
7/31/2019 Bharath Yathra Report
48/8348
With airlinebooking
.Adodc1.Recordset.AddNew
.clear
.comdoadditem123
.Text3.Text = cusomerenquiry.Text3.Text
.Text4.Text = cusomerenquiry.Text10.Text
.Text5.Text = cusomerenquiry.Text11.Text
.Combo2.Text = cusomerenquiry.Text14.Text
.Text9.Text = cusomerenquiry.Text15.Text
.Text10.Text = cusomerenquiry.Text16.Text
.deletemodifyfalse
.savecanceltrue
.frameenable
'.Text2.Text = format(Date, "dd/mm/yyyy")
.Text1.SetFocus
End With
End If
'******************************************************
End Sub
Private Sub Command9_Click()
-
7/31/2019 Bharath Yathra Report
49/8349
Unload Me
End Sub
Private Sub find_Click()
allcustenquiry.Show
End Sub
Private Sub Form_Load()
If Adodc1.Recordset.EOF And Adodc1.Recordset.BOF Then
Call adddeletemodifyfalse
Call savecancelfalse
Call framedisable
Call navigationfalse
Text1.Enabled = False
cmdticket.Enabled = False
cmdadd.Enabled = True
Else
Text1.Enabled = False
Call savecancelfalse
Call framedisable
Call checkoption
Call navigationtrue
cmdticket.Enabled = False
End If
End Sub
-
7/31/2019 Bharath Yathra Report
50/8350
Private Sub Form_Unload(Cancel As Integer)
MDIForm1.mnubusbooking.Enabled = True
MDIForm1.mnurailbooking.Enabled = True
MDIForm1.mnuairbooking.Enabled = True
End Sub
Private Sub Label1_Click()
End Sub
Private Sub OK_Click()
Text17.Text = Val(Text16) * Val(Text15)
End Sub
Private Sub Option1_Click()
Text13.Text = Option1.Caption
End Sub
Private Sub Option2_Click()
Text13.Text = Option2.Caption
End Sub
Private Sub Option3_Click()
Text13.Text = Option3.Caption
End Sub
Private Sub Option4_Click()
-
7/31/2019 Bharath Yathra Report
51/83
-
7/31/2019 Bharath Yathra Report
52/8352
MsgBox "PLZ Enter The Numbers Only.."
Text16.Text = ""
End If
End Sub
Private Sub Text17_KeyPress(KeyAscii As Integer)
If (KeyAscii < Asc("0") Or KeyAscii < Asc("9")) Then
Else
MsgBox "PLZ Enter The Numbers Only.."
Text17.Text = ""
End If
End Sub
Private Sub Text5_KeyPress(KeyAscii As Integer)
If KeyAscii < Asc("0") Or KeyAscii > Asc("9") Then
MsgBox "Plz Enter The Numbers Only..", vbInformation
Text5.Text = ""
End If
End Sub
Public Function countempty()
count1 = 0
If Text1.Text = "" Then count1 = count1 + 1
If Text2.Text = "" Then count1 = count1 + 1
If Text3.Text = "" Then count1 = count1 + 1
If Text4.Text = "" Then count1 = count1 + 1
If Text5.Text = "" Then count1 = count1 + 1
-
7/31/2019 Bharath Yathra Report
53/8353
If Text6.Text = "" Then count1 = count1 + 1
If Text7.Text = "" Then count1 = count1 + 1
If Text8.Text = "" Then count1 = count1 + 1
If Text9.Text = "" Then count1 = count1 + 1
If Text10.Text = "" Then count1 = count1 + 1
If Text11.Text = "" Then count1 = count1 + 1
If Text12.Text = "" Then count1 = count1 + 1
If Text13.Text = "" Then count1 = count1 + 1
If Text14.Text = "" Then count1 = count1 + 1
If Text15.Text = "" Then count1 = count1 + 1
If Text16.Text = "" Then count1 = count1 + 1
If Text17.Text = "" Then count1 = count1 + 1
MsgBox "Empty Fields Are: " & count1 & " .."
End Function
Public Function checkoption()
If Text13.Text = "Bus" Then
Option1.Value = True
ElseIf Text13.Text = "Train" Then
Option2.Value = True
ElseIf Text13.Text = "Airline" Then
Option3.Value = True
Else
Option4.Value = True
End If
End Function
-
7/31/2019 Bharath Yathra Report
54/8354
Public Function savecancelfalse()
cmdsave.Enabled = False
cmdcancel.Enabled = False
End Function
Public Function savecanceltrue()
cmdsave.Enabled = True
cmdcancel.Enabled = True
End Function
Public Function navigationfalse()
cmdfirst.Enabled = False
cmdlast.Enabled = False
cmdprivious.Enabled = False
cmdnext.Enabled = False
End Function
Public Function navigationtrue()
cmdfirst.Enabled = True
cmdlast.Enabled = True
cmdprivious.Enabled = True
cmdnext.Enabled = True
End Function
Private Sub Text7_KeyPress(KeyAscii As Integer)
If (KeyAscii < Asc("0") Or KeyAscii < Asc("9")) Then
-
7/31/2019 Bharath Yathra Report
55/8355
Else
MsgBox "PLZ Enter The Numbers Only.."
Text7.Text = ""
End If
End Sub
Private Sub Text8_KeyPress(KeyAscii As Integer)
If (KeyAscii < Asc("0") Or KeyAscii < Asc("9")) Then
Else
MsgBox "PLZ Enter The Numbers Only.."
Text8.Text = ""
End If
End Sub
Private Sub Text9_KeyPress(KeyAscii As Integer)
If (KeyAscii < Asc("0") Or KeyAscii < Asc("9")) Then
Else
MsgBox "PLZ Enter The Numbers Only.."
Text9.Text = ""
End If
End Sub
-
7/31/2019 Bharath Yathra Report
56/8356
TOUR MASTER
Dim trno
Public Function adddeletemodifyfalse()
cmdmodify.Enabled = False
cmddelete.Enabled = False
cmdadd.Enabled = False
End Function
Public Function clear()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
Text13.Text = ""
Text14.Text = ""
Combo1.Text = ""
End Function
Public Function adddeletemodifytrue()
cmdmodify.Enabled = True
cmddelete.Enabled = True
-
7/31/2019 Bharath Yathra Report
57/8357
cmdadd.Enabled = True
End Function
Private Sub cmdadd_Click()
Call frametrue
If Adodc1.Recordset.EOF And Adodc1.Recordset.BOF Then
trno = 1
Else
Adodc1.Recordset.MoveLast
trno = Adodc1.Recordset("sr_no")
trno = trno + 1
End If
Adodc1.Recordset.AddNew
Call clear
Call adddeletemodifyfalse
Call savecanceltrue
Text1.Text = trno
Text2.SetFocus
End Sub
Private Sub cmdCancel_Click()
Call navigationtrue
Call framedisable
-
7/31/2019 Bharath Yathra Report
58/8358
MsgBox "This Will NOT SAVE Record..", vbInformation
Adodc1.Recordset.Cancel
Adodc1.Refresh
Call adddeletemodifytrue
Call savecancelfalse
End Sub
Private Sub cmddelete_Click()
On Error Resume Next
MsgBox "Are You sure to Delete this node ?", vbYesNo
If vbYes Then
If (Adodc1.Recordset.EOF = True) Or (Adodc1.Recordset.BOF = True) Then
MsgBox "ALL Node DELETE successfully..", vbInformation
Else
Adodc1.Recordset.Delete adAffectCurrent
Adodc1.Refresh
MsgBox "DELETE successfully..", vbInformation
End If
Else
Exit Sub
End If
Call savecancelfalse
End Sub
-
7/31/2019 Bharath Yathra Report
59/8359
Private Sub cmdfirst_Click()
Adodc1.Recordset.MoveFirst
End Sub
Private Sub cmdlast_Click()
Adodc1.Recordset.MoveLast
End Sub
Private Sub cmdmodify_Click()
Call comboadditem
Call frametrue
Call adddeletemodifyfalse
Call savecanceltrue
Adodc1.Recordset.Update
End Sub
Private Sub cmdnext_Click()
On Error Resume Next
If Adodc1.Recordset.EOF Then
Call MsgBox("This is the last node ", vbOKOnly + vbSystemModal + vbExclamation + vbApplicationModal +
vbDefaultButton1, "LAST")
Else
Adodc1.Recordset.MoveNext
Call checkoption
-
7/31/2019 Bharath Yathra Report
60/8360
End If
End Sub
Private Sub cmdprivious_Click()
On Error Resume Next
If (Adodc1.Recordset.BOF) Then
Call MsgBox("This is the First node ", vbOKOnly + vbSystemModal + vbExclamation + vbApplicationModal +
vbDefaultButton1, "FIRST")
Else
Adodc1.Recordset.MovePrevious
End If
End Sub
Private Sub cmdsave_Click()
On Error GoTo a1
If (Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "" Or Text4.Text = "" Or Text5.Text = "" Or Text6.Text = ""
Or Text7.Text = "" Or Text8.Text = "" Or Text9.Text = "" Or Text10.Text = "" Or Text11.Text = "" Or Text12.Text
= "" Or Text13.Text = "" Or Text14.Text = "") Then
MsgBox "PLZ Enter All Data Properly..", vbInformation
Exit Sub
End If
Adodc1.Recordset.Save
MsgBox " NEW Data Saved Complete .."
Call adddeletemodifytrue
Call savecancelfalse
Call framefalse
Call navigationtrue
-
7/31/2019 Bharath Yathra Report
61/8361
Call framedisable
Exit Sub
a1:
MsgBox Err.Description, vbExclamation, "Check Correct Values.."
MsgBox "Press Cancel And Retry..", vbInformation
Call savecanceltrue
End Sub
Private Sub Command9_Click()
Unload Me
End Sub
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Command2_Click()
allhoteldetails.Show
End Sub
Private Sub Form_Load()
Call comboadditem
If Adodc1.Recordset.EOF And Adodc1.Recordset.BOF Then
Call savecancelfalse
Call adddeletemodifyfalse
-
7/31/2019 Bharath Yathra Report
62/8362
cmdadd.Enabled = True
Call navigationfalse
mode = 0
Call framedisable
Else
Call navigationtrue
Call savecancelfalse
mode = 0
Call framedisable
End If
Call checkoption
End Sub
Public Function navigationfalse()
cmdnext.Enabled = False
cmdprivious.Enabled = False
cmdfirst.Enabled = False
cmdlast.Enabled = False
End Function
Public Function navigationtrue()
cmdnext.Enabled = True
cmdprivious.Enabled = True
cmdfirst.Enabled = True
cmdlast.Enabled = True
End Function
-
7/31/2019 Bharath Yathra Report
63/8363
Private Sub Form_Unload(Cancel As Integer)
MDIForm1.mnucancel.Enabled = True
End Sub
Private Sub Label1_Click()
End Sub
Private Sub OK_Click()
Text14.Text = Val(Text12) * Val(Text13)
End Sub
Private Sub Option1_Click()
Text10.Text = Option1.Caption
End Sub
Private Sub Option2_Click()
Text10.Text = Option2.Caption
End Sub
Private Sub Option3_Click()
Text10.Text = Option3.Caption
End Sub
Private Sub Option4_Click()
Text10.Visible = True
-
7/31/2019 Bharath Yathra Report
64/8364
End Sub
Public Function savecancelfalse()
cmdsave.Enabled = False
cmdcancel.Enabled = False
End Function
Public Function savecanceltrue()
cmdsave.Enabled = True
cmdcancel.Enabled = True
End Function
Public Function comboadditem()
Combo1.AddItem "Allepy"
Combo1.AddItem "Abu road"
Combo1.AddItem "Agra"
Combo1.AddItem "Ahmedabad"
Combo1.AddItem "Ailole"
Combo1.AddItem "Ajanta"
Combo1.AddItem "Allora"
Combo1.AddItem "Almora"
Combo1.AddItem "Araka"
Combo1.AddItem "Aurangabad"
Combo1.AddItem "Badami"
-
7/31/2019 Bharath Yathra Report
65/83
-
7/31/2019 Bharath Yathra Report
66/8366
Combo1.AddItem "Ernakulam"
Combo1.AddItem "Gandhi"
Combo1.AddItem "Gangtok"
Combo1.AddItem "Goa"
Combo1.AddItem "Gourikund"
Combo1.AddItem "Gudur"
Combo1.AddItem "Gulmarg"
Combo1.AddItem "Guwahati"
Combo1.AddItem "Hampi"
Combo1.AddItem "Haridwar"
Combo1.AddItem "Hassan"
Combo1.AddItem "Hemis"
Combo1.AddItem "Hydrabad"
Combo1.AddItem "Indore"
Combo1.AddItem "Islands"
Combo1.AddItem "Jabalpur"
Combo1.AddItem "Jaipur"
Combo1.AddItem "Jaisalmer"
Combo1.AddItem "Jammu"
Combo1.AddItem "Jankichatti"
Combo1.AddItem "Jashimath"
Combo1.AddItem "Jhansi"
Combo1.AddItem "Jodhpur"
Combo1.AddItem "Kalimpong"
Combo1.AddItem "Kalka"
Combo1.AddItem "Kani pakkam"
Combo1.AddItem "Kanyakumari"
-
7/31/2019 Bharath Yathra Report
67/8367
Combo1.AddItem "Kashi"
Combo1.AddItem "Kashmir"
Combo1.AddItem "Katra"
Combo1.AddItem "Kausani"
Combo1.AddItem "Kaziranga"
Combo1.AddItem "Kedarnath"
Combo1.AddItem "Khzuraho"
Combo1.AddItem "Khardongla"
Combo1.AddItem "Kodai kanal"
Combo1.AddItem "Kolkata"
Combo1.AddItem "Kollur"
Combo1.AddItem "Konark"
Combo1.AddItem "Kophargaon"
Combo1.AddItem "Koyalam"
Combo1.AddItem "Kukesubramanya"
Combo1.AddItem "Kunarkom"
Combo1.AddItem "Kurseong"
Combo1.AddItem "Lachen"
Combo1.AddItem "Ladakh"
Combo1.AddItem "Leh"
Combo1.AddItem "Lothal"
Combo1.AddItem "Madura"
Combo1.AddItem "Maheshwar"
Combo1.AddItem "Mettupalayam"
Combo1.AddItem "Modhera"
Combo1.AddItem "Mookambika"
Combo1.AddItem "Mount abu"
-
7/31/2019 Bharath Yathra Report
68/8368
Combo1.AddItem "Mumbai"
Combo1.AddItem "Munnar"
Combo1.AddItem "Mussorie"
Combo1.AddItem "Mysore"
Combo1.AddItem "Nagarsol"
Combo1.AddItem "Nainital"
Combo1.AddItem "Nalsarovar"
Combo1.AddItem "Nasik"
Combo1.AddItem "New delhi"
Combo1.AddItem "New jaipaiguri"
Combo1.AddItem "Nicobar"
Combo1.AddItem "Omkareshwar"
Combo1.AddItem "Ooty"
Combo1.AddItem "Orchha"
Combo1.AddItem "Pachnarhi"
Combo1.AddItem "Pahalgampangong"
Combo1.AddItem "Papikondalu"
Combo1.AddItem "Paro"
Combo1.AddItem "Patan"
Combo1.AddItem "Pattadkal"
Combo1.AddItem "Pavagadh"
Combo1.AddItem "Peling"
Combo1.AddItem "Pollachi"
Combo1.AddItem "Puri"
Combo1.AddItem "Pushkar"
Combo1.AddItem "Rajanmundry"
Combo1.AddItem "Ramnagar"
-
7/31/2019 Bharath Yathra Report
69/8369
Combo1.AddItem "Ranikhey"
Combo1.AddItem "Ranikesh"
Combo1.AddItem "Rudraprayag"
Combo1.AddItem "Sai gowthami"
Combo1.AddItem "Sakhigopal"
Combo1.AddItem "Sanchi"
Combo1.AddItem "Sangam"
Combo1.AddItem "Shani"
Combo1.AddItem "Shanisinganapur"
Combo1.AddItem "Shignapur"
Combo1.AddItem "Shillong"
Combo1.AddItem "Simla"
Combo1.AddItem "Shirdi"
Combo1.AddItem "Shrigeri"
Combo1.AddItem "Siliguri"
Combo1.AddItem "Somnath"
Combo1.AddItem "Sonmarg"
Combo1.AddItem "Sreepuram"
Combo1.AddItem "Shrinagar"
Combo1.AddItem "Shukhana"
Combo1.AddItem "Ternetar"
Combo1.AddItem "Tawang"
Combo1.AddItem "Thekkady"
Combo1.AddItem "Thennala"
Combo1.AddItem "Thimphe"
Combo1.AddItem "Tiruchanur"
Combo1.AddItem "Tiruchitirumala"
-
7/31/2019 Bharath Yathra Report
70/8370
Combo1.AddItem "Tirupthi"
Combo1.AddItem "Trivendram"
Combo1.AddItem "Udaipur"
Combo1.AddItem "Ujjain"
Combo1.AddItem "Uttranchal"
Combo1.AddItem "Vadodara"
Combo1.AddItem "Valparai"
Combo1.AddItem "Vasco"
Combo1.AddItem "Velankanni"
Combo1.AddItem "Vishakapattanam"
Combo1.AddItem "Other"
End Function
Public Function checkoption()
If Text10.Text = "Bus" Then
Option1.Value = True
ElseIf Text10.Text = "Train" Then
Option2.Value = True
ElseIf Text10.Text = "Airline" Then
Option3.Value = True
Else
Option4.Value = True
End If
End Function
Public Function framefalse()
Frame5.Enabled = False
-
7/31/2019 Bharath Yathra Report
71/8371
End Function
Public Function frametrue()
Frame5.Enabled = True
End Function
Private Sub Text12_KeyPress(KeyAscii As Integer)
If (KeyAscii < Asc("0") Or KeyAscii < Asc("9")) Then
Else
MsgBox "PLZ Enter The Numbers Only.."
Text12.Text = ""
End If
End Sub
Private Sub Text13_KeyPress(KeyAscii As Integer)
If (KeyAscii < Asc("0") Or KeyAscii < Asc("9")) Then
Else
MsgBox "PLZ Enter The Numbers Only.."
Text13.Text = ""
End If
End Sub
Private Sub Text14_KeyPress(KeyAscii As Integer)
If (KeyAscii < Asc("0") Or KeyAscii < Asc("9")) Then
Else
MsgBox "PLZ Enter The Numbers Only.."
Text14.Text = ""
-
7/31/2019 Bharath Yathra Report
72/8372
End If
End Sub
Private Sub Text6_KeyPress(KeyAscii As Integer)
If (KeyAscii < Asc("0") Or KeyAscii < Asc("9")) Then
Else
MsgBox "PLZ Enter The Numbers Only.."
Text6.Text = ""
End If
End Sub
Private Sub Text7_KeyPress(KeyAscii As Integer)
If (KeyAscii < Asc("0") Or KeyAscii < Asc("9")) Then
Else
MsgBox "PLZ Enter The Numbers Only.."
Text7.Text = ""
End If
End Sub
Public Function framedisable()
Frame5.Enabled = False
End Function
-
7/31/2019 Bharath Yathra Report
73/8373
Screen Shots
-
7/31/2019 Bharath Yathra Report
74/8374
Screen Shots
Login Screen
Company Registration Details
-
7/31/2019 Bharath Yathra Report
75/8375
Branch Information
Customer Enquiry
-
7/31/2019 Bharath Yathra Report
76/8376
Tour Master
Billing Form
-
7/31/2019 Bharath Yathra Report
77/83
-
7/31/2019 Bharath Yathra Report
78/8378
Reports
Bus Report
CONCLUSION
-
7/31/2019 Bharath Yathra Report
79/83
-
7/31/2019 Bharath Yathra Report
80/83
-
7/31/2019 Bharath Yathra Report
81/8381
FUTURE
ENHANCEMENT
11.FUTURE ENHANCEMENT:
The current version of the application has met the objective listed during the project startup. Due to
time constraint, some of the features have been skipped. Following are some of the enhancements we
would like to do in future versions of the application. They are:
Port the application to other platforms. Incorporate large object images directly into database. To include more number of modules such as Online test for recruitment purpose.
-
7/31/2019 Bharath Yathra Report
82/83
-
7/31/2019 Bharath Yathra Report
83/83
BIBLOGRAPHY
12. BIBLOGRAPHY:
Visual Basic 6.0 [Peter Norton] Learning Visual Basic Microsoft Visual Basic Manual MSDN Library collection Software Engineering [Roger S. Pressmen]