Library Management System Overview 2024-25
Library Management System Overview 2024-25
SYNOPSIS:
INTRODUCTION:
The project entitled LIBRARY MANAGEMENT
SYSTEM is developed as part of the II Semester
PROGRAMMING VISUAL [Link] project for the partial
fulfillment of the PGDCA degree.
PROJECT:
LIBRARY MANAGEMENT SYSTEM is a software
application to maintain the records related to Book
Purchase, Stock Maintenance, Book Search, Catalog,
Book Issue, Book Returns, Fine Collection, and all
necessary requirements for the Library to manage day
to day operations.
OBJECTIVE:
The main objective of the application is to
automate the existing system of manually maintain the
records of the Book Issue, Book Return from the
student, Stock Maintenance, Catalog and Book Search
to be computerized. So the Book Issue, Return,
Searching will be faster.
Library Management System 2024-25
SCOPE:
This application can be used by any Library to
automate the process of manually maintaining the
records related to the subject of maintaining the stock
and Book Issues.
PROBLEM DEFINITION:
The transactions related to Book Purchase, Book
Issue and Book Returns are maintained manually at
present along with maintaining the accounts of the
Students and the Lecturers.
All these are to be automated and an
application is required to relate all of them relatively
and logically so that the current system can be
replaced and accepted without major changes and
problems.
The application should provide quick access to
the records maintained and must reveal the important
reviews about the business so that the growth can be
easily compared and should provide with the various
reports showing the related details so that the
important decisions could be taken easily.
Library Management System 2024-25
INTRODUCTION:
The project entitled LIBRARY MANAGEMENT
SYSTEM is developed as part of the II Semester
PROGRAMMING VISUAL [Link] project for the
partial fulfillment of the PGDCA degree. It is a software
application maintain the records related to all the
transactions occurring at the counter of a shop.
OBJECTIVE:
The main objective is to maintain the inventory
records of a generic shop which deals in musical tapes.
To keep accounts of Book Purchase and Stock
To know the current position of the Books
Book Catalog
Book Issue
Book Return
Fee Collection
SCOPE:
Library Management System 2024-25
GOAL:
The main goal of the application is to maintain the
records of stock, Issue, details of Books and Students
and their current Issue status, Defaulters, Etc.,
INFORMATION DESCRIPTION:
INFORMATION CONTENT
The complete details about each of the
module described above are stored and related
logically together to provide related and organized
information.
INFORMATION FLOW
The flow of the information can be better
examined through the Flow diagram model described
below with the following entities:
Course Conducting
Sub Course
Student Details
Institution Details
Supplier Details
Book Category
Book Unit
Book Details
Book Issued
Book Return
Reports
Library Management System 2024-25
HARDWARE INTERFACE
Minimum Hardware Requirement
Pentium Celeron 400MHz or Above
128MB RAM
1 GB HARD DISK Space
VGA Color Monitor
Keyboard and Mouse
SOFTWARE INTERFACE
HUMAN INTERFACE
Input/Output forms
Data Reports
Options for adding, editing and removing the
information from the database
Library Management System 2024-25
FUNCTIONAL DESCRIPTION:
The problem under study is being divided into
several modules/functions discussed below to
understand the approach to the solution in the broader
way:
Book Report: From this report we can list all the books
available in the library. It gives the complete detail of
the books with publisher Name, Author Name, Qty
available etc., Also the report is provided with filtering
tool using we can display only selected category books.
BEHAVIORAL DESCRIPTION:
SYSTEM ANALYSIS
System Analysis is an activity that feeds information to
the specification activity. It is essential that during
analysis a complete and consistent set of specifications
emerge for the system. For achieving this, the first
major problem is to obtain the necessary information.
The second problem of analysis is to organize the
information obtained so the information can be
effectively evaluated for completeness and consistent.
The third problem is resolving the contradictions that
may exist in the information from different parties.
Lastly the fourth problem is avoiding internal design.
SOFTWARE ENVIRONMENT
The proposed system is developed using
Visual [Link] as the front end and MS-Access 2003
as the back end.
Visual [Link]
Library Management System 2024-25
FEATURES
The following are the various features of Visual
Basic that made to select this software for the project.
IMPROVED RELIABILITY:
The Visual Basic takes the core
achievements originally made in Windows 2000 and
brings them to new levels. With advanced ways of
monitoring the health of running applications, as well
as isolating applications from each other, applications
built using the Visual Basic stay up-and-running longer
than ever before.
Increased Performance:
Thanks in part to advanced compilation and
caching techniques, server applications have never
been faster than with the Visual [Link] and its net
technology. Customers who have moved from other
platform to the windows platform are seeing significant
Library Management System 2024-25
Developer Productivity:
Developers of all backgrounds are finding
that they can rapidly get up to speed on the Visual
Basic. The intuitiveness of the programming model, the
amount of code already provided in the class libraries,
and the amount of work that the Visual Basic handles
behind the scenes in areas such as memory
management have enabled Visual Basic developers to
reap huge productivity gains.
FEASIBILITY STUDY
Economic Feasibility:
Economic feasibility is the most frequently
used method for evaluating the effectiveness of a
candidate system. The procedure is to determine the
savings and the benefits from the candidate system
and compare with costs. If the benefits outweigh the
costs then it is decided to go ahead with the
projects. Otherwise, further justification or alterations in
the proposed system will have to be made if it is to
have a chance of being approved. This is an on-going
effort that improves in accuracy at each phase of the
system life cycle.
Operational Feasibility:
People are resistant to change and
computers have been known to facilitate change. An
estimate should be made of how strong a reaction of
the user staff is likely to have an impact towards the
development of a computer system. It is common
Library Management System 2024-25
Behavioral Feasibility:
It relates human behavior in the organization
and political aspects. Here we focus on:
1)What changes will be brought with the system
2)What organizational structures are disturbed
3)What new skills will be required
Technical Feasibility:
Technical feasibility centers on the
existing system and to what extent it can support the
proposed system. This involves financial considerations
to accommodate technical enhancements. If the budget
is a serious constraint, then the project is judged not
feasible. Now considering the proposed system, our
client has been maintaining the records manually at the
present. So he has to purchase new computer systems
for the automation of the concern. The owner having
realized the advantages, benefits and economic
feasibility of the new system is ready to afford the
expenses for the satisfaction of all the hardware and
software requirements. Therefore the project, in
question, is technically feasible as well.
Conclusion:
Library Management System 2024-25
SYSTEM DESIGN
Design Tools:
Various tools are being used by system
analysis to specify computer procedures. Not all of
them are used here to design this project. Some of the
important tools that have been made use of are:
3. Output Design.
4. Database Design.
Input design:
Input design is a part of overall system design,
which requires very careful attention. Often the
collection of input data is the most expensive process
of the system. In terms of both the equipment used and
the number of people involved, it is the point of most
contact for the users with the computer system; and it
is prone to error. If data going into the system is
incorrect, then the processing and output will magnify
their errors.
One of the early activities of input design is to
determine the nature of the input data. This is done
partially in logical system design but it now needs to be
made more explicit.
Data validation:
Computer input procedures must also be
designed to detect errors in the data at a lower level of
detail which is beyond the capability of the control
procedures. These are combined with the design of the
input process itself.
The validation procedure must be designed to
check each record, data item, field against certain
criteria specified by the system analyst or the
programmer.
Output design:
The specification of user requirements is the
starting point for the appraisal and the detailed
physical design must be done in the light of this and
with continuing user involvement. The normal
procedure is to design the outputs in detail first and
Library Management System 2024-25
Reports:
Reports enhance the application programmer’s
effort to output the formatted data in a manner
practical for the user. This also helps to create hard
copy of the valid information.
ARCHITECTURAL DESIGN
Library Management System 2024-25
SYMBOLS
Process
Data Storage
Flow of data
Library Management System 2024-25
LEVEL 0: DFD
Level 1
ENTITY
RELATIONSHIP
Library Management System 2024-25
KEY ATTRIBUTE
ATTRIBUTE
DATA DICTIONARY
Course Table
CouseSub Table
Library Management System 2024-25
Subject Table
UnitMain Table
BookMaster Table
BookIssue Table
UserLog table
NAME DATA KEY DESCRIPTION
TYPES
LogId Number PrimaryKey Unique no in the table
UserDate Date Date loged in
StartTime Date/Time Login Time
Username Varchar2 Username
EndTime Date/Time Log out time
Library Management System 2024-25
NORMALIZATION
DEFINITION
Form Designing
Library Management System 2024-25
Login Form
Library Management System 2024-25
Main Form
Library Management System 2024-25
Edit Book
Library Management System 2024-25
Source Code
Login Code
Imports [Link]
Imports [Link]
Library Management System 2024-25
Imports [Link]
Public Class frm_login
Inherits [Link]
Dim MyConnection As New
OleDbConnection("Provider=[Link].O
LEDB.4.0;Data Source=C:\[Link]")
Dim MyCommand
Dim e As Exception
Dim MyCommand2
Dim MyReader As OleDbDataReader
Dim MyReader2 As OleDbDataReader
Dim dbset As New DataSet
Dim dataA
Dim currentDate As Date
Dim UserStatus As String
Dim LibStatus As String
Dim AdminStatus As String
Dim ReaderStatus As String
Dim passTry As Integer = 0
End Sub
Library Management System 2024-25
Dim resources As
[Link] = New
[Link](GetType(
frm_login))
Me.GroupBox1 = New
[Link]
Me.TextBox2 = New
[Link]
Me.TextBox1 = New
[Link]
Me.Label2 = New
[Link]
Me.Label1 = New
[Link]
Me.Button1 = New
[Link]
Me.Button2 = New
[Link]
Me.TextBox3 = New
[Link]
Library Management System 2024-25
[Link]()
[Link]()
'
'GroupBox1
'
[Link](Me.TextBox2)
[Link](Me.TextBox1)
[Link](Me.Label2)
[Link](Me.Label1)
[Link] = New
[Link](8, 8)
[Link] = "GroupBox1"
[Link] = New
[Link](336, 88)
[Link] = 0
[Link] = False
[Link] = "Login
Information"
'
'TextBox2
'
[Link] = New
[Link](168, 56)
[Link] = "TextBox2"
[Link] =
[Link](42)
[Link] = New
[Link](144, 20)
[Link] = 3
[Link] = ""
'
Library Management System 2024-25
'TextBox1
'
[Link] = New
[Link](168, 24)
[Link] = "TextBox1"
[Link] = New
[Link](144, 20)
[Link] = 2
[Link] = ""
'
'Label2
'
[Link] = New
[Link](16, 56)
[Link] = "Label2"
[Link] = 1
[Link] = "Password"
'
'Label1
'
[Link] = New
[Link](16, 24)
[Link] = "Label1"
[Link] = 0
[Link] = "User ID"
'
'Button1
'
[Link] =
[Link]
[Link] = New
[Link](24, 112)
[Link] = "Button1"
Library Management System 2024-25
[Link] = New
[Link](128, 23)
[Link] = 1
[Link] = "Login"
'
'Button2
'
[Link] =
[Link]
[Link] = New
[Link](184, 112)
[Link] = "Button2"
[Link] = New
[Link](136, 23)
[Link] = 2
[Link] = "Exit"
'
'TextBox3
'
[Link] = New
[Link](464, 56)
[Link] = "TextBox3"
[Link] = 3
[Link] = ""
[Link] = False
'
'frm_login
'
[Link] = New
[Link](5, 13)
[Link] = New
[Link](354, 144)
Library Management System 2024-25
[Link](Me.TextBox3)
[Link](Me.Button2)
[Link](Me.Button1)
[Link](Me.GroupBox1)
[Link] =
[Link]
dSingle
[Link] =
CType([Link]("$[Link]"),
[Link])
[Link] = False
[Link] = False
[Link] = "frm_login"
[Link] =
[Link]
nterScreen
[Link] = "Login Menu"
[Link](False)
[Link](False)
End Sub
#End Region
Me.Label8 = New
[Link]
Me.TextBox7 = New
[Link]
Me.Label7 = New
[Link]
Me.TextBox6 = New
[Link]
Me.TextBox5 = New
[Link]
Me.Label6 = New
[Link]
Me.Label5 = New
[Link]
Me.TextBox4 = New
[Link]
Me.TextBox3 = New
[Link]
Me.TextBox2 = New
[Link]
Me.TextBox1 = New
[Link]
Me.Label4 = New
[Link]
Me.Label3 = New
[Link]
Me.Label2 = New
[Link]
Me.Label1 = New
[Link]
Me.Button1 = New
[Link]
Me.Button2 = New
[Link]
Library Management System 2024-25
Me.Button3 = New
[Link]
Me.TextBox10 = New
[Link]
[Link]()
[Link]()
'
'GroupBox1
'
[Link](Me.TextBox9)
[Link](Me.Label9)
[Link](Me.TextBox8)
[Link](Me.Label8)
[Link](Me.TextBox7)
[Link](Me.Label7)
[Link](Me.TextBox6)
[Link](Me.TextBox5)
[Link](Me.Label6)
[Link](Me.Label5)
[Link](Me.TextBox4)
[Link](Me.TextBox3)
[Link](Me.TextBox2)
[Link](Me.TextBox1)
[Link](Me.Label4)
Library Management System 2024-25
[Link](Me.Label3)
[Link](Me.Label2)
[Link](Me.Label1)
[Link] = New
[Link](8, 8)
[Link] = "GroupBox1"
[Link] = New
[Link](672, 192)
[Link] = 0
[Link] = False
[Link] = "Issue
Details"
'
'TextBox9
'
[Link] =
[Link]
[Link] = False
[Link] = New
[Link](248, 160)
[Link] = "TextBox9"
[Link] = New
[Link](232, 20)
[Link] = 17
[Link] = ""
'
'Label9
'
[Link] = New
[Link](136, 160)
Library Management System 2024-25
[Link] = "Label9"
[Link] = 16
[Link] = "Issue Type"
'
'TextBox8
'
[Link] =
[Link]
[Link] = False
[Link] = New
[Link](456, 120)
[Link] = "TextBox8"
[Link] = New
[Link](72, 20)
[Link] = 15
[Link] = ""
'
'Label8
'
[Link] = New
[Link](344, 120)
[Link] = "Label8"
[Link] = 14
[Link] = "Due Date"
'
'TextBox7
'
[Link] =
[Link]
[Link] = False
[Link] = New
[Link](456, 88)
[Link] = "TextBox7"
Library Management System 2024-25
[Link] = New
[Link](72, 20)
[Link] = 13
[Link] = ""
'
'Label7
'
[Link] = New
[Link](344, 88)
[Link] = "Label7"
[Link] = 12
[Link] = "Issue Date"
'
'TextBox6
'
[Link] =
[Link]
[Link] = False
[Link] = New
[Link](456, 56)
[Link] = "TextBox6"
[Link] = New
[Link](208, 20)
[Link] = 11
[Link] = ""
'
'TextBox5
'
[Link] =
[Link]
[Link] = False
Library Management System 2024-25
[Link] = New
[Link](456, 24)
[Link] = "TextBox5"
[Link] = New
[Link](104, 20)
[Link] = 10
[Link] = ""
'
'Label6
'
[Link] = New
[Link](344, 56)
[Link] = "Label6"
[Link] = 9
[Link] = "Reader Name"
'
'Label5
'
[Link] = New
[Link](344, 24)
[Link] = "Label5"
[Link] = 8
[Link] = "Reader No"
'
'TextBox4
'
[Link] =
[Link]
[Link] = False
[Link] = New
[Link](120, 120)
[Link] = "TextBox4"
[Link] = New
[Link](208, 20)
Library Management System 2024-25
[Link] = 7
[Link] = ""
'
'TextBox3
'
[Link] =
[Link]
[Link] = False
[Link] = New
[Link](120, 88)
[Link] = "TextBox3"
[Link] = New
[Link](208, 20)
[Link] = 6
[Link] = ""
'
'TextBox2
'
[Link] =
[Link]
[Link] = False
[Link] = New
[Link](120, 56)
[Link] = "TextBox2"
[Link] = New
[Link](136, 20)
[Link] = 5
[Link] = ""
'
'TextBox1
'
[Link] = New
[Link](120, 24)
[Link] = "TextBox1"
Library Management System 2024-25
[Link] = New
[Link](72, 20)
[Link] = 4
[Link] = ""
'
'Label4
'
[Link] = New
[Link](8, 120)
[Link] = "Label4"
[Link] = 3
[Link] = "Author Name"
'
'Label3
'
[Link] = New
[Link](8, 88)
[Link] = "Label3"
[Link] = 2
[Link] = "BookName"
'
'Label2
'
[Link] = New
[Link](8, 56)
[Link] = "Label2"
[Link] = 1
[Link] = "Book SN"
'
'Label1
'
Library Management System 2024-25
[Link] = New
[Link](8, 24)
[Link] = "Label1"
[Link] = 0
[Link] = "Issue #"
'
'Button1
'
[Link] = New
[Link](120, 208)
[Link] = "Button1"
[Link] = New
[Link](168, 23)
[Link] = 1
[Link] = "Return"
'
'Button2
'
[Link] = New
[Link](288, 208)
[Link] = "Button2"
[Link] = New
[Link](144, 23)
[Link] = 2
[Link] = "Ignore"
'
'Button3
'
[Link] = New
[Link](432, 208)
[Link] = "Button3"
[Link] = New
[Link](144, 23)
[Link] = 3
Library Management System 2024-25
[Link] = "Close"
'
'TextBox10
'
[Link] = New
[Link](712, 104)
[Link] = "TextBox10"
[Link] = 4
[Link] = ""
[Link] = False
'
'frm_ReturnBook
'
[Link] = New
[Link](5, 13)
[Link] = New
[Link](690, 240)
[Link](Me.TextBox10)
[Link](Me.Button3)
[Link](Me.Button2)
[Link](Me.Button1)
[Link](Me.GroupBox1)
[Link] =
[Link]
dSingle
[Link] =
CType([Link]("$[Link]"),
[Link])
[Link] = False
[Link] = False
[Link] = "frm_ReturnBook"
Library Management System 2024-25
[Link] =
[Link]
nterScreen
[Link] = "Return Book "
[Link](False)
[Link](False)
End Sub
#End Region
End Sub
Function clearFields()
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
End Function
Function loadIssuedBook()
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM IssueBook
Library Management System 2024-25
Function checkIfAlreadyExists() As
Boolean
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM IssueBook
WHERE IssueNo ='" & [Link] & "'",
MyConnection)
Library Management System 2024-25
Try
[Link]()
End If
End If
Case Else
End Select
End Sub
Library Management System 2024-25
[Link] =
MyReader("pass")
End While
[Link]()
[Link]()
[Link]()
If [Link] = [Link]
Then
Return True
Else
If [Link] <>
[Link] Then
Return False
End If
End If
End Function
Function getStatus() As String
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM Login WHERE
UserID = '" & [Link] & "'",
MyConnection)
MyReader =
[Link]()
While [Link]
UserStatus =
MyReader("Status")
End While
[Link]()
[Link]()
[Link]()
Return UserStatus
End Function
Library Management System 2024-25
If [Link] = "SuperAdmin"
And [Link] = "admin" Then
Return True
Else
If [Link] <>
"SuperAdmin" Or [Link] <> "admin"
Then
Return False
End If
End If
End Function
Function getUserRights()
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM SystemUsers
WHERE UserID = '" & [Link] & "'",
MyConnection)
MyReader =
[Link]()
While [Link]
AdminStatus =
MyReader("AdminRights")
Library Management System 2024-25
LibStatus =
MyReader("LibRights")
ReaderStatus =
MyReader("ReaderRights")
End While
[Link]()
[Link]()
[Link]()
End Function
Function updatestatus()
Dim okstatus As String
okstatus = "locked"
[Link]()
MyCommand = New
OleDbCommand("UPDATE Login SET Status ='"
& okstatus & "' WHERE UserID = '" &
[Link] & "'", MyConnection)
Try
[Link]()
Catch c As Exception
MsgBox([Link])
End Try
[Link]()
[Link]()
End Function
End If
End If
End If
End If
End Sub
Function clearfields()
[Link] = ""
[Link] = ""
End Function
End Class
Library Management System 2024-25
[Link]()
End Sub
[Link]) Handles
[Link]
myFrm = New frm_EditBookDetails
[Link] = Me
[Link]()
End Sub
[Link] = Me
[Link]()
End Sub
Private Sub
frm_MainInterface_Load(ByVal sender As
[Link], ByVal e As
[Link]) Handles [Link]
Library Management System 2024-25
End Sub
[Link]) Handles
[Link]
myFrm = New frm_help
[Link] = Me
[Link]()
End Sub
Me.Label6 = New
[Link]
Me.Label5 = New
[Link]
Me.TextBox4 = New
[Link]
Me.TextBox3 = New
[Link]
Me.TextBox2 = New
[Link]
Me.TextBox1 = New
[Link]
Me.Label4 = New
[Link]
Me.Label3 = New
[Link]
Me.Label2 = New
[Link]
Me.Label1 = New
[Link]
Me.Button1 = New
[Link]
Me.Button2 = New
[Link]
Me.Button3 = New
[Link]
Me.TextBox10 = New
[Link]
[Link]()
[Link]()
'
'GroupBox1
'
Library Management System 2024-25
[Link](Me.TextBox9)
[Link](Me.Label9)
[Link](Me.TextBox8)
[Link](Me.Label8)
[Link](Me.TextBox7)
[Link](Me.Label7)
[Link](Me.TextBox6)
[Link](Me.TextBox5)
[Link](Me.Label6)
[Link](Me.Label5)
[Link](Me.TextBox4)
[Link](Me.TextBox3)
[Link](Me.TextBox2)
[Link](Me.TextBox1)
[Link](Me.Label4)
[Link](Me.Label3)
[Link](Me.Label2)
[Link](Me.Label1)
[Link] = New
[Link](8, 8)
[Link] = "GroupBox1"
Library Management System 2024-25
[Link] = New
[Link](672, 192)
[Link] = 0
[Link] = False
[Link] = "Issue
Details"
'
'TextBox9
'
[Link] =
[Link]
[Link] = False
[Link] = New
[Link](248, 160)
[Link] = "TextBox9"
[Link] = New
[Link](232, 20)
[Link] = 17
[Link] = ""
'
'Label9
'
[Link] = New
[Link](136, 160)
[Link] = "Label9"
[Link] = 16
[Link] = "Issue Type"
'
'TextBox8
'
[Link] =
[Link]
Library Management System 2024-25
[Link] = False
[Link] = New
[Link](456, 120)
[Link] = "TextBox8"
[Link] = New
[Link](72, 20)
[Link] = 15
[Link] = ""
'
'Label8
'
[Link] = New
[Link](344, 120)
[Link] = "Label8"
[Link] = 14
[Link] = "Due Date"
'
'TextBox7
'
[Link] =
[Link]
[Link] = False
[Link] = New
[Link](456, 88)
[Link] = "TextBox7"
[Link] = New
[Link](72, 20)
[Link] = 13
[Link] = ""
'
'Label7
'
[Link] = New
[Link](344, 88)
Library Management System 2024-25
[Link] = "Label7"
[Link] = 12
[Link] = "Issue Date"
'
'TextBox6
'
[Link] =
[Link]
[Link] = False
[Link] = New
[Link](456, 56)
[Link] = "TextBox6"
[Link] = New
[Link](208, 20)
[Link] = 11
[Link] = ""
'
'TextBox5
'
[Link] =
[Link]
[Link] = False
[Link] = New
[Link](456, 24)
[Link] = "TextBox5"
[Link] = New
[Link](104, 20)
[Link] = 10
[Link] = ""
'
'Label6
'
Library Management System 2024-25
[Link] = New
[Link](344, 56)
[Link] = "Label6"
[Link] = 9
[Link] = "Reader Name"
'
'Label5
'
[Link] = New
[Link](344, 24)
[Link] = "Label5"
[Link] = 8
[Link] = "Reader No"
'
'TextBox4
'
[Link] =
[Link]
[Link] = False
[Link] = New
[Link](120, 120)
[Link] = "TextBox4"
[Link] = New
[Link](208, 20)
[Link] = 7
[Link] = ""
'
'TextBox3
'
[Link] =
[Link]
[Link] = False
[Link] = New
[Link](120, 88)
Library Management System 2024-25
[Link] = "TextBox3"
[Link] = New
[Link](208, 20)
[Link] = 6
[Link] = ""
'
'TextBox2
'
[Link] =
[Link]
[Link] = False
[Link] = New
[Link](120, 56)
[Link] = "TextBox2"
[Link] = New
[Link](136, 20)
[Link] = 5
[Link] = ""
'
'TextBox1
'
[Link] = New
[Link](120, 24)
[Link] = "TextBox1"
[Link] = New
[Link](72, 20)
[Link] = 4
[Link] = ""
'
'Label4
'
[Link] = New
[Link](8, 120)
Library Management System 2024-25
[Link] = "Label4"
[Link] = 3
[Link] = "Author Name"
'
'Label3
'
[Link] = New
[Link](8, 88)
[Link] = "Label3"
[Link] = 2
[Link] = "BookName"
'
'Label2
'
[Link] = New
[Link](8, 56)
[Link] = "Label2"
[Link] = 1
[Link] = "Book SN"
'
'Label1
'
[Link] = New
[Link](8, 24)
[Link] = "Label1"
[Link] = 0
[Link] = "Issue #"
'
'Button1
'
[Link] = New
[Link](120, 208)
[Link] = "Button1"
Library Management System 2024-25
[Link] = New
[Link](168, 23)
[Link] = 1
[Link] = "Return"
'
'Button2
'
[Link] = New
[Link](288, 208)
[Link] = "Button2"
[Link] = New
[Link](144, 23)
[Link] = 2
[Link] = "Ignore"
'
'Button3
'
[Link] = New
[Link](432, 208)
[Link] = "Button3"
[Link] = New
[Link](144, 23)
[Link] = 3
[Link] = "Close"
'
'TextBox10
'
[Link] = New
[Link](712, 104)
[Link] = "TextBox10"
[Link] = 4
[Link] = ""
[Link] = False
'
Library Management System 2024-25
'frm_ReturnBook
'
[Link] = New
[Link](5, 13)
[Link] = New
[Link](690, 240)
[Link](Me.TextBox10)
[Link](Me.Button3)
[Link](Me.Button2)
[Link](Me.Button1)
[Link](Me.GroupBox1)
[Link] =
[Link]
dSingle
[Link] =
CType([Link]("$[Link]"),
[Link])
[Link] = False
[Link] = False
[Link] = "frm_ReturnBook"
[Link] =
[Link]
nterScreen
[Link] = "Return Book "
[Link](False)
[Link](False)
End Sub
#End Region
Library Management System 2024-25
End Sub
Function clearFields()
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
End Function
Function loadIssuedBook()
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM IssueBook
WHERE IssueNo ='" & [Link] & "'",
MyConnection)
MyReader =
[Link]()
While [Link]
[Link] =
MyReader("SN")
[Link] =
MyReader("BookName")
[Link] =
MyReader("AuthorName")
Library Management System 2024-25
[Link] =
MyReader("ReaderNo")
[Link] =
MyReader("ReaderName")
[Link] =
MyReader("idate")
[Link] =
MyReader("ddate")
[Link] =
MyReader("itype")
End While
[Link]()
[Link]()
[Link]()
End Function
Function checkIfAlreadyExists() As
Boolean
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM IssueBook
WHERE IssueNo ='" & [Link] & "'",
MyConnection)
Try
Imports [Link]
Imports [Link]
Imports [Link]
[Link],
[Link], "LIS Version
1.00")
[Link] = "Picture
Files|*.jpg|*.bmp|*.gif"
[Link]()
End Sub
Private Sub
OpenFileDialog1_FileOk(ByVal sender As
[Link], ByVal e As
[Link])
Handles [Link]
Dim width As Integer = 100
Dim height As Integer = 100
bookPicture =
[Link](OpenFileDi
[Link])
picPath =
[Link]
[Link] = bookPicture
'[Link] =
[Link]
End Sub
Private Sub Button4_Click(ByVal
sender As [Link], ByVal e As
[Link]) Handles [Link]
[Link]()
End Sub
Private Sub TextBox1_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Library Management System 2024-25
Else
If
checkTextbox(TextBox3) = True Then
[Link]()
End If
End If
Case Else
'dotnothing
End Select
End Sub
Private Sub
ComboboxBox1_KeyPress(ByVal sender As
Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Select Case strChar
Case
ChrW([Link])
If
checkCombobox(ComboBox1) = False Then
display_MsgBox("Please Fill in the
field")
Else
If
checkCombobox(ComboBox1) = True Then
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM BookCode
WHERE Code ='" & [Link] & "'",
MyConnection)
Library Management System 2024-25
MyReader =
[Link]()
While
[Link]
[Link]
= MyReader("Desc1")
End While
[Link]()
[Link]()
[Link]()
[Link]()
End If
End If
Case Else
'dotnothing
End Select
End Sub
Private Sub
ComboboxBox2_KeyPress(ByVal sender As
Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Select Case strChar
Case
ChrW([Link])
If
checkCombobox(ComboBox2) = False Then
Library Management System 2024-25
Else
If
checkTextbox(TextBox7) = True Then
[Link]()
End If
End If
Case Else
'dotnothing
End Select
End Sub
Private Sub TextBox8_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
End If
Case Else
'dotnothing
End Select
End Sub
Private Sub TextBox9_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Private Sub
ComboboxBox3_KeyPress(ByVal sender As
Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Select Case strChar
Case
ChrW([Link])
If
checkCombobox(ComboBox3) = False Then
display_MsgBox("Please Fill in the
field")
Else
If
checkCombobox(ComboBox3) = True Then
[Link]()
End If
End If
Case Else
'dotnothing
End Select
End Sub
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
End Function
Function checkTextbox(ByVal t As
TextBox) As Boolean
If [Link] = "" Then
Return False
Else
Return True
End If
End Function
Function display_MsgBox(ByVal myMsg
As String)
MsgBox(myMsg,
[Link], "LIS Version
1.00")
End Function
Function add_IntoCombobox1()
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM BookCode",
MyConnection)
MyReader =
[Link]()
While [Link]
Library Management System 2024-25
[Link](MyReader("Code"))
End While
[Link]()
[Link]()
[Link]()
End Function
Function add_IntoCombobox2()
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM BookType",
MyConnection)
MyReader =
[Link]()
While [Link]
[Link](MyReader("Type"))
End While
[Link]()
[Link]()
[Link]()
End Function
Private Sub
ComboBox2_SelectedIndexChanged(ByVal
sender As [Link], ByVal e As
[Link]) Handles
[Link]
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM BookType
WHERE Type ='" & [Link] & "'",
MyConnection)
Library Management System 2024-25
MyReader =
[Link]()
While [Link]
[Link] =
MyReader("Desc")
End While
[Link]()
[Link]()
[Link]()
End Sub
Private Sub
ComboBox1_SelectedIndexChanged(ByVal
sender As [Link], ByVal e As
[Link]) Handles
[Link]
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM BookCode
WHERE Code ='" & [Link] & "'",
MyConnection)
MyReader =
[Link]()
While [Link]
[Link] =
MyReader("Desc1")
End While
[Link]()
[Link]()
[Link]()
End Sub
Function add_BookIntoDatabase()
[Link]()
MyCommand = New
OleDbCommand("INSERT INTO BookDetails
Library Management System 2024-25
tempString22 =
[Link](2).ToString +
[Link](3).ToString
tempString2 =
get_Month(tempString22)
tempString3 =
[Link](4).ToString +
[Link](5).ToString +
[Link](6).ToString +
[Link](7).ToString
'returning string
Return tempString1 + "-" +
tempString2 + "-" + tempString3
End If
End Function
Function get_Month(ByVal oMonth As
String) As String
Dim monthString As String = "NIL"
Case "06"
monthString = "JUN"
Library Management System 2024-25
Case "07"
monthString = "JUL"
Case "08"
monthString = "AUG"
Case "09"
monthString = "SEP"
Case "10"
monthString = "OCT"
Case "11"
monthString = "NOV"
Case "12"
monthString = "DEC"
Case Else
'do nothing
End Select
Return monthString
End Function
Function display_MsgBox(ByVal myMsg As
String)
MsgBox(myMsg,
[Link], "LIS Version
1.00")
End Function
Function add_IntoCombobox1()
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM BookCode",
MyConnection)
MyReader =
[Link]()
While [Link]
[Link](MyReader("Code"))
End While
Library Management System 2024-25
[Link]()
[Link]()
[Link]()
End Function
Function add_IntoCombobox2()
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM BookType",
MyConnection)
MyReader =
[Link]()
While [Link]
[Link](MyReader("Type"))
End While
[Link]()
[Link]()
[Link]()
End Function
Private Sub
ComboBox2_SelectedIndexChanged(ByVal
sender As [Link], ByVal e As
[Link]) Handles
[Link]
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM BookType
WHERE Type ='" & [Link] & "'",
MyConnection)
MyReader =
[Link]()
Library Management System 2024-25
While [Link]
[Link] =
MyReader("Desc")
End While
[Link]()
[Link]()
[Link]()
End Sub
Private Sub
ComboBox1_SelectedIndexChanged(ByVal
sender As [Link], ByVal e As
[Link]) Handles
[Link]
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM BookCode
WHERE Code ='" & [Link] & "'",
MyConnection)
MyReader =
[Link]()
While [Link]
[Link] =
MyReader("Desc1")
End While
[Link]()
[Link]()
[Link]()
End Sub
Function add_BookIntoDatabase()
[Link]()
MyCommand = New
OleDbCommand("INSERT INTO BookDetails
VALUES('" & [Link] & "','" &
[Link] & "', '" & [Link] &
Library Management System 2024-25
Else
Return True
End If
End Function
Private Sub Button2_Click(ByVal
sender As [Link], ByVal e As
[Link]) Handles [Link]
[Link] =
MyReader("SN")
End While
[Link]()
[Link]()
[Link]()
If [Link] = [Link]
Then
Return True
Else
If [Link] <>
[Link] Then
Return False
End If
End If
End Function
End Class
Function checkIfAlreadyExists() As
Boolean
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM BookDetails
WHERE SN ='" & [Link] & "'",
MyConnection)
MyReader =
[Link]()
While [Link]
[Link] =
MyReader("SN")
End While
[Link]()
[Link]()
Library Management System 2024-25
[Link]()
If [Link] = [Link]
Then
Return True
Else
If [Link] <>
[Link] Then
Return False
End If
End If
End Function
End Class
Imports [Link]
Imports [Link]
Imports [Link]
Public Class frm_EditBookDetails
Inherits [Link]
Dim picPath As String = "C:\pictures\
[Link]"
Dim bookPicture As
[Link]
Dim MyConnection As New
OleDbConnection("Provider=[Link].O
LEDB.4.0;Data Source=C:\[Link]")
Dim MyCommand
Dim e As Exception
Dim MyCommand2
Dim MyReader As OleDbDataReader
Dim MyReader2 As OleDbDataReader
Library Management System 2024-25
bookPicture =
[Link](OpenFileDi
[Link])
picPath =
[Link]
[Link] = bookPicture
'[Link] =
[Link]
End Sub
Function display_MsgBox(ByVal myMsg
As String)
MsgBox(myMsg,
[Link], "LIS Version
1.00")
End Function
Function processDate(ByVal dateString
As String) As String
Dim strLength As Integer =
[Link]
Dim tempString1 As String
Dim tempString2 As String
Dim tempString22 As String
Dim tempString3 As String
tempString22 =
[Link](2).ToString +
[Link](3).ToString
tempString2 =
get_Month(tempString22)
tempString3 =
[Link](4).ToString +
[Link](5).ToString +
[Link](6).ToString +
[Link](7).ToString
'returning string
Return tempString1 + "-" +
tempString2 + "-" + tempString3
End If
End Function
Function get_Month(ByVal oMonth As
String) As String
Dim monthString As String = "NIL"
Case "06"
monthString = "JUN"
Case "07"
monthString = "JUL"
Case "08"
monthString = "AUG"
Case "09"
monthString = "SEP"
Case "10"
monthString = "OCT"
Case "11"
monthString = "NOV"
Case "12"
monthString = "DEC"
Case Else
'do nothing
End Select
Return monthString
End Function
Function updateBook()
[Link]()
Try
MyCommand = New
OleDbCommand("UPDATE BookDetails SET
BookName ='" & [Link] &
"',AuthorName = '" & [Link] &
"',BookType = '" & [Link] &
"',BookCode = '" & [Link] & "',
BookDes = '" & [Link] & "',
PublishDate = '" & [Link] & "',
LibDate = '" & [Link] & "',Picture
='" & picPath & "' WHERE SN = '" &
[Link] & "'", MyConnection)
[Link]()
Library Management System 2024-25
Catch c As Exception
MsgBox([Link])
End Try
[Link]()
[Link]()
End Function
Function loadBookDetails()
[Link]()
loadCodeDes()
loadTypeDes()
End Function
Private Sub TextBox1_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Select Case strChar
Case
ChrW([Link])
If [Link] = ""
Then
Else
If [Link] <>
"" Then
setPicture()
loadBookDetails()
[Link]()
End If
End If
Case Else
'nothing
End Select
End Sub
Private Sub TextBox2_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Select Case strChar
Library Management System 2024-25
Case
ChrW([Link])
If [Link] = ""
Then
Else
If [Link] <>
"" Then
[Link]()
End If
End If
Case Else
'nothing
End Select
End Sub
Private Sub TextBox3_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Select Case strChar
Case
ChrW([Link])
If [Link] = ""
Then
Else
If [Link] <>
"" Then
[Link]()
End If
End If
Case Else
Library Management System 2024-25
'nothing
End Select
End Sub
Private Sub combobox1_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Select Case strChar
Case
ChrW([Link])
If [Link] = ""
Then
Else
If [Link] <>
"" Then
[Link]()
End If
End If
Case Else
'nothing
End Select
End Sub
Private Sub combobox2_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Select Case strChar
Case
ChrW([Link])
Library Management System 2024-25
If [Link] = ""
Then
Else
If [Link] <>
"" Then
[Link]()
End If
End If
Case Else
'nothing
End Select
End Sub
Private Sub TextBox6_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Select Case strChar
Case
ChrW([Link])
If [Link] = ""
Then
Else
If [Link] <>
"" Then
[Link]()
End If
End If
Case Else
'nothing
End Select
End Sub
Library Management System 2024-25
Function loadBookCode()
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM BookCode",
MyConnection)
MyReader =
[Link]()
While [Link]
[Link](MyReader("Code"))
End While
[Link]()
[Link]()
[Link]()
End Function
Private Sub
frm_EditBookDetails_Load(ByVal sender As
[Link], ByVal e As
[Link]) Handles [Link]
loadBookCode()
loadBookType()
End Sub
Private Sub
ComboBox1_SelectedIndexChanged(ByVal
sender As [Link], ByVal e As
[Link]) Handles
[Link]
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM BookType
WHERE Type ='" & [Link] & "'",
MyConnection)
MyReader =
[Link]()
Library Management System 2024-25
While [Link]
[Link] = MyReader("Desc")
End While
[Link]()
[Link]()
[Link]()
End Sub
Private Sub
ComboBox2_SelectedIndexChanged(ByVal
sender As [Link], ByVal e As
[Link]) Handles
[Link]
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM BookCode
WHERE Code ='" & [Link] & "'",
MyConnection)
MyReader =
[Link]()
While [Link]
[Link] =
MyReader("Desc1")
End While
[Link]()
[Link]()
[Link]()
End Sub
Function getPicPath() As String
Dim myTempString As String
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM BookDetails
Library Management System 2024-25
[Link] =
MyReader("Desc")
End While
[Link]()
[Link]()
[Link]()
End Function
Function loadTypeDes()
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM BookCode
WHERE Code ='" & bookcode1 & "'",
MyConnection)
MyReader =
[Link]()
While [Link]
[Link] =
MyReader("Desc1")
End While
[Link]()
[Link]()
[Link]()
End Function
Function clearfields()
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
Library Management System 2024-25
[Link] = ""
[Link] = ""
End Function
Private Sub Button2_Click(ByVal
sender As [Link], ByVal e As
[Link]) Handles [Link]
clearfields()
[Link]()
End Sub
Private Sub Button1_Click(ByVal
sender As [Link], ByVal e As
[Link]) Handles [Link]
updateBook()
display_MsgBox("Book Details
Updated!")
clearfields()
End Sub
End Class
Imports [Link]
Imports [Link]
Imports [Link]
Function clearFields()
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
End Function
MsgBox(myMsg,
[Link], "LIS VERSION
1.00")
End Function
End Select
End Sub
Private Sub TextBox2_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
If
checkTextbox(TextBox4) = True Then
[Link]()
End If
End If
Case Else
'do nothing
End Select
End Sub
End Select
End Sub
Function checkTextbox(ByVal t As
TextBox)
If [Link] = "" Then
Return False
Else
Return True
End If
End Function
Private Sub Button2_Click(ByVal
sender As [Link], ByVal e As
[Link]) Handles [Link]
clearFields()
[Link]()
End Sub
Function RegisterReader()
IssueTag = "3"
IssueTagUsed = "0"
[Link]()
Try
MyCommand = New
OleDbCommand("INSERT INTO ReaderDetails
VALUES('" & [Link] & "','" &
[Link] & "', '" & [Link] &
"','" & [Link] & "','" &
[Link] & "','" & [Link] &
"','" & [Link] & "','" & IssueTag
& "','" & IssueTagUsed & "')",
MyConnection)
[Link]()
Catch c As Exception
MsgBox([Link])
End Try
Library Management System 2024-25
[Link]()
[Link]()
End Function
Function checkIfAlreadyExists() As
Boolean
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM ReaderDetails
WHERE ReaderNo ='" & [Link] & "'",
MyConnection)
MyReader =
[Link]()
While [Link]
[Link] =
MyReader("ReaderNo")
Library Management System 2024-25
End While
[Link]()
[Link]()
[Link]()
If [Link] = [Link]
Then
Return True
Else
If [Link] <>
[Link] Then
Return False
End If
End If
End Function
Function checkIfValidNumber() As
Boolean
Dim myBool As Boolean = False
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM ReaderNo ",
MyConnection)
MyReader =
[Link]()
While [Link]
If [Link] =
MyReader("RNo") Then
myBool = True
End If
End While
[Link]()
[Link]()
[Link]()
Return myBool
Library Management System 2024-25
End Function
End Class
Imports [Link]
Imports [Link]
Imports [Link]
Public Class frm_EditReaderDetails
Inherits [Link]
Library Management System 2024-25
Private Sub
frm_EditReaderDetails_Load(ByVal sender
As [Link], ByVal e As
[Link]) Handles [Link]
[Link]()
End Sub
Function loadReader()
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM ReaderDetails
WHERE ReaderNo ='" & [Link] & "'",
MyConnection)
MyReader =
[Link]()
While [Link]
[Link] =
MyReader("ReaderName")
[Link] =
MyReader("ReaderAdd1")
[Link] =
MyReader("ReaderAdd2")
Library Management System 2024-25
[Link] =
MyReader("ReaderPhone")
[Link] =
MyReader("ReaderCell")
[Link] =
MyReader("ReaderEmail")
End While
[Link]()
[Link]()
[Link]()
End Function
Function UpdateReaderDetails()
[Link]()
MyCommand = New
OleDbCommand("UPDATE ReaderDetails SET
ReaderName ='" & [Link] &
"',ReaderAdd1 = '" & [Link] &
"',ReaderAdd2 = '" & [Link] &
"',ReaderPhone = '" & [Link] & "',
ReaderCell = '" & [Link] & "',
ReaderEmail = '" & [Link] & "'
WHERE ReaderNo = '" & [Link] &
"'", MyConnection)
Try
[Link]()
Catch c As Exception
MsgBox([Link])
End Try
[Link]()
[Link]()
End Function
Private Sub TextBox1_KeyPress(ByVal
sender As Object, ByVal e As
Library Management System 2024-25
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Select Case strChar
Case
ChrW([Link])
If checkIfAlreadyExists()
= False Or [Link] = "" Then
display_MsgBox("Please Enter A Valid
Reader Number")
Else
If
checkIfAlreadyExists() = True Then
loadReader()
enablefields()
[Link]()
End If
End If
Case Else
'do nothing
End Select
End Sub
Case
ChrW([Link])
[Link]()
Case Else
'do nothing
End Select
End Sub
Private Sub TextBox3_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Select Case strChar
Case
ChrW([Link])
[Link]()
Case Else
'do nothing
End Select
End Sub
Private Sub TextBox4_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Select Case strChar
Case
ChrW([Link])
[Link]()
Case Else
'do nothing
End Select
Library Management System 2024-25
End Sub
Private Sub TextBox5_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Select Case strChar
Case
ChrW([Link])
[Link]()
Case Else
'do nothing
End Select
End Sub
Private Sub TextBox6_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Select Case strChar
Case
ChrW([Link])
[Link]()
Case Else
'do nothing
End Select
End Sub
Private Sub TextBox7_KeyPress(ByVal
sender As Object, ByVal e As
Library Management System 2024-25
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Select Case strChar
Case
ChrW([Link])
[Link]()
Case Else
'do nothing
End Select
End Sub
Function enablefields()
[Link] = True
[Link] = True
[Link] = True
[Link] = True
[Link] = True
[Link] = True
End Function
Function disablefields()
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
[Link] = False
End Function
Function display_MsgBox(ByVal myMsg
As String)
MsgBox(myMsg,
[Link], "LIS Version
1.00")
Library Management System 2024-25
End Function
Function checkIfAlreadyExists() As
Boolean
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM ReaderDetails
WHERE ReaderNo ='" & [Link] & "'",
MyConnection)
MyReader =
[Link]()
While [Link]
[Link] =
MyReader("ReaderNo")
End While
[Link]()
[Link]()
[Link]()
If [Link] = [Link]
Then
Return True
Else
If [Link] <>
[Link] Then
Return False
End If
End If
End Function
Private Sub Button3_Click(ByVal
sender As [Link], ByVal e As
[Link]) Handles [Link]
[Link]()
End Sub
Library Management System 2024-25
[Link]()
display_MsgBox("Reader Details
Updated")
End Sub
Function clearfields()
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
End Function
Imports [Link]
Imports [Link]
Imports [Link]
Public Class frm_IssueReturnBook
Inherits [Link]
Dim myFrm
Dim MyConnection As New
OleDbConnection("Provider=[Link].O
LEDB.4.0;Data Source=C:\[Link]")
Dim MyCommand
Dim e As Exception
Dim MyCommand2
Dim MyReader As OleDbDataReader
Dim MyReader2 As OleDbDataReader
Dim dbset As New DataSet
Dim dataA
Dim myduedate As String
[Link]()
Catch c As Exception
MsgBox("Error Message: " +
[Link], [Link], "LIS
VERSION 1.00")
End Try
End Sub
Private Sub TextBox1_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strChar
strChar = [Link]
Select Case strChar
Case
ChrW([Link])
If
checkIfBookAlreadyExists() = False Then
MsgBox("Book Number
Does Not Exist in the Database",
[Link], "LIS VERSION
1.00")
Else
If
checkIfBookAlreadyExists() = True Then
loadBookDetails()
[Link]()
End If
End If
Case Else
'do nothing
End Select
End Sub
Library Management System 2024-25
loadReaderDetails()
[Link]()
End If
End If
Case Else
'do nothing
End Select
End Sub
Function loadBookDetails()
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM BookDetails
WHERE SN = '" & [Link] & "'",
MyConnection)
Library Management System 2024-25
Try
MyReader =
[Link]()
While [Link]
[Link] =
MyReader("ISDN")
[Link] =
MyReader("BookName")
[Link] =
MyReader("AuthorName")
[Link] =
MyReader("BookStatus")
End While
Catch c As Exception
MsgBox("Error Message:" +
[Link], [Link], "LIS
VERSION 1.00")
End Try
[Link]()
[Link]()
[Link]()
End Function
Function loadReaderDetails()
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM ReaderDetails
WHERE ReaderNo = '" & [Link] &
"'", MyConnection)
Try
MyReader =
[Link]()
While [Link]
Library Management System 2024-25
[Link] =
MyReader("ReaderName")
[Link] =
MyReader("ReaderAdd1")
[Link] =
MyReader("IssueTag")
[Link] =
MyReader("IssueTagUsed")
End While
Catch c As Exception
MsgBox("Error Message:
Exception Thrown Please Enter a Valid
Reader Number" + [Link],
[Link], "LIS VERSION 1.00")
End Try
[Link]()
[Link]()
[Link]()
End Function
Function checkIfBookAlreadyExists()
As Boolean
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM BookDetails
WHERE SN ='" & [Link] & "'",
MyConnection)
Try
MyReader =
[Link]()
While [Link]
[Link] =
MyReader("SN")
End While
Library Management System 2024-25
[Link]()
[Link]()
[Link]()
Catch c As Exception
MsgBox("Error Message:" +
[Link], [Link], "LIS
VERSION 1.00")
End Try
If [Link] = [Link]
Then
Return True
Else
If [Link] <>
[Link] Then
Return False
End If
End If
End Function
Function checkIfReaderAlreadyExists()
As Boolean
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM ReaderDetails
WHERE ReaderNo ='" & [Link] & "'",
MyConnection)
Try
MyReader =
[Link]()
While [Link]
[Link] =
MyReader("ReaderNo")
End While
Library Management System 2024-25
[Link]()
[Link]()
[Link]()
Catch c As Exception
MsgBox("Error Message:" +
[Link], [Link], "LIS
VERSION 1.00")
End Try
If [Link] = [Link]
Then
Return True
Else
If [Link] <>
[Link] Then
Return False
End If
End If
End Function
Function loadCharges()
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM Charges",
MyConnection)
Try
MyReader =
[Link]()
While [Link]
[Link](MyReader("ChargeNo")
+ "." + MyReader("Desc") + ":$ " +
MyReader("Amount"))
End While
Catch c As Exception
Library Management System 2024-25
MsgBox("Error Message:" +
[Link], [Link], "LIS
VERSION 1.00")
End Try
[Link]()
[Link]()
[Link]()
End Function
Private Sub
frm_IssueReturnBook_Load(ByVal sender As
[Link], ByVal e As
[Link]) Handles [Link]
loadCharges()
End Sub
Private Sub Button4_Click(ByVal
sender As [Link], ByVal e As
[Link]) Handles [Link]
[Link]()
End Sub
Function clearFields()
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
Library Management System 2024-25
[Link] = ""
[Link] = ""
End Function
Private Sub Button3_Click(ByVal
sender As [Link], ByVal e As
[Link]) Handles [Link]
clearFields()
[Link]()
End Sub
Private Sub TextBox11_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strchar As String
strchar = [Link]
Select Case strchar
Case
ChrW([Link])
getDate()
[Link]()
Case Else
End Select
End Sub
Function getDate()
[Link] =
[Link]
End Function
Function getDueDate(ByVal myOption As
String) As String
Dim dueDate As Date
Select Case myOption
Case "[Link] Night:$ 3"
Return
[Link](1).ToShortDateString
Library Management System 2024-25
[Link]()
MsgBox(myMsg,
[Link], "LIS Version
1.00")
End Function
Function processDate(ByVal dateString
As String) As String
Dim strLength As Integer =
[Link]
Dim tempString1 As String
Dim tempString2 As String
Dim tempString22 As String
Dim tempString3 As String
tempString22 =
[Link](2).ToString +
[Link](3).ToString
tempString2 =
get_Month(tempString22)
tempString3 =
[Link](4).ToString +
[Link](5).ToString +
Library Management System 2024-25
[Link](6).ToString +
[Link](7).ToString
'returning string
Return tempString1 + "-" +
tempString2 + "-" + tempString3
End If
End Function
Function get_Month(ByVal oMonth As
String) As String
Dim monthString As String = "NIL"
Case "06"
monthString = "JUN"
Case "07"
monthString = "JUL"
Case "08"
monthString = "AUG"
Case "09"
monthString = "SEP"
Case "10"
monthString = "OCT"
Library Management System 2024-25
Case "11"
monthString = "NOV"
Case "12"
monthString = "DEC"
Case Else
'do nothing
End Select
Return monthString
End Function
Function updateBook()
[Link]()
Try
MyCommand = New
OleDbCommand("UPDATE BookDetails SET
BookName ='" & [Link] &
"',AuthorName = '" & [Link] &
"',BookType = '" & [Link] &
"',BookCode = '" & [Link] & "',
BookDes = '" & [Link] & "',
PublishDate = '" & [Link] & "',
LibDate = '" & [Link] & "',Picture
='" & picPath & "' WHERE SN = '" &
[Link] & "'", MyConnection)
[Link]()
Catch c As Exception
MsgBox([Link])
End Try
[Link]()
[Link]()
End Function
Function loadBookDetails()
[Link]()
Library Management System 2024-25
End Function
Private Sub TextBox1_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Library Management System 2024-25
Case Else
'nothing
End Select
[Link]()
[Link]()
End Function
Function addIntoReaderHistory()
[Link]()
MyCommand = New
OleDbCommand("INSERT INTO ReaderHistory
VALUES('" & [Link] & "','" &
[Link] & "', '" & [Link] &
"','" & [Link] & "','" &
[Link] & "')", MyConnection)
[Link]()
[Link]()
[Link]()
End Function
Function updateReaderIssueTag()
Dim CurrentIssueTag As String
Dim CurrentIssueTagUsed As String
Dim itag As Integer
Dim itagused As Integer
CurrentIssueTag =
getCurrentReaderIssueTag()
CurrentIssueTagUsed =
getCurrentReaderTagUsed()
itag = CInt(CurrentIssueTag)
itagused =
CInt(CurrentIssueTagUsed)
itag = itag - 1
itagused = itagused + 1
Library Management System 2024-25
CurrentIssueTag = [Link]
CurrentIssueTagUsed =
[Link]
[Link]()
MyCommand = New
OleDbCommand("UPDATE ReaderDetails SET
IssueTag ='" & CurrentIssueTag &
"',IssueTagUsed = '" &
CurrentIssueTagUsed & "' WHERE ReaderNo =
'" & [Link] & "'", MyConnection)
Try
[Link]()
Catch c As Exception
MsgBox([Link])
End Try
[Link]()
[Link]()
End Function
Function updateBookStatus()
Dim myStatus As String
myStatus = "ISSUED"
[Link]()
MyCommand = New
OleDbCommand("UPDATE BookDetails SET
BookStatus ='" & myStatus & "' WHERE SN =
'" & [Link] & "'", MyConnection)
Try
[Link]()
Catch c As Exception
MsgBox([Link])
End Try
[Link]()
Library Management System 2024-25
[Link]()
End Function
Function getCurrentReaderIssueTag()
As String
Dim myTag As String
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM ReaderDetails
WHERE ReaderNo = '" & [Link] &
"'", MyConnection)
MyReader =
[Link]()
While [Link]
myTag = MyReader("IssueTag")
End While
[Link]()
[Link]()
[Link]()
Return myTag
End Function
Function getCurrentReaderTagUsed() As
String
Dim myTag As String
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM ReaderDetails
WHERE ReaderNo = '" & [Link] &
"'", MyConnection)
MyReader =
[Link]()
While [Link]
Library Management System 2024-25
myTag =
MyReader("IssueTagUsed")
End While
[Link]()
[Link]()
[Link]()
Return myTag
End Function
Private Sub Button2_Click(ByVal
sender As [Link], ByVal e As
[Link]) Handles [Link]
If checkStatus() = False Then
MsgBox("Book Already Issued,
Please Choose Another Book!",
[Link], "LIS VERSION
1.00")
Else
If checkIssueTag() = False
Then
MsgBox("Reader Issue Tag
Used!", [Link], "LIS
VERSION 1.00")
Else
If checkStatus() = True
And checkIssueTag() = True Then
Try
issueBook()
updateReaderIssueTag()
updateBookStatus()
addIntoReaderHistory()
Library Management System 2024-25
MsgBox("Book Has
Been Issued", [Link],
"LIS VERSION 1.00")
Catch c As Exception
MsgBox([Link])
End Try
End If
End If
End If
End Sub
Function checkStatus() As Boolean
If getBookStatus() = "OK" Then
Return True
Else
If getBookStatus() = "ISSUED"
Then
Return False
End If
End If
End Function
Function getBookStatus() As String
Dim oStatus As String
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM BookDetails
WHERE SN ='" & [Link] & "'",
MyConnection)
MyReader =
[Link]()
While [Link]
oStatus =
MyReader("BookStatus")
End While
Library Management System 2024-25
[Link]()
[Link]()
[Link]()
Return oStatus
End Function
Function checkIssueTag() As Boolean
Dim oTag As String
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM ReaderDetails
WHERE ReaderNo ='" & [Link] & "'",
MyConnection)
MyReader =
[Link]()
While [Link]
oTag =
MyReader("IssueTagUsed")
End While
[Link]()
[Link]()
[Link]()
bookPicture =
[Link](OpenFileDi
[Link])
picPath =
[Link]
[Link] = bookPicture
'[Link] =
[Link]
End Sub
Function display_MsgBox(ByVal myMsg
As String)
MsgBox(myMsg,
[Link], "LIS Version
1.00")
End Function
Function processDate(ByVal dateString
As String) As String
Dim strLength As Integer =
[Link]
Dim tempString1 As String
Dim tempString2 As String
Dim tempString22 As String
Dim tempString3 As String
tempString22 =
[Link](2).ToString +
[Link](3).ToString
tempString2 =
get_Month(tempString22)
tempString3 =
[Link](4).ToString +
[Link](5).ToString +
[Link](6).ToString +
[Link](7).ToString
'returning string
Return tempString1 + "-" +
tempString2 + "-" + tempString3
End If
End Function
Function get_Month(ByVal oMonth As
String) As String
Dim monthString As String = "NIL"
Case "06"
monthString = "JUN"
Case "07"
monthString = "JUL"
Case "08"
monthString = "AUG"
Case "09"
monthString = "SEP"
Case "10"
monthString = "OCT"
Case "11"
monthString = "NOV"
Case "12"
monthString = "DEC"
Case Else
'do nothing
End Select
Return monthString
End Function
Function updateBook()
[Link]()
Try
MyCommand = New
OleDbCommand("UPDATE BookDetails SET
BookName ='" & [Link] &
"',AuthorName = '" & [Link] &
"',BookType = '" & [Link] &
"',BookCode = '" & [Link] & "',
BookDes = '" & [Link] & "',
PublishDate = '" & [Link] & "',
LibDate = '" & [Link] & "',Picture
='" & picPath & "' WHERE SN = '" &
[Link] & "'", MyConnection)
[Link]()
Library Management System 2024-25
Catch c As Exception
MsgBox([Link])
End Try
[Link]()
[Link]()
End Function
Function loadBookDetails()
[Link]()
loadCodeDes()
loadTypeDes()
End Function
Private Sub TextBox1_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Select Case strChar
Case
ChrW([Link])
If [Link] = ""
Then
Else
If [Link] <>
"" Then
setPicture()
loadBookDetails()
[Link]()
End If
End If
Case Else
'nothing
End Select
End Sub
Private Sub TextBox2_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Select Case strChar
Library Management System 2024-25
Case
ChrW([Link])
If [Link] = ""
Then
Else
If [Link] <>
"" Then
[Link]()
End If
End If
Case Else
'nothing
End Select
Imports [Link]
Imports [Link]
Imports [Link]
Public Class frm_ReturnBook
Inherits [Link]
Dim MyConnection As New
OleDbConnection("Provider=[Link].O
LEDB.4.0;Data Source=C:\[Link]")
Dim MyCommand
Dim e As Exception
Dim MyCommand2
Dim MyReader As OleDbDataReader
Dim MyReader2 As OleDbDataReader
Dim dbset As New DataSet
Dim dataA
Dim currentDate As Date
#Region " Windows Form Designer generated
code "
Library Management System 2024-25
End Sub
Me.TextBox7 = New
[Link]
Me.Label7 = New
[Link]
Me.TextBox6 = New
[Link]
Me.TextBox5 = New
[Link]
Me.Label6 = New
[Link]
Me.Label5 = New
[Link]
Me.TextBox4 = New
[Link]
Me.TextBox3 = New
[Link]
Me.TextBox2 = New
[Link]
Me.TextBox1 = New
[Link]
Me.Label4 = New
[Link]
Me.Label3 = New
[Link]
Me.Label2 = New
[Link]
Me.Label1 = New
[Link]
Me.Button1 = New
[Link]
Me.Button2 = New
[Link]
Me.Button3 = New
[Link]
Library Management System 2024-25
Me.TextBox10 = New
[Link]
[Link]()
[Link]()
'
'GroupBox1
'
[Link](Me.TextBox9)
[Link](Me.Label9)
[Link](Me.TextBox8)
[Link](Me.Label8)
[Link](Me.TextBox7)
[Link](Me.Label7)
[Link](Me.TextBox6)
[Link](Me.TextBox5)
[Link](Me.Label6)
[Link](Me.Label5)
[Link](Me.TextBox4)
[Link](Me.TextBox3)
[Link](Me.TextBox2)
[Link](Me.TextBox1)
[Link](Me.Label4)
[Link](Me.Label3)
Library Management System 2024-25
[Link](Me.Label2)
[Link](Me.Label1)
[Link] = New
[Link](8, 8)
[Link] = "GroupBox1"
[Link] = New
[Link](672, 192)
[Link] = 0
[Link] = False
[Link] = "Issue
Details"
'
'TextBox9
'
[Link] =
[Link]
[Link] = False
[Link] = New
[Link](248, 160)
[Link] = "TextBox9"
[Link] = New
[Link](232, 20)
[Link] = 17
[Link] = ""
'
'Label9
'
[Link] = New
[Link](136, 160)
[Link] = "Label9"
[Link] = 16
Library Management System 2024-25
[Link] = ""
'
'Label7
'
[Link] = New
[Link](344, 88)
[Link] = "Label7"
[Link] = 12
[Link] = "Issue Date"
'
'TextBox6
'
[Link] =
[Link]
[Link] = False
[Link] = New
[Link](456, 56)
[Link] = "TextBox6"
[Link] = New
[Link](208, 20)
[Link] = 11
[Link] = ""
'
'TextBox5
'
[Link] =
[Link]
[Link] = False
[Link] = New
[Link](456, 24)
[Link] = "TextBox5"
Library Management System 2024-25
[Link] = New
[Link](104, 20)
[Link] = 10
[Link] = ""
'
'Label6
'
[Link] = New
[Link](344, 56)
[Link] = "Label6"
[Link] = 9
[Link] = "Reader Name"
'
'Label5
'
[Link] = New
[Link](344, 24)
[Link] = "Label5"
[Link] = 8
[Link] = "Reader No"
'
'TextBox4
'
[Link] =
[Link]
[Link] = False
[Link] = New
[Link](120, 120)
[Link] = "TextBox4"
[Link] = New
[Link](208, 20)
[Link] = 7
[Link] = ""
'
Library Management System 2024-25
'TextBox3
'
[Link] =
[Link]
[Link] = False
[Link] = New
[Link](120, 88)
[Link] = "TextBox3"
[Link] = New
[Link](208, 20)
[Link] = 6
[Link] = ""
'
'TextBox2
'
[Link] =
[Link]
[Link] = False
[Link] = New
[Link](120, 56)
[Link] = "TextBox2"
[Link] = New
[Link](136, 20)
[Link] = 5
[Link] = ""
'
'TextBox1
'
[Link] = New
[Link](120, 24)
[Link] = "TextBox1"
[Link] = New
[Link](72, 20)
[Link] = 4
Library Management System 2024-25
[Link] = ""
'
'Label4
'
[Link] = New
[Link](8, 120)
[Link] = "Label4"
[Link] = 3
[Link] = "Author Name"
'
'Label3
'
[Link] = New
[Link](8, 88)
[Link] = "Label3"
[Link] = 2
[Link] = "BookName"
'
'Label2
'
[Link] = New
[Link](8, 56)
[Link] = "Label2"
[Link] = 1
[Link] = "Book SN"
'
'Label1
'
[Link] = New
[Link](8, 24)
[Link] = "Label1"
[Link] = 0
Library Management System 2024-25
[Link] = New
[Link](712, 104)
[Link] = "TextBox10"
[Link] = 4
[Link] = ""
[Link] = False
'
'frm_ReturnBook
'
[Link] = New
[Link](5, 13)
[Link] = New
[Link](690, 240)
[Link](Me.TextBox10)
[Link](Me.Button3)
[Link](Me.Button2)
[Link](Me.Button1)
[Link](Me.GroupBox1)
[Link] =
[Link]
dSingle
[Link] =
CType([Link]("$[Link]"),
[Link])
[Link] = False
[Link] = False
[Link] = "frm_ReturnBook"
[Link] =
[Link]
nterScreen
[Link] = "Return Book "
[Link](False)
Library Management System 2024-25
[Link](False)
End Sub
#End Region
End Sub
Function clearFields()
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
End Function
Function loadIssuedBook()
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM IssueBook
WHERE IssueNo ='" & [Link] & "'",
MyConnection)
MyReader =
[Link]()
While [Link]
Library Management System 2024-25
[Link] =
MyReader("SN")
[Link] =
MyReader("BookName")
[Link] =
MyReader("AuthorName")
[Link] =
MyReader("ReaderNo")
[Link] =
MyReader("ReaderName")
[Link] =
MyReader("idate")
[Link] =
MyReader("ddate")
[Link] =
MyReader("itype")
End While
[Link]()
[Link]()
[Link]()
End Function
Function checkIfAlreadyExists() As
Boolean
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM IssueBook
WHERE IssueNo ='" & [Link] & "'",
MyConnection)
Try
MyReader =
[Link]()
While [Link]
Library Management System 2024-25
[Link] =
MyReader("IssueNo")
End While
Catch c As Exception
MsgBox([Link])
End Try
[Link]()
[Link]()
[Link]()
If [Link] = [Link]
Then
Return True
Else
If [Link] <>
[Link] Then
Return False
End If
End If
End Function
Function updateReaderIssueTag()
Dim CurrentIssueTag As String
Dim CurrentIssueTagUsed As String
Dim itag As Integer
Dim itagused As Integer
CurrentIssueTag =
getCurrentReaderIssueTag()
CurrentIssueTagUsed =
getCurrentReaderTagUsed()
itag = CInt(CurrentIssueTag)
Library Management System 2024-25
itagused =
CInt(CurrentIssueTagUsed)
itag = itag + 1
itagused = itagused - 1
CurrentIssueTag = [Link]
CurrentIssueTagUsed =
[Link]
[Link]()
MyCommand = New
OleDbCommand("UPDATE ReaderDetails SET
IssueTag ='" & CurrentIssueTag &
"',IssueTagUsed = '" &
CurrentIssueTagUsed & "' WHERE ReaderNo =
'" & [Link] & "'", MyConnection)
Try
[Link]()
Catch c As Exception
MsgBox([Link])
End Try
[Link]()
[Link]()
End Function
Function updateBookStatus()
Dim myStatus As String
myStatus = "OK"
[Link]()
MyCommand = New
OleDbCommand("UPDATE BookDetails SET
BookStatus ='" & myStatus & "' WHERE SN =
'" & [Link] & "'", MyConnection)
Try
Library Management System 2024-25
[Link]()
Catch c As Exception
MsgBox([Link])
End Try
[Link]()
[Link]()
End Function
Function getCurrentReaderIssueTag()
As String
Dim myTag As String
[Link]()
updateBookStatus()
MsgBox("Book Returned
Successfully", [Link],
"LIS VERSION 1.00")
clearFields()
End Sub
Library Management System 2024-25
End Class
Imports [Link]
Imports [Link]
Imports [Link]
Public Class frm_ChangePassword
Inherits [Link]
Dim status As String
Dim MyConnection As New
OleDbConnection("Provider=[Link].O
LEDB.4.0;Data Source=C:\[Link]")
Library Management System 2024-25
Dim MyCommand
Dim e As Exception
Dim MyCommand2
Dim MyReader As OleDbDataReader
Dim MyReader2 As OleDbDataReader
Dim dbset As New DataSet
Dim dataA
Dim currentDate As Date
Dim tempID As String
Dim tempStatus As String
End Sub
End If
End If
[Link](disposing)
End Sub
<[Link]()
> Private Sub InitializeComponent()
Dim resources As
[Link] = New
[Link](GetType(
frm_ChangePassword))
Me.Label1 = New
[Link]
Me.Label2 = New
[Link]
Me.Label3 = New
[Link]
Me.GroupBox1 = New
[Link]
Me.TextBox4 = New
[Link]
Me.Label4 = New
[Link]
Me.TextBox3 = New
[Link]
Me.TextBox2 = New
[Link]
Me.TextBox1 = New
[Link]
Me.Button1 = New
[Link]
Me.Button2 = New
[Link]
Me.Button3 = New
[Link]
[Link]()
Library Management System 2024-25
[Link]()
'
'Label1
'
[Link] = New
[Link](24, 24)
[Link] = "Label1"
[Link] = 0
[Link] = "User ID"
'
'Label2
'
[Link] = New
[Link](24, 56)
[Link] = "Label2"
[Link] = 1
[Link] = "Old Password"
'
'Label3
'
[Link] = New
[Link](24, 120)
[Link] = "Label3"
[Link] = 2
[Link] = "Confirm
Password"
'
'GroupBox1
'
[Link](Me.TextBox4)
[Link](Me.Label4)
[Link](Me.TextBox3)
Library Management System 2024-25
[Link](Me.TextBox2)
[Link](Me.TextBox1)
[Link](Me.Label1)
[Link](Me.Label2)
[Link](Me.Label3)
[Link] = New
[Link](8, 8)
[Link] = "GroupBox1"
[Link] = New
[Link](288, 152)
[Link] = 3
[Link] = False
[Link] = "User
Details"
'
'TextBox4
'
[Link] = New
[Link](136, 120)
[Link] = "TextBox4"
[Link] = New
[Link](136, 20)
[Link] = 7
[Link] = ""
'
'Label4
'
[Link] = New
[Link](24, 88)
Library Management System 2024-25
[Link] = "Label4"
[Link] = 6
[Link] = "New Password"
'
'TextBox3
'
[Link] = New
[Link](136, 88)
[Link] = "TextBox3"
[Link] = New
[Link](136, 20)
[Link] = 5
[Link] = ""
'
'TextBox2
'
[Link] = New
[Link](136, 56)
[Link] = "TextBox2"
[Link] = New
[Link](136, 20)
[Link] = 4
[Link] = ""
'
'TextBox1
'
[Link] = New
[Link](136, 24)
[Link] = "TextBox1"
[Link] = New
[Link](136, 20)
[Link] = 3
[Link] = ""
'
Library Management System 2024-25
'Button1
'
[Link] = New
[Link](24, 168)
[Link] = "Button1"
[Link] = New
[Link](88, 32)
[Link] = 4
[Link] = "Change
Password"
'
'Button2
'
[Link] = New
[Link](112, 168)
[Link] = "Button2"
[Link] = New
[Link](88, 32)
[Link] = 5
[Link] = "Ignore"
'
'Button3
'
[Link] = New
[Link](200, 168)
[Link] = "Button3"
[Link] = New
[Link](80, 32)
[Link] = 6
[Link] = "Exit"
'
'frm_ChangePassword
'
Library Management System 2024-25
[Link] = New
[Link](5, 13)
[Link] = New
[Link](298, 208)
[Link](Me.Button3)
[Link](Me.Button2)
[Link](Me.Button1)
[Link](Me.GroupBox1)
[Link] =
[Link]
dSingle
[Link] =
CType([Link]("$[Link]"),
[Link])
[Link] = False
[Link] = False
[Link] = "frm_ChangePassword"
[Link] =
[Link]
nterScreen
[Link] = "Change Password"
[Link](False)
[Link](False)
End Sub
#End Region
Private Sub Button3_Click(ByVal
sender As [Link], ByVal e As
[Link]) Handles [Link]
[Link]()
End Sub
Library Management System 2024-25
Function clearfields()
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
End Function
Function checkTextbox(ByVal t As
TextBox) As Boolean
If [Link] = "" Then
Return (False)
Else
Return True
End If
End Function
Function displayMsg(ByVal myMsgText
As String)
MsgBox(myMsgText,
[Link], "LIS Version
1.00")
End Function
Function updatePassword()
Dim temp1 As String =
[Link]
Dim temp2 As String =
[Link]
[Link]()
Try
MyCommand = New
OleDbCommand("UPDATE Login SET pass = '"
& temp1 & "' WHERE UserID = '" & temp2 &
"'", MyConnection)
[Link]()
Catch c As Exception
MsgBox([Link])
Library Management System 2024-25
End Try
[Link]()
[Link]()
End Function
Function checkUserID() As Boolean
Dim tempID As String
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM Login WHERE
UserID ='" & [Link] & "'",
MyConnection)
MyReader =
[Link]()
While [Link]
tempID = MyReader("UserID")
End While
[Link]()
[Link]()
[Link]()
Function checkConfirmPassword() As
Boolean
If [Link] = [Link]
Then
Return True
Else
Library Management System 2024-25
If [Link] <>
[Link] Then
Return False
End If
End If
End Function
Function checkpassword() As Boolean
Dim tempPass As String
[Link]()
MyCommand = New
OleDbCommand("SELECT * FROM Login WHERE
UserID ='" & [Link] & "'",
MyConnection)
MyReader =
[Link]()
While [Link]
tempPass = MyReader("pass")
End While
[Link]()
[Link]()
[Link]()
[Link]()
Case Else
'do nothing
End Select
End Sub
Private Sub TextBox4_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strChar As String
strChar = [Link]
Select Case strChar
Case
ChrW([Link])
If checkConfirmPassword()
= False Then
displayMsg("The
Confirm Password does not match the New
Password, Please Enter Again")
ElseIf
checkConfirmPassword() = True Then
[Link]()
End If
Case Else
'do nothing
End Select
End Sub
Private Sub Button2_Click(ByVal
sender As [Link], ByVal e As
[Link]) Handles [Link]
clearfields()
End Sub
Library Management System 2024-25
[Link]()
End Function
End Class
Imports [Link]
Imports [Link]
Imports [Link]
End Sub
Private components As
[Link]
Me.Button2 = New
[Link]
Me.Button3 = New
[Link]
CType(Me.DataGrid1,
[Link])
.BeginInit()
[Link]()
[Link]()
'
'TextBox1
'
[Link] = New
[Link](120, 56)
[Link] = "TextBox1"
[Link] = New
[Link](360, 20)
[Link] = 0
[Link] = ""
'
'CheckBox1
'
[Link] = New
[Link](104, 24)
[Link] = "CheckBox1"
[Link] = 1
[Link] = "Find By
Name"
'
'CheckBox2
'
Library Management System 2024-25
[Link] = New
[Link](248, 24)
[Link] = "CheckBox2"
[Link] = 2
[Link] = "Find By
ISDN"
'
'CheckBox3
'
[Link] = New
[Link](392, 24)
[Link] = "CheckBox3"
[Link] = 3
[Link] = "Find By
Author"
'
'DataGrid1
'
[Link] = ""
[Link] =
[Link]
[Link] = New
[Link](8, 104)
[Link] = "DataGrid1"
[Link] = New
[Link](592, 152)
[Link] = 4
'
'GroupBox1
'
[Link](Me.TextBox1)
[Link](Me.CheckBox2)
Library Management System 2024-25
[Link](Me.CheckBox3)
[Link](Me.CheckBox1)
[Link] = New
[Link](8, 8)
[Link] = "GroupBox1"
[Link] = New
[Link](592, 88)
[Link] = 5
[Link] = False
[Link] = "Search
Criteria"
'
'Button1
'
[Link] = New
[Link](88, 272)
[Link] = "Button1"
[Link] = New
[Link](128, 23)
[Link] = 4
[Link] = "Search"
'
'Button2
'
[Link] = New
[Link](224, 272)
[Link] = "Button2"
[Link] = New
[Link](144, 23)
[Link] = 6
[Link] = "Ignore"
Library Management System 2024-25
'
'Button3
'
[Link] = New
[Link](376, 272)
[Link] = "Button3"
[Link] = New
[Link](136, 23)
[Link] = 7
[Link] = "Exit"
'
'frm_FindBook
'
[Link] = New
[Link](5, 13)
[Link] = New
[Link](610, 304)
[Link](Me.Button3)
[Link](Me.Button2)
[Link](Me.GroupBox1)
[Link](Me.DataGrid1)
[Link](Me.Button1)
[Link] =
[Link]
dSingle
[Link] =
CType([Link]("$[Link]"),
[Link])
[Link] = False
[Link] = False
[Link] = "frm_FindBook"
[Link] =
[Link]
nterScreen
Library Management System 2024-25
End Sub
#End Region
dataA = New
OleDbDataAdapter(MyCommand)
[Link](dbset, "BookDetails")
[Link] = True
[Link] =
[Link]("BookDetails")
MyReader =
[Link]()
While [Link]
End While
[Link]()
[Link]()
[Link]()
End Function
Function findByAuthorName()
[Link]()
[Link]()
MyCommand = New
OleDbCommand("Select * from BookDetails
WHERE AuthorName LIKE '" & [Link]
& "%'", MyConnection)
dataA = New
OleDbDataAdapter(MyCommand)
[Link](dbset, "BookDetails")
[Link] = True
[Link] =
[Link]("BookDetails")
Library Management System 2024-25
MyReader =
[Link]()
While [Link]
End While
[Link]()
[Link]()
[Link]()
End Function
Function findByISDN()
[Link]()
[Link]()
MyCommand = New
OleDbCommand("Select * from BookDetails
WHERE ISDN = '" & [Link] & "'",
MyConnection)
dataA = New
OleDbDataAdapter(MyCommand)
[Link](dbset, "BookDetails")
[Link] = True
[Link] =
[Link]("BookDetails")
MyReader =
[Link]()
While [Link]
End While
[Link]()
[Link]()
[Link]()
End Function
Function clearFields()
[Link] = ""
Library Management System 2024-25
[Link]()
[Link]()
[Link]()
End Function
Else
End If
End If
End If
End Sub
Private Sub TextBox1_KeyPress(ByVal
sender As Object, ByVal e As
[Link])
Handles [Link]
Dim strChar
strChar = [Link]
Select Case strChar
Library Management System 2024-25
Case
ChrW([Link])
If checkTextbox(TextBox1)
= False Then
MsgBox("Please Enter
the Value to search",
[Link], "LIS Version
1.00")
Else
If
checkTextbox(TextBox1) = True Then
[Link]()
End If
End If
Case Else
'do nothing
End Select
End Sub
Function checkTextbox(ByVal t As
TextBox) As Boolean
If [Link] = "" Then
Return False
Else
If [Link] <> "" Then
Return True
End If
End If
End Function
Private Sub
CheckBox1_CheckedChanged(ByVal sender As
[Link], ByVal e As
[Link]) Handles
[Link]
Library Management System 2024-25
[Link] = False
[Link] = False
End Sub
Private Sub
CheckBox2_CheckedChanged(ByVal sender As
[Link], ByVal e As
[Link]) Handles
[Link]
[Link] = False
[Link] = False
End Sub
Private Sub
CheckBox3_CheckedChanged(ByVal sender As
[Link], ByVal e As
[Link]) Handles
[Link]
[Link] = False
[Link] = False
End Sub
End Class
Library Management System 2024-25
TESTING
This section deals with the details of the classes of tests which must
be conducted to validate the functions, performance, and the constraints.
This is achieved basically by the means of testing which plays a vital role
in the development of the software. The various low level testing which
can be grouped on a broader sense are discussed as below:
USER MANUAL
Library Management System 2024-25
CONCLUSION
We are thankful to all the people who have given us their hearty support
in this endeavor, we again thank out college for providing us all the
facilities and thanks to our beloved HOD Mrs. Jaya Sharma.
REFERENCE