Вы находитесь на странице: 1из 6

EXNO: 9 E-BOOKS MANAGEMENT SYSTEM

PROBLEM STATEMENT

E-book management system is used in effective dispatch of books for the customers. This
system gives a comprehensive approach to minimize the manual work and update with respect to
availability. The core of the system is to search for e-books, make payment and download it.
Display the current list of available e-books.

DATABASE DESIGN

LOGIN TABLEFICTION BOOKS TABLE

NONFICTION BOOKS TABLEPAYMENT TABLE


E-BOOKS MANAGEMENT SYSTEM

UML DIAGRAMS
USECASE DIAGRAM

login

browse catalogue

select book

ebookdatabase
customer
read review

bookprice

acc no
payment

addbooks
credit card

CLASS DIAGRAM:

SEQUENCE DIAGRAM
STATECHART DIAGRAM

login browse book payment Download


catalogue details

COMPONENT DIAGRAMDEPLOYMENT DIAGRAM

E-Book database
E-BOOK MANAGEMENT system
SYSTEM

LAYERED ARCHITECTUREACTIVITY DIAGRAM

login to e-book
account

browsethe
book catalogue

select the
book

read book's
review

get book
price

pay for
book

add the new books


to catalogue
CODINGS :
MODULE
Global db As New ADODB.Connection
Global rs As New ADODB.Recordset
Global username As String
Global i As String

FORM1 (LOGIN)
Private Sub cmdCancel_Click()
Unload Me
End Sub

Private Sub cmdLogin_Click()


query = "select * from Login where USERN='" & txtUser.Text & "' and PWD='" & txtPass.Text & "'"
Set rs = db.Execute(query)
If Not rs.EOF Then
username = rs(0)
rs.Close
Form2.Show
Else
MsgBox ("Invalid Username or Password")
txtUser.SetFocus
End If
End Sub

Private Sub Form_Load()


db.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=
Z:\CaseTools\Ebookbank\ebook.mdb;Persist Security Info=False"
db.Open
End Sub

FORM2 (SELECTION)
Private Sub cmdCancel_Click()
Unload Me
End Sub

Private Sub cmdOk_Click()


If cmbType.Text = "Fiction" Then
query = "select*from Fiction"
Set rs = db.Execute(query)
While (Not rs.EOF)
lstBooks.AddItem (rs(0))
rs.MoveNext
Wend
If cmbType.Text = "NonFiction" Then
query = "select*from NonFiction"
Set rs = db.Execute(query)
While (Not rs.EOF)
lstBooks.AddItem (rs(0))
rs.MoveNext
Wend
End If
End If
End Sub

Private Sub cmdSelect_Click()


Form3.Show
End Sub
Private Sub lstBooks_Click()
If cmbType.Text = "Fiction" Then
i = lstBooks.ListIndex
query = "select * from Fiction where BNAME ='" &lstBooks.List(i) & "'"
BNAME = lstBooks.List(i)
Set rs = db.Execute(query)
txtCost = rs(1)
Else
If cmbType.Text = "NonFiction" Then
i = lstBooks.ListIndex
query = "select * from NonFiction where BNAME ='" &lstBooks.List(i) & "'"
BNAME = lstBooks.List(i)
Set rs = db.Execute(query)
txtCost = rs(1)
End If
End If
End Sub

FORM3 (PAYMENT)
Private Sub cmdDown_Click()
MsgBox "Your download is being processed. Please wait."
End Sub
Private Sub cmdPay_Click()
query = "insert into Payment(ACCNO,DEBITNO,CNAME)values('" & txtAcc.Text & "','" &
txtDebit.Text & "','" & txtName.Text & "')"
Set rs = db.Execute(query)
MsgBox "Transaction Complete"
End Sub
OUTPUT
FORM1 FORM2

FORM3

Вам также может понравиться