Professional Documents
Culture Documents
CHAPTER 1
INTRODUCTION
Fuel-management systems are used to maintain, control and monitor fuel consumption and stock in
any type of industry that uses transport, including rail, road, water and air, as a means of business.
Fuel-management systems are designed to effectively measure and manage the use of fuel within the
transportation and construction industries. They are typically used for fleets of vehicles, including
railway vehicles and aircraft, as well as any vehicle that requires fuel to operate. They employ various
methods and technologies to monitor and track fuel inventories, fuel purchases and fuel dispensed.
This information can be then stored in computerized systems and reports generated with data to
inform management practices. Online fuel management is provided through the use of web portals to
provide detailed fueling data, usually the back end of an automated fuel-management system. This
enables consumption control, cost analysis and tax accounting for fuel purchases.
There are several types of fuel-management systems. Card-based fuel-management systems typically
track fuel transactions based on a fueling credit card and the associated driver PIN. Reports can then
be generated based on fuel consumption by driver, and data can be directly downloaded. On-site fuel-
management systems may employ fleet refueling services or bulk fuel tanks at the site. Fuel is tracked
as it is pumped into vehicles, and on-site storage levels can be managed.
Some fuel companies offer total fuel-management systems whereby they provide elements of a card-
based system along with on-site fuel delivery and refueling services. Mobile fuel management refers
to a fleet of fuel trucks or tankers which provide fuel supply to commercial fleets of trucks or
construction equipment. May involve combining RFID technology to identify equipment and
automated fuel management to append the details of each transaction to a unique piece of equipment.
By refueling vehicles in the evening when they are not in use, the company can conserve man-hours
as the operators do not refuel and the vehicles do not require additional fuel to travel to the refueling
station. They may also employ more sophisticated systems that utilize remote data collection to gather
specific technical information about the vehicle usage and performance characteristics such as
mileage, hours of operation and engine idling time.
The increasing use of biofuel has introduced another challenge in fuel management. With greater
water content, there will be a risk of microbial growth – depending on the storage conditions, the fuel
quality will deteriorate over time, leading to clogged filters and loss of productivity.
Tank manufacturers have introduced fuel filtering and cleansing packs which recirculate the tank
contents through a series of filters and ultraviolet treatment to kill bacteria. Data from fuel quality
instrumentation can be streamed to allow remote monitoring over Internet connections.
1
FUEL MANAGEMENT SYSTEM
The aim of the proposed system is to develop a system of improved facilities. The proposed system can
overcome the limitations of the existing system. The system provides proper security and reduces the
manual work.
The system is very simple in design and to implement. The system requires very low system resources
and the system will work in all configurations. It has got following feature:
Security of data.
Ensures data accuracy.
Proper control of the higher officials.
Reduce the damages of the machine.
Minimum time is needed for the various processing.
Greater efficiency.
Better services.
User-friendliness and interactive.
Minimum time required.
This system, try to automate the entire process keeping in the view of database integration
approach.
Authentication features is provided for this application only admin can access.
The process includes the admin checking the fuel quantity available at various agencies spread
across the state and the admin will also be able to check the number of agencies present across
the state. Once the admin verification is complete the customer can book the fuel through the
application and can check the prices of the fuel against the current prices.
2
FUEL MANAGEMENT SYSTEM
CHAPTER-2
3
FUEL MANAGEMENT SYSTEM
CHAPTER-3
SYSTEM FLOW
3.1 DATA FLOW DIAGRAM
A graphical tool used to describe and analysis the movement of data through a system is called
dataflow diagram. Dataflow diagram is the central basis, from which other components are developed,
the transformation of data from input to output, through process, maybe described logically and
independent of the physical components associated with the system.
The DFD is also known as a dataflow, graph or a bubble chart.
Types of dataflow diagram:
A )Physical DFD
B )Logical DFD
3.1.1. PHYSICAL DFD:
Structure analysis states that current system should first understand correctly. The physical DFD is the
model of current system and is used to ensure that system has been clearly understood. Physical DFD's
shows actual devices, departments etc. involved in the current system.
Logical DFD are the model of proposed system. They clearly should show the requirement on which
the new system should be built. Later during the design, activity thus taken has basis for drawing the
system structure charts.
The basic notation used to create DFD's are:
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 maybe people, organization other entity.
4
FUEL MANAGEMENT SYSTEM
STORAGE: DATA here data are stored or referenced by a processor in the system.
DESIGN: Design is the first step in moving from domain to the solution domain. Design is especially
the bridge between requirement specification and the final solution. the goal of the design process is to
produce a model for representation of a system, which can be used later to build that system. The
produced model is called the "design of the system".
It is the solution for the system. In this level the focus is on dividing the module which is needed for
the system and the specification of these models.
LEVEL 0:
System
Registration
Data Base
LEVEL 1: ADMIN
&
USER
LOGIN
HOME PAGE
5
FUEL MANAGEMENT SYSTEM
LEVEL 2:
FUEL
MANAGEMENT
ADMINMDI
Main form
ADD STATE
Admin Login
ADD CITY
MAIN Database
USER PAGE ADD
AGENCY
ADD
OFFICER
EXIT AGENCY
/AGENCY
INFO
Price
check
ACCEPT
ORDER
ORDER
FUEL
EXIT
PAYMENT
6
FUEL MANAGEMENT SYSTEM
ER DIAGRAM
ADMIN USER
1:1
1:
11
MAIN PAGE
Log
inin
Add city
AGENCY
CHECK NAME
AGENCIES
Email
Health Info
FAQ
PAYMENT
News
Logout
Logout
7
FUEL MANAGEMENT SYSTEM
DATA TABLES
AdminLogin:
Username nvarchar(MAX)
Password nvarchar(MAX)
UserVerfication:
User nvarchar(MAX)
Price nvarchar(MAX)
Name nvarchar(MAX)
Phone no nvarchar(MAX)
Email nvarchar(MAX)
City nvarchar(MAX)
State nvarchar(MAX)
AddCityTab:
8
FUEL MANAGEMENT SYSTEM
AddStateTab:
AgencyVerificationTab:
Name Data Type
Agency name nvarchar(MAX)
City name nvarchar(MAX)
State name nvarchar(MAX)
OrderTab:
Name Data Type
Fuel Order Money
PriceTab:
Name Data Type
Fuel Price Money
PaymentTab:
Name Data Type
Order Payment Money
9
FUEL MANAGEMENT SYSTEM
CHAPTER 4
CODING
4.1 SOURCECODE
' TODO: Insert code to perform custom authentication using the provided username and password
' (See http://go.microsoft.com/fwlink/?LinkId=35339).
' The custom principal can then be attached to the current thread's principal as follows:
' My.User.CurrentPrincipal = CustomPrincipal
' where CustomPrincipal is the IPrincipal implementation used to perform authentication.
' Subsequently, My.User will return identity information encapsulated in the CustomPrincipal
object
' such as the username, display name, etc.
10
FUEL MANAGEMENT SYSTEM
End Class
12
FUEL MANAGEMENT SYSTEM
End Class
13
FUEL MANAGEMENT SYSTEM
14
FUEL MANAGEMENT SYSTEM
adp.Fill(DS1)
DataGridView1.DataSource = DS1.Tables(0)
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
15
FUEL MANAGEMENT SYSTEM
SMTP.Send(Mail)
MsgBox("Approved Successfully")
TextBox1.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox2.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
End Sub
16
FUEL MANAGEMENT SYSTEM
End Sub
End Class
' TODO: Insert code to perform custom authentication using the provided username and password
' (See http://go.microsoft.com/fwlink/?LinkId=35339).
' The custom principal can then be attached to the current thread's principal as follows:
' My.User.CurrentPrincipal = CustomPrincipal
' where CustomPrincipal is the IPrincipal implementation used to perform authentication.
' Subsequently, My.User will return identity information encapsulated in the CustomPrincipal
object
' such as the username, display name, etc.
End Class
AGENCY REG FORM
Imports System.Data.SqlClient
Imports System.Net.Mail
Imports System.Text.RegularExpressions
End Sub
18
FUEL MANAGEMENT SYSTEM
MsgBox("Your Request For The Agency Is Successfull. Please Wait For The Approval!!")
TextBox1.Text = "PUMP" + RandGen.Next(1000, 10000).ToString
TextBox2.Text = "PASS" + RandGen.Next(100, 999).ToString
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox8.Text = ""
ComboBox1.Text = "Select"
ComboBox2.Text = "Select"
Me.Hide()
main.Show()
End Sub
19
FUEL MANAGEMENT SYSTEM
End Sub
End Sub
End Sub
20
FUEL MANAGEMENT SYSTEM
Else
Namevalid = True
End If
End Sub
MAIN FORM
Public Class main
21
FUEL MANAGEMENT SYSTEM
22
FUEL MANAGEMENT SYSTEM
pkvar = DataGridView1.CurrentRow.Cells(0).Value
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd0 As New SqlCommand("Select * from cpricetab where Petrol='" & pkvar & "'", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
D1.Read()
'TextBox1.Text = D1(0).ToString
'TextBox2.Text = D1(1).ToString
Else
'TextBox1.Text = ""
'TextBox2.Text = ""
End If
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 Petrol ,Diesel ,Oil50ml, Oil100ml From cpricetab
order by Petrol", Conn)
adp.Fill(DS1)
DataGridView1.DataSource = DS1.Tables(0)
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
23
FUEL MANAGEMENT SYSTEM
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim cmd0 As New SqlCommand("Select BookingId from ordertab where BookingId='" &
(TextBox10.Text) & "'", Conn)
Dim D1 As SqlDataReader = cmd0.ExecuteReader()
If D1.HasRows Then
MsgBox("Already Ordered With Same Booking Number")
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 ordertab("
q2var = "Values("
q1var = q1var & "BookingId" & " , "
q2var = q2var & "'" & (TextBox10.Text) & " ', "
q1var = q1var & "Petrol" & " , "
q2var = q2var & "'" & (TextBox8.Text) & " ', "
q1var = q1var & "Diesel" & " , "
q2var = q2var & "'" & (TextBox7.Text) & " ', "
q1var = q1var & "Oil50ml" & " , "
q2var = q2var & "'" & (TextBox6.Text) & " ', "
q1var = q1var & "Oil100ml" & " , "
q2var = q2var & "'" & (TextBox5.Text) & " ', "
q1var = q1var & "Amount" & ")"
q2var = q2var & "'" & (TextBox9.Text) & " ') "
End Sub
24
FUEL MANAGEMENT SYSTEM
TextBox9.Text = Amount
End Sub
25
FUEL MANAGEMENT SYSTEM
TextBox7.Clear()
Namevalid = False
Else
Namevalid = True
End If
End Sub
PAYMENT FORM
Imports System.Data.SqlClient
Imports System.Net.Mail
Imports System.Text.RegularExpressions
TextBox5.Text = DataGridView1.Rows(e.RowIndex).Cells(4).Value
TextBox9.Text = DataGridView1.Rows(e.RowIndex).Cells(5).Value
End Sub
27
FUEL MANAGEMENT SYSTEM
Conn.Open()
Dim cmd0 As New SqlCommand("Select BookingId from payment where BookingId='" &
(TextBox10.Text) & "'", Conn)
Dim D1 As SqlDataReader = cmd0.ExecuteReader()
If D1.HasRows Then
MsgBox("Already Payment Is Done")
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 payment("
q2var = "Values("
q1var = q1var & "BookingId" & " , "
q2var = q2var & "'" & (TextBox10.Text) & " ', "
q1var = q1var & "Petrol" & " , "
q2var = q2var & "'" & (TextBox8.Text) & " ', "
q1var = q1var & "Diesel" & " , "
q2var = q2var & "'" & (TextBox7.Text) & " ', "
q1var = q1var & "Oil50ml" & " , "
q2var = q2var & "'" & (TextBox6.Text) & " ', "
q1var = q1var & "Oil100ml" & " , "
q2var = q2var & "'" & (TextBox5.Text) & " ', "
q1var = q1var & "Amount" & " , "
q2var = q2var & "'" & (TextBox9.Text) & " ', "
q1var = q1var & "PumpRegNo" & " , "
q2var = q2var & "'" & (ComboBox2.Text) & " ', "
q1var = q1var & "EmailId" & " , "
q2var = q2var & "'" & (TextBox1.Text) & " ', "
q1var = q1var & "payment" & ")"
q2var = q2var & "'" & (ComboBox1.Text) & " ') "
28
FUEL MANAGEMENT SYSTEM
TextBox2.AppendText("----------------------------------------------------------" +
vbNewLine)
TextBox2.AppendText("----------------------------------------------------------" +
vbNewLine)
TextBox2.AppendText(Today & vbTab & TimeOfDay + vbNewLine)
TextBox2.AppendText("----------------------------------------------------------" +
vbNewLine)
TextBox2.AppendText("Mode Of Payment :" + ComboBox1.Text + vbNewLine)
TextBox2.AppendText("----------------------------------------------------------" +
vbNewLine)
TextBox2.AppendText("Thanks For The Order" + vbNewLine)
TextBox2.AppendText("----------------------------------------------------------" +
vbNewLine)
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
TextBox10.Text = ""
ComboBox1.Text = "Select"
ComboBox2.Text = "Select"
End Sub
29
FUEL MANAGEMENT SYSTEM
TextBox2.Text = ""
End Sub
Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As
System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
e.Graphics.DrawString(TextBox2.Text, New Font("Book Antiqua", 20, FontStyle.Bold,
GraphicsUnit.Pixel), Brushes.Black, 25, 70)
End Sub
End Sub
End Class
30
FUEL MANAGEMENT SYSTEM
31
FUEL MANAGEMENT SYSTEM
Form2.VB(ADMIN LOGIN)
32
FUEL MANAGEMENT SYSTEM
33
FUEL MANAGEMENT SYSTEM
Form4.VB(AGENCY APPROVAL)
34
FUEL MANAGEMENT SYSTEM
35
FUEL MANAGEMENT SYSTEM
36
FUEL MANAGEMENT SYSTEM
CHAPTER-5
TESTING
“Testing is the process of analyzing a software item to detect the differences between existing
and required conditions and the features of software item”. The system is tested under adverse
situations and environment to test its performance, reliability and robustness. Verification and
validation is done for the system and it is reviewed against each and every customer requirement
specification.
To test the process two class of inputs are provided, they are
Testing is performed to prove that there are no errors in program. This is extremely
difficult since designer cannot prove hundred percent accurate. Therefore, testing is done with a
explicit intension of finding errors that make the program fail. Testing has it’s own cycle. It
requires five basic critical factors: planning, project and process management, risk management,
inspirits, measurement tools.
37
FUEL MANAGEMENT SYSTEM
5.1TYPES OF TESTING
UNIT TESTING
MODULE TESTING
Module testing is the testing of complete code objects as produced by the compiler
when built from source. A library may be composed of a single compiled object or several
compiled objects. There is only a slight difference between unit testing and module testing
38
FUEL MANAGEMENT SYSTEM
TEST PLAN
A software project test plan is a document that describes the objectives, scope approach and focus
of a software testing effort. This process of preparing a test plan is a useful way to think through
the efforts needed to validate the acceptability of a software product. The completed document
will help the people outside the test group understand ‘Why and How’ of production validation.
Different test plans are used at different levels of testing.
Each module is tested for correctness whether it is meeting all the expected results. Condition
loops in the code are properly terminated so that they don’t enter into an infinite loop. Proper
validations are done so as to avoid any errors related to data entry from user.
Test Cases
Testcase
Number Testing Scenario Expected result Result
Registration Testing
TC – 04 Clicking submit without entering email id Alert "Please fill email id" Pass
39
FUEL MANAGEMENT SYSTEM
40
FUEL MANAGEMENT SYSTEM
CONCLUSION
It has been a great pleasure for us to work on this project. We started this project with the
intention of giving our best and doing something interesting and we believe that we have
successfully achieved that. If we were able to complete this project, this is largely due to the
collective efforts.
This project proved good for us as it provided practical knowledge of not only programming in
Visual Basic.NET application and know some extent windows application and SQL server.
This DBMS package is very efficient and user friendly and way to store the details that comes to
existence. Although all features are not provided the important ones need to make this software
self-sufficient are present. The project has been successful in that manner.
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 functions 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 objective of the project work entitled "FUEL MANAGEMENT" filled and
desired result has been obtained. each program in the project are functioning normally and reliable
to user. this project designed to track the corona virus in india with very low system resources and
the system will work in almost all configurations and provide a user friendly application that
provides records of the covid test center’s, user’s health reports city wise and updates of the corona
virus cases.
41
FUEL MANAGEMENT SYSTEM
FUTURE ENHANCEMENT:
The future enhancement further tracks the user’s location and checks whether it is present
in the list of identified Containment Zones.
It sends separate notification alerts to the users on entering details.
It extracts IMEI number of the trespasser in the containment zone which can be useful to
local police to track and identify who are frequently trespassing the containment zone.
42
FUEL MANAGEMENT SYSTEM
BIBLIOGRAPHY
Books:
Chitra Ravi "Database Management System" Subhash publications.
Ashwini S Divakar "Software Engineering" Skyward publications.
Online References:
www.tutorialpoint.com
www.wikipedia.com
www.google.com
www.slideshare.com
43
FUEL MANAGEMENT SYSTEM
44