Top Banner

of 26

Arijeet Db

Jul 06, 2018

Download

Documents

ArijeetYadav
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/18/2019 Arijeet Db

    1/26

    BookShop Management

      By,

    Rahul Kumar(15MCA1015)

    Arijeet Kumar(15MCA1025)

    eepak M!Chakra"ali(15MCA101#)

  • 8/18/2019 Arijeet Db

    2/26

    Introduction

    In today’s era computers have become a vital

    component of any enterprise for giving it proper

    directions and extensive control of the variousactivities to attain business objectives.

    Computer applications have affected scientific &

    commercial knowledge.

    The information ystem of the old times totally

    differs from the today It is automation system

    of a book shop or any information system. In the

    previous ages the process of maintaining data

    and record seemed very difficult. !ow days"

    computer is very essential component. The

    implementation of computer based Information

    ystem can be depicted as the ease in handling

    and maintaining the data bank of any si#e.

    $ur project is on %ook hop anagement ystem

    which deals with almost all the information of

    %ook hop .It keeps the database of customer

    records and publishing records. It also keeps

    the author list" charges and %ook'title list.

  • 8/18/2019 Arijeet Db

    3/26

     Modules included and their description

    1. Employee: This actor will be having the accessto book details and adds the books to the add

    books table whenever a new stock arrives.

    2. Book_Details: This module consists of all the

    details related to each and every book present

    in the store" whenever a transaction occurs the

    particular I%! no is removed from the add book

    table.(.  Admin: This actor will have the access to

    add and delete the pdf files.

    4. PD_!a"le:This table consists of )*+ files

    which can be accessed by the employee.

    E#$Dia%ram 

  • 8/18/2019 Arijeet Db

    4/26

    N N M

    $

    1

      M

    N

    M

    M

    1

      CODING

    Author

    name%"er&$ame

    'u&year

    Book&

     itle

    Book&i*

    'ri+e

    Have Access

    'a""or*

    Employe

    e

    Book_

    Details

    maintains

    -SB$&$.

    Have

    Add-Books

    TABE

    /ae

    B..K&-A** Book"

     ale

    Book-'

    vie!s"D# ta$le

    Admin

    Maintains

  • 8/18/2019 Arijeet Db

    5/26

    import jaa!at!eent!34

    import jaa!at!34

    import jaa!"ing!34

    import jaa!"6l!34

    import jaa!io!ile4

    puli+ +la"" ook"hop implement" A+tion7i"tener8

    Che+ko9roup +g4

    Che+ko g1,g24

    ::;'anel p,p1,p24

    Choi+e j1,j2,j#4

     etArea ,14

    String "t,"t1,"et"4

     ;etiel* t,t?,t@,t,t10,t11,t124

     ;'a""or*iel* t,?,@,1,2,5,,ut1,ut2,ut#,ut=,ut=0,

    ut5,ut>,ut?,1,y14

    int i04

    String naam,pa"",u"er4

     imer timer4

     ;7ael image"ne ;7ael()4

    -mage-+on p1,p2,p#,p=,p5,p>4

     ;rame ,D+,2,1,#4

    puli+ oi* *e"ign()

    8

    D+ne ;rame()4Container ++D+!getContent'ane()4

    D+!"etSi>,=>@)4

    D+!"et7o+ation(#00,150)4

    D+!"etRe"i

  • 8/18/2019 Arijeet Db

    6/26

    -mage-+on pkn2ne -mage-+on(Elog!pngE)4

     ;7ael lln2ne ;7ael(pkn2)4

    lln2!"etBoun*"(20,10,212,@=)4

    -mage-+on pk2ne -mage-+on(Enm!jpgE)4

     ;7ael ll2ne ;7ael(pk2)4ll2!"etBoun*"(20,1?5,#5,#0)4

     t

      t

     ;7ael ll#ne ;7ael(pk#)4

    ll#!"etBoun*"(21,2=0,#=,#0)4

     t

  • 8/18/2019 Arijeet Db

    7/26

    ++1!"etBa+kgroun*(ne Color(255,255,255))4

    !"et7ayout(null)4

    -mage-+on 1ne -mage-+on(Ehhh!jpgE)4

     ;7ael y1ne ;7ael(1)4

    y1!"etBoun*"(100,0,1#>>,1>0)4

     ;7ael 1ne ;7ael()4

    1!"etet(naam)4

    1!"etBoun*"(5,5,?0,25)4

    -mage-+on ii1ne -mage-+on(Ey!pngE)4

    ut1ne ;Button(ii1)4

    ut1!"etBa+kgroun*(Color!yello)4

    ut1!"etBoun*"(100,200,12,150)4

    ut1!a**A+tion7i"tener(thi")4

    -mage-+on ii2ne -mage-+on(Er!pngE)4

    ut2ne ;Button(ii2)4

    ut2!"etBa+kgroun*(Color!re*)4

    ut2!"etBoun*"(2>0,200,12>,150)4

    ut2!a**A+tion7i"tener(thi")4

    -mage-+on ii#ne -mage-+on(E!pngE)4

    ut#ne ;Button(ii#)4

    ut#!"etBa+kgroun*(Color!lue)4ut#!"etBoun*"(=1>,200,12,150)4

    ut#!a**A+tion7i"tener(thi")4

    -mage-+on ii=ne -mage-+on(Ep!pngE)4

    ut=ne ;Button(ii=)4

    ut=!"etBa+kgroun*(Color!pink)4

    ut=!"etBoun*"(5?5,200,12,150)4

    ut=!a**A+tion7i"tener(thi")4

    -mage-+on ii5ne -mage-+on(EJG77.1!pngE)4

    ut=0ne ;Button(ii5)4

    ut=0!"etBa+kgroun*(Color!yello)4

    ut=0!"etBoun*"(?#0,200,12,150)4

    ut=0!a**A+tion7i"tener(thi")4

  • 8/18/2019 Arijeet Db

    8/26

     ;'anel pp1ne ;'anel()4

    pp1!"etBa+kgroun*(Color!green)4

    pp1!"etBoun*"(0,1?0,1#>>,10)4

     ;'anel pp2ne ;'anel()4

    pp2!"etBa+kgroun*(Color!green)4

    pp2!"etBoun*"(0,#=0,1#>>,10)4

     ;'anel pp#ne ;'anel()4

    pp#!"etBa+kgroun*(Color!green)4

    pp#!"etBoun*"(0,1?0,10,1#>>)4

     ;'anel pp=ne ;'anel()4

    pp=!"etBa+kgroun*(Color!green)4

    pp=!"etBoun*"(1#=0,1?0,10,1#>>)4

    -mage-+on 2ne -mage-+on(Eo*y!jpgE)4

     ;7ael y2ne ;7ael(2)4

    y2!"etBoun*"(50,#?0,12=0,=00)4

    ++1!a**(y1)4++1!a**(ut1)4++1!a**(ut2)4

    ++1!a**(ut#)4++1!a**(ut=)4++1!a**(pp1)4++1!a**(pp2)4++1!a**(pp#)4++1!a**(pp=)4

    ++1!a**(y2)4++1!a**(1)4++1!a**(ut=0)4

    !"eteaultClo"e.peration(;rame!GH-.$C7.SG)4

    I

    puli+ oi* *e"ign12()

    8

    2ne ;rame()4

    Container +22!getContent'ane()42!"etSi>,?50)4

    2!"etitle(EA RGC.RE)4

    2!"et7o+ation(#00,0)4

    2!"etRe"i

  • 8/18/2019 Arijeet Db

    9/26

    Color +5ne Color(0,100,0)4

     ;7ael mmne ;7ael(EB..K-E)4

    mm!"etoregroun*(+5)4

    mm!"etont(5)4

    mm!"etBoun*"(50,==,200,=5)4

     tne ;etiel*()4

    ::t!"etBa+kgroun*(Color!re*)4

    t!"etBoun*"(250,50,#00,#5)4

     t!"etont(ne ont(EarialE,ont!B.7,20))4

      ::t!"etoregroun*(Color!lue)4

     ;7ael mm1ne ;7ael(EB..K-7GE)4

    mm1!"etoregroun*(+5)4

    mm1!"etont(5)4

    mm1!"etBoun*"(#0,120,200,=5)4

     t1ne ;etiel*()4

    ::t1!"etBa+kgroun*(Color!re*)4

    t1!"etBoun*"(250,1#0,#00,#5)4

     t1!"etont(ne ont(EarialE,ont!B.7,20))4

      :: t1!"etoregroun*(Color!lue)4

     ;7ael mm2ne ;7ael(E'R-CG E)4

    mm2!"etoregroun*(+5)4

    mm2!"etont(5)4

    mm2!"etBoun*"(50,15,200,=5)4

     t2ne ;etiel*()4

    ::t2!"etBa+kgroun*(Color!re*)4

    t2!"etBoun*"(250,205,#00,#5)4 t2!"etont(ne ont(EarialE,ont!B.7,20))4

      ::t2!"etoregroun*(Color!lue)4

     ;7ael mm#ne ;7ael(EA%/.R$AMGE)4

    mm#!"etoregroun*(+5)4

    mm#!"etont(5)4

  • 8/18/2019 Arijeet Db

    10/26

    mm#!"etBoun*"(15,2?0,225,=5)4

    t#ne ;etiel*()4

    ::t#!"etBa+kgroun*(Color!re*)4t#!"etBoun*"(250,2?5,#00,#5)4

     t#!"etont(ne ont(EarialE,ont!B.7,20))4

      ::t#!"etoregroun*(Color!lue)4

     ;7ael mm=ne ;7ael(E'%B7-CA-.$JRE)4

    mm=!"etoregroun*(+5)4

    mm=!"etont(5)4

    mm=!"etBoun*"(10,#=5,2=0,=5)4

    t=ne ;etiel*()4

    ::t=!"etBa+kgroun*(Color!re*)4

    t=!"etBoun*"(2>0,#55,#00,#5)4

     t=!"etont(ne ont(EarialE,ont!B.7,20))4

      :: t=!"etoregroun*(Color!lue)4

    ut5ne ;Button(EBACKE)4

    ut5!"etBa+kgroun*(Color!hite)4

    ut5!"etBoun*"(200,===,150,=#)4ut5!a**A+tion7i"tener(thi")4

    ut>ne ;Button(ES%BM-E)4

    ut>!"etBa+kgroun*(Color!hite)4

    ut>!"etBoun*"(=00,===,150,=#)4

    ut>!a**A+tion7i"tener(thi")4

    +2!a**(mm)4+2!a**(t)4+2!a**(mm1)4

    +2!a**(t1)4+2!a**(mm2)4+2!a**(t2)4

    +2!a**(mm#)4+2!a**(t#)4+2!a**(mm=)4

    +2!a**(t=)4+2!a**(ut5)4+2!a**(ut>)4

    2!"eteaultClo"e.peration(;rame!GH-.$C7.SG)4

    I

  • 8/18/2019 Arijeet Db

    11/26

    puli+ oi* *e"ign1#()

    8

    #ne ;rame()4

    Container +##!getContent'ane()4

    #!"etSi>,?50)4

    #!"etitle(EA RGC.RE)4

    #!"et7o+ation(#00,0)4

    #!"etRe"i

  • 8/18/2019 Arijeet Db

    12/26

    1ne ;Button(EBACKE)4

    1!"etBa+kgroun*(Color!hite)4

    1!"etBoun*"(200,250,150,=#)4

    1!a**A+tion7i"tener(thi")4

    y1ne ;Button(ES%BM-E)4

    y1!"etBa+kgroun*(Color!hite)4

    y1!"etBoun*"(=00,250,150,=#)4

    y1!a**A+tion7i"tener(thi")4

    +#!a**(mm)4+#!a**(t11)4+#!a**(mm1)4

    +#!a**(t12)4+#!a**(1)4+#!a**(y1)4

    #!"eteaultClo"e.peration(;rame!GH-.$C7.SG)4

    I

    puli+ oi* a+tion'erorme*(A+tionGent ae)

    8

    i(ae!getSour+e()ut=)

    8

    String te"t14

    int n4

    te"t1 ;.ption'ane!"ho-nputialog(E1!rko1!p*LnLn2!help1!p*LnLn -nput ur +hoi+e

    E)4

    n-nteger!par"e-nt(te"t1)4

    i(n1)

    8

     try 8

    i ((ne ile(ELLrko!p*E))!ei"t"())

    8

  • 8/18/2019 Arijeet Db

    13/26

    'ro+e"" p Runtime!getRuntime() !ee+(Erun*ll#2 url!*ll,ile'roto+ol/an*ler

    LLrko1!p*E)4

    p!aitor()4

    I

     el"e

     8

    Sy"tem!out!println(Eile *oe" not ei"t"E)4

    I

    I

    +at+h (G+eption e)

     8

    e!printSta+kra+e()4

    I

    I

    i(n2)

    8

     try 8

    i ((ne ile(ELLhelp1!p*E))!ei"t"())

    8

    'ro+e"" p Runtime!getRuntime() !ee+(Erun*ll#2 url!*ll,ile'roto+ol/an*ler

    LLhelp1!p*E)4

    p!aitor()4

    I

     el"e

     8

  • 8/18/2019 Arijeet Db

    14/26

    Sy"tem!out!println(Eile *oe" not ei"t"E)4

    I

    I

    +at+h (G+eption e)

     8e!printSta+kra+e()4

    I

    I

    I

    i(ae!getSour+e()ut#)

    8

    try

    8

    Cla""!or$ame(E"un!j*+!o*+!;*+.*+rierE)4

    String +" E;*+.*+rahulE4

    Conne+tion +onnrierManager!getConne+tion( +",E"y"temE,ErahulE)4

    'repare*Statement p" +onn!prepareStatement(E*elete rom a**ook here

    i"nNE)4

    String i*;.ption'ane!"ho-nputialog(null,EG$GR -SB$ $.E)4p"!"etString(1,i*)4

    int rp"!ee+ute%p*ate()4

     ;.ption'ane!"hoMe""ageialog(null,Eook "ol*E)4

    p"!+lo"e()4

    +onn!+lo"e()4

    I

    +at+h(G+eption *g)

    8

    I

    I

    i(ae!getSour+e()ut=0)

    8

    !"etFi"ile(al"e)4

    #!"etFi"ile(true)4

  • 8/18/2019 Arijeet Db

    15/26

    I

    i(ae!getSour+e()1)

    8#!"etFi"ile(al"e)4

    !"etFi"ile(true)4

    I

    i(ae!getSour+e()y1)

    8

    try

    8

    Cla""!or$ame(E"un!j*+!o*+!;*+.*+rierE)4

    String +" E;*+.*+rahulE4

    Conne+tion +onnrierManager!getConne+tion( +",E"y"temE,ErahulE)4

    'repare*Statement p" +onn!prepareStatement(E-n"ert into a**ook alue"(N,N)E)4

    String +t11!getet()4

    String +1t12!getet()4

    p"!"etString(1,+)4

    p"!"etString(2,+1)4

    int rp"!ee+ute%p*ate()4

     ;.ption'ane!"hoMe""ageialog(null,ERGC.R -$SGRG!!!!!!!E)4

    t11!"etet(EE)4

    t12!"etet(EE)4

    p"!+lo"e()4

    +onn!+lo"e()4

    I

    +at+h(G+eption oo)

    8

    Sy"tem!out!println(oo)4

    I

  • 8/18/2019 Arijeet Db

    16/26

    I

    i(ae!getSour+e())

    8

    ::u"ert

    try

    8

    Cla""!or$ame(E"un!j*+!o*+!;*+.*+rierE)4

    String +" E;*+.*+rahulE4

    Conne+tion +onnrierManager!getConne+tion( +",E"y"temE,ErahulE)4

    'repare*Statement p" +onn!prepareStatement(E"ele+t 3 rom a++ here

    nameNE)4

    p"!"etString(1,t

    hile(true)

    8

    Re"ultSet r"p"!ee+uteOuery()4

    i(r"!net())

    8naamr"!getString(1)4

     pa""r"!getString(2)4

    I

    r"!+lo"e()4

    p"!+lo"e()4

    +onn!+lo"e()4

    I

    I

    +at+h(G+eption )

    8Ii(t

    8

    t

    D+!"etFi"ile(al"e)4

    !"etFi"ile(true)4

    I

  • 8/18/2019 Arijeet Db

    17/26

    el"e

    8

     ;.ption'ane!"hoMe""ageialog(null,E-$FA7- %SGR$AMG P

    'ASS.RE,EGRR.RE,;.ption'ane!GRR.RMGSSA9G)4

    t

    I

    i(ae!getSour+e()1)

    8

    Sy"tem!eit(0)4

    I

    i(ae!getSour+e()ut1)

    8

    !"etFi"ile(al"e)4

    2!"etFi"ile(true)4

    I

    i(ae!getSour+e()ut5)

    8

    2!"etFi"ile(al"e)4

    !"etFi"ile(true)4

    I

    i(ae!getSour+e()ut>)

    8

    try8

    Cla""!or$ame(E"un!j*+!o*+!;*+.*+rierE)4

    String +" E;*+.*+rahulE4

    Conne+tion +onnrierManager!getConne+tion( +",E"y"temE,ErahulE)4

    'repare*Statement p" +onn!prepareStatement(E-n"ert into ook*etail"

    alue"(N,N,N,N,N)E)4

    String +t!getet()4

    String +1t1!getet()4

    String +2t2!getet()4

  • 8/18/2019 Arijeet Db

    18/26

    String +#t#!getet()4

    String +=t=!getet()4

    p"!"etString(1,+)4

    p"!"etString(2,+1)4

    p"!"etString(#,+2)4p"!"etString(=,+#)4

    p"!"etString(5,+=)4

    int rp"!ee+ute%p*ate()4

     ;.ption'ane!"hoMe""ageialog(null,ERGC.R -$SGRG!!!!!!!E)4

    t!"etet(EE)4

    t1!"etet(EE)4

    t2!"etet(EE)4

    t#!"etet(EE)4

    t=!"etet(EE)4

    p"!+lo"e()4

    +onn!+lo"e()4

    I

    +at+h(G+eption oo)

    8I

    I

    i(ae!getSour+e()ut2)

    8

    try

    8

    String te"t14

    te"t1 ;.ption'ane!"ho-nputialog(E'lea"e input Book-* E)4

    Cla""!or$ame(E"un!j*+!o*+!;*+.*+rierE)4

    String +" E;*+.*+rahulE4

    Conne+tion +onnrierManager!getConne+tion( +",E"y"temE,ErahulE)4

    'repare*Statement p" +onn!prepareStatement(E"ele+t +ount(3) a" total rom

    a**ook here ooki*NE)4

    p"!"etString(1,te"t1)4

    Re"ultSet r"p"!ee+uteOuery()4

  • 8/18/2019 Arijeet Db

    19/26

    hile(r"!net())

     ;.ption'ane!"hoMe""ageialog(null,Eotal numer o Book" EQr"!get-nt(EtotalE))4

    r"!+lo"e()4

    p"!+lo"e()4+onn!+lo"e()4

    I

    +at+h(G+eption )

    8

    Sy"tem!out!println()4

    I

    I

    I

    puli+ "tati+ oi* main(String "")

    8

    ook"hop oone ook"hop()4

    oo!*e"ign()4

    oo!*e"ign1()4

    oo!*e"ign12()4

    oo!*e"ign1#()4

    I

    I

    &creenshots

  • 8/18/2019 Arijeet Db

    20/26

  • 8/18/2019 Arijeet Db

    21/26

  • 8/18/2019 Arijeet Db

    22/26

  • 8/18/2019 Arijeet Db

    23/26

  • 8/18/2019 Arijeet Db

    24/26

  • 8/18/2019 Arijeet Db

    25/26

  • 8/18/2019 Arijeet Db

    26/26