Professional Documents
Culture Documents
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.
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.
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.
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.
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.
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
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
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
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
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
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.