Top Banner

of 54

anireport

Apr 05, 2018

Download

Documents

Aniket Joshi
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/2/2019 anireport

    1/54

    SOFTWARE REQUIREMENT SPECIFICATION

    1.Human Resources:-

    After evaluating the scope of the project and selecting the skill of the individual group

    members tasks are allocated to them. There is only one person allocated for the completion of the project

    under the consultation of project guides by examining the individual skill set, which is given below

    2. Hardware Resources:

    CPU (Processor): Celeron or higher.

    Monitor: 15 or 17 CRT with 16 bit color display.

    RAM: 64 MB or more for optimum performance.

    Hard Disk: 10 GB space for optimum performance.

    3. Software Resources:

    Operating system: Windows 98, Windows 2000 Professional, Windows XP,Windows

    7.

    Software Used: JDK1.6.0, Microsoft office, Microsoft Access.

  • 8/2/2019 anireport

    2/54

    PROJECT DESIGN

    1.E-R Diagram:-

  • 8/2/2019 anireport

    3/54

    Use case Diagrams:

  • 8/2/2019 anireport

    4/54

    Fig: Use case diagram for Login

  • 8/2/2019 anireport

    5/54

    Fig: Use case diagram for Data Entry

    DFD(Data Flow Diagram):-

  • 8/2/2019 anireport

    6/54

    1.DFD Level 0:-

  • 8/2/2019 anireport

    7/54

    DFD Level 1:-

    Class Diagram:-

  • 8/2/2019 anireport

    8/54

    Sequence Diagram:

  • 8/2/2019 anireport

    9/54

  • 8/2/2019 anireport

    10/54

    Activity Diagram:

    CODING:-

  • 8/2/2019 anireport

    11/54

    Welcome Page:-

    welcome

  • 8/2/2019 anireport

    12/54

    View & Pay Current BillView Bill HistoryView

    online Payment historyEnergy

    calculaterFeedbackLogout



    WELCOME Login As



    E-Bill



    MSEDCL offers you a new way to view and pay your power bill online. e-Bill is free, fast

    and secure. To sign up all you need is your consumer number and billing unit number as shown

    on your latest power bill.




    Pay Online

  • 8/2/2019 anireport

    13/54



    Pay your power bill automatically through your credit card and debit card. Pay on-

    Line lets you say goodbye to cheques, postage and potential late payment charges.

    You'll still receive a monthly power bill in the mail, but instead of writing a cheque, you'll

    simply visit the website and pay your bills

    Login Page1:-

  • 8/2/2019 anireport

    14/54

    Validating

    Validating..... Please wait

  • 8/2/2019 anireport

    15/54

    out.print(username);

    boolean flag=false;

    Connection c = null;

    if(session != null){

    try

    {

    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

    String url = "jdbc:odbc:Driver={Microsoft Access Driver "

    + "(*.mdb, *.accdb)};DBQ=C:\\Documents and Settings\\SHRI\\My

    Documents\\electricity.mdb.accdb";

    Connection con=DriverManager.getConnection(url);

    out.print("No error till here");

    Statement stat = con.createStatement();

    ResultSet rs=stat.executeQuery("select * from login where

    username='" + username + "'");

    while(rs.next())

    {

    String s=rs.getString("password");

    if(password.equals(s))

    {

    out.print("Success");

    flag = true;

    }

    }

    if(flag)

    {

  • 8/2/2019 anireport

    16/54

    session.setAttribute("username",username);

    response.sendRedirect("welcome.jsp");

    }

    else

    {

    response.sendRedirect("login.html");

    }

    }

    catch(Exception e)

    {

    out.print("Exception here "+e);

    }

    }

    else

    {

    response.sendRedirect("login.html");

    }

    %>

    Login Page 2:-

  • 8/2/2019 anireport

    17/54

    Validating

    Validating..... Please wait

  • 8/2/2019 anireport

    18/54

    "(*.mdb, *.accdb)};DBQ=C:\\Documents and Settings\\SHRI\\My

    Documents\\electricity.mdb.accdb";

    Connection con1=DriverManager.getConnection(url);

    out.print("No error till here");

    Statement stat = con1.createStatement();

    out.println(group);

    int i=stat.executeUpdate(group);

    System.out.println("i"+i);

    if(i==1)

    flag=true;

    else

    flag=false;

    if(flag)

    response.sendRedirect("welcome.jsp");

    else

    response.sendRedirect("login2.html");

    }

    catch(Exception e)

    {

    out.print("Exception here "+e);

    }

    %>

  • 8/2/2019 anireport

    19/54

    View and Pay:-

  • 8/2/2019 anireport

    20/54

    Electricity:Bill

  • 8/2/2019 anireport

    21/54

    String bdate="";

    String con_num="";

    String bperiod="";

    String name="";

    String due_date="";

    String addr1="";

    String met_no="";

    String cur_read="";

    String pre_read="";

    String mf="";

    String unit="";

    String adj_unit="";

    String total="";

    String fc="";

    String ec="";

    String ed="";

    String fac="";

    String asc="";

    String tos="";

    String pbc="";

    String ci="";

    String cp="";

    String oc="";

    String t="";

    String na="";

  • 8/2/2019 anireport

    22/54

    String ad="";

    String ia="";

    String t1="";

    String nam="";

    String r="";

    try

    {

    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

    String url = "jdbc:odbc:Driver={Microsoft Access Driver " +

    "(*.mdb, *.accdb)};DBQ=C:\\Documents and Settings\\SHRI\\My

    Documents\\electricity.mdb.accdb";

    con=DriverManager.getConnection(url);

    //st=con.createStatement();

    Statement stat1=con.createStatement();

    PreparedStatement ps=con.prepareStatement("select * from bill where username='" +username + "'");

    rs=ps.executeQuery();

    while(rs.next())

    {

    bu=rs.getString("bu");

    bfor=rs.getString("bfor");

    bdate=rs.getString("bdate");

    con_num=rs.getString("con_num");

    bperiod=rs.getString("bperiod");

    name=rs.getString("name1");

  • 8/2/2019 anireport

    23/54

    due_date=rs.getString("due_date");

    addr1=rs.getString("addr1");

    met_no=rs.getString("met_no");

    cur_read=rs.getString("cur_read");

    pre_read=rs.getString("pre_read");

    mf=rs.getString("mf");

    unit=rs.getString("unit");

    adj_unit=rs.getString("adj_unit");

    fc=rs.getString("fix_charge");

    ec=rs.getString("energy_chrg");

    ed=rs.getString("ele_duty");

    fac=rs.getString("FAC");

    asc=rs.getString("ASC");

    tos=rs.getString("Tax_on_sale");

    pbc=rs.getString("pre_bill_credit");

    ci=rs.getString("current_int");

    cp=rs.getString("cap_penulty");

    oc=rs.getString("other_charges");

    t=rs.getString("total1");

    na=rs.getString("net_areas");

    ad=rs.getString("adjst");

    ia=rs.getString("interest_areas");

    t1=rs.getString("total_areas");

    nam=rs.getString("net_amt");

    r=rs.getString("rounded_amt");

  • 8/2/2019 anireport

    24/54

    break;

    }

    out.println();

    // out.println("uptill ok");

    // out.println(fname);

    // out.println(daddress);

    // out.println(d);

    // out.println(ddiploma);

    }

    catch(Exception e)

    {

    out.println(""+e.toString());

    }

    %>

    Login As

    View & Pay Current

    BillView Bill HistoryView online Payment historyEnergy calculaterFeedbackLogout



  • 8/2/2019 anireport

    25/54

    Billing Unit:Bill For:Bill Date:

    Consumer No.:Bill Period:

    Name:Due Date:

    Address:



    Meter No.Current ReadingPrevious

    readingMFUnitAdj.

    UnitTotal



    Fixed Charges

  • 8/2/2019 anireport

    26/54

    Energy Charges

    Electricity Duty

    F.A.C.

    Additional Supply Charges

    Tax On Sale

    Previous Bill Credit

    Current Interest

    Capaciter Penulty

    Other Charges

    Total

    Net Areas

    Adjustment

    Interest Areas

    Total Areas

    Net Bill Amount

  • 8/2/2019 anireport

    27/54

    Rounded Amount


    Pay

    Now



    Update ProfileBill InformationChange PasswordUser InformationLogout

  • 8/2/2019 anireport

    28/54

    FeedBack:-

  • 8/2/2019 anireport

    29/54

    pst.setString(4,name);

    pst.setString(5,mail);

    pst.setString(6,comment);

    pst.execute();

    %>



    Thanks For Your Feedback/Suggestion.



    rivers are one of the feebback of sea



    HomePage

  • 8/2/2019 anireport

    30/54

    Update:-

    Validating

    Validating..... Please wait

  • 8/2/2019 anireport

    31/54

    //out.println("un1");

    try

    {

    boolean flag=false;

    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

    String url = "jdbc:odbc:Driver={Microsoft Access Driver " +

    "(*.mdb, *.accdb)};DBQ=C:\\Documents and Settings\\SHRI\\My

    Documents\\electricity.mdb.accdb";

    Connection con1=DriverManager.getConnection(url);

    Statement st1=con1.createStatement();

    out.print("No error till here");

    String b="update newuser set

    add1='"+ad1+"',add2='"+ad2+"',city='"+cty+"',state='"+st+"',country='"+coun+"',post_code='"+p

    c+"',email='"+mail+"',contact='"+contact+"' where username='"+un+"'";

    int exe=st1.executeUpdate(b);

    if(exe==1)

    flag=true;

    else

    flag=false;

    if(flag==true)

    {

    // out.println(un1);

    response.sendRedirect("welcome.jsp");

    }

    else

    response.sendRedirect("update1.html");

  • 8/2/2019 anireport

    32/54

    }

    catch(Exception e)

    {

    out.print(e.getCause());

    }

    %>

  • 8/2/2019 anireport

    33/54

    Change Password:-

  • 8/2/2019 anireport

    34/54

    int i=st1.executeUpdate("update login set password='"+Newpass+"' where username='"+us+"'");

    //out.println("Password changed successfully");

    st1.close();

    con.close();

    }

    else{

    out.println("Invalid Current Password");

    }

    }

    catch(Exception e){

    out.println(e);

    }

    %>

  • 8/2/2019 anireport

    35/54

    Pay Now:-

    pay

    function pqr()

    {

    var temp=1;

    if(pay.c_no=="")

    {

    temp=0;

    alert("Plz enter Card number");

    return;

    }

    else if(pay.mm.value=="mm")

    {

    temp=0;

    alert("Plz select expire date");

    return;

    }

    else if(pay.yyyy.value=="")

  • 8/2/2019 anireport

    36/54

    {

    temp=0;

    alert("Plz enter year");

    return;

    }

    else if(pay.sec.value=="")

    {

    temp=0;

    alert("Plz security number");

    return;

    }

    else if(pay.f_name.value=="")

    {

    temp=0;

    alert("Plz enter first name");

    return;

    }

    else if(pay.m_mame.value=="")

    {

    temp=0;

    alert("Plz enter middle name");

    return;

    }

    else if(pay.l_name.value=="")

    {

  • 8/2/2019 anireport

    37/54

    temp=0;

    alert("Plz last name");

    return;

    }

    else if(pay.addr.value=="")

    {

    temp=0;

    alert("Plz enter address");

    return;

    }

    else if(pay.pin.value=="")

    {

    temp=0;

    alert("Plz enter pin");

    return;

    }

    else if(pay.amt.value=="")

    {

    temp=0;

    alert("Plz enter amount");

    return;

    }

    if(temp==1)

    {

    document.pay.method="";

  • 8/2/2019 anireport

    38/54

    document.pay.action="pay.jsp";

    document.pay.submit();

    }

    }



    Select Card Type:-

    VISAMASTER CARDMAESTRO



    Card Number:-



    Expire Date:-

    1

    2

  • 8/2/2019 anireport

    39/54

    5

    6

    7

    8

    9

    10

    11

    12

    / 1992

    1993

    1994

    1995

    1996

    1997

    1998

    1999

    2000

    2001

    2002

    2003

    2004

    2005

    2006

  • 8/2/2019 anireport

    40/54

    2007

    2008

    2009

    2010

    2011

    2012

    2013

    2014

    2015

    2016

    2017

    2018

    2019

    2020



    3 Digit Security Code:-



    Name On The Card:-



    Billing Address:-



    Pin Number:-



    Payment To Be Paid:-




  • 8/2/2019 anireport

    41/54

  • 8/2/2019 anireport

    42/54

    Screen Shots:-

    Welcome :-

  • 8/2/2019 anireport

    43/54

    Login Page1:-

    Login Page 2:-

  • 8/2/2019 anireport

    44/54

  • 8/2/2019 anireport

    45/54

    View And Pay:-

  • 8/2/2019 anireport

    46/54

    Pay:-

  • 8/2/2019 anireport

    47/54

    New User:-

    Step 2:-

  • 8/2/2019 anireport

    48/54

    Step 3:-

  • 8/2/2019 anireport

    49/54

    Feedback:-

  • 8/2/2019 anireport

    50/54

    Update:-

  • 8/2/2019 anireport

    51/54

    Change Password:-

  • 8/2/2019 anireport

    52/54

    FUTURE SCOPE

  • 8/2/2019 anireport

    53/54

    The future scope of this project involves two aspects

    Future Usage Scope Future Development Scope

    Future Usage ScopeThis involves the possible uses of the project which may extend from implementing it in

    MSEB office, to implementing them in systems for local and remote area.

    Future Development ScopeWith more extensive and wide usage, the scope of development of the project would no

    doubt increase. Instead of using frames, applets may be used later, embedded in websites

    thus allowing registration online and allow online payments as well.

    REFERENCES

  • 8/2/2019 anireport

    54/54

    1.www.mseb.com

    2.www.wikipwdia.com