You are on page 1of 16

LIBRARY MANAGEMENT

PROBLEM DESCRIPTION:
The Library Management System consists of the facilities to search books by their corresponding ISBN number. The issued books can also be searched using the details of its library members ID. The book issue details contain the information about the books to be issued and also the dates in which the books have to be returned. The software can also store and retrieve the details of the library members.

INTERFACES:
1. Authentication Module. 2. Search Books Module.

3. Add New Books Module. 4. Member Detail s Module. 5. Book Issue Details Module.

Authentication Module:
The proposed Library Management System is authenticated only for the librarian and the staffs involved in the library. The user must enter the valid username and password to access the software.

Search Books Module:


This phase helps the librarian to search the books in the library. The search is devised by Book name, ISBN number and Author name. The user can search the books by entering any one of the above mentioned fields.

Add New Books Module:


The new purchased books are stored in the Librarys database. The books are arranged by entering the book name, Authors name , ISBN number, Date of purchase , Number of copies and Cost of the books.

Member Details Module:

This phase contains the details of various members of the Library. The members can join the library by filling the member registration form, which is available in the same module. The form contains the following fields.

Member name. Member Id. Date of Birth. Address. Contact Number. Email Id.

Book Issue Details Module:


This module contains the details of the books that are to be issued to the members of the Library. The books are issued by entering the member name and member ID. As the date of issue for the books are entered the return dates are given by the software system. The user can view the books issued to a member by entering the member ID and member name.

FUNCTIONAL CAPABILITIES:
The Software system helps in searching the books by entering the ISBN number as a primary field. The administrator namely the librarian can search the books by entering either the author name or book name. The author name and book name are case sensitive.

PERFORMANCE LEVEL:
The software system is rated generally on its performance level. The functional properties of the system enable the system to work to its maximum efficiency. The various functional properties are: Search books by Book name. Search books by Author name. Search books by ISBN number. Issue books by member name and author name.

DATA STRUCTURES AND ELEMENTS:

The database used here is ORACLE database. The oracle table is used for storing all the data. The tabular form provides clear and misambiguous interpretation of the information which gives a lucid representation of the database to the users.

SAFETY:
The library management system has no data loss. The databases used are secure. The main authentication to the system is the username and password without which no one can enter the software system.

RELIABILITY:
The software is highly reliable for administrative purposes in the library. It helps in identifying the books by their book name, author name or ISBN number. The software is applicable only for the administrator and not the members of the library.

SECURITY AND PRIVACY:


The software for Library management is highly secure. The software needs an authentication from its user by entering the valid username and password. No one can access the system without the valid username and password.

QUALITY:
The software quality is based on the performance. The library management software helps to search books with its basic specifications namely the book name, author name and ISBN number.

CONSTRAINTS AND LIMITATIONS:


The software can be used to search books only with the three fields such as Book name, author name or ISBN number. The librarian cannot search the books by its publication name or by the date of issue. The software provides only the identity of the books but not the location of the books in the Library such as indicating the shelf number.

LOG -IN FORM

LOG IN FORM CODING Private Sub cmdCancel_Click() 'set the global var to false 'to denote a failed login LoginSucceeded = False Me.Hide End Sub Private Sub cmdOK_Click()

'check for correct password If Trim(text1.Text) = "karthik" And Trim(text2.Text) = "rgcet" Then MENU.Show LoginSucceeded = True Me.Hide Else MsgBox "Invalid Password, try again!", , "Login" text2.SetFocus SendKeys "{Home}+{End}" End If End Sub

MAIN MENU FORM

MAIN MENU FORM CODING


Private Sub Command1_Click() frmsearch.Show Unload Me End Sub Private Sub Command2_Click() frmaddbook.Show

Unload Me End Sub Private Sub Command3_Click() frmmember.Show Unload Me End Sub Private Sub Command4_Click() frmbookissue.Show Unload Me End Sub Private Sub Command5_Click() End End Sub

SEARCH BOOKS FORM

SEARCH BOOKS CODING


Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Private Sub Command1_Click() With rs .MoveFirst While Not .EOF If bname.Text = .Fields(0) Or Val(no.Text) = .Fields(6) Then bname.Text = .Fields(0) aname.Text = .Fields(1) no.Text = .Fields(6) cost.Text = .Fields(5) copies.Text = .Fields(3) Exit Sub Else .MoveNext End If Wend End With MsgBox "Sorry Book not found...." End Sub Private Sub Command2_Click() MENU.Show Unload Me

End Sub Private Sub Form_Load() If cn.State = 1 Then cn.Close If rs.State = 1 Then rs.Close rs.CursorLocation = adUseClient cn.Open "provider = msdaora.1; user id = scott; password= tiger" rs.Open "select * from book ", cn, adOpenStatic, adLockBatchOptimistic Set DataGrid1.DataSource = rs End Sub

ADD NEW BOOKS FORM

ADD NEW BOOKS FORM


Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Private Sub add_Click() If Val(Text6.Text) < 0 Or Trim(Text6.Text) = "" Then MsgBox "Enter the fields" Exit Sub End If With rs .AddNew .Fields(0) = Trim(Text1.Text) .Fields(1) = Text2.Text .Fields(2) = Text3.Text .Fields(3) = Val(Text4.Text) .Fields(4) = CDate(DTPicker1.Value) .Fields(5) = Val(Text5.Text) .Fields(6) = Val(Text6.Text) .UpdateBatch

End With MsgBox "Book added" End Sub Private Sub clear_Click() Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Text6.Text = "" End Sub Private Sub Command1_Click() MENU.Show Unload Me End Sub Private Sub Form_Load() If cn.State = 1 Then cn.Close If rs.State = 1 Then rs.Close rs.CursorLocation = adUseClient cn.Open "provider = msdaora.1; user id = scott; password= tiger" rs.Open "select * from book ", cn, adOpenStatic, adLockBatchOptimistic End Sub

MEMBER DETAILS FORM

MEMBER DETAILS CODING


Dim cn As New ADODB.Connection

Dim rs As New ADODB.Recordset Private Sub Command2_Click() Call Command6_Click Command2.Enabled = False Command5.Enabled = True End Sub Private Sub Command3_Click() MENU.Show Unload Me End Sub Private Sub Command4_Click() If Text1.Text = "" Then MsgBox "fill the fields" Exit Sub End If rs.Delete MsgBox "Record deleted" End Sub Private Sub Command5_Click() If Trim(Text1.Text) = "" Then MsgBox "Please enter the fields" Exit Sub End If With rs .AddNew .Fields(0) = Text1.Text .Fields(5) = Val(Text2.Text) .Fields(1) = Val(Text3.Text) .Fields(2) = Text4.Text .Fields(3) = Text5.Text .Fields(4) = Text6.Text .UpdateBatch MsgBox "record added" End With End Sub Private Sub Command6_Click() Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Text6.Text = "" End Sub Private Sub Form_Load()

If cn.State = 1 Then cn.Close If rs.State = 1 Then rs.Close rs.CursorLocation = adUseClient cn.Open "provider = msdaora.1; user id = scott; password= tiger" rs.Open "select * from member", cn, adOpenStatic, adLockOptimistic Set DataGrid1.DataSource = rs Command5.Enabled = False End Sub

BOOK ISSUE FORM

BOOK ISSUE CODING

Dim dt As Date Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Private Sub Command1_Click() Command4.Enabled = True Command1.Enabled = False With rs rs.MoveFirst If Not .EOF Then .Fields(7) = Val(Text3.Text) .Fields(1) = Text4.Text .Fields(2) = Text5.Text .Fields(3) = Text6.Text .Fields(4) = DTPicker1.Value .Fields(5) = DTPicker2.Value .Fields(6) = DTPicker3.Value .UpdateBatch MsgBox "Record saved" End If End With End Sub Private Sub Command2_Click() MENU.Show Unload Me End Sub Private Sub Command3_Click() Command4.Enabled = True Command1.Enabled = False Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Text6.Text = "" End Sub Private Sub Command4_Click() Command1.Enabled = True Command4.Enabled = False With rs .MoveFirst While Not .EOF If Val(Text2.Text) = .Fields(0) Then Text1.Text = .Fields(8) Text3.Text = .Fields(7) Text4.Text = .Fields(1)

Text5.Text = .Fields(2) Text6.Text = .Fields(3) DTPicker1.Value = .Fields(4) DTPicker2.Value = .Fields(5) DTPicker3.Value = .Fields(6) Exit Sub Else .MoveNext End If Wend MsgBox "Sorry, Record not found" End With End Sub Private Sub DTPicker1_LostFocus() dt = DTPicker1.Value Text4(1).Text = DateAdd("d", 15, dt) End Sub Private Sub DTPicker2_LostFocus() dt = DTPicker2.Value Text4(2).Text = DateAdd("d", 15, dt) End Sub Private Sub DTPicker3_LostFocus() dt = DTPicker3.Value Text4(3).Text = DateAdd("d", 15, dt) End Sub Private Sub Form_Load() Command1.Enabled = False If cn.State = 1 Then cn.Close If rs.State = 1 Then rs.Close rs.CursorLocation = adUseClient cn.Open "provider = msdaora.1; user id = scott; password= tiger" rs.Open "select * from bookissue ", cn, adOpenStatic, adLockBatchOptimistic End Sub Private Sub Text3_Change() If Val(Text3.Text) > 3 Then MsgBox "You are not allowed to take more than 3 books" End If End Sub

CONCLUSION:
The Library management project to add books, search books, store member details and issue books to the members was verified. The various tools used in the project were studied and implemented in the project.

You might also like