Sunteți pe pagina 1din 87

BIKE SHOWROOM MANAGEMENT

A PROJECT REPORT
ON

“BIKE SHOWROOM MANAGEMENT


SYSTEM”
Submitted in partial fulfilment of the requirement for the degree of
Bachelor of Computer Application-5th sem
By
PRAVEEN S (15BTSB7062)
PUNEETH V K (15BTSB7063)
SIDDHARTH B (15BTSB7085)

Under the Guidance Of:


PRATHIMA K M (CS)
Department of Computer Science

SESHADRIPURAM EDUCATIONAL TRUST


SESHADRIPURAM COLLEGE
Seshadripuram, Bengaluru-560020
Affiliated to Bengaluru University
Academic Year
2017

1
BIKE SHOWROOM MANAGEMENT

ACKNOWLEDGEMENT

It’s quite difficult for a individual to make things possible without the co-operation of
others. It is our privilege to thank all those who have been with us from the start to end.

We wish to express our sincere and heartfelt gratitude to our principal


Dr.AnuradhaRoy for her constant support & co-operation.

We express our sincere thanks to H.O.D of BCA Dept. & to our project guide Mrs.
Prathima K.M for their constructive information and useful suggestion which helped us to
complete our project successfully on time.

We wish to thank the members of teaching & non-teaching staff of our department for
their help during our project.

Lastly, I thank my parents and friends who supported me to complete my project on time.

Praveen.S

Siddharth.B

Puneeth V.K

2
BIKE SHOWROOM MANAGEMENT

DECLARATION

We, Praveen S, Siddharth B, Puneeth V.K, hereby declare that the project entitled
“Bike Showroom Management” is a bonafide work carried out by us under the Guidance of
Mrs. Prathima K.M.

This project, as presented in this report, is our original work and has not been presented
for any other University award.

This project has been submitted as partial fulfilment of requirements for the Degree of
Bachelor of Computer Application of Bangalore University.

Place: Bengaluru

Project Associates:

PRAVEEN S (15BTSB7062)

SIDDHARTH B (15BTSB63)

PUNEETH V.K (15BTSB85)

3
BIKE SHOWROOM MANAGEMENT

CONTENTS

1. Introduction……………………………………………….. 1
1.1 Objective
1.2 Scope
1.3 Existing System
1.4 Proposed system

2. System Requirements

3. System Analysis

4. Language Description

5. Database

6. Feasibility Study

7. Database Design

8. Dataflow Diagram & ER Diagram

9. Implementation

10. Source Code

11. Snap Shots

12. Testing

13. Conclusion

4
BIKE SHOWROOM MANAGEMENT

14. Bibliography

5
BIKE SHOWROOM MANAGEMENT

ABSTRACT

The project entitled “Bike Showroom Management System” is to be developed for


maintaining the show room activities like, customer maintenance, customer quotation
generation, vehicle sales, customer dues maintaining for the instalment customers, vehicle
service and spare parts sales, Customer follow ups details, customer feedback from entry and
employee details. The system is efficient in generating reports which will help in the
maintenance of the showroom easily.

Modules: -

1. Administration

2. Inventory

3. Order Processing

4. Payroll Processing

5. Payment

6. Profit and Loss

7. Reports

Software tools to be used: -

VB.NET (VISUAL STUDIO 2008)

MICROSOFT SQL SERVER 2005

6
BIKE SHOWROOM MANAGEMENT

INTRODUCTION

7
BIKE SHOWROOM MANAGEMENT

1.1 OBJECTIVE OF THE SYSTEM


 Computerization for accuracy
 To avert losses
 To increase the profit ratio
 To save space
 To facilitate the work easy
 For time consumption

The main objective of Bike Showroom management system is to create a software based
on generating reports and quotation on purchasing a bike and generating bill details thereof.
The bike system keeps track of the complete details of the bike, payroll, administration,
quotation, billing and reports.

8
BIKE SHOWROOM MANAGEMENT

SCOPE OF THE SYSTEM


The scope of the project two Dealer Management System deals with, stock details,
sales details, customer details, purchase details Billing and Reports

In Order to overcome the difficulties in the existing system, the proposed Two Dealer
Management Systems developed.

The designing of the various modules are setup and data are collected before the designing
starts.

Before computerized the proposed Dealer, Management system gathers all possible Two-
Wheeler Motor System details for each customer, sales, stock and group these details based
on the occurrence. Then Design the file structure to maintain the above information.

After designing the file structures and screen layout, programs are developed to maintain the
Two Dealer Management System details.

Various reports are generated as per the requirements of the user.

After developed of the system it is tested and implement in a successful manner.

EXISTING SYSTEM
The existing system in the organization is maintained in FOXPRO. The daily billing
of the vehicle is calculated and stored the Product billing is also is maintained. That deals
with selling of the Products in the concern. These two kinds of billing are only handled at
present.

The details of customer, stock details, sales details, vehicle details, service details are
maintained manually which includes lots of stress and tension on the concern side.

The existing system is not automated fully as only the accounts are automated with
the accounting software. The Customer follow-ups are maintained in excel which will take
more time to search from the long lists, service details are not maintained through system so
it is very difficult to maintain the details. As the current data is maintained through ledgers

9
BIKE SHOWROOM MANAGEMENT

and excel sheet so there is no proper reports for facilitation of the administration of the
showroom.

Disadvantages of the Existing System

 Only accounts is systemized


 Lack of reports
 Vehicle Sales & Services are maintained in excel Sheet which leads to the inaccurate
information.
 Customer data are not maintained properly which leads the follow-ups slow.

10
BIKE SHOWROOM MANAGEMENT

PROPOSED SYSTEM

The proposed system has been developed to overcome on the difficulties in manual
maintenance and billing maintenance on the FOXPRO.

To solve the problem faced it if it has to switch over the proposed system. If modernized or
computerized, the concern gets the full advantage.

Instead of having so many section and so many people for each & every section, it is enough
to have only one person to do all works in a computer. So, the concern saves space, time, money
and the like.

The details of the customer are maintained with the sales details etc., the designing can
be done in a perfect manner of the stock maintained system. The manual work is replaced by
the system wide specification. The stock details are also maintained for future reference these
are the advantages of the proposed system.

In the long run, this system minimizes the expenses of the concern to the maximum extents;
each and every work can be done perfectly and neatly with the proposed system. All data-
regarding all the work can be stored in a floppy disk. All the forms will be readily available in
a neat format and can be filled up with in a second. Any information can be obtained at any
time easily, accurately and when necessary. It can be changed, modified or updated. So many
facilities like the above are available in the proposed system. All the works can be done within
a fraction of seconds. Thus, it fulfils the objectives of the system. Not only this but also some
more advantages are listed below.

 Accuracy
 Privacy
 Security
 Time consumption

11
BIKE SHOWROOM MANAGEMENT

The proposed system overcomes the disadvantages of the existing system and records
the entire activities happening in the show room. The reports generated will enhance the
efficiency of the application. The service registration alerts and completion are recorded
which will be easy to maintain the service details.

Advantages of the proposed System

 Entire activities of the show room are recorded through the system.
 Customer Data is maintained.
 Reports generated will be more useful for management to take the quick business
decisions.
 Customer database is maintained which will be helpful for intimating the service
completion details and new offers

Customer follow-ups are maintained which will be an added advantage of this system

12
BIKE SHOWROOM MANAGEMENT

SYSTEM REQUIREMENTS

13
BIKE SHOWROOM MANAGEMENT

SYSTEM REQUIREMENTS
HARDWARE REQUIREMENTS:

Hardware basically refers to the item in a PC that can be touched and felt like keyboard,
monitor, mouse and the system unit. Additional hardware components that can be added to the
PC are modem, printer, scanner etc.

The hardware thus used here consists of:

Processor speed : 2GHz

Ram : 4GB

Graphics : 1GB

Colour Quality : 1366x768

Mouse : Standard Optical

SOFTWARE REQUIREMENTS:

There is use of large software in developing this project. Software is basically the
logically program that handles different components which cannot be touched or felt and helps
to interact with one another in a Hassle-free manner. The software used here consists of:

Operating System : Windows 7 64bit

Developing Tool : Microsoft Visual Basic 2008

Express Edition

Version : 3.5 SP1

Database : Microsoft SQL Server Database

Front End (Design) : VB.NET

Back End (Data Base) : SQL Server

14
BIKE SHOWROOM MANAGEMENT

SYSTEM ANALYSIS

15
BIKE SHOWROOM MANAGEMENT

INTRODUCTION OF SYSTEM ANALYSIS

System analysis is the detailed study of the various operations performed by a system
and their relationships within and outside of the system. One aspect of the analysis is defining
the boundaries of the system and determining whether or not a candidate system should
consider other related system. During analysis, data are collected on the available files, decision
points and transactions handled by the presented system.

Once analysis is completed, the system analyses as a firm understanding of what is to be done.
The next step is to decide how the problem might be solved. Thus, in system design, we move
from the logical to physical aspect of the system development lifecycle

LANGUAGE DESCRIPTION

VB INTRODUCTION

History

Microsoft released Visual Basic in 1987. It was the first visual development tool from
Microsoft, and it was to compete with C, C++, Pascal and other well-known programming
languages. From the start, Visual Basic wasn't a hit. It wasn't until release 2.0 in 1991 that
people really discovered the potential of the language, and with release 3.0 it had become the
fastest-growing programming language on the market.

What Is Visual Basic?

Programmers have undergone a major change in many years of programming various


machines. For example what could be created in minutes with Visual Basic could take days in
other languages such: as "C" or "Pascal". Visual Basic provides many interesting sets of tools
to aid you in building exciting applications. Visual Basic provides these tools to make your life
far easier because all the real hard code is already written for you.

16
BIKE SHOWROOM MANAGEMENT

With controls like these you can create many applications which use certain parts of
windows. For example, one of the controls could be a button, which we have demonstrated in
the "Hello World" program below. First create the control on the screen, and then write the
code which would be executed once the control button is pressed. With this sort of operation
in mind, simple programs would take very little code. Why do it like the poor old "C"
programmer who would have to write code to even display a window on the screen, when
Visual Basic already has this part written for you.

Even though people tend to say Visual Basic's compiler is far behind the compilers of
Pascal and C, it has earned itself the status of a professional programming language, and has
almost freed BASIC of the reputation of a children's language. Overall you would class Visual
Basic as a Graphics User Interface (GUI). Because as you draw, you write for the program.
This must always be remembered in any kind of creation of a Visual Basic.

Significant Language Features

Visual Basic is not only a programming language, but also a complete graphical
development environment. This environment allows users with little programming experience
to quickly develop useful Microsoft Windows applications which have the ability to use OLE
(Object Linking and Embedding) objects, such as an Excel spreadsheet. Visual Basic also has
the ability to develop programs that can be used as a front end application to a database system,
serving as the user interface which collects user input and displays formatted output in a more
appealing and useful form than many SQL versions are capable of.

Visual Basic's main selling point is the ease with which it allows the user to create nice looking,
graphical programs with little coding by the programmer, unlike many other languages that
may take hundreds of lines of programmer keyed code. As the programmer works in the
graphical environment, much of the program code is automatically generated by the Visual
Basic program. In order to understand how this happens it is necessary to understand the major
concepts, objects and tools used by Visual Basic. The main object in Visual Basic is called
a form. When you open a new project, you will start with a clear form that looks similar to
this:

17
BIKE SHOWROOM MANAGEMENT

This form will eventually be incorporated into your program as a window. To this form
you add controls. Controls are things like text boxes, check boxes and command buttons.
Controls are added to your form by choosing them from the Visual Basic "tool box" with the
mouse and inserting them in the form. Yours may look different, but the basic Visual Basic
Tool Box looks like this:

18
BIKE SHOWROOM MANAGEMENT

AREAS OF APPLICATION

The term "Personal Programming" refers to the idea that, wherever you work,
whatever you do, you can expand your computer's usefulness by writing applications to use
in your own job. Personal Programming is what Visual Basic is all about.

Using Visual Basic's tools, you quickly translate an abstract idea into a program
design you can actually see on the screen. VB encourages you to experiment, revise, correct,
and network your design until the new project meets your requirements. However, most of
all, it inspires your imagination and creativity.

Visual Basic is ideal for developing applications that run in the new Windows 95 operating
system. VB presents a 3-step approach for creating programs:

1. Design the appearance of your application.


2. Assign property settings to the objects of your program.
3. Write the code to direct specific tasks at runtime.

Visual Basic can and is used in a number of different areas, for example:

 Education
 Research
 Medicine
 Business
 Commerce
 Marketing and Sales
 Accounting
 Consulting
 Law
 Science

19
BIKE SHOWROOM MANAGEMENT

3.5 DATABASE (MS SQL SERVER)

Microsoft SQL Server

Microsoft SQL Server is a relational database management system, or


RDBMS, that supports a wide variety of transaction processing, business intelligence and
analytics applications in corporate IT environments. It's one of the three market-leading
database technologies, along with Oracle Database and IBM's DB2.

History

As of October 2017, the following versions are supported by Microsoft:

• SQL Server 2008

• SQL Server 2008 R2

• SQL Server 2012

• SQL Server 2014

• SQL Server 2016

• SQL Server 2017

From SQL Server 2016 onward, the product is supported on x64 processors only.

The current version is Microsoft SQL Server 2017, released October 2, 2017. The RTM version
is 14.1709.3807.1.

20
BIKE SHOWROOM MANAGEMENT

21
BIKE SHOWROOM MANAGEMENT

INTRODUCTION TO FEASIBILITY STUDY

A project feasibility study is a comprehensive report that examines in detail the five
frames of analysis of a given project. It also takes into consideration its four Ps, its risks and
POVs, and its constraints (calendar, costs, and norms of quality). The goal is to determine
whether the project should go ahead, be redesigned, or else abandoned altogether.

The five frames of analysis are: The frame of definition; the frame of contextual risks; the
frame of potentiality; the parametric frame; the frame of dominant and contingency strategies.

The four Ps are traditionally defined as Plan, Processes, People, and Power. The risks are
considered to be external to the project and are divided in eight categories: financial and
organizational (Processes) environmental and technological; marketing and sociocultural; and
(Power) legal and political. POVs are Points of Vulnerability: they differ from risks in the sense
that they are internal to the project and can be controlled or else eliminated.

TECHNICAL FEASIBILITY:

The system must be evaluated from the technical point of view first, the assessment of
this feasibility must be based on an outline design of the system requirement in the terms of
input, output, programmers and procedures. Having identified an outline system, the
investigation must go on to suggest the type of equipment, required developing the system, and
of running the system once has been designed.

Technical issues raised during the investigations are:

 Does the existing technology sufficient for the suggested one?


 The system expand if developed?

The project must be developed such that the necessary functions and performance and
achieved within the constraints, the project is developed with in latest technology. Through
the technology may become obsolete after some period of time, due to the fact the newer

22
BIKE SHOWROOM MANAGEMENT

version of the same software supports the older version, the system may still be used. So,
there are minimal constraints involved with the project.

The System has been developed using the “visual basic 2008” the project is technologically
feasible for development.

ECONOMIC FEASIBILITY:

The developing system must be justified by cost send benefits. Criteria to that the effort
is concentrated on project, which will give the best, return at the earliest. One of the factors,
which effect the development of a new system, is the cost it would require.

The following are some of the important financial questions asked during preliminary
investigation:

 The cost conducted a full system investigation


 Total estimated cost of the project
 The cost of the software

Since the system is developed as part of project work, there is no manual cost to spent
for the proposed system. Also, all the resources are already available, it give an
indication of the systems economically possible for development.

BEHAVIOUR FEASIBILITY:

This includes the following questions:

 Is there sufficient support for the users?


 Will the proposed system cause harm?

23
BIKE SHOWROOM MANAGEMENT

Data flow diagram

A data flow diagram (DFD) is a graphical representation of the "flow" of data through
an information system, modelling its process aspects. A DFD is often used as a preliminary
step to create an overview of the system without going into great detail, which can later be
elaborated. DFDs, can also be used for the visualization of data processing structured design.

A DFD shows what kind of information will be input to and output from the system, how the
data will advance through the system, and where the data will be stored.

Types of Data Flow: -

 Physical DFD
 Logical DFD

Physical DFD:
The physical DFD is the model of current system and is used to ensure that system has
been clearly understood. Physical DFDs shows actual devices, departments and people
etc.…, involved in the current system.

Logical DFD:
Logical DFD are the model of proposed system. They clearly should show the
requirement on which the new system should be built. Later during design activity this
take has basis for drawing the system structure charts.

24
BIKE SHOWROOM MANAGEMENT

The basic notation used to create DFD’s are as follows:

Data flow: Data move in a specific direction from an origin to a destination.


The physical component is not identified

Source: External source or destination of data, which may be people, organization other entity

Data Storage: Here data are stored or referenced by a process or in the system

Design: Design is the first step in moving from problem domain to the solution domain. Design
is essentially the bridge between requirements specifications and the final solution. The goal
of design process is top produce a model or representation of a system, which can be used later
to build that system. The produce model is called the “design of the system”,

It is a solution for the system. In this level the focus is a diving which module are needed for
the system and the specification of these models.

25
BIKE SHOWROOM MANAGEMENT

TABLES

1. Table Name: Login Form

Column Name Attributes


User Name nvarchar(50)
Password nvarchar(50)

2. Table Name: Area Names

Column Name Attributes

Area Name nvarchar(50)


Customer Name nvarchar(50)

3. Table Name: Qualification Form

Column Name Attributes

Qualification Name nvarchar(50)


Details nvarchar(50)

4. Table Name: Profession form

Column Name Attributes

Profession Name nvarchar(50)


Details nvarchar(50)

26
BIKE SHOWROOM MANAGEMENT

5. Table Name: Employee Details Form

Column Name Attributes

Employee Code nvarchar(50)


Employee Name nvarchar(50)
Add1 nvarchar(50)
Add2 nvarchar(50)
Add3 nvarchar(50)
Add4 nvarchar(50)
Mobile No nvarchar(50)
Email nvarchar(50)
Qualification nvarchar(50)
Designation nvarchar(50)
DOJ nvarchar(50)
Salary nvarchar(50)

6. Table Name: Customer Details Form

Column Name Details


Cust Code nvarchar(50)
Cust Name nvarchar(50)
Add1 nvarchar(50)
Add2 nvarchar(50)
Add3 nvarchar(50)
Pin code nvarchar(50)
phone no nvarchar(50)
Email nvarchar(50)
Qualification nvarchar(50)
Profession nvarchar(50)

27
BIKE SHOWROOM MANAGEMENT

7. Table Name: Bike Details Form

Column Name Attributes

Bike Model nvarchar(50)

rDate nvarchar(50)

Price nvarchar(50)

cColor nvarchar(50)

Facilities nvarchar(50)

Engine Type nvarchar(50)

Other Details nvarchar(50)

8. Table Name: Enquiry Details Form

Column Name Attributes

Enquiry No nvarchar(50)

eDate nvarchar(50)

cName nvarchar(50)

cAddress nvarchar(50)

Phone no nvarchar(50)

Area Name nvarchar(50)

eDetails nvarchar(50)

28
BIKE SHOWROOM MANAGEMENT

9. Table Name: Quotation Form

Column Name Attributes


Quotation No nvarchar(50)
Qdate nvarchar(50)
CName nvarchar(50)
cAddress nvarchar(50)
Phone No nvarchar(50)
Bike Model nvarchar(50)
Basic Price nvarchar(50)
Accessories nvarchar(50)
Insurance nvarchar(50)
Road Tax nvarchar(50)
Regamt nvarchar(50)
Total Price nvarchar(50)

10. Table Name: Billing Form

Column Name Attributes


Bill No nvarchar (50)
bDate nvarchar (50)
cName nvarchar (50)
cAddress nvarchar (50)
Phone No nvarchar (50)
Bike Model nvarchar (50)
Basic Price nvarchar (50)
Accessories nvarchar (50)
Insurance nvarchar (50)
Road Tax nvarchar (50)
Regamt nvarchar (50)
Total Price nvarchar (50)

29
BIKE SHOWROOM MANAGEMENT

DATA FLOW DIAGRAM

Main Page Main Entries


ADMIN
Admin

Customer
Details
Forgot
Passwor Byke Details
d

Enquiry Details

Send
Quotation
Mail

Billing

Reports

30
BIKE SHOWROOM MANAGEMENT

Login Page Username

Password
Forgot
Password

Send
Mail

31
BIKE SHOWROOM MANAGEMENT

ER – DIAGRAM

32
BIKE SHOWROOM MANAGEMENT

IMPLEMENTATION (SOURCE CODE)

33
BIKE SHOWROOM MANAGEMENT

CODING
1.Login Form Code:

Imports System.Data.SqlClient
Public Class LoginForm

Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles OK.Click

If Conn.State = ConnectionState.Open Then Conn.Close()


Conn.Open()
Dim Cmd0 As New SqlCommand("select * from UsersTab where uName='" &
UCase(UsernameTextBox.Text) & "' and pword='" & PasswordTextBox.Text & "'", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
MDIParent1.Show()
Me.Hide()
If Conn.State = ConnectionState.Open Then Conn.Close()
Else
MsgBox("Username or Password is not correct please check")
End If
End Sub

Private Sub Cancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Cancel.Click
End
End Sub
End Class

34
BIKE SHOWROOM MANAGEMENT

2.MDI Form Code:

Imports System.Windows.Forms

Public Class MDIParent1

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


System.EventArgs) Handles Me.Disposed
End
End Sub

Private Sub AreaNamesToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles AreaNamesToolStripMenuItem.Click
AreaNamesForm.MdiParent = Me
AreaNamesForm.Show()

End Sub

Private Sub QualificationDetailsToolStripMenuItem_Click(ByVal sender As


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

Private Sub ProfessionDetailsToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles ProfessionDetailsToolStripMenuItem.Click
Designationform.MdiParent = Me
Designationform.Show()
End Sub

35
BIKE SHOWROOM MANAGEMENT

Private Sub EmployeeDetailsToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs)
EmpDetForm.MdiParent = Me
EmpDetForm.Show()
End Sub

Private Sub CustomerDetailsToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles CustomerDetailsToolStripMenuItem.Click
CustForm.MdiParent = Me
CustForm.Show()
End Sub

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


e As System.EventArgs) Handles CarDetailsToolStripMenuItem.Click
VehicleDetailsForm.MdiParent = Me
VehicleDetailsForm.Show()
End Sub

Private Sub EnquiryDetailsToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles EnquiryDetailsToolStripMenuItem.Click
EnquiryForm.MdiParent = Me
EnquiryForm.Show()
End Sub

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


e As System.EventArgs) Handles QuotationToolStripMenuItem.Click
QuotationForm.MdiParent = Me
QuotationForm.Show()
End Sub

Private Sub CustomerDetailsToolStripMenuItem1_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles CustomerDetailsToolStripMenuItem1.Click
CustListReport.MdiParent = Me
CustListReport.Show()

36
BIKE SHOWROOM MANAGEMENT

End Sub

Private Sub EmployeeDetailsToolStripMenuItem1_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs)
EmpDetForm.MdiParent = Me
EmpDetForm.Show()
End Sub

Private Sub QuotationDetailsToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles QuotationDetailsToolStripMenuItem.Click
QuotationReportForm.MdiParent = Me
QuotationReportForm.Show()
End Sub

Private Sub BillingReportToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles BillingReportToolStripMenuItem.Click
BillingReportForm.MdiParent = Me
BillingReportForm.Show()
End Sub

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


System.EventArgs) Handles ToolStripMenuItem1.Click
BillingForm.MdiParent = Me
BillingForm.Show()
End Sub

Private Sub EmpDetailsToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles EmpDetailsToolStripMenuItem.Click
EmpDetForm.MdiParent = Me
EmpDetForm.Show()
End Sub
End Class

37
BIKE SHOWROOM MANAGEMENT

3.Module Code:

Imports System.Data.SqlClient

Module Module1
Public Conn As New SqlConnection("Data
Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\DatabaseByke.mdf;Integrated
Security=True;User Instance=True")
Public SqlStr, q1Var, q2Var As String
Public colVar, rowVar, I, J As Long
Public vTypeVar As Byte

4.Area Name Code:

Imports System.Data.SqlClient
Public Class AreaNamesForm
Dim pkVar As String
Private Sub VehicleForm_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Me.WindowState = FormWindowState.Maximized
disRecords()
End Sub

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


System.EventArgs)
ClearTxtControls(Me, 1)
TextBox1.Focus()
End Sub

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


System.EventArgs) Handles butSave.Click
SaveRecord()
butNew.Enabled = True

38
BIKE SHOWROOM MANAGEMENT

butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False

End Sub
Sub SaveRecord()
If TextBox1.Text = "" Then
MsgBox("Please enter the necessary details")
Exit Sub
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd0 As New SqlCommand("select AreaName from AreaTab where
AreaName='" & UCase(TextBox1.Text) & "'", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
MsgBox("This record is allready present in the database")
If Conn.State = ConnectionState.Open Then Conn.Close()
Exit Sub
End If

If Conn.State = ConnectionState.Open Then Conn.Close()


Conn.Open()
q1Var = "insert into AreaTab("
q2Var = " values("
q1Var = q1Var & "AreaName" & ","
q2Var = q2Var & "'" & UCase(TextBox1.Text) & "',"
q1Var = q1Var & "cAreas" & ")"
q2Var = q2Var & "'" & TextBox2.Text & "')"

'MsgBox(q1Var & q2Var)


Dim cmd1 As New SqlCommand(q1Var & q2Var, Conn)
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()

39
BIKE SHOWROOM MANAGEMENT

disRecords()

End Sub
Sub disRecords()
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim DS1 As New DataSet
Dim adp As New SqlDataAdapter("Select AreaName,cAreas From AreaTab order by
AreaName", Conn)
adp.Fill(DS1)
DG1.DataSource = DS1.Tables(0)
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub

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


System.Windows.Forms.DataGridViewCellEventArgs) Handles DG1.CellContentClick
pkVar = DG1.CurrentRow.Cells(0).Value
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd0 As New SqlCommand("select * from AreaTab where AreaName='" &
pkVar & "'", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
D1.Read()
TextBox1.Text = D1(0).ToString
TextBox2.Text = D1(1).ToString

butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = True
ButDelete.Enabled = True
Else
TextBox1.Text = ""
TextBox2.Text = ""

40
BIKE SHOWROOM MANAGEMENT

butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False

End If
If Conn.State = ConnectionState.Open Then Conn.Close()

End Sub

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


System.EventArgs) Handles butClose.Click
Me.Close()
End Sub

Private Sub butModify_Click(ByVal sender As Object, ByVal e As System.EventArgs)


Handles butModify.Click
If vbNo = MsgBox("Are you sure you want modify this record", MsgBoxStyle.YesNo,
"Delete") Then Exit Sub
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim cmd1 As New SqlCommand("Delete from AreaTab where AreaName='" & pkVar
& "'", Conn)
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()
SaveRecord()
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False

End Sub

41
BIKE SHOWROOM MANAGEMENT

Private Sub ButDelete_Click(ByVal sender As Object, ByVal e As System.EventArgs)


Handles ButDelete.Click
If vbNo = MsgBox("Are you sure you want delete this record", MsgBoxStyle.YesNo,
"Delete") Then Exit Sub
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim cmd1 As New SqlCommand("Delete from AreaTab where AreaName='" & pkVar
& "'", Conn)
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()
disRecords()
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False

End Sub

Private Sub butNew_Click1(ByVal sender As Object, ByVal e As System.EventArgs)


Handles butNew.Click
ClearTxtControls(Me, 1)
TextBox1.Focus()
butNew.Enabled = False
butSave.Enabled = True
butModify.Enabled = False
ButDelete.Enabled = False
End Sub

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


System.EventArgs) Handles butList.Click
disRecords()
End Sub

42
BIKE SHOWROOM MANAGEMENT

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


System.EventArgs) Handles TextBox1.LostFocus
TextBox1.Text = UCase(TextBox1.Text)
End Sub
End Class

5.Qualification Details Code:

Imports System.Data.SqlClient
Public Class QualificationForm
Dim pkVar As String
Private Sub VehicleForm_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Me.WindowState = FormWindowState.Maximized
disRecords()
End Sub

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


System.EventArgs)
ClearTxtControls(Me, 1)
TextBox1.Focus()
End Sub

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


System.EventArgs) Handles butSave.Click
SaveRecord()
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False

End Sub

43
BIKE SHOWROOM MANAGEMENT

Sub SaveRecord()
If TextBox1.Text = "" Then
MsgBox("Please enter the necessary details")
Exit Sub
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd0 As New SqlCommand("select QualificationName from QualificationTab
where QualificationName='" & UCase(TextBox1.Text) & "'", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
MsgBox("This record is allready present in the database")
If Conn.State = ConnectionState.Open Then Conn.Close()
Exit Sub
End If

If Conn.State = ConnectionState.Open Then Conn.Close()


Conn.Open()
q1Var = "insert into QualificationTab("
q2Var = " values("
q1Var = q1Var & "QualificationName" & ","
q2Var = q2Var & "'" & UCase(TextBox1.Text) & "',"
q1Var = q1Var & "Details" & ")"
q2Var = q2Var & "'" & TextBox2.Text & "')"

'MsgBox(q1Var & q2Var)


Dim cmd1 As New SqlCommand(q1Var & q2Var, Conn)
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()
disRecords()

End Sub
Sub disRecords()
If Conn.State = ConnectionState.Open Then Conn.Close()

44
BIKE SHOWROOM MANAGEMENT

Conn.Open()
Dim DS1 As New DataSet
Dim adp As New SqlDataAdapter("Select QualificationName,Details From
QualificationTab order by QualificationName", Conn)
adp.Fill(DS1)
DG1.DataSource = DS1.Tables(0)
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub

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


System.Windows.Forms.DataGridViewCellEventArgs) Handles DG1.CellContentClick
pkVar = DG1.CurrentRow.Cells(0).Value
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd0 As New SqlCommand("select * from QualificationTab where
QualificationName='" & pkVar & "'", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
D1.Read()
TextBox1.Text = D1(0).ToString
TextBox2.Text = D1(1).ToString

butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = True
ButDelete.Enabled = True
Else
TextBox1.Text = ""
TextBox2.Text = ""
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False

45
BIKE SHOWROOM MANAGEMENT

End If
If Conn.State = ConnectionState.Open Then Conn.Close()

End Sub

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


System.EventArgs) Handles butClose.Click
Me.Close()
End Sub

Private Sub butModify_Click(ByVal sender As Object, ByVal e As System.EventArgs)


Handles butModify.Click
If vbNo = MsgBox("Are you sure you want modify this record", MsgBoxStyle.YesNo,
"Delete") Then Exit Sub
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim cmd1 As New SqlCommand("Delete from QualificationTab where
QualificationName='" & pkVar & "'", Conn)
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()
SaveRecord()
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False

End Sub

Private Sub ButDelete_Click(ByVal sender As Object, ByVal e As System.EventArgs)


Handles ButDelete.Click
If vbNo = MsgBox("Are you sure you want delete this record", MsgBoxStyle.YesNo,
"Delete") Then Exit Sub
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()

46
BIKE SHOWROOM MANAGEMENT

Dim cmd1 As New SqlCommand("Delete from QualificationTab where


QualificationName='" & pkVar & "'", Conn)
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()
disRecords()
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False

End Sub

Private Sub butNew_Click1(ByVal sender As Object, ByVal e As System.EventArgs)


Handles butNew.Click
ClearTxtControls(Me, 1)
TextBox1.Focus()
butNew.Enabled = False
butSave.Enabled = True
butModify.Enabled = False
ButDelete.Enabled = False
End Sub

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


System.EventArgs) Handles butList.Click
disRecords()
End Sub

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


System.EventArgs) Handles TextBox1.LostFocus
TextBox1.Text = UCase(TextBox1.Text)
End Sub
End Class

47
BIKE SHOWROOM MANAGEMENT

6.Profession Details Code:

Imports System.Data.SqlClient
Public Class Designationform
Dim pkVar As String
Private Sub VehicleForm_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Me.WindowState = FormWindowState.Maximized
disRecords()
End Sub

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


System.EventArgs)
ClearTxtControls(Me, 1)
TextBox1.Focus()
End Sub

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


System.EventArgs) Handles butSave.Click
SaveRecord()
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False

End Sub
Sub SaveRecord()
If TextBox1.Text = "" Then
MsgBox("Please enter the necessary details")
Exit Sub
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()

48
BIKE SHOWROOM MANAGEMENT

Dim Cmd0 As New SqlCommand("select DesignationName from DesignationTab


where DesignationName='" & UCase(TextBox1.Text) & "'", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
MsgBox("This record is allready present in the database")
If Conn.State = ConnectionState.Open Then Conn.Close()
Exit Sub
End If

If Conn.State = ConnectionState.Open Then Conn.Close()


Conn.Open()
q1Var = "insert into DesignationTab("
q2Var = " values("
q1Var = q1Var & "DesignationName" & ","
q2Var = q2Var & "'" & UCase(TextBox1.Text) & "',"
q1Var = q1Var & "Details" & ")"
q2Var = q2Var & "'" & TextBox2.Text & "')"

'MsgBox(q1Var & q2Var)


Dim cmd1 As New SqlCommand(q1Var & q2Var, Conn)
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()
disRecords()

End Sub
Sub disRecords()
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim DS1 As New DataSet
Dim adp As New SqlDataAdapter("Select DesignationName,Details From
DesignationTab order by DesignationName", Conn)
adp.Fill(DS1)
DG1.DataSource = DS1.Tables(0)
If Conn.State = ConnectionState.Open Then Conn.Close()

49
BIKE SHOWROOM MANAGEMENT

End Sub

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


System.Windows.Forms.DataGridViewCellEventArgs) Handles DG1.CellContentClick
pkVar = DG1.CurrentRow.Cells(0).Value
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd0 As New SqlCommand("select * from DesignationTab where
DesignationName='" & pkVar & "'", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
D1.Read()
TextBox1.Text = D1(0).ToString
TextBox2.Text = D1(1).ToString

butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = True
ButDelete.Enabled = True
Else
TextBox1.Text = ""
TextBox2.Text = ""
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False

End If
If Conn.State = ConnectionState.Open Then Conn.Close()

End Sub

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


System.EventArgs) Handles butClose.Click

50
BIKE SHOWROOM MANAGEMENT

Me.Close()
End Sub

Private Sub butModify_Click(ByVal sender As Object, ByVal e As System.EventArgs)


Handles butModify.Click
If vbNo = MsgBox("Are you sure you want modify this record", MsgBoxStyle.YesNo,
"Delete") Then Exit Sub
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim cmd1 As New SqlCommand("Delete from DesignationTab where
DesignationName='" & pkVar & "'", Conn)
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()
SaveRecord()
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False

End Sub

Private Sub ButDelete_Click(ByVal sender As Object, ByVal e As System.EventArgs)


Handles ButDelete.Click
If vbNo = MsgBox("Are you sure you want delete this record", MsgBoxStyle.YesNo,
"Delete") Then Exit Sub
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim cmd1 As New SqlCommand("Delete from DesignationTab where
DesignationName='" & pkVar & "'", Conn)
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()
disRecords()
butNew.Enabled = True
butSave.Enabled = False

51
BIKE SHOWROOM MANAGEMENT

butModify.Enabled = False
ButDelete.Enabled = False

End Sub

Private Sub butNew_Click1(ByVal sender As Object, ByVal e As System.EventArgs)


Handles butNew.Click
ClearTxtControls(Me, 1)
TextBox1.Focus()
butNew.Enabled = False
butSave.Enabled = True
butModify.Enabled = False
ButDelete.Enabled = False
End Sub

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


System.EventArgs) Handles butList.Click
disRecords()
End Sub

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


System.EventArgs) Handles TextBox1.LostFocus
TextBox1.Text = UCase(TextBox1.Text)
End Sub
End Class

7.Employee Details Code:

Imports System.Data.SqlClient
Imports System.Text.RegularExpressions

Public Class EmpDetForm


Dim pkVar As String

52
BIKE SHOWROOM MANAGEMENT

Private Sub EmpDetForm_Load(ByVal sender As Object, ByVal e As System.EventArgs)


Handles Me.Load
Me.WindowState = FormWindowState.Maximized
disRecords()

Conn.Open()
Dim Cmd1 As New SqlCommand("select empCode from empDetTab order by
empCode", Conn)
Dim D1 As SqlDataReader = Cmd1.ExecuteReader()
While D1.Read
ComboBox1.Items.Add(D1(0))
End While
Conn.Close()

Conn.Open()
Dim Cmd2 As New SqlCommand("select empCode from empDetTab order by
empcode", Conn)
Dim D2 As SqlDataReader = Cmd2.ExecuteReader()
While D2.Read
ComboBox2.Items.Add(D2(0))
End While
Conn.Close()

End Sub
Private Sub butSave_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles butSave.Click
SaveRecord()
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False

End Sub

53
BIKE SHOWROOM MANAGEMENT

Sub SaveRecord()
If TextBox1.Text = "" Then
MsgBox("Please enter the necessary details")
Exit Sub
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd0 As New SqlCommand("select empCode from empDetTab where
empCode='" & UCase(TextBox1.Text) & "'", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
MsgBox("This record is allready present in the database")
If Conn.State = ConnectionState.Open Then Conn.Close()
Exit Sub
End If

If Conn.State = ConnectionState.Open Then Conn.Close()


Conn.Open()
q1Var = "insert into empDetTab("
q2Var = " values("
q1Var = q1Var & "empCode" & ","
q2Var = q2Var & "'" & UCase(TextBox1.Text) & "',"
q1Var = q1Var & "empName" & ","
q2Var = q2Var & "'" & TextBox2.Text & "',"
q1Var = q1Var & "Add1" & ","
q2Var = q2Var & "'" & TextBox3.Text & "',"
q1Var = q1Var & "Add2" & ","
q2Var = q2Var & "'" & TextBox4.Text & "',"
q1Var = q1Var & "Add3" & ","
q2Var = q2Var & "'" & TextBox5.Text & "',"
q1Var = q1Var & "Add4" & ","
q2Var = q2Var & "'" & TextBox6.Text & "',"
q1Var = q1Var & "MobileNo" & ","
q2Var = q2Var & "'" & TextBox7.Text & "',"

54
BIKE SHOWROOM MANAGEMENT

q1Var = q1Var & "eMail" & ","


q2Var = q2Var & "'" & TextBox8.Text & "',"
q1Var = q1Var & "Qualification" & ","
q2Var = q2Var & "'" & ComboBox1.Text & "',"
q1Var = q1Var & "Designation" & ","
q2Var = q2Var & "'" & ComboBox2.Text & "',"
q1Var = q1Var & "DOJ" & ","
q2Var = q2Var & "'" & jDate.Value & "',"
q1Var = q1Var & "Salary" & ")"
q2Var = q2Var & "" & Val(TextBox9.Text) & ")"

MsgBox(q1Var & q2Var)


Dim cmd1 As New SqlCommand(q1Var & q2Var, Conn)
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()
disRecords()

End Sub
Sub disRecords()
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim DS1 As New DataSet
Dim adp As New SqlDataAdapter("Select empCode,empName From empDetTab order
by empCode", Conn)
adp.Fill(DS1)
DG1.DataSource = DS1.Tables(0)
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub

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


System.Windows.Forms.DataGridViewCellEventArgs) Handles DG1.CellContentClick
pkVar = DG1.CurrentRow.Cells(0).Value
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()

55
BIKE SHOWROOM MANAGEMENT

Dim Cmd0 As New SqlCommand("select * from empDetTab where empCode='" &


pkVar & "'", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
D1.Read()
TextBox1.Text = D1(0).ToString
TextBox2.Text = D1(1).ToString
TextBox3.Text = D1(2).ToString
TextBox4.Text = D1(3).ToString
TextBox5.Text = D1(4).ToString
TextBox6.Text = D1(5).ToString
TextBox7.Text = D1(6).ToString
TextBox8.Text = D1(7).ToString
ComboBox1.Text = D1(8).ToString
ComboBox2.Text = D1(9).ToString
jDate.Value = D1(10).ToString
TextBox9.Text = D1(11).ToString
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = True
ButDelete.Enabled = True
Else
TextBox1.Text = ""
TextBox2.Text = ""
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False

End If
If Conn.State = ConnectionState.Open Then Conn.Close()

End Sub

56
BIKE SHOWROOM MANAGEMENT

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


System.EventArgs) Handles butClose.Click
Me.Close()
End Sub

Private Sub butModify_Click(ByVal sender As Object, ByVal e As System.EventArgs)


Handles butModify.Click
If vbNo = MsgBox("Are you sure you want modify this record", MsgBoxStyle.YesNo,
"Delete") Then Exit Sub
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim cmd1 As New SqlCommand("Delete from empDetTab where empCode='" &
pkVar & "'", Conn)
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()
SaveRecord()
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False

End Sub

Private Sub ButDelete_Click(ByVal sender As Object, ByVal e As System.EventArgs)


Handles ButDelete.Click
If vbNo = MsgBox("Are you sure you want delete this record", MsgBoxStyle.YesNo,
"Delete") Then Exit Sub
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim cmd1 As New SqlCommand("Delete from empDetTab where empCode='" &
pkVar & "'", Conn)
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()
disRecords()

57
BIKE SHOWROOM MANAGEMENT

butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False

End Sub

Private Sub butNew_Click1(ByVal sender As Object, ByVal e As System.EventArgs)


Handles butNew.Click
ClearTxtControls(Me, 1)
TextBox1.Focus()
butNew.Enabled = False
butSave.Enabled = True
butModify.Enabled = False
ButDelete.Enabled = False
End Sub

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


System.EventArgs) Handles TextBox2.LostFocus
If Not Regex.Match(TextBox2.Text, "^[a-z,]*$", RegexOptions.IgnoreCase).Success
Then
MsgBox("Please enter alpha text only.")
TextBox2.Focus()
End If
End Sub

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


System.EventArgs) Handles TextBox2.TextChanged

End Sub

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


System.EventArgs) Handles TextBox7.LostFocus

58
BIKE SHOWROOM MANAGEMENT

If Not Regex.Match(TextBox7.Text, "^[0-9,]*$", RegexOptions.IgnoreCase).Success


Then
MsgBox("Please enter numbers only.")
TextBox7.Focus()
End If
End Sub

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


System.EventArgs) Handles TextBox7.TextChanged

End Sub
End Class

8.Customer Details Code:

Imports System.Data.SqlClient
Imports System.Text.RegularExpressions

Public Class CustForm


Dim pkVar As String
Private Sub custForm_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Me.WindowState = FormWindowState.Maximized
disRecords()

If Conn.State = ConnectionState.Open Then Conn.Close()


Conn.Open()
Dim Cmd1 As New SqlCommand("select QualificationName from QualificationTab
order by QualificationName", Conn)
Dim D1 As SqlDataReader = Cmd1.ExecuteReader()
While D1.Read
ComboBox1.Items.Add(D1(0).ToString)
End While
If Conn.State = ConnectionState.Open Then Conn.Close()

59
BIKE SHOWROOM MANAGEMENT

Conn.Open()
Dim Cmd2 As New SqlCommand("select DesignationName from DesignationTab order
by DesignationName", Conn)
Dim D2 As SqlDataReader = Cmd2.ExecuteReader()
While D2.Read
ComboBox2.Items.Add(D2(0).ToString)
End While
End Sub

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


System.EventArgs) Handles butSave.Click
SaveRecord()
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False

End Sub
Sub SaveRecord()
If TextBox1.Text = "" Then
MsgBox("Please enter the necessary details")
Exit Sub
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd0 As New SqlCommand("select custCode from CustDetTab where
custCode='" & UCase(TextBox1.Text) & "'", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
MsgBox("This record is allready present in the database")
If Conn.State = ConnectionState.Open Then Conn.Close()
Exit Sub
End If

60
BIKE SHOWROOM MANAGEMENT

If Conn.State = ConnectionState.Open Then Conn.Close()


Conn.Open()
q1Var = "insert into CustDetTab("
q2Var = " values("
q1Var = q1Var & "custCode" & ","
q2Var = q2Var & "'" & UCase(TextBox1.Text) & "',"
q1Var = q1Var & "custname" & ","
q2Var = q2Var & "'" & TextBox2.Text & "',"
q1Var = q1Var & "Add1" & ","
q2Var = q2Var & "'" & TextBox3.Text & "',"
q1Var = q1Var & "Add2" & ","
q2Var = q2Var & "'" & TextBox4.Text & "',"
q1Var = q1Var & "Add3" & ","
q2Var = q2Var & "'" & TextBox5.Text & "',"
q1Var = q1Var & "PinCode" & ","
q2Var = q2Var & "'" & TextBox6.Text & "',"
q1Var = q1Var & "PhoneNo" & ","
q2Var = q2Var & "'" & TextBox7.Text & "',"
q1Var = q1Var & "eMail" & ")"
q2Var = q2Var & "'" & TextBox8.Text & "')"

MsgBox(q1Var & q2Var)


Dim cmd1 As New SqlCommand(q1Var & q2Var, Conn)
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()
disRecords()

End Sub

Sub disRecords()
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim DS1 As New DataSet

61
BIKE SHOWROOM MANAGEMENT

Dim adp As New SqlDataAdapter("Select custCode,CustName From CustDetTab order


by custCode", Conn)
adp.Fill(DS1)
DG1.DataSource = DS1.Tables(0)
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub

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


System.Windows.Forms.DataGridViewCellEventArgs) Handles DG1.CellContentClick
pkVar = DG1.CurrentRow.Cells(0).Value
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd0 As New SqlCommand("select * from CustDetTab where custCode='" &
pkVar & "'", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
D1.Read()
TextBox1.Text = D1(0).ToString
TextBox2.Text = D1(1).ToString
TextBox3.Text = D1(2).ToString
TextBox4.Text = D1(3).ToString
TextBox5.Text = D1(4).ToString
TextBox6.Text = D1(5).ToString
TextBox7.Text = D1(6).ToString
TextBox8.Text = D1(7).ToString
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = True
ButDelete.Enabled = True
Else
TextBox1.Text = ""
TextBox2.Text = ""
butNew.Enabled = True
butSave.Enabled = False

62
BIKE SHOWROOM MANAGEMENT

butModify.Enabled = False
ButDelete.Enabled = False

End If
If Conn.State = ConnectionState.Open Then Conn.Close()

End Sub

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


System.EventArgs) Handles butClose.Click
Me.Close()
End Sub

Private Sub butModify_Click(ByVal sender As Object, ByVal e As System.EventArgs)


Handles butModify.Click
If vbNo = MsgBox("Are you sure you want modify this record", MsgBoxStyle.YesNo,
"Delete") Then Exit Sub
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim cmd1 As New SqlCommand("Delete from CustDetTab where custCode='" &
pkVar & "'", Conn)
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()
SaveRecord()
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False

End Sub

Private Sub ButDelete_Click(ByVal sender As Object, ByVal e As System.EventArgs)


Handles ButDelete.Click

63
BIKE SHOWROOM MANAGEMENT

If vbNo = MsgBox("Are you sure you want delete this record", MsgBoxStyle.YesNo,
"Delete") Then Exit Sub
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim cmd1 As New SqlCommand("Delete from CustDetTab where custCode='" &
pkVar & "'", Conn)
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()
disRecords()
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False

End Sub

Private Sub butNew_Click1(ByVal sender As Object, ByVal e As System.EventArgs)


Handles butNew.Click
ClearTxtControls(Me, 1)
TextBox1.Focus()
butNew.Enabled = False
butSave.Enabled = True
butModify.Enabled = False
ButDelete.Enabled = False
End Sub

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


System.EventArgs) Handles butList.Click
disRecords()
End Sub

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


System.EventArgs) Handles TextBox2.LostFocus

64
BIKE SHOWROOM MANAGEMENT

If Not Regex.Match(TextBox2.Text, "^[a-z,]*$", RegexOptions.IgnoreCase).Success


Then
MsgBox("Please enter alpha text only.")
TextBox2.Focus()
End If
End Sub

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


System.EventArgs) Handles TextBox2.TextChanged

End Sub

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


System.EventArgs) Handles TextBox7.LostFocus
If Not Regex.Match(TextBox7.Text, "^[0-9,]*$", RegexOptions.IgnoreCase).Success
Then
MsgBox("Please enter numbers only.")
TextBox7.Focus()
End If
End Sub

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


System.EventArgs) Handles TextBox7.TextChanged

End Sub

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


System.EventArgs) Handles TextBox8.LostFocus
If Not Regex.Match(TextBox7.Text, "^[0-9,a-z]*$", RegexOptions.IgnoreCase).Success
Then
MsgBox("Please enter numbers,alpha text only.")
TextBox7.Focus()
End If
End Sub

65
BIKE SHOWROOM MANAGEMENT

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


System.EventArgs) Handles TextBox8.TextChanged

End Sub
End Class

66
BIKE SHOWROOM MANAGEMENT

RESULTS

67
BIKE SHOWROOM MANAGEMENT

1:Login Form

2:MDI Form

68
BIKE SHOWROOM MANAGEMENT

3.MDI Sub Forms

4.Area Name Form:

69
BIKE SHOWROOM MANAGEMENT

5.Qualification Form:

6.Profession Form:

70
BIKE SHOWROOM MANAGEMENT

7.Employee Details Form:

8.Customer Details Form:

71
BIKE SHOWROOM MANAGEMENT

9.Bike Details Form:

10.Enquiry Details Form:

72
BIKE SHOWROOM MANAGEMENT

11.Quotation Form:

12.Billing Form:

73
BIKE SHOWROOM MANAGEMENT

13.Customer Details:

14.Quotation Report Form:

74
BIKE SHOWROOM MANAGEMENT

15.Billing Report Form:

REPORTS:

1. Customer Details Report:

75
BIKE SHOWROOM MANAGEMENT

2.Quotation Report:

3.Billing Report:

76
BIKE SHOWROOM MANAGEMENT

TESTING

77
BIKE SHOWROOM MANAGEMENT

TESTING

Software testing is an investigation conducted to provide stakeholders with


information about the quality of the software product or service under test Software
testing is an investigation conducted to provide stakeholders with information about the quality
of the software product or service under test. it can also provide

Software testing is an investigation conducted to provide stakeholders with


information about the quality of the software product or service under test Software testing is
an investigation conducted to provide stakeholders with information about the quality of the
software product or service under test.it can also provide the objective and independent view
of software because it allow business to appreciate and understand to implement the software.
Test techniques include the process of executing a program or application with the intent of
finding software bugs (errors or other defects), and verifying that the software product is fit for
use.

Software testing also involves the execution of software components or system component to
evaluate one or more properties.

Testing Objectives:

1. Testing is a process of executing a program with the intent of finding an error.


2. A good test case is one that has a high probability of finding an as yet undiscovered error.
3. A successful test is one that uncovers an as yet undiscovered error.

Testing Principles:

Before applying methods to design effective test cases, a software engineer must
understand the basic principles that guide software testing.

 All tests should be traceable to customer requirements. As we have seen, the objective
of software testing is to uncover errors. It follows that the most severe defects (from the

78
BIKE SHOWROOM MANAGEMENT

customer’s point of view) are those that cause the program to fail to meet its
requirements.
 Tests should be planned long before testing begins. Test planning can begin as soon as
the requirements model is complete. Detailed definition of test cases can begin as soon
as the design model has been solidified. Therefore, all tests can be planned and designed
before any code has been generated.
 The Pareto principle applies to software testing. Stated simply, the Pareto principle
implies that 80 percent of all errors uncovered during testing will likely be traceable to
20 percent of all program components. The problem, of course, is to isolate these
suspect components and to thoroughly test them.

The primary objective for test case design is to drive a set of tests that has the highest livelihood
for uncovering defects in software. To accomplish the objectives two different categories of
test case design techniques are used. They are

 White box testing

 Black box testing

White-box testing:

White-box testing is a method of testing software that test internal structure or


working of an application that opposed to its functionality. white-box testing an internal
perspective of the system, as well as programming skills, are used to design test cases. The
tester chooses inputs to exercise paths through the code and determine the appropriate outputs.
This is analogous to testing nodes in a circuit, e.g. in-circuit testing.

Black-box testing:

Black box testing is some software testing techniques in which functionality of


the software under test (SUT) is tested without looking at the internal code structure,
implementation details and knowledge of internal paths of the software. This type of testing is
based entirely on the software requirements and specifications.

79
BIKE SHOWROOM MANAGEMENT

Testing strategies:

A test strategy is an outline that describes the testing approach of the software
development cycle. It is created to inform project managers, testers, and developers about some
key issues of the testing process. This includes the testing objective, methods of testing new
functions, total time and resources required for the project, and the testing environment.

Test strategies describe how the product risks of the stakeholders are mitigated at the test-level,
which types of testing are to be performed, and which entry and exit criteria apply. They are
created based on development design documents.

Testing Fundamentals:

Software Testing Fundamentals (STF) is a platform to gain (or refresh) basic


knowledge in the field of Software Testing. If we are to ‘cliché’ it, the site is of the testers, by
the testers, and for the testers. Our goal is to build a resourceful repository of Quality Content
on Quality.

yes, you found it: the not-so-ultimate-but-fairly-comprehensive site for software testing
enthusiasts. Since most of our articles are based on various resources, references and
experiences, we do not claim any originality or authenticity. Browse the site at your own risk.

Unit Testing:

80
BIKE SHOWROOM MANAGEMENT

Unit testing is the testing of an individual unit or group of related units. It falls under
the class of white box testing. It is often done by the programmer to test that the unit he/she
has implemented is producing expected output against given input.

Unit Testing for Login Form

Integration Testing

Integration testing (sometimes called integration and testing, abbreviated I&T) is the phase in
software testing in which individual software modules are combined and tested as a group. It
occurs after unit testing and before validation testing. Integration testing takes as its input
modules that have been unit tested, groups them in larger aggregates, applies tests defined in
an integration test plan to those aggregates, and delivers as its output the integrated system
ready for system testing

81
BIKE SHOWROOM MANAGEMENT

System Testing:

System testing of software or hardware is testing conducted on a complete, integrated


system to evaluate the system's compliance with its specified requirements. System testing falls
within the scope of black-box testing, and as such, should require no knowledge of the inner
design of the code or logic.

As a rule, system testing takes, as its input, all of the "integrated" software components that
have passed integration testing and also the software system itself integrated with any
applicable hardware system(s). The purpose of integration testing is to detect any
inconsistencies between the software units that are integrated together (called assemblages) or
between any of the assemblages and the hardware. System testing is a more limited type of
testing; it seeks to detect defects both within the "inter-assemblages" and also within the system
as a whole.

Acceptance Testing:

In engineering and its various subdisciplines, acceptance testing is a test conducted to


determine if the requirements of a specification or contract are met. It may involve chemical
tests, physical tests.

In systems engineering it may involve black-box testing performed on a system (for example:
a piece of software, lots of manufactured mechanical parts, or batches of chemical products)
prior to its delivery.

82
BIKE SHOWROOM MANAGEMENT

In software testing the ISTQB defines acceptance as: formal testing with respect to user needs,
requirements, and business processes conducted to determine whether a system satisfies the
acceptance criteria and to enable the user, customers or other authorized entity to determine
whether or not to accept the system. Acceptance testing is also known as user acceptance testing
(UAT), end-user testing, operational acceptance testing (OAT) or field (acceptance) testing.

Test cases are derived to ensure that all statement in the problem have been executed at least
once during testing and that all logical conditions have been executed.

83
BIKE SHOWROOM MANAGEMENT

CONCLUSION

84
BIKE SHOWROOM MANAGEMENT

CONCLUSION

We started this project with the intention of giving our best and doing something
interesting and we have successfully achieved it.

If we were able to complete this project, this is largely due to the collective effort.

This SQl Server 2005 is very efficient and user friendly and way to store the details
that comes into existence. Although all feature are not provided the Important ones need to
make this software self-sufficient are present. The project has been successful in removing
manual work that was required to store data.

The tables that are created for this software have been designed in such a way that complete
information is given in a concise manner. Few of the function provided by this software are
new records, saved and modified.

The software is portable and flexible for future enhancements. Thus this project helps in
retrieving the details as single go using data base concept.

It is concluded that the objectives of the project work entitled “Bike Showroom management”
filled and desired result has been obtained. Each program in the project are functioning
normally and reliable to user.

85
BIKE SHOWROOM MANAGEMENT

BIBILOGRAPHY

86
BIKE SHOWROOM MANAGEMENT

BIBLIOGRAPHY

BOOKS:

VB.NET

MY SQL SERVER 2005

ONLINE REFERENCES:

www.google.com

www.1000projects.org

www.youtube.com/ Silent Army

87

S-ar putea să vă placă și