You are on page 1of 92

A PROJECT REPORT

ON
ELECTRICITY BILL
MANAGEMENT SYSTEM
Submitted In partial fulfillment of the requirements for
the award of the degree of
Bachelor of Computer Applications

PROJECT GUIDE: SUBMITTED BY:


Mrs. NEELAM MINHAS JEENIYA KASHYAP
Asst.Prof. OF B.C.A ROLL NO: 6114YZWR440001

SUBMITED TO:-

H.P. University
ABHILASHI INSTITUTE OF MANAGEMENT STUDIES,
NER CHOWK, MANDI (H.P.)
SELF CERTIFICATE
It gives me immense pleasure to bring out project work on the
“Electricity Bill Management System” . This is new experience
for me at BCA level. This project is the result of my efforts, as
well as the kind support of many of those whom. I take this
opportunity to express my deep sense gratitude to everyone who
helped me, in my way.
I am gratefully thanked to all of the persons who have guided and
help me during my project my project work.
Primarily, I want to thank Mrs. NEELAM MINHAS asst.
profesor of B.C.A. Abhilashi College Mandi who have provided
me basic ideas and out line about my project. Who have guided
and helped me a lot during my project work. Her friendly
guidance and discussions over the complexities of a real time
project have invoked a deep thought in me.
Finally, I end by thanking all of them who have helped me in
making this project.

Signature of student

JEENIYA KASHYAP

Roll No. 6114YZWR440001


Contents

Chapter Title
No.
1 Introduction
2 System Development life cycle
3 Recognition Of Need
4 Feasibility Study
5 Analysis
6 Design
7 Data Flow Diagrams
8 Data base
9 Snap Shots
10 Reports
11 Development tools
12 VB.Net Introduction
13 Testing
14 Implementation
15 System Maintenance
16 Bibliography
ACKNOWLEDGEMENT

The accomplishment of this project entitled “ELECTRICITY


BILL MANAGEMENT SYSTEM” would not have been
possible without the encouragement & support of many people.
Firstly, I sincerely thank the “Almighty” showing his blessing on
me. I acknowledge my deep sense of gratitude to my worthy
project incharge, Mrs. Neelam Minhas for her able guidance,
valuable suggestions & encouragement for the development of
project.

Last but not the least, I find no words to acknowledge the


financial assistance & moral support rendered by my parent &
family members in making the effort a success. All this has
become reality because of their blessing and above all grace of
God.

JEENIYA KASHYAP
Roll No. 6114YZWR440001
CERTIFICATE

This is to certify that project entitled


“ELECTRICITY BILL MANAGEMENT
SYSTEM” submitted to ABHILASHI
INSTITIUTE OF MANAGEMENT
STUDIES,NER CHOWK,MANDI.

By BCA Student of ABHILASHI in the partial


fulfillment of requirements for the degree of BCA,
is carried out under our supervision and guidance.
This is purely an original piece of work and has
not been submitted to any other university or
institute for any other degree or class.

Sign Of Guide:-
INTRODUCTION
INTRODUCTION TO PROJECT

Electricity is the science,


engineering, technology and physical phenomena associated
with the presence and flow of electric charges. Electricity gives
a wide variety of well-known electrical effects, such as
lightning, static electricity, electromagnetic induction and the
flow of electrical current in an electrical wire. In addition,
electricity permits the creation and reception of electromagnetic
radiation such as radio waves.

In electricity, charges produce electromagnetic fields which act


on other charges. Electricity occurs due to several types of
physics:

 Electric charge: a property of some subatomic particles,


which determines their electromagnetic interactions.
Electrically charged matter is influenced by, and
produces, electromagnetic fields.
 Electric current: a movement or flow of electrically
charged particles, typically measured in amperes.
 Electric field : an especially simple type of
electromagnetic field produced by an electric charge even
when it is not moving (i.e., there is no electric current).
The electric field produces a force on other charges in its
vicinity. Moving charges additionally produce a magnetic
field.
 Electric potential: the capacity of an electric field to do
work on an electric charge, typically measured in volts.
 Electromagnets: electrical currents generate magnetic
fields, and changing magnetic fields generate electrical
currents.
In electrical engineering, electricity is used for:

 Electric power (which can refer imprecisely to a


quantity of electrical potential energy or else more
correctly to electrical energy per time) that is provided
commercially, by the electrical power industry. In a loose
but common use of the term, "electricity" may be used to
mean "wired for electricity" which means a working
connection to an electric power station. Such a
connection grants the user of "electricity" access to the
electric field present in electrical wiring, and thus to
electric power.
 Electronics which deals with electrical circuits that
involve active electrical components such as vacuum
tubes, transistors, diodes and integrated circuits, and
associated passive interconnection technologies.

Electrical phenomena have been studied since antiquity, though


advances in the science were not made until the seventeenth
and eighteenth centuries. Practical applications for electricity
however remained few, and it would not be until the late
nineteenth century that engineers were able to put it to
industrial and residential use. The rapid expansion in electrical
technology at this time transformed industry and society.
Electricity's extraordinary versatility as a means of providing
energy means it can be put to an almost limitless set of
applications which include transport, heating, lighting,
communications, and computation. Electrical power is the
backbone of modern industrial society, and is expected to
remain so for the foreseeable future.

Existing system:

The existing system was controlled with a lot of and efficient


computer operators because the software on which the existing
system was dependent were difficult to understand and handle.
Due to use of various software’s the cost was too high because
much salary had to be paid to many operators. moreover all the
operators were required to take training, as they had no
knowledge about the software used.
Proposed system:

The proposed system will remove all the problems in the


existing system. Now only few software’s like Visual Basic
6.0,Version7.0 will be required. The software’s are too easy to
understand that the user can understand it and once moreover it
is so frequently used in daily life that almost all the users must
have gone through it in their educational level. As the
software’s cost is also little. No special training is required. Not
many operators are required only person can handles the
records of whole department. The accuracy will be there,
security will be there and easy access will be there before
designing/developing a new system, it is important to establish
the acceptance criteria so that it can be evaluated according to
this criteria .The performance requirements are:
 User Friendly : The designed system should be user
friendly, understandable and easy to use so that even the
novice user can easily learn to use the system.
 Flexibility : It should be flexible in nature to allow likely
changes and alteration in the near future.
 Error handling : The system must give response to
errors in clear and precise manner as soon as an error has
occurred.
 Integrity : The results produced by the system should
be accurate and reliable.
 Functional and performance specifications : The
performance of the required system should be good and
should fulfill the required functional specifications.
Most of the events are on-click and the user never required
to enter any commands. So, the staff quickly learns how to use
this project.
SYSTEM
DEVELOPMENT
LIFE CYCLE
SYSTEM DEVELOPMENT LIFE CYCLE

System development is a process ,which started when system


development personnel feel that a new system or an
improvement in the existing system is required. Software
development life cycle is a sequence of activities carried out by
analyst, designer and user to develop and implement of an
information system.

 ANALYST:
An analyst studies the requirements of a
customer or user and defines the problem domain. He
identifies need of an organization to determine how
people method and computer technology can best
accomplish improvement of the business.

 DESIGNER:
A designer design a system in terms of
structure of the database, screens, forms and reports. He
also determines the hardware and software requirements
for the development of the system.

 USER:
User is the one who uses the system
ACTIVITIES OF SDLC
 Recognition of needs
 Feasibility study
 Analysis
 Designing
 Coding
 Testing
 Implementation
 Post Implementation and Maintenance

RECOGNITION OF NEED
Recognition of need is a kind of document generated by a user
and problem statement is a written document that will tell
software developer what to develop.

FEASIBILITY STUDY:
In this phase, we access whether or not a project should be
undertaken. This stage involves defining the problem and fixing
up its boundaries.

REQUIREMENT ANALYSIS:
In this phase the user requirement are studied and analyzed. The
technical development team works with the customer and
system end users to identify the various requirements related to
the system to be developed.

DESIGNING:
This is the phase where new system is designed according to
the needs of the user. In this phase the specification of each and
every component of the project is laid down.

CODING:
This is the phase where system is actually developed. The
system design is coded in some suitable programming language
in this phase.

TESTING:

In this phase, the system is judged for all its worth. During this
phase, the developed system is reviewed against each and every
customer requirement specification.

IMPLEMENTATION:
This is the phase in which the development system is handed
over to the client. The old system is dispensed, new system is
put into operation for use and all personnel are trained to
manage and maintain the new system.
RECOGNITION OF
NEED
RECOGNITION OF NEED

The basic of the project is recognition of needs for


improving an information system or a procedure. Thus the
first step in SDLC is the recognition of needs whose purpose
is to evaluate the project request, it is collection of
information that helps the committee members to evaluate
the merit of the project request and to make an informed
judgment about the feasibility of the proposed project.

PROBLEM STATEMENT
Problem statement was to design a module:
 Which will be user friendly.
 Which will restrict the user from accessing other user’s
data.
 Which will help the user in viewing his data and
privileges.
 Which will help the administrator to handle all changes.
 In which further additions can be made without changing
its design drastically.
 Which would restrict the server traffic.
Another problem was that the data should be accessed
from the server and accordingly changes should be made on
the data in the server only.
FUNCTIONS TO BE PROVIDED

The various features that the proposed system will possess will
be:
 The system will be user friendly and completely menu-
driven so that users shall have no problem in using all the
options provided.
 The system will be efficient and fast in response by
carefulprogramming.
FEASIBILITY STUDY
FEASIBILITY STUDY

An important outcome in the preliminary investigation is to


determine that the system requested is feasible. Three key
considerations involved in feasibility analysis.
 TECHNICAL
 ECONOMIC
 OPERATIONAL
We determine the performance and cost effectiveness of the
proposed system and constraints, it is recommended in
feasibility report.

 Technical feasibility

There are number of technical issues which generally raised


during the feasibility stages of investigation which are as
follows:-
 Does the necessary technology exist to do what is
suggested?
 Does the proposed equipment have the technical capacity
to hold the data required to use the new system?
 Can the system be upgraded if developed?
 Are there technical guarantees of accuracy, reliability,
ease of access and data security?
The proposed system is technically feasible because visual
basic 6.0 on windows 98 on client and MS Access on the server
are compatible and support the program and database design
quite efficiently.

 Economic Feasibility

Also referred to as cost benefit analysis, is the most frequently


used method for evaluating the effectiveness of a proposed
system. The focus is to determine the benefits and savings that
are expected from proposed system and compared them with
cost. if benefit outweigh cost then the decision is made and
implement the system.
Our proposed system needs only a few software’s
and printer along with a few computer operators. Keeping in a
view the long-term benefits provided by this proposed system,
these inputs costs are minimum.

Operational Feasibility
Operational feasibility is mainly related to human organizations
and political aspects. The points to be considered:-
 What changes will be brought with a system?
 What organizational structures are disturbed?
 What new skills, if not; can they be trained in due course
of time?
Our proposed system is aimed to simplify the job without
bringing much change in way of working of existing system.
ANALYSIS
REQUIREMENT ANALYSIS

It is the detail study of the various operations performed by the


system and their relationship with in & outside the organization.
The key question is:
What must be done to solve the problem?

Tools used in analysis are DFD, interviews, onsite observations


& questionnaires. Training, experience & common sense are
required for the collection of information needed to the
analysis. System analysis is the fact finding followed by
analysis of the facts. Data analysis is also considered a pre
requisite condition for cost/benefit analysis. System analyst is a
person who conducts the system study and identifies the
activities and objectives, formulate the set of roles to achieve
the objects. His main activities are system analysis is the fact
finding followed by analysis of the facts. Data analysis is also
considering a pre-requisite condition for cost/benefit analysis.
Requirement analysis plays an essential role in the SDLC.
One of the most difficult aspects of program development is in
getting both the customer & developers to understand what
each of them is trying to say.
The techniques, which we have used for requirement gathering
for the present project, are interviews and observations. First of
all we interviewed “INSTITUTE” and requested details about
the present project by asking various questions.
 What is the purpose behind developing the present
software?
 What all functioning he intents to get in the purposed
software?
 What all the benefits he intends to get in the perposed
software?
Next , we personally observed their working for 3-4 days to get
a clear cut idea of how they work in their daily routine and
their present style of work with regard to maintenance of
records.
SOFTWARE REQUIREMENTS
SPECIFICATION

Software requirement and specification is a document that


completely describes what the proposed software should do
without describing how the software do it. The basic goal of the
requirement phase is to produce the SRS , which describes the
complete complex behavior of the proposed software’s forces
the other to identify the requirements .
Hence the main advantages are:

 An SRS establish the basis for agreement between the


client and supplier on what the software product will do.
 An SRS provides a reference for validation of the final
product .
 A high quality SRS is a pre-requisite to high-quality
software.
 A high quality SRS reduces the development cost.

SOFTWARE REQUIREMENTS
 Front end- vb.net
 Back end- MS-Access
HARDWARE REQUIREMENTS

 Processor Pentium 4 or Higher.


 Monitor: - Color Monitor Having Pixel Setting
(800*600), True colors.
 Hard Disk: - 80GB or more
 RAM: - 512MB RAM or more
 Floppy Disk Drive: - 1.44
 Mouse Keyboard.
 Printer
DESIGNING
DESIGNING

The most creative and challenging phase of the system


development life cycle is system design . The term design
describes a final system and the process by which it is
developed , i.e. we have moved from logical to physical aspect
of life cycle, the key question in case of designing is
“How the problem should be solved?”

The first step is to determine how the output is to produced


and in what format. Samples of input and output are also
presented. The second step is
Input data and the master files have to be designed to meet the
requirement of the and an impact of the system on the
organization are document and evaluated by the management.
A lot of factor are taken into consideration while preparing a
good system design which includes performance analysis ,
security and control , system prototyping , designing user
interface , design documentation and reviews etc. In the context
of present project , great care and attention has been provided
to ensure proper security ,password have been use to restrict
access only to the authorized user . Moreover ,In order to
make the software easy to use, a user interface that is very
much user friendly has been used with a lot of useful tips
displayed while feeding and retrieving information.
DATA FLOW
DIAGRAMS
Data Flow Diagram (DFD)

Data Flow Diagram is another tool use to describe the design


specification. It is also a Pictorial representation of data flow.
The only difference between Flowchart and the Data Flow
Diagram is that DFD show only the flow of data not the actual
procedure or coding to perform that function. On the other hand
Flowchart Show the actual calculation to perform the task.

The different symbol use in DFD are: -

SQUARE:

Describe the Source and Destination of data


or information. The Source Must is written
in capital letters.

BUBBLE:

A Circle used to show the Process. These


can be number of process in a program.
Each process must be assign a suitable
number
OPEN RECTANGLE:

An Open Rectangle Used to describe the


storage of database

ARROWS AND LINES:

Arrow Used to shoe the flow of Data . A


DFD can be drawn from top to bottom or
from left to right .

SOME COVENTIONS WHILE DRAWING DFDs:

 All external files should always be shown in the DFD as


labeled straight line.
 The need for multiple dataflow by the process is
represented by ‘*’ between the dataflow. Similarly the
‘or’ relationship is represented by ‘+’ between the data
flows.
 DFD should not represent procedural information. So,
while drawing a DFD.
 One must not involve in the procedural details.
CONSTRUCTING THE DFDs:

Several rules of thumb are used in drawing


DFDs:
 Processes should be named and numbered for easy
reference. Each name should be representative of the
process.
 The direction of flow is from top to bottom and from
left to right.
 The names of data stores, sources and destination are
written in capital letter. Process and data flow names
have the first letter of each word capitalized.
 Work your way consistently from the inputs to the
output or vice -versa.
 Never try to show control logic like loops or
decisions.
 Label each arrow with proper data elements.
 Input and output should be carefully identified.
 Make use of star and plus operations to show
sufficient details in the data flow graph.
DATA BASE
There are 4 tables used in all modules. The names
and description of the tables are:

TABLE NAME : Meters


Field Name Description Data Type
MeterNo Meter number Text
ConnectionType Connection Type Text
CustomerId Customer Id Text
CName Customer Name Text
Address Address Text
EmialId Email Id Text
TABLE NAME: MMR
Field Name Description Data Type
MeterNo Meter number Text
BillMonth Month Of Bill Text
ReadingDate Rent date Text
DueDate Date Of Payment Text
OldReading Old Month Units Number
NewReading New Month Reading Number
ChargeUnit Unit Charge Number

TABLE NAME : BCollection


Field Name Description Data Type
Connection Type Text
UnitPrise Unit Prise Number
MeterRent Meter Rent Number
Electricity Duty Electricity duty Number

TABLE NAME: Login Table


Field Name Description Data Type
Lgn Login Text
Pwd Password Text
SNAP SHOTS
Login Screen

LOG IN
Private Sub Button1_Click(ByVal
sender As System.Object, ByVal e As
System.EventArgs) Handles
Button1.Click
Dim str As String
cn.Open()
str = "select * from users
where uid = '" & TextBox1.Text & "'
and pwd = '" & TextBox2.Text & "'"
selcommand(str)
If dr.Read() Then
MsgBox("Welcome to the
Application")
GroupBox1.Visible = False
GroupBox2.Visible = True

Else
MsgBox("Either username
or password is incorrect!!! Try
Again")
End If
cn.Close()
End Sub
Change Password Screen

Change Password
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim str As String
cn.Open()
str = "Select * from users where
uid='" & TextBox1.Text & "' and pwd = '" &
TextBox2.Text & "'"
selcommand(str)
If dr.Read() Then
GroupBox1.Visible = True
Else
MsgBox("Either users name or
password is incorrect!!!!!!!!!! Try
Again")
End If
cn.Close()
End Sub

Private Sub chgpassword_Load(ByVal


sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
GroupBox1.Visible = False
TextBox2.PasswordChar = "*"
TextBox3.PasswordChar = "*"
TextBox4.PasswordChar = "*"
getconnected()
End Sub

Private Sub Button2_Click(ByVal sender


As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
If TextBox3.Text = TextBox4.Text
Then
Dim str As String
cn.Open()
str = "update users set pwd =
'" & TextBox3.Text & "' where uid='" &
TextBox1.Text & "'"
dmlcommand(str)
MsgBox("Password changed
successfuly")
cn.Close()
Else
MsgBox("Both password do not
matched")
TextBox3.Clear()
TextBox4.Clear()
TextBox3.Focus()
End If
End Sub
End Class
Main Menu screen
Connection Detail Screen

Connection Detail
Public Class NewConnection
Dim str As String
Private Sub NewConnection_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Me.WindowState = FormWindowState.Maximized
getconnected()
ComboBox1.Items.Add("Commercial")
ComboBox1.Items.Add("Domestic")
ComboBox2.Visible = False
End Sub

Private Sub Button1_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
Dim str As String
cn.Open()
str = "Insert into meters values ('" &
TextBox1.Text & "','" & ComboBox1.Text & "','" &
TextBox2.Text & " ','" & TextBox3.Text & "','" &
TextBox4.Text & "','" & TextBox5.Text & "','" &
TextBox6.Text & "'" & ")"
dmlcommand(str)
MsgBox("Record Added Successffully")
cn.Close()
End Sub

Private Sub Button2_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs)
Handles Button2.Click
Dim str As String
cn.Open()
str = InputBox("Enter the meter number:")
str = "select * from meters where MeterNo
= '" & str & "'"
selcommand(str)
If dr.Read() Then
showrecord()
Else
MsgBox("No Records Exists with the
specified Meter Number........")
End If
cn.Close()
End Sub
Private Sub showrecord()
TextBox1.Text = dr(0)
ComboBox1.Text = dr(1)
TextBox2.Text = dr(2)
TextBox3.Text = dr(3)
TextBox4.Text = dr(4)
TextBox5.Text = dr(5)
TextBox6.Text = dr(6)
End Sub

Private Sub Button4_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs)
Handles Button4.Click
Dim str As String
cn.Open()
str = "Delete from Meters where MeterNo =
'" & TextBox1.Text & "'"
dmlcommand(str)
MsgBox("Record Deleted Successfully")
clearfrm()
cn.Close()
End Sub
Public Sub clearfrm()
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
End Sub

Private Sub Button5_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs)
Handles Button5.Click
If MsgBox("Do you really want to Exit!!!",
MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
Me.Close()
End If
End Sub

Private Sub Button3_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs)
Handles Button3.Click
Dim str As String
cn.Open()
str = "update meters set ConnectionType =
'" & ComboBox1.Text & "', CustomerID = '" &
TextBox2.Text & "',CName = '" & TextBox3.Text &
"', Address = '" & TextBox4.Text & "', EmailID =
'" & TextBox5.Text & "', PhoneNo = '" &
TextBox6.Text & "' where MeterNo = '" &
TextBox1.Text & "'"
dmlcommand(str)
MsgBox("Changes To The Table Performed
Successfully")
clearfrm()
cn.Close()
End Sub

Private Sub Button6_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs)
Handles Button6.Click
clearfrm()
Dim str As String, num As Integer, ss As
String
str = "Select top 1 * from Meters order by
MeterNo desc"
cn.Open()
selcommand(str)
If dr.Read() Then
ss = dr(0)
ss = Mid(ss, 2, 3)
num = ss
num += 1
If num < 10 Then
ss = "M00" & num
ElseIf num < 100 Then
ss = "M0" & num
ElseIf num < 1000 Then
ss = "M" & num
End If
Else
ss = "M001"
End If
TextBox1.Text = ss
cn.Close()
End Sub

Private Sub RadioButton2_Click(ByVal sender As


Object, ByVal e As System.EventArgs) Handles
RadioButton2.Click
ComboBox2.Visible = True
fillcustID()
TextBox2.Text = ""

End Sub
Private Sub RadioButton1_Click(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
RadioButton1.Click
ComboBox2.Visible = False
autoCustID()
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
End Sub
Private Sub fillcustID()
ComboBox2.Items.Clear()
str = "select customerID from meters order
by customerid"
cn.Open()
selcommand(str)
While dr.Read()
ComboBox2.Items.Add(dr(0))
End While
cn.Close()
End Sub
Private Sub autoCustID()
Dim str As String, num As Integer, ss As
String
str = "Select top 1 CustomerId from Meters
order by CustomerID desc"
cn.Open()
selcommand(str)
If dr.Read() Then
ss = dr(0)
ss = Mid(ss, 2, 3)
num = ss
num += 1
If num < 10 Then
ss = "C00" & num
ElseIf num < 100 Then
ss = "C0" & num
ElseIf num < 1000 Then
ss = "C" & num
End If
Else
ss = "C001"
End If
TextBox2.Text = ss
cn.Close()
End Sub
Private Sub ComboBox2_Disposed(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
ComboBox2.Disposed
Form1.GroupBox2.Visible = True
End Sub

Private Sub
ComboBox2_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles ComboBox2.SelectedIndexChanged
Dim str As String
str = "Select * from Meters where
customerID='" & ComboBox2.Text & "'"
cn.Open()
selcommand(str)
If dr.Read() Then
TextBox2.Text = dr(2)
TextBox3.Text = dr(3)
TextBox4.Text = dr(4)
TextBox5.Text = dr(5)
TextBox6.Text = dr(6)
End If
cn.Close()
End Sub
Monthly Meter Readings Screen

MONTHLY METER READING


Private Sub Monthly_Meter_Readings_Load(ByVal sender
As System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
getconnected()
ComboBox2.Items.Add("January 2016")
ComboBox2.Items.Add("February 2016")
ComboBox2.Items.Add("March 2016")
ComboBox2.Items.Add("April 2016")
ComboBox2.Items.Add("May 2016")
ComboBox2.Items.Add("June 2016")
ComboBox2.Items.Add("July 2016")
ComboBox2.Items.Add("August 2016")
ComboBox2.Items.Add("September 2016")
ComboBox2.Items.Add("October 2016")
ComboBox2.Items.Add("November 2016")
ComboBox2.Items.Add("December 2016")
fillmtrn()
Me.WindowState = FormWindowState.Maximized
End Sub
Private Sub fillmtrn()
ComboBox1.Items.Clear()
Dim str As String
str = "select MeterNo from meters order by
MeterNo"
cn.Open()
selcommand(Str)
While dr.Read()
ComboBox1.Items.Add(dr(0))
End While
cn.Close()
End Sub

Private Sub ComboBox1_SelectedIndexChanged(ByVal


sender As System.Object, ByVal e As System.EventArgs)
Handles ComboBox1.SelectedIndexChanged
Dim str As String
cn.Open()
str = "select * from meters where meterno='" &
ComboBox1.Text & "'"
selcommand(str)
dr.Read()
TextBox1.Text = dr(3)
TextBox2.Text = dr(4)
cn.Close()

End Sub

Private Sub Button1_Disposed(ByVal sender As


Object, ByVal e As System.EventArgs) Handles
Button1.Disposed
Form1.GroupBox2.Visible = True
End Sub

Private Sub TextBox4_LostFocus(ByVal sender As


Object, ByVal e As System.EventArgs) Handles
TextBox4.LostFocus
TextBox5.Text = TextBox4.Text - TextBox3.Text
End Sub

Private Sub ComboBox2_SelectedIndexChanged(ByVal


sender As System.Object, ByVal e As System.EventArgs)
Handles ComboBox2.SelectedIndexChanged
Dim str As String
str = "select * from MMR where meterno='" &
ComboBox1.Text & "' and billmonth='" & ComboBox2.Text
& "'"
cn.Open()
selcommand(str)
If dr.Read() Then
MsgBox("Readings for the month is already
entered")
cn.Close()
Else
cn.Close()
str = "select top 1 * from MMR where
meterno='" & ComboBox1.Text & "' order by transNo
desc"
cn.Open()
selcommand(str)
If dr.Read() Then
TextBox3.Text = dr(5)
Else
TextBox3.Text = 0
End If
cn.Close()
End If

End Sub

Private Sub Button2_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
Button2.Click
Me.Close()
End Sub
End Class

Collect Bills Screen


COLLECT BILL SCREEN
Public Class BillCollection
Dim mtno, bmnt As String
Private Sub BillCollection_Load(ByVal sender
As System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Me.WindowState = FormWindowState.Maximized
getconnected()
fillList()
End Sub
Private Sub fillList()
ListBox1.Items.Clear()
str = "Select * from BillDetails where
status='Unpaid' order by MeterNo"
cn.Open()
selcommand(str)
While dr.Read
ListBox1.Items.Add(dr(0) & "-" &
dr(6))
End While
cn.Close()

End Sub

Private Sub
ListBox1_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles ListBox1.SelectedIndexChanged
clearfrm()
mno = Mid(ListBox1.SelectedItem, 1, 4)
mtno = Mid(ListBox1.SelectedItem, 1, 4)
bmnt = Mid(ListBox1.SelectedItem, 6)
str = "select * from Bcollection where
MeterNo='" & mtno & "' and BillMonth='" & bmnt &
"'"
cn.Open()
selcommand(str)
If dr.Read() Then
MsgBox("Bill Already Collected from
the Customer")
cn.Close()
Exit Sub
End If
cn.Close()
str = "select * from meters where
MeterNo='" & mno & "'"
cn.Open()
selcommand(str)
If dr.Read Then
TextBox1.Text = dr(3)
TextBox2.Text = dr(4)
End If
cn.Close()
str = Mid(ListBox1.SelectedItem, 6)
bmnt = Mid(ListBox1.SelectedItem, 6)
str = "select * from BillDetails where
MeterNo='" & mno & "' and BillMonth='" & str & "'"
cn.Open()
selcommand(str)
If dr.Read Then
TextBox3.Text = dr(1)
TextBox4.Text = dr(2)
TextBox5.Text = dr(11)

End If
cn.Close()

End Sub

Private Sub Button1_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs)
Handles Button1.Click

str = "Insert into Bcollection values('" &


mtno & "','" & bmnt & "','" & TextBox8.Text & "',"
& TextBox9.Text & ","
If RadioButton1.Checked Then
str = str & "'Cash')"
Else
str = str & "'Cheque')"
End If
cn.Open()
dmlcommand(str)
cn.Close()
str = "update BillDetails set
status='Paid' where MeterNo='" & mtno & "' and
BillMonth='" & bmnt & "'"
cn.Open()
dmlcommand(str)
cn.Close()
MsgBox("Payment Successfully Received")
clearfrm()
fillList()
End Sub
Private Sub clearfrm()
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox8.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox9.Text = ""
End Sub

Private Sub TextBox8_LostFocus(ByVal sender As


Object, ByVal e As System.EventArgs) Handles
TextBox8.LostFocus
Dim d1, d2 As Date, x As Integer
d1 = TextBox4.Text
d2 = TextBox8.Text
x = DateDiff(DateInterval.Day, d1, d2)
If x > 0 Then
TextBox6.Text = Val(TextBox5.Text) *
0.1

Else
TextBox6.Text = 0
End If
CalculateBill()

End Sub
Private Sub CalculateBill()
TextBox7.Text = Val(TextBox5.Text) +
Val(TextBox6.Text)
TextBox9.Text = TextBox7.Text
End Sub

Private Sub TextBox8_TextChanged(ByVal sender


As System.Object, ByVal e As System.EventArgs)
Handles TextBox8.TextChanged

End Sub
Private Sub Button2_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button2.Click
Form1.GroupBox2.Visible = True
Me.Close()

End Sub
End Class
REPORTS
Terrif Plans Report
Domestic Connection Report
Commercial Connection Detail
Report
Monthly Detail Report
MONTHLY DETAIL REPORT

Public Class MonthlyBill

Dim str As String, up As Double, mr As Integer, ed


As Double, oldr As Integer, nr As Integer, cu As
Integer
Private Sub MonthlyBill_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
Me.WindowState = FormWindowState.Maximized
ComboBox2.Items.Add("January 2016")
ComboBox2.Items.Add("February 2016")
ComboBox2.Items.Add("March 2016")
ComboBox2.Items.Add("April 2016")
ComboBox2.Items.Add("May 2016")
ComboBox2.Items.Add("June 2016")
ComboBox2.Items.Add("July 2016")
ComboBox2.Items.Add("August 2016")
ComboBox2.Items.Add("September 2016")
ComboBox2.Items.Add("October 2016")
ComboBox2.Items.Add("November 2016")
ComboBox2.Items.Add("December 2016")
fillmtrn()
End Sub

Private Sub fillmtrn()


ComboBox1.Items.Clear()
Dim str As String
str = "select MeterNo from meters order by
MeterNo"
cn.Open()
selcommand(str)
While dr.Read()
ComboBox1.Items.Add(dr(0))
End While
cn.Close()
End Sub

Private Sub Button1_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
Button1.Click
mno = ComboBox1.Text
bmth = ComboBox2.Text
str = "select * from MMR where MeterNo='" &
ComboBox1.Text & "' and BillMonth='" & ComboBox2.Text
& "'"
cn.Open()
selcommand(str)
If dr.Read Then
oldr = dr(4)
nr = dr(5)
cu = dr(6)
cn.Close()
getTerrif()
generateBill()

Else
MsgBox("Reading for the selected month is
not entered first enter the meter Readings ")
ComboBox1.Text = ""
ComboBox2.Text = ""
End If
cn.Close()
End Sub
Private Sub getTerrif()
str = "select * from terrif where ctype
in(select connectiontype from meters where MeterNo='"
& ComboBox1.Text & "')"
cn.Open()
selcommand(str)
If dr.Read Then
up = dr(1)
mr = dr(2)
ed = dr(3)
Else
MsgBox("Terrif Plan is not found")
End If
cn.Close()
End Sub
Private Sub generateBill()
str = "select * from BillDetails where
MeterNo='" & ComboBox1.Text & "' and BillMonth='" &
ComboBox2.Text & "'"
cn.Open()
selcommand(str)
If dr.Read Then
MsgBox("Billing for the selected month is
already generated")
ComboBox1.Text = ""
ComboBox2.Text = ""
If MsgBox("Do you wish to print the Bill",
MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
ViewBill.MdiParent = Form1
ViewBill.Show()
End If
Else
cn.Close()
Dim dt As Date, dudt As Date, bamt As
Double
str = "select date(),
dateadd('d',10,date())"
cn.Open()
selcommand(str)
dr.Read()
dt = dr(0)
dudt = dr(1)
cn.Close()
up = cu * up
ed = (up * ed) / 100
bamt = up + ed + mr
str = "insert into BillDetails values('" &
ComboBox1.Text & "','" & dt & "','" & dudt & "'," &
oldr & "," & nr & "," & cu & ",'" & ComboBox2.Text &
"'," & up & "," & ed & "," & mr & "," & 0 & "," & bamt
& ",'Unpaid')"
cn.Open()
dmlcommand(str)
cn.Close()
MsgBox("Bill Generated")
If MsgBox("Do you wish to print the Bill",
MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
ViewBill.MdiParent = Form1
ViewBill.Show()
End If
End If
cn.Close()

End Sub

Private Sub Button2_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
Button2.Click
Me.Close()
End Sub
End Class
Defaulter List Report
View Collection Report
EFFICIENCY-:
When we produce large programs, it often happens that
extra code is left in the project. This extra code can be unused
subs and functions, old variables, unnecessary constants, even
Types and Enums. Extra code takes up disk space, slows down
the program and it also makes it harder to read.
Since this code is not needed, it is also called dead code.
The opposite of dead code is live code. You can trace the dead
code and then remove.
One needs to detect questionable programming practices and
code.

Problem categories: Problems fall into 4 categories:


1. Optimization. These problems adversely affect the speed
and size of the resulting program.
2. Style. These problems are related to the programming
style. They don't necessarily lead to problems in the short
run, but they often lead to confusion and further errors in
the future.
3. Metrics is a sub-category of Style. You can set target
values for different metrics and monitor to find out if
some part of your program exceeds the limits. Read more
about metrics in chapter 4.
4. Functionality. These problems affect the run-time
functionality of the program. The reason is often that
somebody forgot to do something!
One can create quick check filters and strict filters for giving
code a final polish. The filters are:

Dead code Check deadness only

Disable checking Disable all problem checking


Report problems affecting functionality
Functionality
only
Report problems related to
Optimizations
optimization only
Strict Report all problems
Report problems related to style issues
Style
only

In this Project no dead code, variable, procedure, module


is available. Problems were reported to the guide and with his
help these all are solved. Coding is done by keeping in mind the
future reusability of it. Complexity is tried to be in reduced
number. Call trees are used here i.e. procedure / function call
other procedure / function.

Development that are considered to improve the systems


performance on the following areas :
 Physical I/O - data is read from and written into I/O
devices. This can be a potential bottleneck. A well-
configured system always runs 'I/O-bound' - the
performance of the I/O dictates the overall performance.
 Memory consumption of the database resources e.g.
Buffers, etc.
 CPU consumption on the database and application
servers
 Network communication - not critical for little data
volumes, becomes a bottleneck when large volumes are
transferred.
DEVOPLEMENT
TOOLS
ABOUT MS ACCESS

MS Access is a Relational Data Base Management System. In


MS Access has much advantage over other DBMS. The user
can create Table and store related data in it. MS access provides
easy way to create tables we can create tables in design mode or
by using the in build Wizards. User can also create form layout
in MS Access.

To create table in MS Access follows These Steps.

1) Start MS Access form Start -> Program File -> MS Office ->
MS Access.
2) In the File Menu Select New to create new database.
3) MS Access Ask You to save the database name in specified
location. Type the file name in file save dialog box and click
save button.
4) MS Access opens a table design window in which you can
design the table by using design view of by using wizard.
5) Select Create Table in Design View to open design table
windows
6) Here you can type the field name, specify the data type and
the size of the fields. This window also allows the user to
define the different constraints like Primary Key constraints
and Not Null Key constraints.
7) Select save button in tool bar to save the table by giving a
suitable name.
THE TABLE DESIGN WINDOW

To attach the MS Access with Visual Basic the three major


tools are widely used.

1) The Data Control


2) The Data Access Object (DAO)
3) The Active Data Object (ADO)
Data Control

With data control we can access database without any


programming. We can set to property of data control i.e.
Database name to database, and Record Source to table name.
We can display the data in regular controls like textboxes etc.
The Data Access Object

The Data Access Object is a structure of object s for accessing


database through VB code. All the function of Data Control
available in VB Code.
Record Sets

Record Sets are the objects that represent collection of records


from one or more tables. In database programming, Record Sets
are equivalent of a variable in regular programming. We can
access a table directory via a Record Set Object. A Record Set
is constructed of columns and rows and is similar to a table, but
it can contain data from multiple tables. The Record Set work
like a bridge between the Visual Basic and The Database.

There are three types of Record Sets

1) DynaSets, which are updateable views of data


2) Snapshots, which are static (read-only) views of data
3) Tables, Which are direct views of tables.

To Connect: (Examples)

Database Name: INSSTITUTE Table Name


: FEE
 Start VB DOT NET, select Project ->
References.
 In the References dialog box select Microsoft
DAO 3.6 Object Library.
 In the general section of the form declare two
variables like.
Dim Db as Database
Dim RS as Record Source
T0 connect follow this code:

Set db = open database (“c:\abc\insstitute.mdb”)


Set rs = db.OpenRecordSet(“Select * from fee”)
Now by using rs object we can access each fields of the room
table.

The SQL Statements


The SQL statements are used to extract data from a database.
SQL statements are basically Record Set definitions. With SQL
statements we can extract data from multiple table at a given
time. We can make query, sub query with SQL statements. The
SQL Statements are beginning with the SELECT statement.
VB. NET
What Is .NET?
.NET represents an entire range of technologies and concepts
that form a platform on which you can develop applications.
Visual Basic .NET does have an actual version number, 7.0 –
the number just isn’t used often. Just as windows 2000 is really
Windows NT version 5.0, the simpler or catchier name will
generally be the one commonly used. Don’t expect to hear
Visual Basic 7.0 often though; there was even a cash penalty
inside Microsoft for referring to windows 2000 as NT 5.0. .NET
is a layer that exists beneath your programs and provides a set
of base services and functions. This layer contains a set of
applications and operating systems called the .NET servers; a
foundation set of objects called .NET framework, and a set of
services that support all the .NET languages, called the
Common Language Runtime (CLR). .NET is more than just
one thing; it is a collection of software and concepts that work
together to enable the creation of business solutions.
.NET Servers

A major goal of the .NET concept is to decrease the


building of distributed system, in which the work is done in
several different locations. For the most part, these types of
systems do their work on the back end, at the server level.
Microsoft provides a set of Software products that together are
known as the .NET Enterprise servers. They are designed to
supply the back end features needed by a distributed system.
These products include
 The server operating system, Microsoft Windows
 Clustering and load balancing software such as Microsoft
App Center and Microsoft cluster server.
 A database server, Microsoft SQL server
 An e-mail, collaboration, and free-form information storage
 System, Microsoft Exchange Server
 A data-transformation engine based around XML called
 Microsoft Biz Talk Server
 A server for accessing legacy systems, such as AS/400s, called Host
Integration server
 And more…..
Together these servers supply base services to .NET applications,
forming the foundation of systems.
.NET Framework

In the move to Visual Basic .NET, many things have


changed radically; one of them is the development of a new
foundation to all the .NET develo0pment tools. This foundation,
known as the .NET framework, provides two key things: the base
runtime environment and a set of foundation classes. The runtime
environment is similar to the operating system in that it provides a
layer between your program and the complexities of the rest of the
system, performing services for your application and simplifying
access to the functionality of the lower layers. The foundation
classes provide a large set of functionality, wrapping, and abstraction
such technologies as Internet protocols, file system access, XML
manipulation, and more. The .NET framework is similar in many
ways to the operating system, and it provides its own set of APIs to
make it easy for programmers to take advantage of its capabilities.
Figure illustrates the framework’s relationship to your code and to
the underlying services of the operating system.
TESTING
TESTING

No program or system design is perfect; the


communication between the user and the designer is not
always clear, and time is usually short. The result is
errors and more errors. So before implementing the
system it should be first tested. It is tedious but
necessary step in system development. There are
various testing techniques which are discussed below
with the information that how they are applied to
present system. The testing of software is done module
wise.

VALIDATION CHECKS

Software validation is achieved through a series of black-


box tests that demonstrate conformity with requirements. A test
plan outlines the classes of tests to be conducted and a test
procedure defines specific test cases that will be used to
demonstrate conformity with requirements.
After each validation test case has been conducted, one of two
possible conditions exists:
(1) The function or performance characteristics conform to
specification and are accepted
or
(2) A deviation from specification is uncovered and a
deficiency list is created.

CONFIGURATION REVIEW
An important element of the validation process is a
configuration review. The intent of the review is to ensure that
all elements of the software configuration have been properly
developed, are cataloged, and have the necessary detail to
bolster the support phase of the software life cycle. The
configuration review, sometimes called an audit.

ALPHA AND BETA TESTING


If software is developed as a product to be used by many
customers, it is I impractical to perform formal acceptance test
with each one. Most software product builders use a process
called alpha and beta testing uncover errors that only the end-
user seems able to find.
A customer conducts the Alpha test at developer’s site. The
software is used in a natural setting with the developer “looking
over the shoulder“ of the user and recording errors and usage
problems. Alpha tests are conducted in a controlled
environment.
The Beta test is conducted at one or more customer sites by the
end-user of the software. Unlike alpha testing, the developer is
generally not present. Therefore, the beta test is a live
application of the software in an environment that cannot be
controlled by the developer. The customer records all problems
(real or imagined) that are encountered during beta tasting and
reports these to the developer at regular interval.
IMPLEMENTATION
IMPLEMENTATION

A crucial phase in the system life cycle is the successful


implementation of the new system designed. Implementation
includes all those activities that take place to convert from the
old system to the new one. The new system may be completely
new, replacing an existing manual or automated system or it
may be major modification to an existing system. In either case,
proper implementation becomes necessary so that reliable
system based on the requirements of the organization can be
provided.
Implementation includes:
 Training of personnel
 Conversion procedures
 Post-implementation review or evaluation
TRAINING OF PERSONNEL:

The high quality training is an essential step in systems


implementation. Hence to provide the training to personnel they
have been provided user manuals. They are asked to read it
carefully and same thing try practically on computer. If they
don’t understand any thing, can ask without any hesitation.
They are asked to enter the data, which is more frequently
entered, and print the reports are frequently printed. Users are
told about those situations, which he must understand and he
should able to handle it.

CONVERSION METHOD :
The direct conversion method is applied. This method
converts from old to the new system abruptly. The old system is
used till a planned conversion day. The organization relies fully
on the new system.
POST
IMPLEMENTATION
POST IMPLEMENTATION

After the system is implemented and conversion is


complete, a review is conducted to determine whether system is
meeting expectations and where improvements are needed. A
post implementation review measures the systems performance
against pre-determined requirements. It determines how well
the system continues to meet performance specifications. It also
provides information to determine whether major re-design or
modification is required. In evaluation system is checked
against the pre-determined requirements. All the
requirements have been fully attained. Where there was
any mistake that had handled through system life cycle.
Problem is solved and checked against the original
facts.

REVIEW PLAN:
For review a team is planned. The Team shall
prepare a formal plan around the objectives of the
review. An overall plan covers the following areas:

ADMINISTRATOR PLAN:
Review area objectives, operating costs, actual
operating performance and benefits.
SYSTEM
MAINTENANCE
SYSTEM MAINTANENCE:

The last part of system development life cycle is


system maintenance, which is actually the
implementation of the post-implementation plan. Hence
Programmers/ Analyst spends sufficient time for
maintaining programs.
Hence maintenance will cover a wide range of
activities including correcting coding and design errors,
updating documentation and test data and upgrading
user support. Many activities classified as maintenance
actually fall under enhancements. Hence in
maintenance of system enhancement also takes place.
Therefore in maintenance addition, modification, re-
developing of code will take place to support changes
in specification.
BIBLIOGRAPHY
BIBLIOGRAPHY:
1. System Analysis and Design BY Elias
Galgotia Publications.
2. Software Engineering By Roger S. Pressman,
McGraw- Hill Publications.
3. MS-ACCESS: BPB Publications
4. Mastering in VB.Net By BPB Publications.
5. VisualBasic.Net Programming, Black Book.

You might also like