Sunteți pe pagina 1din 46

Vehicle Identification System

1. Introduction
Using this software application for vehicle registration office which works on
managing vehicles information and adding and removing new vehicle information
like registration no, name of owner, name of vehicle company and model of vehicle
and other vehicle related information and assign vehicle identification number etc.
this can save time, increase efficiency and provide efficient support for vehicle owner
and registration office.
The maintenance of the records of the different categories of vehicles and
their owners. The user of this program can add records of the vehicles and their
owners, view these records and can also edit them.
This project is basically aimed for the road and transport office which have
large number of records of different types of vehicles to be maintained. The project
makes it easier to search these records and edit them. The project has a very user
friendly interface and all the operations that can be performed in the project are selfexplanatory. It reduces the effort required to manually maintain all these records. This
project will really reduce the laborious record keeping.
The another part of process is FIR registration against vehicle and find
register FIR from record while changing ownership of vehicle The third part of
module is mobile application created using phone gap so we can use it any mobile
platform supported by phonegap for searching

of owner's name and information

about vehicle using vehicle number vehicle


The main intention of introducing this system is to identifying vehicle and
owner information using identifying mechanism, It is helpful in police theft checking
and reduction, Vehicle workshop

use it for providing better customer services

,Insurance Companies use it keep tracking vehicle, owner details and physical
verification of the vehicle etc. This system providing better services to the customer
that is customer wants to view the details of the vehicle and model and Color of the
vehicle. This system is useful for both Organization and Customer

Workshops are

use it for providing better services, Insurance Companies use it for

physical

verification, keep tracking vehicle insurance details The system is to identify


information of vehicle and owner.
Similar is case with vehicles. Today the world is considered as a competitive
world where everybody seeks for accuracy in least time. Earlier paper work was the

R.D.I.K &N.K.D COLLEGE BADNERA Page 1

Vehicle Identification System


means to keep various records. It was very time consuming and not even that
accurate. So, we decided to design and develop the Project called VEHICLE
IDENTIFICATION SYSTEM which eliminates the paper work and provides better
option to the people for their Vehicle records. It deals with the maintenance of the
records of the different categories of vehicles and their owners. The user of this
program can add records of the vehicles and their owners, view these records and can
also edit them.

R.D.I.K &N.K.D COLLEGE BADNERA Page 2

Vehicle Identification System

What is Vehicle Identification System?


The project Vehicle Identification System deals with the maintenance of the
records of the different categories of vehicles and their owners. The user of this
program can add records of the vehicles and their owners, view these records and can
also edit them.
This project is basically aimed for the Road and Transport Office which have
large number of records of different types of vehicles to be maintained. The project
makes it easier to search these records and edit them. The project has a very user
friendly interface and all the operations that can be performed in the project are selfexplanatory. It reduces the effort required to manually maintain all these records.

R.D.I.K &N.K.D COLLEGE BADNERA Page 3

Vehicle Identification System

Participants of the system


USER: This is the party who has day to day possession of the documents. He may
control the data depending on the system, but it is highly unlikely that he
has control of the protocols, software, or the hardware choices made in the
creation of the application.
DATA OWNER: This is the party who has control of the data within the application.
In cases such as using the application as a mechanism for carrying digital
certificates, the user is also the data owner.
TERMINAL: It is an electronic device that offers the application interactions with
the world. The terminal controls all I/O to and from the application
running on it.

R.D.I.K &N.K.D COLLEGE BADNERA Page 4

Vehicle Identification System

Life Cycle of Entry


The life cycle of the entry in the system has following phases Creation Phase
This phase is carried out by the user of the application. He registers himself to the
application
Pre-personalization Phase
This phase is carried out by the application. The application verifies the details
supplied by the user during registration and issues him login id and password.
Personalization Phase
This phase is conducted by the user. He personifies his vehicle profile by uploading
scanned copies of various documents and details of vehicle.
Utilization Phase
This is the phase for the normal use of the card by the card holder. The application
system, logical file access controls, and others are activated. Access of information on
the system will be limited by the security policies set by the application.
Invalidation Phase
The Data owner will keep checking for invalid or fake identities and discard them.

R.D.I.K &N.K.D COLLEGE BADNERA Page 5

Vehicle Identification System

Need of SMART RTO System


The purpose of this document is to describe all the external
requirements for a manual management system. It also describes the
interface for the system.
The customers can get much out of the system. They can get latest
information they require within no time. It helps to track and resolve
customer issues quickly, thereby delivering superior customer support
and taking customer satisfaction to the next level. They are welcome
to various services.
In a typical vehicle identification mechanism if we want any vehicle
information we need to go concern office and collect details ,If new
vehicle purchased ,for servicing they need to bring all the forms and
filling ,Insurance companies they need to enter all the details
manually .Here with this system new model

details displaying

something tedious and with this system communication between all


user is limited.
To provide services and support to satisfy the customer needs.
Offering an easy full-fledged delivery of transport services globally
Department needs digitization of all RC records. As on Dec 2002
records there are 51.71 Lakh records for vehicle registration. It is
estimated that the amount for data digitization for the departments
services would be approximately Rs 2.2 Crores.
The Department of Transport needs computing at both the Head office
and regional offices, and with the kind of usage of core departmental
functionalities it is recommended that a centralized architecture is
adopted (various options of solution deployment model is provide in
projectfor Computerized Check post That the citizens are not required
to come to the office of RTO / ARTO for vehicle registration, the
same is provided from the vehicle dealer itself

R.D.I.K &N.K.D COLLEGE BADNERA Page 6

Vehicle Identification System


2. Flowchart

Flowchart tools
The overall logic al structure (schema) of a database can be expressed graphically by
an ER-diagram, which is built up from the following components:

Rectangle represents Entity Set:

Ellipse represents Attributes:

Diamond represents Relationship among entity sets

Lines used to link attributes to entity sets and entity sets to Relationships:

Ellipse with the underlined attribute represents primary key attribute

Attribute Name

R.D.I.K &N.K.D COLLEGE BADNERA Page 7

Vehicle Identification System

START

NO
YES
New Vehicle?

Enter Details

Register

User Login

Use /Flow
Upload documents and details
Fig. : Flowchart of Application Data

END

R.D.I.K &N.K.D COLLEGE BADNERA Page 8

Vehicle Identification System


3. ER-Diagram

HANDLES

Registered user

Login id

Password
Reg. No.

Vehicle Data

Color

Fig. : ER-diagram for Vehicle Identification System


Model
Chassis no.
Brand
Dealer name

R.D.I.K &N.K.D COLLEGE BADNERA Page 9

Vehicle Identification System


4. Data Flow Diagram

Data Base

Searching

Section

Section

Vehicle
Identification
System

Exit

Fig: - DFD for vehicle search

R.D.I.K &N.K.D COLLEGE BADNERA Page 10

Vehicle Identification System


5. Languages and Tools used
Language (Front End)

::

C#.Net, JAVA, AJAX, CSS, HTML,

Database (Back End)

::

ASP.NET
Microsoft SQL Server 2012

Development Environment

::

MS Visual Studio 2010 Professional

Desktop Operating System

::

Phonegap
Windows 7 / 8.

Phonegap
PhoneGap is a mobile development framework produced by Nitobi,
purchased by Adobe Systems. It enables software programmers to build applications
for mobile devices using JavaScript, HTML5, and CSS3, instead of device-specific
languages such as Objective-C or Java. The resulting applications are hybrid, meaning
that they are neither truly native (because all layout rendering is done via web views
instead of the platform's native UI framework) nor purely web-based (because they
are not just web apps, but are packaged as apps for distribution and have access to
native device APIs). From version 1.9 onward it is even possible to freely mix native
and hybrid code snippets.
The software underlying PhoneGap is Apache Cordova. The software was
previously called just "PhoneGap", then "Apache Callback". Apache Cordova is open
source software.

R.D.I.K &N.K.D COLLEGE BADNERA Page 11

Vehicle Identification System

What is PhoneGap
PhoneGap is a mobile development framework produced by Nitobi,
purchased by Adobe Systems. It enables software programmers to build applications
for mobile devices using JavaScript, HTML5, and CSS3, instead of device-specific
languages such as Objective-C or Java. The resulting applications are hybrid, meaning
that they are neither truly native (because all layout rendering is done via web views
instead of the platform's native UI framework) nor purely web-based (because they
are not just web apps, but are packaged as apps for distribution and have access to
native device APIs). From version 1.9 onward it is even possible to freely mix native
and hybrid code snippets.
The software underlying PhoneGap is Apache Cordova. The software was
previously called just "PhoneGap", then "Apache Callback". Apache Cordova is open
source software.
First developed at an iPhoneDevCamp event in San Francisco, PhoneGap
went on to win the People's Choice Award at O'Reilly Media's 2009 Web 2.0
Conference and the framework has been used to develop many apps. Apple Inc. has
confirmed that the framework has its approval, even with the new 4.0 developer
license agreement changes. The PhoneGap framework is used by several mobile
application platforms such as ViziApps, Worklight, Convertigo, and appMobi as the
backbone of their mobile client development engine. Adobe officially announced the
acquisition of Nitobi Software (the original developer) on October 4, 2011.
Coincident with that, the PhoneGap code was contributed to the Apache Software
Foundation to start a new project called Apache Cordova. The project original name,
Apache Callback, was viewed as too generic. Then it also appears in Adobe Systems
as Adobe PhoneGap and also as Adobe Phonegap Build.
Early versions of PhoneGap required a person making iOS apps to have an
Apple computer, and a person making Windows Mobile apps to have a computer
running Windows. After September 2012, Adobe's PhoneGap Build service allows
programmers to upload HTML, CSS and JavaScript source code to a "cloud
compiler" that generates apps for every supported platform.

R.D.I.K &N.K.D COLLEGE BADNERA Page 12

Vehicle Identification System

Design and rationale


The core of PhoneGap applications use HTML5 and CSS3 for their
rendering, and JavaScript for their logic. Although HTML5 now provides access to
underlying hardware such as the accelerometer, camera and GPS, browser support for
HTML5-based device access is not consistent across mobile browsers, particularly
older versions of Android. To overcome these limitations, the PhoneGap framework
embeds HTML5 code inside a native WebView on the device, using a Foreign
Function Interface to access the native resources of the device.
PhoneGap is also able to be extended with native plug-ins that allow for
developers to add functionality that can be called from JavaScript, allowing for direct
communication between the native layer, and the HTML5 page. PhoneGap includes
basic plugins that allow access to the device's accelerometer, camera, microphone,
compass, file system, and more.
However, the use of web-based technologies leads many PhoneGap
applications to run slower than native applications with similar functionality. Adobe
Systems warns that applications built using PhoneGap may be rejected by Apple for
being too slow or not feeling "native" enough (having appearance and functionality
consistent with what users have come to expect on the platform).
PhoneGap currently supports development for the operating systems Apple
iOS, Google Android, LG webOS, Microsoft Windows Phone, Nokia Symbian OS,
RIM BlackBerry, and Tizen (SDK 2.x). Support for recent versions, such as
BlackBerry 5 and 6 and Windows Phone 7, is being implemented now. Bada (the
operating system used by the Samsung Wave S8500) support is "coming soon".The
table below is a list of supported features for each operating system.

R.D.I.K &N.K.D COLLEGE BADNERA Page 13

Vehicle Identification System

Phone-Gap Architecture

This technology is mainly working Web-View

Web-View is used for browsers in every mobile OS.

The application is develop by HTML, CSS, JavaScript, XML.

This application is applied on the web-view every mobile OS.

This application is lightweight and effective graphics.

R.D.I.K &N.K.D COLLEGE BADNERA Page 14

Vehicle Identification System

Front End
C# (pronounced as see sharp) is a multi-paradigm programming language
encompassing strong typing, imperative, declarative, functional, generic, objectoriented (class-based), and component-oriented programming disciplines. It was
developed by Microsoft within its .NET initiative and later approved as a standard by
Emma (ECMA-334) and ISO (ISO/IEC 23270:2006). C# is one of the programming
languages designed for the Common Language Infrastructure. C# is a generalpurpose, object-oriented programming language.[9] Its development team is led by
Anders Hejlsberg. The most recent version is C# 6.0, which was released on July 20,
2015.
The ECMA standard lists these design goals for C#The C# language is intended to be a simple, modern, general-purpose, objectoriented programming language.
Language, and implementations thereof, should provide support for software
engineering principles such as strong type checking, array bounds checking, detection
of attempts to use uninitialized variables, and automatic garbage collection. Software
robustness, durability, and programmer productivity are important.
The language is intended for use in developing software components suitable
for deployment in distributed environments.
Portability is very important for source code and programmers, especially
those already familiar with C and C++.
C# is intended to be suitable for writing applications for both hosted and
embedded systems, ranging from the very large that use sophisticated operating
systems, down to the very small having dedicated functions.
Although C# applications are intended to be economical with regard to
memory and processing power requirements, the language was not intended to
compete directly on performance and size with C or assembly language.
Some notable features of C# are as followsPortability - By design, C# is the programming language that most directly reflects
the underlying Common Language Infrastructure (CLI). Most of its intrinsic
types correspond to value-types implemented by the CLI framework.
However, the language specification does not state the code generation
requirements of the compiler: that is, it does not state that a C# compiler must
R.D.I.K &N.K.D COLLEGE BADNERA Page 15

Vehicle Identification System


target a Common Language Runtime, or generate Common Intermediate
Language (CIL), or generate any other specific format. Theoretically, a C#
compiler could generate machine code like traditional compilers of C++ or
Fortran.
Typing - C# supports strongly typed implicit variable declarations with the keyword
var, and implicitly typed arrays with the keyword new followed by a collection
initializer.
C# supports a strict Boolean data type, bool. Statements that take conditions,
such as while and if, require an expression of a type that implements the true
operator, such as the Boolean type. While C++ also has a Boolean type, it can
be freely converted to and from integers, and expressions such as if(a) require
only that a is convertible to bool, allowing a to be an int, or a pointer. C# is
more type safe than C++. The only implicit conversions by default are those
that are considered safe, such as widening of integers. This is enforced at
compile-time, during JIT, and, in some cases, at runtime. No implicit
conversions occur between Booleans and integers, nor between enumeration
members and integers (except for literal 0, which can be implicitly converted to
any enumerated type). Any user-defined conversion must be explicitly marked
as explicit or implicit, unlike C++ copy constructors and conversion operators,
which are both implicit by default.
Enumeration members are placed in their own scope. The C# language does not
allow for global variables or functions. All methods and members must be
declared within classes. Static members of public classes can substitute for
global variables and functions. Local variables cannot shadow variables of the
enclosing block, unlike C and C++.
Meta programming - Meta programming via C# attributes is part of the language.
Many of these attributes duplicate the functionality of GCC's and VisualC+
+'s platform-dependent preprocessor directives.
Methods and functions - Like C++, and unlike Java, C# programmers must use the
keyword virtual to allow methods to be overridden by subclasses.
Extension methods in C# allow programmers to use static methods as if
they were methods from a class's method table, allowing programmers to
R.D.I.K &N.K.D COLLEGE BADNERA Page 16

Vehicle Identification System


add methods to an object that they feel should exist on that object and its
derivatives. The type dynamic allows for run-time method binding,
allowing for JavaScript-like method calls and run-time object composition.
Property - C# provides properties as syntactic sugar for a common pattern in which a
pair of methods, accessor (getter) and mutator (setter) encapsulate
operations on a single attribute of a class. No redundant method signatures
for the getter/setter implementations need be written, and the property may
be accessed using attribute syntax rather than more verbose method calls.
Namespace - A C# namespace provides the same level of code isolation as a Java
package or a C++ namespace, with very similar rules and features to a
package.
Memory access - In C#, memory address pointers can only be used within blocks
specifically marked as unsafe, and programs with unsafe code need
appropriate permissions to run. Most object access is done through safe
object references, which always either point to a "live" object or have the
well-defined null value; it is impossible to obtain a reference to a "dead"
object (one that has been garbage collected), or to a random block of
memory. An unsafe pointer can point to an instance of a value-type, array,
string, or a block of memory allocated on a stack. Code that is not marked
as unsafe can still store and manipulate pointers through the System.IntPtr
type, but it cannot dereference them.
Managed memory cannot be explicitly freed; instead, it is automatically
garbage collected. Garbage collection addresses the problem of memory
leaks by freeing the programmer of responsibility for releasing memory
that is no longer needed.
Exception - Checked exceptions are not present in C# (in contrast to Java). This has
been a conscious decision based on the issues of scalability and version
ability.
Polymorphism- Unlike C++, C# does not support multiple inheritance, although a
class can implement any number of interfaces. This was a design decision
by the language's lead architect to avoid complication and simplify
architectural requirements throughout CLI. When implementing multiple
interfaces that contain a method with the same signature,

R.D.I.K &N.K.D COLLEGE BADNERA Page 17

Vehicle Identification System


Functional programming - Though primarily an imperative language, C# 2.0 offered
limited support for functional programming through first-class functions
and closures in the form of anonymous delegates. C# 3.0 expanded support
for functional programming with the introduction of a light weight syntax
for lambda expressions, extension methods (an affordance for modules),
and a list comprehension syntax in the form of a "query comprehension"
language.
Common type system - C# has an unified type system. This unified type system is
called Common Type System (CTS). An unified type system implies that
all types, including primitives such as integers, are subclasses of the
System.Object class. For example, every type inherits a ToString() method.
Boxing and unboxing - Boxing is the operation of converting a value-type object into
a value of a corresponding reference type. Boxing in C# is implicit.
Unboxing is the operation of converting a value of a reference type
(previously boxed) into a value of a value type. Unboxing in C# requires
an explicit type cast. A boxed object of type T can only be unboxed to a T.
Libraries - The C# specification details a minimum set of types and class libraries
that the compiler expects to have available. In practice, C# is most often
used with some implementation of the Common Language Infrastructure
(CLI), which is standardized as ECMA-335 Common Language
Infrastructure (CLI).

R.D.I.K &N.K.D COLLEGE BADNERA Page 18

Vehicle Identification System

Back End
Microsoft SQL Server is a relational database management system developed
by Microsoft. As a database server, it is a software product with the primary function
of storing and retrieving data as requested by other software applications which may
run either on the same computer or on another computer across a network (including
the Internet).
Microsoft markets at least a dozen different editions of Microsoft SQL
Server, aimed at different audiences and for workloads ranging from small singlemachine applications to large Internet-facing applications with many concurrent
users.SQL Server 2012 Service Pack 1 was released to manufacturing on November
9, 2012, and Service Pack 2 was released to manufacturing on June 10, 2014.It was
announced to be the last version to natively support OLE DB and instead to prefer
ODBC for native connectivity.
SQL Server allows multiple clients to use the same database concurrently. As
such, it needs to control concurrent access to shared data, to ensure data integrity
when multiple clients update the same data, or clients attempt to read data that is in
the process of being changed by another client. SQL Server provides two modes of
concurrency control: pessimistic concurrency and optimistic concurrency. When
pessimistic concurrency control is being used, SQL Server controls concurrent access
by using locks. Locks can be either shared or exclusive. Exclusive lock grants the user
exclusive access to the datano other user can access the data as long as the lock is
held. Shared locks are used when some data is being readmultiple users can read
from data locked with a shared lock, but not acquire an exclusive lock. The latter
would have to wait for all shared locks to be released. Locks can be applied on
different levels of granularityon entire tables, pages, or even on a per-row basis on
tables.
SQL Server also provides the optimistic concurrency control mechanism,
which is similar to the multisession concurrency control used in other databases.

R.D.I.K &N.K.D COLLEGE BADNERA Page 19

Vehicle Identification System


6. Coding

Login Page
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace Smart_RTO
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Login ());
// Application.Run(new Server2());
}
}
}

R.D.I.K &N.K.D COLLEGE BADNERA Page 20

Vehicle Identification System

Vehicle registration
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
// Namespaces for Database
using System.Data.SqlClient;
using System.Configuration;
namespace Smart_RTO
{
public partial class Form1 : Form
{
// SQLConnection Class is used create database connection
SqlConnection con = new
SqlConnection(ConfigurationManager.AppSettings["conn"]);
public Form1()
{
InitializeComponent();
}
void read_Vh_class()
{
VH_Class_list.Items.Clear();
con.Open();
SqlCommand com = new SqlCommand("select * from Vh_class",
con);// SqlCommand Class is used to write SQL commands

R.D.I.K &N.K.D COLLEGE BADNERA Page 21

Vehicle Identification System


SqlDataReader rd = com.ExecuteReader(); // SqlDataReader is a
class, used to read data from database (only work with select command)
while (rd.Read()) // Read() is the method of SqlDataReader Class
{
VH_Class_list.Items.Add(rd.GetValue(0).ToString()); // 0 is the
index value of 1st column of table
}
rd.Close();
com.Dispose();
con.Close();
}
void read_Vh_MGF()
{
Vh_MGF_cmpn.Items.Clear();
con.Open();
SqlCommand com = new SqlCommand("select * from Vh_Company
where Vehicle_Class='" + VH_Class_list.Text + "'", con);
SqlDataReader rd = com.ExecuteReader();
while (rd.Read())
{
Vh_MGF_cmpn.Items.Add(rd.GetValue(1).ToString());
}
rd.Close();
com.Dispose();
con.Close();
}
void read_Vh_model()
{
Models.Items.Clear();
con.Open();

R.D.I.K &N.K.D COLLEGE BADNERA Page 22

Vehicle Identification System


SqlCommand com = new SqlCommand("select Model from Vh_Model
where Vehicle_Class='" + VH_Class_list.Text + "' and MGF_Company='" +
Vh_MGF_cmpn.Text + "'", con);
SqlDataReader rd = com.ExecuteReader();
while (rd.Read())
{
Models.Items.Add(rd.GetValue(0).ToString());
}
rd.Close();
com.Dispose();
con.Close();
}
void read_Vh_colors()
{
Colors.Items.Clear();
con.Open();
SqlCommand com = new SqlCommand("select COlor from
Vh_Model_Colors where Vehicle_Class='" + VH_Class_list.Text + "' and
MGF_Company='" + Vh_MGF_cmpn.Text + "' and Model='" + Models.Text +
"'", con);
SqlDataReader rd = com.ExecuteReader();
while (rd.Read())
{
Colors.Items.Add(rd.GetValue(0).ToString());
}
rd.Close();
com.Dispose();
con.Close();
}
// Method to clear all controls
void clear_all()
R.D.I.K &N.K.D COLLEGE BADNERA Page 23

Vehicle Identification System


{
City_code.Text = "";
S_alpha_1.Text = "";
S_alpha_2.Text = "";
no.Clear();
Chesis_no.Clear();
Eng_no.Clear();
VH_Class_list.Text = "";
Vh_MGF_cmpn.Text = "";
Models.Text = "";
Colors.Text = "";
Fuel.Text = "";
Owner_name.Clear();
SWD.Clear();
Address.Clear();
}

private void Form1_Load(object sender, EventArgs e)


{

read_Vh_class();

}
private void VH_Class_list_SelectedIndexChanged(object sender,
EventArgs e)
{

read_Vh_MGF();

}
private void Vh_MGF_cmpn_SelectedIndexChanged(object sender,
EventArgs e)
{

read_Vh_model();

}
private void Models_SelectedIndexChanged(object sender, EventArgs e)
{
read_Vh_colors();
}
private void button1_Click(object sender, EventArgs e)
{

if (Chesis_no.Text == "")

R.D.I.K &N.K.D COLLEGE BADNERA Page 24

Vehicle Identification System


{
MessageBox.Show("Please Enter Chessis Number");
return;
}
if (Eng_no.Text == "")
{
MessageBox.Show("Please Enter Engine Number");
return;
}
if (VH_Class_list.Text == "")
{

MessageBox.Show("Please Select Vehicle Class");


return;

}
if (Vh_MGF_cmpn.Text == "")
{
MessageBox.Show("Please Select Vehicle Mgf. Company");
return;
}
if (Models.Text == "")
{

MessageBox.Show("Please Select Vehicle Model");


return;

}
if (Colors.Text == "")
{

MessageBox.Show("Please Select Vehicle Color");


return;

}
if (Fuel.Text == "")
{

MessageBox.Show("Please Select Vehicle Fuel");


return;

}
if (Owner_name.Text == "")
{
R.D.I.K &N.K.D COLLEGE BADNERA Page 25

Vehicle Identification System


MessageBox.Show("Please Enter Owner Name");
return;
}
if (SWD.Text == "")
{
MessageBox.Show("Please Enter SWD");
return;
}
if (Address.Text == "")
{
MessageBox.Show("Please Enter Address");
return;
}

try

{
string Vh_no = City_code.Text + " " + S_alpha_1.Text +
S_alpha_2.Text + " " + no.Text;
con.Open();
SqlCommand com = new SqlCommand("insert into Vehicle_Details
values('" + Vh_no + "','" + Chesis_no.Text + "','" + Eng_no.Text + "','" +
VH_Class_list.Text + "','" + Vh_MGF_cmpn.Text + "','" + Models.Text + "','" +
Colors.Text + "','" + Fuel.Text + "','" + Owner_name.Text + "','" + SWD.Text +
"','" + Address.Text + "')", con);
com.ExecuteNonQuery(); // ExecuteNonQuery() methode is used to
fire insert/update/delete command
com.Dispose();
con.Close();
MessageBox.Show("Information Saved Successfully");
clear_all();
}

catch (Exception ex)

{
if (ex.Message.Contains("vhno_unique"))
{

MessageBox.Show("Vehicle Number Already Exist");

R.D.I.K &N.K.D COLLEGE BADNERA Page 26

Vehicle Identification System


}

if (ex.Message.Contains("vhch_unique"))
{

MessageBox.Show("Vehicle Chessis Number Already

Exist");

}
if (ex.Message.Contains("vhen_unique"))
{

MessageBox.Show("Vehicle Engine Number Already

Exist");

}
}

con.Close();

private void button2_Click(object sender, EventArgs e)


{

this.Hide();

}
private void button3_Click(object sender, EventArgs e)
{
}

clear_all();
}

R.D.I.K &N.K.D COLLEGE BADNERA Page 27

Vehicle Identification System

Sql Server Connectivity


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
namespace Smart_RTO
{

public partial class Server2 : Form


{

//SqlConnection con = new

SqlConnection("server=SQL5019.Smarterasp.net;uid=DB_9E5436_smartrto_a
dmin;pwd=smartrto;database=DB_9E5436_smartrto");
SqlConnection con = new
SqlConnection("server=smartrto.mssql.somee.com;uid=vikramrawale_SQLLogi
n_1;pwd=cij6nkxp7u;database=smartrto");
public Server2()
{

InitializeComponent();

private void button1_Click(object sender, EventArgs e)


{

con.Open();

SqlCommand com = new SqlCommand("insert into demo values('" +


textBox1.Text + "')", con);
com.ExecuteNonQuery();
com.Dispose();
con.Close();
MessageBox.Show("Added");
}

R.D.I.K &N.K.D COLLEGE BADNERA Page 28

Vehicle Identification System

Fir Registration code


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Data;
namespace Police_FIR
{
public partial class Add_FIR : Form
{
SqlConnection

con

SqlConnection(ConfigurationManager.AppSettings["conn"]);
string query;
public Add_FIR()
{

InitializeComponent();

}
private void Add_FIR_Load(object sender, EventArgs e)
{
tDate.Text = DateTime.Now.ToShortDateString();
Read_FIR_No();
}
void Read_FIR_No()
{

try

R.D.I.K &N.K.D COLLEGE BADNERA Page 29

new

Vehicle Identification System


{
long fno;
con.Open();
SqlCommand com = new SqlCommand("select max(FIR_No) from
FIR", con);
SqlDataReader rd = com.ExecuteReader();
if (rd.Read())
{
fno = long.Parse(rd.GetValue(0).ToString());
fno = fno + 1;
FIRNo.Text = fno.ToString();
}

else

{
FIRNo.Text = "1";
}
rd.Close();
com.Dispose();
con.Close();
}
catch (Exception ee)
{ con.Close();
FIRNo.Text = "1";
}
}
private void tabPage1_Click(object sender, EventArgs e)
{
}
private void pictureBox1_Click(object sender, EventArgs e)
{
if (no.Text == "")
{
MessageBox.Show("Please Enter Vehicle Number");
no.Focus();
return;
R.D.I.K &N.K.D COLLEGE BADNERA Page 30

Vehicle Identification System


}
query = "select * from Vehicle_Details where vh_no='"+no.Text+"'";
Read_Vh_Details();
}
void Read_Vh_Details()
{
con.Open();
SqlCommand com = new SqlCommand(query, con);
SqlDataReader rd = com.ExecuteReader();
if (rd.Read())
{
no.Text = rd.GetValue(0).ToString();
Chesis_no.Text = rd.GetValue(1).ToString();
Engine_no.Text = rd.GetValue(2).ToString();
vh_class.Text = rd.GetValue(3).ToString();
vh_mfg.Text = rd.GetValue(4).ToString();
vh_model.Text = rd.GetValue(5).ToString();
vh_color.Text = rd.GetValue(6).ToString();
vh_fuel.Text = rd.GetValue(7).ToString();
vh_owner.Text = rd.GetValue(8).ToString();
vh_swd.Text = rd.GetValue(9).ToString();
Vh_ownerAdd.Text = rd.GetValue(10).ToString();
}
else
{
MessageBox.Show("Data is not present. Please check the inputed
number.");
}
rd.Close();
com.Dispose();
con.Close();
}
private void groupBox2_Enter(object sender, EventArgs e)
R.D.I.K &N.K.D COLLEGE BADNERA Page 31

Vehicle Identification System


{
}
private void pictureBox2_Click(object sender, EventArgs e)
{
if (Chesis_no.Text == "")
{
MessageBox.Show("Please Enter Chesis Number");
Chesis_no.Focus();
return;
}
query = "select * from Vehicle_Details where
Chasis_no='"+Chesis_no.Text+"'";
Read_Vh_Details();
}
private void pictureBox3_Click(object sender, EventArgs e)
{
if (Engine_no.Text == "")
{
MessageBox.Show("Please Enter Engine Number");
Engine_no.Focus();
return;
}
query

"select

from

Vehicle_Details

Engine_no='"+Engine_no.Text+"'";
Read_Vh_Details();
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "")
{
MessageBox.Show("Please Enter Complainer Name");
textBox1.Focus();
return;
R.D.I.K &N.K.D COLLEGE BADNERA Page 32

where

Vehicle Identification System


}
if (textBox2.Text == "")
{
MessageBox.Show("Please Enter Address");
textBox2.Focus();
return;
}
if (textBox3.Text == "")
{
MessageBox.Show("Please Enter Complaint");
textBox3.Focus();
return;

if (textBox4.Text == "")
{
MessageBox.Show("Please Enter Mobile Number");
textBox4.Focus();
return;

con.Open();
try

{
SqlCommand com = new SqlCommand("insert into FIR values(" +

FIRNo.Text + ",'" + tDate.Value.Date.ToString("MM-dd-yyyy") + "','" + tDate.Text +


"','" + textBox1.Text + "','" + textBox2.Text + "','" + textBox3.Text + "','" +
textBox4.Text + "','" + no.Text + "','" + Chesis_no.Text + "','" + Engine_no.Text +
"','Not Solved')", con);
com.ExecuteNonQuery();
com.Dispose();
con.Close();
MessageBox.Show("Data Saved Successfully");
}
catch (Exception er)
{
con.Close();
MessageBox.Show("Error Occure. Please Check your internet
connection");

R.D.I.K &N.K.D COLLEGE BADNERA Page 33

Vehicle Identification System


private void pictureBox6_Click(object sender, EventArgs e)
{
con.Open();
SqlDataAdapter adp = new SqlDataAdapter("select * from FIR where
FIR_Date2 between('" + dateTimePicker1.Value.Date.ToString("MM-dd-yyyy") + "')
and ('" + dateTimePicker2.Value.Date.ToString("MM-dd-yyyy") + "')", con);
DataSet ds = new System.Data.DataSet();
adp.Fill(ds, "FIR");
dataGridView1.DataSource = ds.Tables[0];
con.Close();
}

private void pictureBox4_Click(object sender, EventArgs e)

if (textBox10.Text == "")
{

MessageBox.Show("Please Enter FIR Number");


textBox10.Focus();
return;

con.Open();
SqlDataAdapter adp = new SqlDataAdapter("select

FIR_no,FIR_Date,Complainer,Vh_No,Chasis_no,Engine_no,Status from FIR where


FIR_No='" + textBox10.Text + "'", con);
DataSet ds = new System.Data.DataSet();
adp.Fill(ds, "FIR");
dataGridView1.DataSource = ds.Tables[0];
con.Close();
}
private void pictureBox5_Click(object sender, EventArgs e)
{

con.Open();
SqlDataAdapter adp = new SqlDataAdapter("select * from FIR where

Status='" +comboBox1.Text + "'", con);


DataSet ds = new System.Data.DataSet();
adp.Fill(ds, "FIR");
dataGridView1.DataSource = ds.Tables[0];
con.Close();
}

R.D.I.K &N.K.D COLLEGE BADNERA Page 34

Vehicle Identification System


private

void

dataGridView1_CellClick(object

DataGridViewCellEventArgs e)
{
int i = e.RowIndex;//get the Row Index
FIR_Details obj = new FIR_Details();
DataGridViewRow row = dataGridView1.Rows[i];
// MessageBox.Show(row.Cells[4].Value.ToString());
obj.FIRNo.Text = row.Cells[0].Value.ToString();
obj.label2.Text = row.Cells[4].Value.ToString();
obj.Show();
obj.Focus();
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Clear();
textBox2.Clear();
textBox3.Clear();
textBox4.Clear();
vh_class.Clear();
vh_mfg.Clear();
vh_model.Clear();
vh_color.Clear();
vh_owner.Clear();
vh_fuel.Clear();
vh_owner.Clear();
vh_swd.Clear();
Vh_ownerAdd.Clear();
no.Clear();
Chesis_no.Clear();
Engine_no.Clear();
}
}
}

R.D.I.K &N.K.D COLLEGE BADNERA Page 35

sender,

Vehicle Identification System

System Design

R.D.I.K &N.K.D COLLEGE BADNERA Page 36

Vehicle Identification System

R.D.I.K &N.K.D COLLEGE BADNERA Page 37

Vehicle Identification System

R.D.I.K &N.K.D COLLEGE BADNERA Page 38

Vehicle Identification System

R.D.I.K &N.K.D COLLEGE BADNERA Page 39

Vehicle Identification System

R.D.I.K &N.K.D COLLEGE BADNERA Page 40

Vehicle Identification System

R.D.I.K &N.K.D COLLEGE BADNERA Page 41

Vehicle Identification System


7. Advantages of SMART RTO System
All-in-one support- The system is able to store a variety of document and identity
proofs for vehicles
Easy verification The identity of an individual can be easily proved or
disproved by cross checking the documents if all of them are tired in
one database.
Mismatch/Fake document detection- in case of mismatch in the details of the
individual, the fake or invalid profiles can easily be sorted by the
application.
Data Warehouse - Enhanced information available from the technology to
authorities for study and research.
Interoperability The data networks can be linked to work together within
countries, regions or cities.
New technologies, new tools The personal assistants and mobile phones can be
integrated to provide anytime, anywhere support.
Monitoring Mechanisms Easy for Government agencies to keep track of
criminals and fraud initiators.

R.D.I.K &N.K.D COLLEGE BADNERA Page 42

Vehicle Identification System


8.

Conclusion
This Vehicle Identification System has huge prospects for implementation

and research. It has a scope to emerge as a collaborated project that will be useful at
the national level.
By using vehicle identification system we can search and register vehicle any
where in the world .
The mobile app of the system I very useful for remote location office and
traffic police where a computer system is not available and it is also a cheapest
method for identifying and verifying system owner and information regarding vehicle
In FIR part of system we can find any pending police complaints related to
vehicle and can take proper action on owner of vehicle
The successful implementations must take following points into account1. A comprehensive plan for managing the first issuance of the profile should
involve as few errors as possible to reduce cost.
2. A comprehensive plan should be made for the entire information system structure.
3. An assessment of the efficiency of system operations should be checked from time
to time.
4. A marketing project plan need to be chalked out.
5. Integration testing and acceptance procedures need to be carry out to link new
system with present information network.
6. Smart Card application development should be taken into account.

R.D.I.K &N.K.D COLLEGE BADNERA Page 43

Vehicle Identification System


9. Future Scopes
1. The state of the art review established a base line scenario for Smart
RTO from which the potential for future enhancements are expected.
2. Common approaches adopted for rules and technical standards need to
be developed for the system
3. It is also recognized that system can potentially play a role in
delivering public transport services, covering different modes as well
as geographic / operational boundaries.
4. Integration will be needed to operate the system on regional level, if
the required economies of scale are to be achieved.
5. A proper network should be created to provide direction, coordination,
networking of best practices and implementation planning of system.
6. Mass awareness should be created for proper use of system.
7. This system has scope for Government Certification.
8. We can develop a multi-application solution to interoperable system
that can be implemented by steps as a scope to enhance
interoperability. A limiting factor for future interoperability will be the
extent to which schemes have and will be developing according to
established specifications and standards.
9. We can add other data to system like income of individuals, his family
information, medical history, etc.
10. This database can be linked with others countries to create global
network.

R.D.I.K &N.K.D COLLEGE BADNERA Page 44

Vehicle Identification System


10. References

Books:
1. Microsoft Visual C# Step By Step, Sharp John, PHI Publications
2. Professional C# 6 and .NET Core 1.0, Christian Nagel, Wrox
Publications
3. Programming In C# Third Edition, E. Balguruswamy, Tata McGrawHill Education
4. PhoneGaps beliefs, goals, and philosophy
5. Rolling Releases: How Apache Cordova becomes PhoneGap
6. PhoneGap, Cordova, and whats in a name?

Websites:

www.wikipaedia.org
www.tutorialspoint.com
www.scribd.com
www.nisg.org
www.howstuffworks.com
www.uk.gov.in

R.D.I.K &N.K.D COLLEGE BADNERA Page 45

Vehicle Identification System

Content
1. Introduction......................................................
2. Flowchart.........................................................
3. ER-Diagram......................................................
4. Data Flow Diagram..........................................
5. Languages and Tools used...............................
6. Coding............................................................
7. Advantages of SMART RTO System...................
8. Conclusion......................................................
9. Future Scopes.................................................
10. References.....................................................

R.D.I.K &N.K.D COLLEGE BADNERA Page 46

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