gb

Published on February 2017 | Categories: Documents | Downloads: 56 | Comments: 0 | Views: 859
of 61
Download PDF   Embed   Report

Comments

Content

 

 

A Project Report ON

ELECTRICITYSYSTEM BILL MANAGEMENT Submitted in the Partial Fulfillment of the Requirements For The Award Of  THE DEGREE OF BACHELOR OF BUSINESS ADMINISTRATION (GENERAL)

SUBMITTED To:-

SUBMITTED BY:-

Mr. AJAY SHARMA

BHARAT TIWARI

  (Assistant Professor)

ANKUSH TYAGI BHANU SAINI RAJNEESH KUMAR  VARUN TYAGI

KASTURI RAM COLLEGE OF HIGHER EDUCATION (Affiliated to GGSIP University, Delhi)

 

 Narela, Delhi-110040 Delhi-110040 

1 INTRODUCTION TO ELECTRICITY BILL MANAGEMENT SYSTEM (EBMS)

1.1 Introduction to Our project entitled “ Electricity Bill Management System”(EBMS) aims is to generate electricity bill with all the charges. Manual

system that is employed is extremely laborious and quite inadequate. It only makes the process more difficult and hard. The aim of our project is to develop a system that is meant to partially comp co mput uteri erize ze the the wo work rk pe perf rform ormed ed in the the Elec Electr tric icit ity y Bo Board ard li like ke ge gene nerat ratin ing g monthly electricity bill, record of consuming unit of energy, store record of the customer. We used Microsoft Visual Basic 6.0 as front end and MS-Access 2000 as back  end en d for for de deve velo lopi ping ng ou ourr proj projec ect. t. Vi Visu sual al Ba Basi sicc is prim primar aril ily y a vi visu sual al de desi sign gn environment. We can create a VB application by designing the form and that make up the user interface. Adding visual basic application code to the form and the objects such as buttons and text boxes on them and adding any required support code in additional modular. Microsoft Access 2000 is a powerful relational database application with which a desktop desktop user can effic efficientl iently y create and mani manipula pulate te data database base systems. Access targets the desktop category and works best for individuals and workgroup. Managing megabytes of data for multi-user access to the same database, Access uses file-server architecture, rather than client-server architecture.

2

 

Access Acc ess is inc includ luded ed in the pro profes fessio sional nal and dev develo eloper per edi editio tions ns of Mic Micros rosoft oft office. The overall project report is divided into some parts. These parts are further  divided into their subparts. In the parts we have described the purpose, scope of  the project, objective of the project i.e. approach which used for developing this software. It includes the topics like the problems with the existing system and the fun functi ctiona onalit lity y of the org organi anizat zation ion.. Int Introd roduct uction ion to too tools, ls, des design ign,, cod coding ing,, testing and debugging of the system are discussed in very detail. We have also  provided the names of the books from which we have taken guidance to complete the work. Last section contains the matter about the overall work   performed and the efforts taken to complete complete the project.

1.2  Scope: Ourr proj Ou projec ectt aims aims at Bu Busi sine ness ss proc proces esss au auto tom mat atio ion, n, i. i.e. e. we ha have ve tr trie ied d to computerize various processes of   Electricity Bill Management System. In the sector of electricity board we have computerizes their department and stock  maintenance. Scope of any software depends upon the following things: 1. It satisfy the user requirement 2. Be easy to understand by the user and operator  3. Be easy to operate 4. Have a good user interface 5. Be expandable 6. Delivered on schedule within the budget.

3

 

We have tried to make such type of software, which satisfy the above given requirement.

1.3 OBJECTIVES OF THE EBMS:

Thee firm Th firm ha hand ndle less all all of the the wo work rk ma manu nual ally ly,, wh whic ich h is ve very ry te tedi diou ouss an and d mismanaged. The objective of our project is as follows:  a. To ke keep ep th thee in inform formati ation on of C Cust ustome omer. r.  b. To keep the information of co consuming nsuming unit of energy of current current month. c. To keep th thee inform information ation of co consumi nsuming ng unit of en energy ergy of pre previou viouss month month.. d. To keep th thee inform information ation of em employe ployeee workin working g in the dep departme artment. nt. e. To m mainta aintain in th thee rec record ord of th thee de departm partment. ent. f. Infor Informati mation on rretri etrieval eval will beco become me eeasy. asy. g. Securi Security ty meas measure ure will be ad adopted opted,, by maint maintainin aining g the login o off usernam usernamee and the password. h. Dat Dataa redun redundan dancy cy will be grea greatly tly reduce reduced d becau because se this new syst system em is bui built lt using Visual Basic 6.0 as front-end. It entails looking into duplication of efforts  bottlenecks and inefficient inefficient existing procedures

4

 

2 PROPOSED SYSTEM ENVIRONMEN ENVIRONMENT T

The system environment can be classified into two categories –  ♦

Hardware environment



Software environme environment nt Hardware Environm Environment ent

1.

Pe Pent ntiium Dua uall C Co ore Pr Pro ocess cessor  or 

2.

64 MB RAM or higher 

3.

1.2 1.2 G GB B Ha Hard Di Dissk o orr g gre reat ateer.

4.

Video Display Unit.

5.

Keyboard.

6.

Mouse

Software Environmen Environmentt  

The application front end will be designed using Visual Basic 6.0 .   1. Microsoft Visual Basic 6.0   2. Microsoft -Access 98 or higher version. 3. Wi Wind ndow owss 98 or h hig ighe herr ve vers rsio ion. n. 4. On Onee Prin Printer ter fo forr prin printin ting g the eelec lectri tricit city y bil bill. l.

5

 

2.1 FRONT END

MICROSOFT VISUAL BASIC 6.0

Visu Vi sual al Ba Basi sicc 6.0 6.0 is an en enjo joya yabl blee lang langua uage ge du duee to it itss vi visu sual al en envi viro ronm nmen ent. t. Building a windows program in Visual Basic requires dragging and dropping graphic objects on to the screen from a toolbox. Thus Visual Basic is the effici eff icient ent GUI too tools ls to dev develo elop p som somee exc exciti iting ng win window dows-b s-base ased d app applic licati ation. on. Visu Vi sual al Ba Basi sicc 6.0 6.0 is mu much ch mo more re than than just just a prog program rammi ming ng la lang ngua uage ge.. Th Thee  programming language forms the background of all that takes place in a running Visual Basic program. The language is a secondary consideration to the user interface. A windows program offers a high degree of user interaction using the graphical elements that forms the objects on the window the user  sees .If the user interface is not correct, user will not like the program.  

Visual Basic lets one add menus, text boxes, command buttons, option buttons

(for making exclusive choice), check boxes, list boxes, scroll bars and file and directory boxes to black windows. One can use Visual Basic to communicate with wit h oth other er app applic licati ations ons,, run runnin ning g und under er win window dows. s. Vis Visual ual Basic offer offers: s:

Mor Moree

Internet features, better support for data base development, more language feature to make programming job easier.

Over Ov er past past fe few w ye year arss visu visual al ba basi sicc 6.0 6.0 (fr (fron ontt en end) d) th thee rel relat atio iona nall data data ba base se mana ma nage geme ment nt syst system em ha hass be been en fine fine-tu -tuni ning ng it is offe offeri ring ng a la larg rgee co comp mple lex x application in the relational market. Visual basic 6.0 is a front end (i.e. uses

6

 

graphical user interface) visual basic 6.0 uses windows environment. It may use any an y DBMS or RD RDBM BMS S as a back ack-en -end th thro roug ugh h ODB DBC C (ope (open n dat ataaba basse connectivity). For our purpose of development, in our project we used Visual Basic 6.0  because visual basic 6.0 has following outstanding features and qualities.

Advantages Of Visual Basic:

1. Visual Basic applications are event driven. Event driven means the user is in Control of the application. 2. Visual Basic supports the principle of object-oriented design. 3. Visual Basic is a complete window application developm development ent system. 4. Visual Basic is infinitely extensible through the use of active x controls dynamically linked libraries (dll's) and adds dins.

The Fast Track To Windows Developm Development ent

Visual Basic is primarily a visual design environment. We can create a VB application by designing the form and that make up the user interface. Adding visual basic application code to the form and the objects such as buttons and text boxes on them and adding any required r equired support code in additional modular. Friendly Environmen Environmentt

Creating a form, adding controls to form and writing code behind the form are all managed within a friendly environment.

7

 

Graphical User Interface

Application developed in DOS environment has to include its own set of video, keyboard and printer drivers. in other words many DOS programs provided virtually no user interface at all. Since windows is preferable over DOS and Visual Basic is windows based hence millions of users can use applications with no documentation or training: The graphical user interface provides a graphical environment to user as frontend for their operating system through graphical objects and therefore screen looks very attractive and almost has three-dimensional qualities. The point and shoot use of a GUI (Graphical User Interface) make use of the operating system and programming easy. Visual basic 6.0 connect to number of back-end DBMS and RDBMS such as SQL, FoxPro, Sybase, Oracle etc.

Open Database Connectivity

Visual basic 6.0 connects to any back-end DBMS system whose DBMS cores follow the open database connectivity rules and this connectivity is established  by open database connectivity. connectivity. The data storage may belong to any DBMS engine specifically supported by visual basic 6.0 driver or any DBMS that supported open database connectivity. The data entry and validation screens are created in visual basic 6.0 connects with wi th wh whic iche heve verr en engi gine ne is spec specif ifie ied d at the the ti time me of scree screen n wa wass crea create ted d an and d manipulated data within that engine.

8

 

SOME TOOLS OF VISUAL BASIC 6.0 

Dataa acc Dat access ess fea featur tures es all allow ow cre creati ating ng dat databa abases ses,, fro frontnt-end end app applic licati ations ons and scalable server side components for most popular databases formats including Microsoft SQL server and other enterprise level databases.



Active technology allows using functionality provided by other applications such as Microsoft Word, Microsoft Excel and other applications and objects could be created using the Professional Enterprise editions of Visual Basic.



Inte Intern rnet et capa capabi bili liti ties es ma make ke it easy easy to pro provi vide de acce access ss to do docu cume ment ntss an and d applications across the Internet or Intranet server applications. The finished applications are a true .exe files that uses a Visual Basic virtual machine that can be freely distributed.

2.2 BACK END  

Introduction of MS-Access

Overr the pas Ove pastt sev severa erall yea years, rs, rel relati ationa onall dat databa abase se man manage agemen mentt sys system tem hav havee  become the most widely accepted way to manage data relational system often  benefits such as: 1. Easy access to all data. 2. Flexibility in storage and modeling. 3. Reduced data storage and redundancy. 4. Independence of physical storage & logical data designs. 5. A high-level data manipulation language (SQL).

9

 

6. Tab Tables les & tab table le ope operat ration ionss are wel welll def define ined d bec becaus ausee rel relati ationa onall the theory ory is founded in set theory, relational algebra & relational calculus. Outt of th Ou this is the the reas reason on for for intr introd oduc ucin ing g rela relati tion onal al mo mode dell is to in incr crea ease se th thee  productivity of the application programmer by eliminating the need to change application programs when a change is made to the database. As the technologies associated with RDBMS have grown rapidly in recent years, the appeal of relational databases has become apparent to a much wider  audience. The phenomenal phenomenal growt growth h of the relation relational al technolo technology gy has led to more deman demand d for RDBMS in environments ranging from personal computer to large highly secure CPU with users ranging from very casual to very sophisticated. Microsoft Access 2000 is a powerful relational database application with which a desktop desktop user can effic efficientl iently y create and mani manipula pulate te data database base systems. Access targets the desktop category and works best for individuals and workgroup Managing megabytes of data for multi-user access to the same database. Access uses File-server architecture, rather than client-server architecture. Access Acc ess is inc includ luded ed in the pro profes fessio sional nal and dev develo eloper per edi editio tions ns of Mic Micros rosoft oft office. The only problem with MS-ACCESS is that it cannot provide strong security fe feat atur ures es.. Bu Butt in fro front nt of its its fast fast ex exec ecut utio ion n feat featur ures es th this is draw drawba back ck can can be negl ne glec ecte ted d as the the firm firm do does es no nott ne need ed an any y ty type pe of secu securi rity ty wh whet ethe herr it is operational, database, or any other security. But in application development somee res som restri trict ctio ion n are are ma made de of some some plac places es so th that at our our da data taba base se cann cannot ot be corrupted.   MS-ACCESS is therefore used for its fast execution speed and also due to its fast connectivity.

10

 

Importance of database:

Growth in the usage of Computers in Business and Industrial sector initiated developme develo pment nt of mod modern ern Dat Databa abase se Sof Softwa tware. re. Dat Databa abase se sof softwa tware’s re’s off offers ers a number of potential advantages over traditional file-processing system; some of  them are as follows: •

Program-Data Program-Da ta Independence

The separation of data descriptions (metadata) from the application programs that use the data is called data-independence. With the database approach, data descriptions are stored in a central location called repository. This property of  the dat databa abase se sys system temss all allows ows an org organi anizat zation ion’s ’s dat dataa to cha change nge and evo evolve lve without changing the application programs that process that data. •

Minimal Data-Redunda Data-Redundancy ncy

Thee desi Th design gn go goal al wi with th da data taba base se ap appr proa oach ch is th that at prev previo ious usly ly sepa separa rate te an and d redundant data files are integrated into a single, logical structure. Each primary fact is recorded in only one place in the database. The database approach does not eli elimi minat natee red redund undanc ancy y ent entire irely, ly, but it all allows ows the des design igners ers to car carefu efully lly control the type and amount of redundancy. r edundancy. •

Data Consistency

By con contro trolli lling ng dat dataa red redund undanc ancy, y, we gre greatl atly y red reduce uce the opp opport ortuni unitie tiess for  inconsistency. In database approach updating data values is greatly simplified when each value is stored in one place only. Finally we avoid the wasted storage space that results from redundant data storage.

11

 



Data Sharing

Primary advantage of database approach is sharing of data. A database is designed as a shared resource. Authorized users are granted permission to use the database and each user is provided one or more user views to facilitate this use. A user view is a logical description of some portion of database that is required by the user to perform some task. •

Enforcement of Standards

When the database approach is implemented i mplemented with full management support, the database administration function should be granted single point authority and responsibility of establishing and enforcing data standards. These standards will include naming conventions, data quality standards and uniform procedures for  accessing, updating and processing data. The data repository provides database administrators with powerful tools for developing and enforcing such standards.



Reduced Program Maintenance

Stored data must be changed frequently for a variety of reasons: new data item ty type pess ar aree ad adde ded; d; da data ta form formats ats ate ate ch chan ange ged d an and d so on on.. In file file proc proces essi sing ng environment, the description of data formats and access methods inevitably result in the need to modify application programs. programs. As a result in the change of  dataa for dat format matss and acces accesss met method hodss ine inevit vitabl ably y res result ultss in the need to mo modif dify y application programs. In a database environment, data are more independent of  application programs that use them. Within limits, we can change either the

12

 

data or the application programs that use the data without necessitating the change in other factors.

Database: -A database is a set of data, organized for easy access. The database is the actual data. It is the database that you will be accessing when you need to retrieve data. Data Dictionary: -The data dictionary is a set of tables Access uses to maintain information about the database. The data dictionary contains information about tables, indexes, clusters, and so on. Thee DB DBA A is th thee pe perso rson n res respo pons nsib ible le for for th thee DBA (Datab (Database ase Adm Administ inistrator): rator): -Th operation, configuration, and performance of the database. The DBA is charged with keeping the database operating smoothly, ensuring that backups are done on a regular basis (and that the backups work), and installing new software. Other  responsibilities might include planning for future expansion and disk space needs, creating databases and tablespaces, adding users and maintaining security, and monitoring the database and retuning it as necessary. Large installations might have teams of DBAs to keep the system running smoothly; alternatively, the tasks might be segmented among the DBAs. DBMS DB MS or RD RDBM BMS: S: -T -The he Da Data taba base se Ma Mana nage geme ment nt Sys Syste tem m is th thee soft softwa ware re an and d collection of tools that manages the database. Access software is the DBMS. A Relational Database Management System is a DBMS that is relational in nature. This means that the internal workings access data in a relational manner. Access is an RDBMS.

13

 

Query: -A query is a read-only transaction against a database. A query is generated using the SELECT statemen statement. t. Users generally generally disti distingui nguish sh betwe between en queri queries es and other transaction types because because a query does not change the data in the database. Schema: -A schema is a collection of objects associated with the database. Microsoft Access is a very effective DBMS tool which is generally used by all the users. It is compatible with all types of systems & can be installed and used as and when required.

2.3 VB CONTROLS  FEATURES OF VISUAL BASIC 6.0

Toolbox: The Tool Box window differs from the tool bar. The Tool Box is a collection of tool that acts as a repository of controls we can place on forms. Some tools are Selection Pointer, Picture Box, Label, Text Box, Frame Button, Command Botany, Check Box, Option Button etc. Form: Visual Basic uses a wind window; ow; controls are the wid widgets gets one place of a form. In a form we will customize by adding controls such as command buttons, list boxes to it. At the top of the black form is the little bar with its caption. Common Form properties: There are several common properties to customize a form, these are: -

14

 

Caption: Capti Caption on is used as a title that the Mi Microso crosoft ft Window for the ap applica plication tion

icon when the user minimizes the application.  Name: This property is used to give the name that one want to use to refer to the form. 

Enabled: If user sets Enabled to fal false, se, the form cannot respond to any events suc such h

as the user checking on the form. Icon: The icon property determines the icon users application will display when it is minimized on tool bar or turned into a stand-alone application on windows desktop. Visible: If the value of the property is se sett to false, it will no longer longer be visible.

Text Boxes: It is used to display text or to accept user input. Most of the code is

written to process the information users enter into them. Several properties of text  boxes are as follows: Text: The text property in text box is the analog of the caption property for a

command button or a form; it controls text the users see. It determines whether text on the control such as label or command button, is left justified, centered, or right  justified on the control. The Alignment property take one of the three values: 0-Left  justify, 1-Right justify, 2-Center. 2-Center. Multiline: This property determines whether a text box can accept more than one

line of text when the user runs the application, and it is usually combine with resulting the value of the scrollbar property. If true the property specifies the text  box can hold more more than a line of text.

15

 

Max Length: This property specifies the maximum number of characters that the

text box will accept. A value of 0 indicates that the user can enter a value of any length. Locked : This property determines whether the user can enter a value or change the

default value of the text box. If true, the user cannot change the text box value until the program, at run time assigns a false to this property. Password char: The Password property lets us limit what the text box displays.

Labels: Use Labels to display information programmer does not want the user to be

able to change. Most common use for Labels is to identify a text box or other control  by describing its contents. contents. Another common use is to display help information information..

Message Boxes: It display information in the dialog box superimposed on the form.

They want for the user to choose a button before return to the application. User  cannot switch to another form in programmers applications as long as Visual Basic is displaying a message box.

Option Buttons:  They all work together. When the user chooses one button, all

other buttons in the group are turned off. The value property of the option button tells us whether a button was selected by the user. If the value property is true, the user selected that button; otherwise, its value property is false.

Check Boxes: It differ from option button in that, regardless of how many Check 

Boxess one place Boxe placess on a form, they can all be turne turned d on and off inde independe pendently. ntly. If the

16

 

user has selected Check Boxes, the value property switches to true. It stays true until the user deselects that box.

List and Combo boxes: Use list boxes when we have a fixed list of choices. Visual

Basic automatically adds vertical scroll bars when the list box is small for all items it contains. To allow users to input data as well as choices from a list, we use a Combo Box.

FOLL FO LLOW OWIN ING G AR ARE E TH THE E CU CUST STOM OM CO CONT NTRO ROLS LS,, WHIC WHICH H AR ARE E AL ALSO SO DATA AWARE: 

Data List



Data Combo



Data Grid



Microsoft Flex Grid



Microsoft Hierarchical Flex Grid



Rich Textbox



Microsoft Chart



Image Combo

17

 

3 DATA BASE STRUCTURE 1 COMPANY

18

 

INTERPRETATION Company table shows the detail of companyid, company name address, phone email etc. 2 CONSUMPTIO CONSUMPTIOIN IN

19

 

INTERPRETATION Consumption table shows the detail of customer bill paid through cheque or  cash mode. 3 METER DETAIL

INTERPRETATION Customer table table sh shows ows tthe he

detail of ccommercial ommercial and resid residential ential customer with

meter no, name address phone, etc.

20

 

24 FORM DESIGN VIEW (IN EXECUTION MODE) AND CODE VIEW AND FORM DESCRIPTION.

DETAIL DESIGN OF PROPOSED SYSTEM:

MODULE: There are mainly four module in our project. These are as follows: 1. Dom Domest estic ic bill in infor forma matio tion n modu module. le. 2. Comm Commercial ercial bill inform information ation modu module. le. 3. Dom Domest estic ic cus custom tomer er reco record rd mod module ule.. 4. Com Commer mercia ciall cust custome omerr recor record d modu module. le.

1. Residential Bill Information Module:

In this this mod module ule,, we can ssee ee in infor format mation ion re relat lated ed to the the

dom domest estic ic bil billl

lik likee

customer’s name, address, its meter no ,his electricity bill description, which contain meter no, bill date, total bill etc. we can also calculate total bill of the customer according to total unit, bill charge of the bill. 2. Commercial Bill Informatio Information n Module:

There The re is no dif differe ference nce bet betwee ween n dom domest estic ic bil billl inf inform ormati ation on mod module ule and thi thiss modu mo dule le ex exce cept pt that that,, this this mo modu dule le is for for co comm mmerc ercia iall pu purpo rpose se.. We can can see see information related to the commercial bill like customer’s name, address, its ,

21

 

service centre his electricity bill description, which contain meter no, bill date, total bill etc. we can also calculate total bill of the customer according to total unit, bill charge of the bill. 3. Domestic Domestic Custom Customer er Record Mo Module: dule:

In this module, module, we can create the reco record rd relate related d to the domes domestic tic custom customer er like his name, address, meter no. This module can also perform deleting a record modifying existing record etc 4. Commercial Commercial C Customer ustomer Record Module:

In this module, we can create the record related to the customer like his name, address, meter no. This module can also perform deleting a record, modifying existing record etc. We can also see the existing record by next and previous  button.

22

 

1 LOGIN FORM

INTERPRETATION

23

 

This is a login form, by entering the correct password and click on ok button allows us to enter iin n the “ELECTRICITY BILL M MANAGEMENT ANAGEMENT SYSTEM.” Software And the home page of NDPL will be opened. If password not match it will display wrong password and programs end.

 

1 LOGIN FORM CODING Option Explicit Public LoginSucceeded As Boolean Private Sub cmdCancel_Click() 'set the global var to false 'to denote a failed login LoginSucceeded = False Me.Hide End Sub Private Sub cmdOK_Click() 'check for correct password If txtPassword = "password" Then 'place code to here to pass the 'success to the calling sub 'setting a global var is the easiest LoginSucceeded = True Form7.Show Unload Me Else MsgBox "Invalid Password, try again!", , "Login" txtPassword.SetFocus

24

 

SendKeys "{Home}+{End}" End If  End Sub

2 REGISTRATION FORM

INTERPRETATION

25

 

Regist Reg istrat ration ion form is use used d to reg regist ister/ er/add add new res reside identi ntial al and com commer mercia ciall customers detail. First enter the meter no, select the customer type, date of   joining, phone, address, email then click on add button and Data is stored in meter detail database. Home button is used to go back to the main menu.

2 REGISTRATION FORM CODING Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Private Sub Command1_Click() con.Open"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\BHARAT\ele\EBMS.mdb;Persist Source=D:\BHARAT\ele\EBMS.md b;Persist Security Info=False" rs.Open"SELECT*FROM CUSTOMER", con, adforwardonly, adLockOptimistic rs.AddNew If Option1.Value = True Then rs.Fields(5) = Option1.Caption Else rs.Fields(5) = Option2.Caption End If  rs.Fields(0) = Val(Text1.Text) rs.Fields(1) = (Text2.Text) rs.Fields(2) = (Text3.Text) rs.Fields(3) = Val(Text4.Text) rs.Fields(4) = Text5.Text rs.Fields(7) = CDate(Combo2.Text + "-" + Combo1.Text + "-" + Combo3.Text) rs.Fields(6) = CInt(Text6.Text)

26

 

rs.Update rs.Close con.Close MsgBox "NEW RECORD ADDED" End Sub

Private Sub Command2_Click() Form7.Show End Sub Private Sub Form_Load() For i = 1 To 31 Combo1.AddItem i  Next For i = 1 To 12 Combo2.AddItem i  Next For i = 2012 To 2020 Combo3.AddItem i  Next End Sub Private Sub Option1_Click() If Option1.Value = True Then Text6.Text = 2000 End If  End Sub Private Sub Option2_Click()

27

 

If Option2.Value = True Then Text6.Text = 5000 End If  End Sub

3 MODIFY FORM

28

 

INTERPRETATION Modify form is used to update/delete the residential and commercial customers detail. If any customer switch to change or delete any working information then first enter the meter no then click on show detail will be available on text boxes then just retype the detail which you want to update click on update button, else

29

 

you can delete by clicking on delete button. Now data will get update and delete in customer database. Home button is used to go back to the main menu.

MODIFY FORM CODING

30

 

Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset

Private Sub Command1_Click() con.Open"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\BHARAT\ele\EBMS.mdb;Persist Source=D:\BHARAT\ele\EBMS.md b;Persist Security Info=False" rs rs.O .Ope pen n "S "SE ELE LECT CT * FR FROM OM CU CUST STOM OMER ER WH WHER ERE E ME METE TER RNO = " & Val(Text1.Text) & "", con, adOpenForwardOnly, adLockOptimistic Text2.Text = rs.Fields(1) Text3.Text = rs.Fields(2) Text4.Text = rs.Fields(3) Text5.Text = rs.Fields(4) Text6.Text = rs.Fields(5) Text7.Text = rs.Fields(6) Text8.Text = rs.Fields(7) rs.Close con.Close End Sub Private Sub Command2_Click() con.Open"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\BHARAT\ele\EBMS.mdb;Persist Source=D:\BHARAT\ele\EBMS.md b;Persist Security Info=False" rs rs.O .Ope pen n "S "SE ELE LECT CT * FR FROM OM CU CUST STOM OMER ER WH WHER ERE E ME METE TER RNO = " & Val(Text1.Text) & "", con, adOpenForwardOnly, adLockOptimistic rs.Fields(1) = (Text2.Text) rs.Fields(2) = (Text3.Text)

31

 

rs.Fields(3) = Val(Text4.Text) rs.Fields(4) = (Text5.Text) rs.Fields(5) = (Text6.Text) rs.Fields(6) = Val(Text7.Text) rs.Fields(7) = Val(Text8.Text) rs.Update rs.Close con.Close MsgBox "RECORD updated" End Sub Private Sub Command3_Click() con.Open"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\BHARAT\ele\EBMS.mdb;Persist Source=D:\BHARAT\ele\EBMS.md b;Persist Security Info=False" rs rs.O .Ope pen n "S "SE ELE LECT CT * FR FROM OM CU CUST STOM OMER ER WH WHER ERE E ME METE TER RNO = " & Val(Text1.Text) & "", con, adOpenForwardOnly, adLockOptimistic rs.Delete rs.Update rs.Close MsgBox "Record delete" End Sub

Private Sub Command4_Click() Form7.Show End Sub

4 CALCULATE BILL FORM

32

 

INTERPRETATION Calculate bill form is used to calculate the bill of customer month wise and show the amount to be paid enter the meter no then click on show button name will be available. Select the month enter the unit consume and click on calculate  bill. Your calculated bill will will be shown in amount to be paid paid text box here bill is

33

 

calculated at Rs2.5 for first 100 units consume for next 100 units at Rs3 and for  next 100 units at Rs4.5, calculated bill is saved in consumption table.Home  button is used to go back back to the main menu.

34

 

4 CALCULATE BILL FORM Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Private Sub Command1_Click() Form7.Show End Sub Private Sub Command2_Click() con.Open"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\BHARAT\ele\EBMS.mdb;Persist Security Info=False" Source=D:\BHARAT\ele\EBMS.mdb;Persist rs rs.O .Ope pen n "S "SE ELE LECT CT * FR FROM OM CU CUST STOM OMER ER WH WHER ERE E ME METE TER RNO = " & Val(Text1.Text) & "", con, adOpenForwardOnly, adLockOptimistic Text2.Text = rs.Fields(1) rs.Close con.Close End Sub Private Sub Command3_Click() con.Open"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\BHARAT\ele\EBMS.mdb;Persist Source=D:\BHARAT\ele\EBMS.md b;Persist Security Info=False" rs rs.O .Ope pen n

"S "SEL ELEC ECT* T*FR FROM OM

CO CONS NSU UMP MPTI TIO ON",

adLockOptimistic UNIT = Round(Val(Text3.Tex Round(Val(Text3.Text)) t)) If UNIT > 300 Then Sum = (UNIT - 300) * 4.5

35

con on,,

ad adfo forw rwar ardo donl nly, y,

 

UNIT = 300 End If  If UNIT > 200 Then Sum = Sum + (UNIT - 200) * 3 UNIT = 200 End If  If UNIT > 100 Then Sum = Sum + (UNIT - 100) * 2.5 UNIT = 100 End If  Sum = Sum + UNIT * 1.5 Text4.Text = Sum rs.AddNew rs.Fields(0) = Val(Text1.Text) rs.Fields(1) = (Text2.Text) rs.Fields(3) = Val(Text3.Text) rs.Fields(4) = Val(Text4.Text) rs.Fields(2) = (Combo1.Text + "") rs.Update rs.Close con.Close MsgBox "BILL CALCULATED" End Sub

36

 

5 COMPANY FORM

INTERPRETATION In company form we add the company detail with company id, company name First enter the company id , company name, phone, address, email then click on add button and Data is stored in company database table. Home button is used to go back to the main menu.

37

 

5 COMPANY FORM CODING Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Private Sub Command1_Click() con.Open"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\BHARAT\ele\EBMS.mdb;Persist Source=D:\BHARAT\ele\EBMS.md b;Persist Security Info=False" rs.Open"SELECT*FROMCOMPANY", con, adforwardonly, adLockOptimistic rs.AddNew rs.Fields(0) = Val(Text1.Text) rs.Fields(1) = (Text2.Text) rs.Fields(2) = (Text3.Text) rs.Fields(3) = Val(Text4.Text) rs.Fields(4) = Text5.Text rs.Update rs.Close con.Close MsgBox "NEW RECORD ADDED" End Sub Private Sub Command2_Click() Form7.Show End Sub

38

 

6 COMPANY MODIFY FORM

INTERPRETATION Through this modify form we can update/delete the company record Home  button is used to go back to the main menu. If any company detail is to change or delete then first enter the company id then click on show detail will be

39

 

available on text boxes then just retype the detail which you want to update cl clic ick k on up upda date te bu butt tton on,, else else yo you u can can de dele lete te by cl clic icki king ng on de dele lete te butt button on.. you yo u up upda date te data wil willl ge gett stor stored ed dele delete ted d da data ta company database.

40

wi will ll get rem remov oved ed from the

 

6 COMPANY MODIFY FORM CODING

Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Private Sub Command1_Click() con.Open"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\BHARAT\ele\EBMS.mdb;Persist Source=D:\BHARAT\ele\EBMS.md b;Persist Security Info=False" rs.Op rs. Open en "SE "SELEC LECT T * FR FROM OM CO COMP MPAN ANY Y WH WHER ERE E CO COMP MPAN ANYI YID D = " & Val(Text1.Text) & "", con, adOpenForwardOnly, adLockOptimistic Text2.Text = rs.Fields(1) Text3.Text = rs.Fields(2) Text4.Text = rs.Fields(3) Text5.Text = rs.Fields(4) rs.Close con.Close End Sub Private Sub Command2_Click() con.Open"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\BHARAT\ele\EBMS.mdb;Persist Source=D:\BHARAT\ele\EBMS.md b;Persist Security Info=False" rs.Op rs. Open en "SE "SELEC LECT T * FR FROM OM CO COMP MPAN ANY Y WH WHER ERE E CO COMP MPAN ANYI YID D = " & Val(Text1.Text) & "", con, adOpenForwardOnly, adLockOptimistic rs.Fields(1) = (Text2.Text) rs.Fields(2) = (Text3.Text) rs.Fields(3) = Val(Text4.Text) rs.Fields(4) = (Text5.Text)

41

 

rs.Update rs.Close con.Close MsgBox "RECORD updated" End Sub Private Sub Command3_Click() con.Open"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\BHARAT\ele\EBMS.mdb;Persist Source=D:\BHARAT\ele\EBMS.md b;Persist Security Info=False" rs.Op rs. Open en "SE "SELEC LECT T * FR FROM OM CO COMP MPAN ANY Y WH WHER ERE E CO COMP MPAN ANYI YID D = " & Val(Text1.Text) & "", con, adOpenForwardOnly, adLockOptimistic rs.Delete rs.Update rs.Close MsgBox "Record delete" End Sub

42

 

7 CUSTOMER DETAIL FORM

INTERPRETATION Cust Cu stom omer er de deta tail il form form is us used ed to show show the the de deta tail il of cu cust stom omer er mo mont nth h wi wise se.. Through which consumer should know about how much amount is yet to be  paid. This detail will be be stored in the consumpti consumption on database.

43

 

This form will show the detail of every customer consumed units and amount to  be paid as per respective month. Home button is used to go back to the main menu.

44

 

7 CUSTOMER DETAIL FORM

Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Private Sub Command1_Click() con.Open"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\BHARAT\ele\EBMS.mdb;Persist Source=D:\BHARAT\ele\EBMS.md b;Persist Security Info=False" rs.Open "SELECT * FROM CONSUMPTION WHERE METERNO = " & Val(Text1.Text)

&

"

and

month='"

adOpenForwardOnly, adLockOptimistic Text2.Text = rs.Fields(1) Text3.Text = rs.Fields(2) Text4.Text = rs.Fields(3) Text5.Text = rs.Fields(4) rs.Close con.Close End Sub Private Sub Command2_Click() Form7.Show End Sub Private Sub Form_Load() Combo1.AddItem "JANUARY" Combo1.AddItem "FEBURARY" Combo1.AddItem "MARCH"

45

&

Combo1.Text

&

"'",

con,

 

Combo1.AddItem "APRIL" Combo1.AddItem "MAY" Combo1.AddItem "JUNE" Combo1.AddItem "JULY" Combo1.AddItem "AUGUST" Combo1.AddItem "SEPTEMBER" Combo1.AddItem "OCTOBER" Combo1.AddItem "NOVEMBER" Combo1.AddItem "DECEMBER" EndSub

46

 

8 NDPL FORM

INTERPRETATION  NDPL Form is the main menu through which we access the software function of add customer data, bill payment, detail for the month, company add etc. this is the main menu or we can say as home page of this EBMS software.

47

 

8 NDPL FORM CODING Private Sub Command1_Click() Form1.Show End Sub Private Sub Command2_Click() Form2.Show End Sub Private Sub Command3_Click() Form6.Show End Sub Private Sub Command4_Click() Form4.Show End Sub Private Sub Command5_Click() Form5.Show End Sub Private Sub Command6_Click() Form3.Show End Sub Private Sub Command7_Click() Form8.Show End Sub Private Sub Command8_Click() End End Sub

48

 

9 PAY BILL FORM

INTERPRETATION Pay bill form is used to pay the amount of bill through cheque/cash mode.

49

 

Enter the meter meter no and clic click k on show butt button on your amo amount unt to be paid wi will ll get display in the text box. Then select the mode of payment cash/cheque enter the detail of cheque or click pay pay then a message box will display for bill paid. Home button is used to go back to the main menu.

50

 

9 PAY BILL FORM CODING

Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Private Sub Command1_Click() con.Open"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\BHARAT\ele\EBMS.mdb;Persist Source=D:\BHARAT\ele\EBMS.md b;Persist Security Info=False" rs.Open "SELECT * FROM CONSUMPTION WHERE METERNO = " & Val(Text1.Text)

&

"

and

month='"

&

Combo4.Text

&

"'",

con,

adOpenForwardOnly, adLockOptimistic If Option1.Value = True Then rs.Fields(5) = Option1.Caption Else rs.Fields(5) = Option2.Caption End If  rs.Fields(6) = Text3.Text rs.Fields(7) = Text4.Text rs.Fields(8) = CDate(Combo2.Text + "-" + Combo1.Text + "-" + Combo3.Text) rs.Update rs.Close con.Close MsgBox "BILL PAID" End Sub Private Sub Command2_Click()

51

 

con.Open"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\BHARAT\ele\EBMS.mdb;Persist Source=D:\BHARAT\ele\EBMS.md b;Persist Security Info=False" rs.Open "SELECT * FROM CONSUMPTION WHERE METERNO = " & Val(Text1.Text) & " and month='" adOpenForwardOnly, adLockOptimistic Text2.Text = rs.Fields(4) rs.Close con.Close End Sub Private Sub Command3_Click() Form7.Show End Sub Private Sub Form_Load() Combo4.AddItem "JANUARY" Combo4.AddItem "FEBRUARY" Combo4.AddItem "MARCH" Combo4.AddItem "APRIL" Combo4.AddItem "MAY" Combo4.AddItem "JUNE" Combo4.AddItem "JULY" Combo4.AddItem "AUGUST" Combo4.AddItem "SEPTEMBER" Combo4.AddItem "OCTOBER" Combo4.AddItem "NOVEMBER" Combo4.AddItem "DECEMBER"

52

&

Combo4.Text

&

"'",

con,

 

For i = 1 To 31 Combo1.AddItem i  Next For i = 1 To 12 Combo2.AddItem i  Next For i = 2012 To 2020 Combo3.AddItem i  Next End Sub Private Sub Option1_Click() Text3.Enabled = False End Sub Private Sub Option2_Click() Text3.Enabled = True EndSub

53

53

 

5 SYSTEM DEVELOPMENT ENVIRONMENT: ENVIRONMENT: Syst Sy stem em de deve velo lopm pmen entt

en envi viro ronm nmen entt

show showss

th thee

ha hard rdwa ware re

an and d

so soft ftwa ware re

requi req uire reme ment nt,, wh whic ich h is ne nece cess ssary ary for for de deve velo lopi ping ng th thee soft softwa ware re.. Ne Nece cess ssar ary y software softwa re and har hardwa dware re req requir uirem ement ent,, whi which ch are nec necess essary ary for mak making ing thi thiss software are as follows

5.1 Client server computing and visual basic 6.0:

The client / server programming is also a distributed application processing and co-ope cooperat rating ing app applic licati ation on pro proces cessin sing. g. It has thr three ee dis distin tinct ct compon component ents, s, eac each h focusing on specific job. The three components are: 1. Client application 2. A Database Server  3. A network for connecting the first two components.

1. Client Application Application::

Client application (i.e. front end) is the part of the system that users employ to interact with data. The work of client is requesting and receiving information forms a database server (back-end). Client application can be developed rapidly using visual basic 6.0.

2. A Database Server:

A Data Database base server focuses on effic efficientl iently y manag managing ing resources such as the table in which data lies. The server’s primary job is to manage the data tables

54

 

optima opt imally lly among among mul multip tiple le cli client entss tha thatt con concur curren rently tly req reques uestt ser server ver for sam samee resources. Visual basic can connect to a number of RDBMS that are in trend. 3. Network for connecting the first two components:

A network and communication software are the vehicle that transports the data  between the clients and the server. The system both client and server run communication software that allow them to talk across a network. Visual Basic Libraries:

When we create commercial application we create object such as windows, data windows, menus etc. these objects that you create using an appropriate visual  basic pointer are stored in libraries libraries files. When application has to run visual basic there objects from their libraries and visual basic gives you a library painter to help you manage your libraries. Events in Visual Basic:

Visu Vi sual al ba basi sicc co comm mmerc ercia iall ap appl plic icat atio ions ns are are ev even entt driv driven en.. Th Thee us user er of th thee application Controls the flow of the application by the action they take.

5.2 Features of Visual Basic: 1. Visual basic provides a GUI which and therefore screen looks very attractive. 2. Work on client / server computing model. 3. Object Oriented programming approach. 4. Visual basic provides several tool bars, which make working quick and easy. 5. It is front end and DBMS as a back end so it uses all the features of RDBMS like referential integrity foreign key etc.

55

 

Feel Of Windows Environment

Microsoft Windows environment is built-in to Visual Basic application. No need to work with any windows compatible hardware since windows provides drivers for thousand of different printer’s video adapter, modems and other   peripherals.

5.3 PRELIMINARY DESIGN OF PROPOSED SYSTEM: Data Design:   In most situations, many physical database design decisions are implicit or 

eliminated when we choose the database management technologies to use with the inf inform ormati ation on sys system tem we are des design igning ing.. Sin Since ce ma many ny org organi anizat zation ionss hav havee standard for operating systems, database management system and data access languages, we must deal only with those choices not implicit in the given technologies. The primary goal of database design is data processing efficiency.

Objective Of Database Design:

i) To dec decide ide on the org organi anizat zation ion of the da datab tabase ase in com comput puter er stora storage ge and define the physical structure of the database management system. ii ii)) To ou outl tlin inee the the prog progra ram m to proc proces esss tr tran ansa sact ctio ions ns an and d to ge gene nera rate te anticipated management information and decision support reports. Designing Fields:

A field is the smallest unit of application data recognized

 by system software Choosing Data Types:

A data type is a detailed coding schema recognized

 by the system software, such as a DBMS, DBMS, for representing organizational data. data.

56

 

6 TESTING AND DEBUGGING: Software testing is a critical element of software quality assurance and represents the ultimate reviews of specification, design and coding. Testing presents an interesting anomaly of the software. During earlier definition and development phases, it was attempted to build software from abstract concept to a tangible implementation. The testing phase involves the testing of the developed system using various set data. Presentation of test data plays a vital role in system testing. After preparing the test data the system under study was tested using test data. While testing the system  by using test data errors were found and corrected. A series of tests were performed for the proposed system before the system was ready for implementation

6.1 The various types of testing done on the system are : 

Unit Testing



Integration Testing



Validation Testing



User Acceptance Testing



System Testing

Unit Testing:

Each module is considered independently. it focuses on each unit of software as implemented in the source code. it is white box testing. Integration Testing:

Integration testing aims at constructing the program structure while at the same constructing tests to uncover errors associated with interfacing the modules. modules are integrated by using the top down approach.

57

 

Validation Testing:

Vali Va lida dati tion on te test stin ing g wa wass pe perf rfor orme med d to en ensu sure re th that at al alll th thee func functi tion onal al an and d  performance requirements are met. System Testing:

It is executing programs to check logical changes made in it with intention of  finding errors. a system is tested for online response, volume of transaction, recovery from failure etc. System testing is done to ensure that the system satisfies all the user requirements. User Acceptance Testing:-

User acceptance of a system is the key factor for the success of any system. The system sys tem und under er con consid sidera eratio tion n was tes tested ted for use users rs acc accept eptanc ancee by con consta stantl ntly y keeping in touch with the perspective system user at the time of developing and maki ma king ng ch chan ange gess wh where ereve verr requ requir ired ed.. Th This is is do done ne wi with th th thee rega regards rds to th thee following points: Thee succ Th succes esss of syst system em de depe pend ndss on ho how w accu accura rate tely ly a prob proble lem m is de defi fine ned, d, thorou tho roughl ghly y inv invest estiga igated ted car carrie ried d ou outt thr throug ough h cho choice ice of sol soluti ution. on. Use Userr nee need d identification and analysis that are concerned with what the uses needs rather  than what he/she wants. System explains how to perform specific activities or  task, which does what and what.

 

SCOPE AND RESULT DISCUSSION Even the best system developed has some flaws or others. There always exist scope of further improvement in the system. The effect of implementations of  new computerized system is found remarkable.

58

 

The following are the major improvement of the new system over the existing system. 

A fully menu drive driven n user-fr user-friendl iendly y compu computerize terized d system has been develop developed ed where the user can perform task like entering data, deleting and updating the information All the operations are carried automatically preventing a lot of  manual work.



Additi Add itiona onall che checks cks hav havee als also o bee been n inc incorp orpora orated ted int into o the sys system tem to avo avoid id duplications of data as far as possible.

6.2 SCOPE FOR F OR FURTHER IMPROVEMENT Every project whether large or small has some limitations no matter however  diligently developed. In some cases limitations is small while in other cases they may be broad also. The new system has got some limitations. Major areas where modifications can be done are as follows:



Our system is not online so further it can be improved.



The security is limited so some additional arrangement could be made to  provide more security to the system. system.



This system is calculates bill upon the totaled unit consume, not on the  previous reading or current reading. reading.



There is no provision of complain handling so further it can be added.

59

 



This Th is soft softwa ware re do does es no nott co cont ntai ain n an any y fixe fixed d ch char arge ge/p /pen enal alty ty for for la late te bi bill ll  paid/advanced bill paid paid in bill calculatio calculation. n.

6.3 MAIN ACHIEVEMENT OF THE SYSTEM This project gives an overview of the Electricity Bill Management System. After entering into the project, user is left with several options via – 

a) The us user er can ta take ke new cconn onnect ection ions. s.  b) The user can view the existing lists of customers, which already have telephone connections. c) It calc calculat ulatee bill upon the d differe ifferent nt uni units. ts. d) The user ca can n of course se seee bills & tak takee billin billing g state statements ments.. e) The user can also do sever several al admi adminis nistra trativ tivee wor works ks like mana managin ging g rat rates es of  calls, addition or modification of metered calls & customer entries.

It is a computerized system, which can be used very easily & effectively by the administrators of the Electricity Bill Management System.

60

 

CONCLUSION We have tried to develop a system that can be a great help for the owner of the referred electricity department to receiving bill from the customer. Despite all our efforts there are some bugs in the system, which are still to be removed. This is possible by the testing being done in the system. We have left all the options open so that if there is any other future requirement in the system by the user for the enhancement of the system then it is possible to implement them. In the last we would like to thanks all the persons involved in the development of the system directly or indirectly. We are also thankful to the Rajendra Nagar  South Division Electricity Department of NDPL for so much taken by them in helping to develop the system. We hope that the project will serve its purpose for which it is develop there by underlining success of process.

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close