0% found this document useful (0 votes)
227 views8 pages

Exno:2 Bookbank Management System: Problem Statement

The document describes an online book bank management system that allows users to purchase books online. It includes database tables to store user registration and book details. UML diagrams are presented including use case, class, sequence, statechart, activity, component and layered architecture diagrams to model the system. Forms are presented for user registration, login, and viewing book details. The system allows users to register, login, view available books, purchase books and have their account limits updated.

Uploaded by

John Berkmans
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
227 views8 pages

Exno:2 Bookbank Management System: Problem Statement

The document describes an online book bank management system that allows users to purchase books online. It includes database tables to store user registration and book details. UML diagrams are presented including use case, class, sequence, statechart, activity, component and layered architecture diagrams to model the system. Forms are presented for user registration, login, and viewing book details. The system allows users to register, login, view available books, purchase books and have their account limits updated.

Uploaded by

John Berkmans
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

EXNO:2 BOOKBANK MANAGEMENT SYSTEM

PROBLEM STATEMENT

Online book bank system is used to purchase books through internet at any time. This
reduces the time of purchase of book and also manpower required behind purchasing. Given a
membership ID, books can be fetched at any time by paying the corresponding price amount. If
not a member, then registration is done and membership ID and validity is given. Online book
bank system is more feasible than manual method.

DATABASE DESIGN

REGISTER TABLE

DETAILS TABLE
BOOK BANK MANAGEMENT SYSTEM

USECASE DIAGRAM

get form

fill form

check details

issue id

user librarian

get id

select book

issue book

collect book

CLASS DIAGRAM
SEQUENCE DIAGRAM

user database librarian library

1: get form

2: fill form

3: check details

4: issue id

5: select book

6: issue book

7: collect book

STATECHART DIAGRAM

fil check select issue collect


ACTIVITY DAIGRAM

get id

select
books

submit
form

issue book

collect
books

COMPONENT DIAGRAM

bookbank database
system

DEPLOYMENT DIAGRAM

bookban databas
... e
LAYERED ARCHITECTURE DAIGRAM

ui layer

login selection payment

domain layer

customer admin

technical layer

DATABASE
REGISTRATION FORM
Private Sub cmdCancel_Click()
Unload Me
End Sub

Private Sub cmdRegister_Click()


query = "insert into Register(CNAME,EMAIL,USERN,PASSW,LIMIT)values('" & txtName.Text & "','"
& txtEmail.Text & "','" & txtUser.Text & "','" & txtPass.Text & "','5')"
Set rs = db.Execute(query)
query = "select*from Register where USERN='" & txtUser.Text & "' and PASSW='" & txtPass.Text &
"'"
Set rs = db.Execute(query)
txtAcc = rs("ID")
txtBooks = rs("LIMIT")
End Sub

Private Sub Form_Load()


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

LOGIN
Private Sub cmdLogin_Click()
query = "select * from Register where USERN = '" & txtUser.Text & "' and PASSW = '" & txtPass.Text
& "'"
Set rs = db.Execute(query)
If Not rss.EOF Then
User = rs(0)
rs.Close
Form3.Show
Else
MsgBox ("Invalid USERNAME or PASSWORD")
txtUser.SetFocus
End If
End Sub

DETAILS FORM
Private Sub cmdIssue_Click()
Dim lim As Integer
MsgBox ("Book Issued")
Set rs = db.Execute("select*from Register where ID='" & cmbAcc.Text & "'")
lim = rs(5) - 1
txtB = lim
Set rs = db.Execute("update Register set LIMIT=Val(txtB) where ID='" & cmbAcc.Text & "'")
End Sub

Private Sub cmdOk_Click()


query = "select*from Details where BOOKID='" & cmbNo.Text & "'"
Set rs = db.Execute(query)
txtBook = rs("BNAME")
txtAvail = rs("AVAILABLE")
txtPrice = rs("PRICE")
End Sub

Private Sub cmdOk2_Click()


query = "select*from Register where ID='" & cmbAcc.Text & "'"
Set rs = db.Execute(query)
txtName = rs("CNAME")
txtLimit = rs("LIMIT")
End Sub

Private Sub Form_Load()


Set rs1 = db.Execute("select*from Details")
While (Not rs1.EOF)
cmbNo.AddItem (rs1("BOOKID"))
rs1.MoveNext
Wend
Set rs2 = db.Execute("select*from Register")
While (Not rs2.EOF)
cmbAcc.AddItem (rs2("ID"))
rs2.MoveNext
Wend
End Sub

MDI FORM
Private Sub mIssue_Click()
Form3.Show
End Sub

Private Sub mLogin_Click()


Form2.Show
End Sub

Private Sub mRegister_Click()


Form1.Show
End Sub

OUTPUT:

MDI FORM
REGISTRATION FORMLOGIN

DETAILS FORM

RESULT:

You might also like