You are on page 1of 36

LibraryManagementSystem

Bachelor of Computer Applications (BCA)


Programme

Project Report

BCA Sem V
AY 2020-21

<library management system>


by

R No. Name of Student


87 Kathiriya utsav alpeshbhai

Project Guide by :
Prof.Nidhi Desai

1
LibraryManagementSystem

INDEX

Sr No Description Page No.

1 Introduction
1.1 Project Summary
1.2 Project Technical Profile
2 Scope & Planning
2.1 Requirement Analysis
2.2 Technology Details
3 Designing
3.1 Data Flow Diagram
3.2 Use Case Diagram
3.3 ER Diagram
3.4 Database Design
3.5 Data Dictionary
3.6 User Interface & Coding
4 Testing
4.1 Unit Testing
4.2 Integration Testing
4.3 System Testing
5 Conclusion
6 Bibliography & Reference

1.Introduction

2
LibraryManagementSystem

1.1 project summary

 Library management system allows the librarian to maintain library resources in a more
operative manner that will help to save their time. ... Library management system is also useful
for students as well as a librarian to keep the constant track of the availability of all books in a
store.

 A Library management system is a software that uses to maintain the record of the library. It
contains work like the number of available books in the library, the number of books are issued or
returning or renewing a book or late fine charge record, etc .

 A library management system is the most proficient and easy to use system for managing all the
processes involved in a Library in the most effective ways.

 This system will reduce all the manual work and the whole process can be managed just through
single clicks and edits.

 Librarian can update the information of books and manage availability and arriver record of the
books.

1.2 Project Technical Profile

 Technology and server used:-

Visual studio Microsoft Access visual basic

 Designing tools:-

Html Css

3
LibraryManagementSystem

2. Scop & Planning

2.1 Requirement Analysis

 Any library member should be able to search books by their title, author, subject
category as well by the publication date.
 Each book will have a unique identification number and other details including a rack
number which will help to physically locate the book.
 There could be more than one copy of a book, and library members should be able to
check-out and reserve any copy. we will call each copy of a book, a book item.
 The system should be able to retrieve information like who took a particular book or
what are the books checked-out by a specific library member.

2.2 Technology Details

 Hardwar Requirements :-

Processor: AMD Ryzen 3 2200U with Radeon Vega Mobile Gfx, 2500 Mhz, 2 Core(s), 4 Logical
Processor(s)

Memory : 8 GB

Hard disk: 100 GB

 Software Requirements :-

Operating system: windows 11 or higher

Input device :keybord,mous

Output device : monitor

Browser : all modern browsers

3. Designing

4
LibraryManagementSystem

3.1 Data Flow Diagram:

 0 level data flow diagram

5
LibraryManagementSystem

 1st level data flow diagram: Admin level

6
LibraryManagementSystem

 Customer level

7
LibraryManagementSystem

8
LibraryManagementSystem

9
LibraryManagementSystem

3.2 Use Case Diagram

10
LibraryManagementSystem

3.3 ER Digram

11
LibraryManagementSystem

3.4 Data Design

Client side login page : table Record

Sr.no Field Name Data Type constraints Description


1 uname Long Text Primary key User_username
2 email Long Text Null User_email
3 pass Number Null User_password
4 cpass Number Null User_conform
password
5 mnumber Number Null User_phone
number
6 gender Short Text Null User_gender

Admin_side table : member

Sr.no Field Name Data Type constraints Description


1 mid Number Primary key Admin_id
2 mname Long Text Null Admin_name
3 memail Long Text Null Admin_email
4 mpass Number Null Admin_password
5 mno Number Null Admin_mobile no

Product table: book

Sr.no Field Name Data Type constraints Description


1 bid Number Primary key book_id
2 bname Long Text Null book_name
3 btype Long Text Null book_type
4 bprice Number Null book_price
5 bimage Long Text Null Book_image

Add to cart table: cart

Sr.no Field Name Data Type constraints Description


1 pid Number Primary key product_id
2 pname Long Text Null product_name
3 pprice Numbe Null product_price
4 pimage Long Text Null Product_image
5 pqua Long Text Null Product_quantity

12
LibraryManagementSystem

Client member table : Client

Sr.no Field Name Data Type constraints Description


1 cname Long Text Primary key client_name
2 cemail Long Text Null client_email
3 caddress Long Text Null client_address
4 cmno Number Null client_password
5 mno Number Null client_mobile no

Order table: order

Sr.no Field Name Data Type constraints Description


1 pid Number Primary key product_id
2 pname Long Text Null product_name
3 pprice Numbe Null product_price
4 pimage Long Text Null Product_image
5 pqua Long Text Null Product_quantity

13
LibraryManagementSystem

3.5 Data Dictionary

book cart client


bid pid cname
bname pname cemail
btype pprice caddress
bprice pimage cmno
bimage pqua cgender

Order record
pid uname
pname email
pprice pass
pqua cpass
mnumber
gender

14
LibraryManagementSystem

3.6 UserInterface & Coding :- Client side

 Login page interface

 Description:

This is login page of our website .login page in enter a valid email id and
password to login in the website of home page otherwise give the invalid
login error.

 Code:

ImportsSystem.Data.OleDb

PartialClassloginpage
InheritsSystem.Web.UI.Page
DimcnAsNewOleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\
Users\HP\Documents\Visual Studio 2010\Projects\book\librarybook.mdb")

ProtectedSubbtnlogin_Click(ByVal sender AsObject, ByVal e AsSystem.EventArgs)


Handlesbtnlogin.Click
Try
Dim str AsString
DimansAsInteger

15
LibraryManagementSystem

DimobjconAsOleDbConnection = Nothing
DimobjcmdAsOleDbCommand = Nothing

str = "select * from record where email='"&txtemail.Text&"' AND


pass= "&txtpass.Text&""
cn.Open()

objcmd = NewOleDbCommand(str, cn)

Dim reader AsOleDbDataReader = objcmd.ExecuteReader

Ifreader.ReadThen

Session("email") = txtemail.Text
Response.Redirect("home.aspx")
MsgBox("Login success")

Else
MsgBox("invalid login")
EndIf

cn.Close()

Catch ex AsException

EndTry
EndSub

ProtectedSubbtncancel_Click(ByVal sender AsObject, ByVal e


AsSystem.EventArgs) Handlesbtncancel.Click
txtemail.Text = ""
txtpass.Text = ""

EndSub
EndClass

16
LibraryManagementSystem

 Register page interface:

 Description:
This is interface of register page .if user is come in website in first time so
requires the register the all user details.
While user register all details and enter email and password to login the website.
 Code:

ImportsSystem.Data.OleDb
ImportsSystem.Data.OleDb.OleDbException

PartialClasslogi
InheritsSystem.Web.UI.Page
DimcnAsNewOleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\
Users\HP\Documents\Visual Studio 2010\Projects\book\librarybook.mdb")

ProtectedSubbtnsignin_Click(ByVal sender AsObject, ByVal e


AsSystem.EventArgs) Handlesbtnsignin.Click

Try
Dim str AsString
DimansAsInteger

17
LibraryManagementSystem

str = "Insert into record values


('"&txtname.Text&"','"&txtemail.Text&"', '"&txtpass.Text&"','
"&txtcpass.Text&" ', '"&txtmnumber.Text&"','"& DropDownList1.Text &"')"

cn.Open()

DimcmdAsNewOleDbCommand(str, cn)
ans = cmd.ExecuteNonQuery

MsgBox("Welcome Successfull:"&ans)
cn.Close()

Catch ex AsException
MsgBox(ex.ToString)

EndTry

EndSub
EndClass

 Home page:-

18
LibraryManagementSystem

 Product page:-

 description:

This is product page of client side .this page is show all product details like product id,
name, type, price and image of product.

This page is redirect to order page and add to cart page in blow buttons and enter the
product id to add in add to cart page directly.

 Coding:

ImportsSystem.Data.OleDb
PartialClassbookproduct
InheritsSystem.Web.UI.Page
DimcnAsNewOleDbConnection("")
Dim s AsString

ProtectedSub Button2_Click(ByVal sender AsObject, ByVal e AsSystem.EventArgs)


Handles Button2.Click
Session("pid") = txtid.Text
Response.Redirect("cart.aspx")
EndSub

19
LibraryManagementSystem
ProtectedSub Button3_Click(ByVal sender AsObject, ByVal e AsSystem.EventArgs)
Handles Button3.Click
Session("pid") = txtid.Text
Response.Redirect("order.aspx")
EndSub
EndClass
 Product add to cart

 Description:

Product page in input the product id and click the add to cart button to redirect to add cart page
to add, update, delete the product in add to cart.

 Code:
ImportsSystem.Data.OleDb
PartialClasscart
InheritsSystem.Web.UI.Page

DimcnAsNewOleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\
Users\HP\Documents\Visual Studio 2010\Projects\book\librarybook.mdb")

ProtectedSubbtnadd_Click(ByVal sender AsObject, ByVal e AsSystem.EventArgs)


Handlesbtnadd.Click
Try
Dim str AsString
DimansAsInteger

20
LibraryManagementSystem

str = "insert into cart values ("&txtid.Text&","&txtquantity.Text&","&txtprice.Text&") "


cn.Open()

DimcmdAsNewOleDbCommand(str, cn)
ans = cmd.ExecuteNonQuery

MsgBox("record add in cart succesfully :"&ans)

cn.Close()

Catch ex AsException
MsgBox(ex.ToString)
EndTry
EndSub

ProtectedSubbtnupdate_Click(ByVal sender AsObject, ByVal e AsSystem.EventArgs)


Handlesbtnupdate.Click
Try
Dim str AsString
DimansAsInteger

str = " update cart set quantity= "&txtquantity.Text&" , price= "&txtprice.Text&" where pid
= "&txtid.Text&""
cn.Open()
DimcmdAsNewOleDbCommand(str, cn)
ans = cmd.ExecuteNonQuery
MsgBox("record updated succesfully :"&ans)
cn.Close()
Catch ex AsException
MsgBox(ex.ToString)
EndTry
EndSub

ProtectedSubbtndelete_Click(ByVal sender AsObject, ByVal e AsSystem.EventArgs)


Handlesbtndelete.Click
Try
Dim str AsString
DimansAsInteger

str = " delete from cart where pid= "&txtid.Text&""


cn.Open()

DimcmdAsNewOleDbCommand(str, cn)
ans = cmd.ExecuteNonQuery

21
LibraryManagementSystem

MsgBox("record delete succesfully : "&ans)

cn.Close()

Catch ex AsException
MsgBox(ex.ToString)
EndTry
EndSub

ProtectedSubPage_Load(ByVal sender AsObject, ByVal e AsSystem.EventArgs)


HandlesMe.Load
cn.Open()
DimansAsInteger
Dim str AsString
ans = Session("pid")
txtid.Text = ans
str = " select * from product where product_id="&txtid.Text&""
DimcmdAsNewOleDbCommand(str, cn)
DimdrAsOleDbDataReader
dr = cmd.ExecuteReader
dr.Read()
txtprice.Text = dr.Item(3).ToString
im.ImageUrl = dr.Item(4).ToString
cn.Close()
EndSub
EndClass

 Order page:-

22
LibraryManagementSystem

 Description:
This order page in order the product details like product id, quantity of product and price of
the item and total fields are in order page.

 Code:

ImportsSystem.Data.OleDb

PartialClassorder
InheritsSystem.Web.UI.Page
DimcnAsNewOleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\
Users\HP\Documents\Visual Studio 2010\Projects\book\librarybook.mdb")
Dim s AsString
ProtectedSub Button1_Click(ByVal sender AsObject, ByVal e AsSystem.EventArgs)
Handles Button1.Click

EndSub

ProtectedSubPage_Load(ByVal sender AsObject, ByVal e AsSystem.EventArgs)


HandlesMe.Load
cn.Open()
Dim n AsInteger
n = Session("pid")
txtid.Text = n
s = "SELECT * FROM book where bid="&txtid.Text&""
Dim cm AsNewOleDbCommand(s, cn)
DimdrAsOleDbDataReader
dr = cm.ExecuteReader
dr.Read()

23
LibraryManagementSystem
txtname.Text = dr.Item(1).ToString
txtprice.Text = dr.Item(3).ToString
cn.Close()
EndSub
EndClass

 Client details page:-

 Code:
ImportsSystem.Data.OleDb

PartialClassclient
InheritsSystem.Web.UI.Page
DimcnAsNewOleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\
Users\HP\Documents\Visual Studio 2010\Projects\book\librarybook.mdb")

ProtectedSubbtnsave_Click(ByVal sender AsObject, ByVal e AsSystem.EventArgs)


Handlesbtnsave.Click

Try
Dim str AsString
DimansAsInteger

24
LibraryManagementSystem
str = "Insert into client values
('"&txtname.Text&"','"&txtemail.Text&"', '"&txtaddr.Text&"',' "&txtmno.Text&"
','"& DropDownList1.Text &"')"

cn.Open()

DimcmdAsNewOleDbCommand(str, cn)
ans = cmd.ExecuteNonQuery

MsgBox("Welcome Successfull:"&ans)
cn.Close()

Catch ex AsException
MsgBox(ex.ToString)

EndTry

EndSub

ProtectedSubbtncancel_Click(ByVal sender AsObject, ByVal e


AsSystem.EventArgs) Handlesbtncancel.Click
txtname.Text = ""
txtemail.Text = ""
txtaddr.Text = ""
txtmno.Text = ""

EndSub
EndClass

25
LibraryManagementSystem

 Admin side:

o Admin login page:

 Description:

This is login page of admin .admin user enter the valid username and password and login to
admin side in website.

Admin can be add the new user in admin side in the website.

 Code:

ImportsSystem.Data.OleDb
PartialClassadmin_Adminlogin
InheritsSystem.Web.UI.Page
DimcnAsNewOleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\
Users\HP\Documents\Visual Studio 2010\Projects\book\librarybook.mdb")

ProtectedSubbtnadmin_Click(ByVal sender AsObject, ByVal e AsSystem.EventArgs)


Handlesbtnadmin.Click
Try
Dim str AsString

26
LibraryManagementSystem

DimobjconAsOleDbConnection = Nothing
DimobjcmdAsOleDbCommand = Nothing

str = "select * from member where memail='"&txtemail.Text&"' AND


mpass= "&txtpass.Text&""
cn.Open()

objcmd = NewOleDbCommand(str, cn)

Dim reader AsOleDbDataReader = objcmd.ExecuteReader

Ifreader.ReadThen

Response.Redirect("Admin.aspx")
MsgBox("Login success")

Else
MsgBox("invalid login")
EndIf

cn.Close()

Catch ex AsException

EndTry
EndSub
EndClass

27
LibraryManagementSystem

 Admin member page interface:

 Description:

This is user page to add to user in admin side in website. Admin can add the user by user page.
User page in requires the field like Userid, username, emailed, password and fill the all fields
and user in admin side.

 Code:
ImportsSystem.Data.OleDb
PartialClassadmin_member
InheritsSystem.Web.UI.Page
DimcnAsNewOleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\
Users\HP\Documents\Visual Studio 2010\Projects\book\librarybook.mdb")

ProtectedSubbtnadd_Click(ByVal sender AsObject, ByVal e AsSystem.EventArgs)


Handlesbtnadd.Click
Try
Dim str AsString
DimansAsInteger

28
LibraryManagementSystem
str = "insert into member values
("&txtid.Text&",'"&txtname.Text&"','"&txtemail.Text&"','"&txtpass.Text&"','"&
txtmobile.Text&"')"
cn.Open()

DimcmdAsNewOleDbCommand(str, cn)
ans = cmd.ExecuteNonQuery

MsgBox("Record inserted Successfyly : "&ans)

cn.Close()

Catch ex AsException
MsgBox(ex.ToString)
EndTry
EndSub
EndClass

 Product details page interface:

29
LibraryManagementSystem

 Description:

This is product page in admin add, delete products and update the products details like
products id, product name, product type, product price and image of products.
This page in any kind of update and delete the products will show in client side in products
page.

 Code:

ImportsSystem.Data.OleDb
PartialClassadmin_product
InheritsSystem.Web.UI.Page
DimcnAsNewOleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\
Users\HP\Documents\Visual Studio 2010\Projects\book\librarybook.mdb")
ProtectedSubbtninsert_Click(ByVal sender AsObject, ByVal e
AsSystem.EventArgs) Handlesbtninsert.Click
Try
Dim str AsString
DimansAsInteger

FileUpload1.SaveAs(Server.MapPath("\book\") &
FileUpload1.FileName)
str = "insert into book values
("&txtid.Text&",'"&txtname.Text&"','"&txttype.Text&"','"&txtprice.Text&"','"&
FileUpload1.FileName &"')"
cn.Open()

DimcmdAsNewOleDbCommand(str, cn)
ans = cmd.ExecuteNonQuery

MsgBox("Record inserted Successfyly : "&ans)

cn.Close()

Catch ex AsException
MsgBox(ex.ToString)
EndTry

EndSub

30
LibraryManagementSystem

ProtectedSubbtnupdate_Click(ByVal sender AsObject, ByVal e


AsSystem.EventArgs) Handlesbtnupdate.Click
Try
Dim str AsString
DimansAsInteger

FileUpload1.SaveAs(Server.MapPath("\book\") &
FileUpload1.FileName)
str = "Update book set
bname='"&txtname.Text&"',btype='"&txttype.Text&"',bprice='"&txtprice.Text&"',
bimage='"& FileUpload1.FileName &"' where bid= "&txtid.Text&" "
cn.Open()

DimcmdAsNewOleDbCommand(str, cn)
ans = cmd.ExecuteNonQuery

MsgBox("Record Update Successfyly : "&ans)

cn.Close()

Catch ex AsException
MsgBox(ex.ToString)
EndTry

EndSub

ProtectedSubbtndelete_Click(ByVal sender AsObject, ByVal e


AsSystem.EventArgs) Handlesbtndelete.Click
Try
Dim str AsString
DimansAsInteger

str = "Delete from book where bid="&txtid.Text&""


cn.Open()

31
LibraryManagementSystem

DimcmdAsNewOleDbCommand(str, cn)
ans = cmd.ExecuteNonQuery

MsgBox("Record inserted Successfyly : "&ans)

cn.Close()

Catch ex AsException
MsgBox(ex.ToString)
EndTry
EndSub

ProtectedSubbtnsearch_Click(ByVal sender AsObject, ByVal e AsSystem.EventArgs)


Handlesbtnsearch.Click
Try
cn.Open()

Dim str AsString

str = "select * from book where bid= "&txtid.Text&" "

DimcmdAsNewOleDbCommand(str, cn)

DimdrAsOleDbDataReader

dr = cmd.ExecuteReader

Whiledr.Read
txtname.Text = dr.Item(1).ToString
txttype.Text = dr.Item(2).ToString
txtprice.Text = dr.Item(3).ToString

EndWhile

cn.Close()

Catch ex AsException
MsgBox(ex.ToString)

EndTry
EndSub

ProtectedSubbtncancel_Click(ByVal sender AsObject, ByVal e AsSystem.EventArgs)


Handlesbtncancel.Click
txtid.Text = ""
txtname.Text = ""
txttype.Text = ""
txtprice.Text = ""
EndSub
EndClass

32
LibraryManagementSystem

4. Testing

4.1 Unit Testing:

A Unit is the smallest testable part of software. It usually has one or few inputs and usually a
single output.
In procedural programming a unit may be an individual program, function, procedure, etc.
Name User login on client side

Description This test will check email and password is valid or not. if not then it
will not allow the user will login.

Input data  Valid email and password which is already define.


 Define blank email and valid password.
 Valid email and blank password.
 Valid email but wrong password.
 Wrong email and valid password.
 Wrong email and password.
Output  System allows login.
 Email must be required.
 Password must be required.
 System prompt error that user is not valid.
 System prompt error that enter email and password.
Actual output System allows login.

Name Valid admin login test

Description This test will check username and password is valid or not. if
not then it will not allow the admin to login.

Input data  Valid username and password which is already define.


 Valid username but wrong password.
 Wrong username and valid password.
 Wrong username and password.
Excepted output  System always login.
 System prompt error that invalid username or password
 System prompt error that enter username and password.
 System prompt error that invalid username or password.

33
LibraryManagementSystem

Actual output System allows login.

4.2 integration testing:

Admin Clients

Library
management

products Order

4.3 System Testing:

System testing is a level of the software testing. Where complete and integrated software is
tested.
The purpose of this test is to evaluate the system’s compliance with the specified requirements.
Firefox Browser , internet explorer and chrome consider testing for environment operability of
software.
 Database –Microsoft access
 OS -windows
 Browser –Firefox / chrome
 Visual studio – 2010

It give authenticate access to the authorized users depending upon their user type.
The system has adequate scope for modification in future if it is necessary.

5 Conclusion

34
LibraryManagementSystem

 After we have completed the project we are sure the problems in the existing system would
overcome. The “LIBRARY MANAGEMENT SYSTEM” process made computerized to reduce human
errors and to increase the efficiency. The main focus of this project is to lessen human efforts. The
maintenance of the records is made efficient, as all the records are stored in the ACCESS database,
through which data can be retrieved easily. The navigation control is provided in all the forms to
navigate through the large amount of records. If the numbers of records are very large then user has
to just type in the search string and user gets the results immediately. The editing is also made
simpler. The user has to just type in the required field and press the update button to update the
desired field.

 The Books and Students are given a particular unique id no. So that they can be accessed correctly
and without errors. Our main aim of the project is to get the correct information about a particular
student and books available in the library.

 The problems, which existed in the earlier system, have been removed to a large extent. And it is
expected that this project will go a long way in satisfying users requirements. The computerization
of the Library Management will not only improves the efficiency but will also reduce human stress
thereby indirectly improving human recourses.

35
LibraryManagementSystem

6. Bibliography & Reference

 You Tube
 Microsoft Asp,Net 4
 Microsoft .Net Framework Tutorials

36

You might also like