Documente Academic
Documente Profesional
Documente Cultură
2.1 Introduction
System analysis is detailed study of various operations performed by a system
and their relationship within and outside of the system. The main aspect of the
analysis is defining their boundaries of the system and there interaction with the
other system. Data gathering, traditional or structured is only a part of the
system analysis. The next spaces are examining the data gathered, assessing the
situation, looking at their alternatives and recommending a solution.
The goal of this project is to install computers that will enable the library staff to
schedule items with a professional scheduling application and maintain books of
items with a relational database that will suit specific needs of the library.
Currently, the college has old, inefficient filing system that is hard to manage.
Everything is done by writing. The college and staff have strongly stated an
urgent need to upgrade their current system into a more efficient automated
system. While the current system is working fine for their daily practice, it is
however, inefficient and time consuming.
The application also enables to create the report. The intention of the system is a
computerization of the college library management system. This system studies
the problems existing in the manual functioning in the current system and tries
to resolve by computerizing it. The project title “COLLEGE LIBRARY
MANAGEMENT SYSTEM” is an interactive system and highly user friendly
system. The system covers almost all the functional areas of the record keeping
and preparation reports. This system is developed in Visual Basic language with
SQL as back end. VB is a very suitable one for such an application. We make
use of its intermediate Visual Basic 6.0. The system is a menu driven one. The
user-friendly menus will help the end user to work on it without any operational
difficulty.
and inventory purposes. Other details are done manually. If it is there, the
details of the student, staff, book and other details are given to the management.
There will more wastage of energy and time. By making this into computerized
we can maintain high accuracy and reliability. To overcome these problems, we
are implementing a computerized system with combination of VB and SQL. Thus
these difficulties exist in the current system; there is a need to modify the
existing system. So we have to introduce a new system.
The present system has some limitations;
They are;
Report generations are difficult.
Existing system can adapt to changes quickly it cannot be updated quickly.
Since all the process is done manually, a lot of mistakes can occur.
When changes are made, there is chance to get errors in very large.
Searches and retrievals of student or staff information are time consuming.
Needs lot of paper work and manual effort.
Paper file require large storage space and it is time consuming.
The system is not very much accurate.
Danger of losing files in some cases.
Calculating fine is so difficult.
Since these difficulties exist in current system, there is need to modify the
existing system. So we have to introduce a new system.
Our main aim with this project is to reduce the manpower and to increase the
works. By using this software we can store students, book details and other
details and retrieval of data is very easy. The detail of the students, books, staff
details is stored in computer through this system. It reduces the effort of storing
details in file. This will reduce the man power.
2.3.1 Justification Of The Proposed System
The proposed system is designed to eliminate all the disadvantages of the
existing system. The proposed system deals with the manipulation of various
registrations, record keeping and generation of reports.
The proposed system aims at:
Speed in processing
Reduce man power
Security of data
Reduce or stop errors
Availability of reports
Less storage space
Fast accessing of data
Better user interaction
If any particular information about an event it is needed it can be collected from
database file. The primary aim of the new system is to speed up the process.
There is chance of errors since checking all the files validate the data.
File maintenance is an integral part of any software. This deal with various
operations that the users want to perform on database files. In the proposed
‘COLLEGE LIBRARY MANAGEMENT SYSTEM’ the user has the facility to provide
password to the program, so that the unauthorized access can be prevented. The
user may also want to remove the unwanted data from the files. The designing of
the proposed system is done in such a way that it handles all the above
problems efficiently.
2.3.2 Benefits Of The Proposed System
The proposed system simplifies the task of storage of data and report generation.
Automatic and regular backup of data safeguard the stored valuable information
so as to retrieve as and when required. All these factors make a very clear
picture of avoiding redundancy of data to the maximum. The whole of this
enable to restore the less time taken and more effective output retrieved giving
the maximum man power.
The proposed system will ease the processing the job and keeps track of up to
date data. The proposed will reduced the following disadvantages and it is easy
to use:
Difficult to maintain
Problem of report generation
Record finding problems
Wastage of money
Wastage of storage space
Data redundancy
Problem of security
6
COLLEGE LIBRARY MANAGEMENT SYSTEM
project also developed for automating the operations in an industry with simple
graphical user interface. The front end is developed in VB and the back end SQL
ORACLE.
In this feasibility analysis study we will consider operational, technical and
economic aspects to determine the project’s feasibility, along with any types of
risks that this project may encounter.
They are:
Economic Feasibility
Technical Feasibility
Operational Feasibility
Economic Feasibility
This feasibility study deals with cost benefit analysis. Benefits may be tangible or
intangible. For our candidate system, it provides better performance and also
reduces cost of processing. Reducing cost means reduction of staff and there is
no need to provide candidate with purpose and book records. Our
candidate/proposed system don’t want any special computer memory or
processor. So there will be no hardware cost related for implementing this new
candidate system.
As the system works as a computer based system, reduces lot of manual effort
and thus man power cost. It also introduces faith and goodwill and can be
measured as intangible benefit. As we are generated from the computer based
system it reduces cost and naturally error prone as compare to manual
typewriter. The hardware cost of computerization has come down drastically over
the past few years but for the software. The number of nodes to be used in the
system can be increased and one can start off with the bare minimum.
In the case of the proposed system the hardware in the present system is
sufficient for system development. Even after development, updating more
maintenance of the proposed system does not pause as very high-priced
concern; the system is economically feasible too.
Technical Feasibility
7
COLLEGE LIBRARY MANAGEMENT SYSTEM
As candidate system doesn’t need any special type of software and hardware. For
the smooth running of candidate system it needs only a small part of the
memory. it needs software’s like Visual Basic 6.0, Oracle etc. The memory size
required by the candidate system will be between 3 to 4 MB in the hard disk.
Thus the system is not technically costlier to implement on a new system.
Nothing extra is needed for this.
As the department having, the required hardware and software there is no
question of increasing the cost of implementing the proposed system considering
the above mentioned criteria, the proposed system is technically feasible, and
the proposed system can be developed with the existing facility and minimum
expenditure. We can strongly say that it is technically feasible, sincere there will
not be much difficulty in getting the required resources for the development and
for maintenance of the system as well. Since all the systems use Pentium II
processors and above the system need not be upgraded. All the other resources
needed for the development for the software as well as the maintenance of the
same is available in the organization. Here we are utilizing the resources, which
are available already.
Operational Feasibility
This is concerned with library aspect. The end users of the developing system
will be library staff. The staff will schedule the item and file the database with
basic information, and the staff will update the record to the database each time
when transaction or registration is done. The additional person will be selected
from the current library staff. It is unclear that who will be a backup staff
member at this point, and we will assume that the backup staff member has at
least a basic knowledge of operating the computer. However, the impact of this
person is minor to the project because the vendors are offering a full-scale
training session for the current employees.
Training the library will be feasible because of their competency in operating the
computer. The library field-related applications are not much sensitive, but thus
with an extensive training program upon receiving necessary training for the
customized application(s) the software will be useful and will offer satisfaction
over the current filing system. Therefore, it can be included that this project is
operationally feasible.
9
COLLEGE LIBRARY MANAGEMENT SYSTEM
10
COLLEGE LIBRARY MANAGEMENT SYSTEM
Oracle 9i SQL
Epitomizing high-quality service in a service-driven marketplace, Oracle 9i
maximizes the usefulness of traditional business and intranet applications while
also providing users with the functionality needed to foster the growth of the
emerging hosted applications market on the internet.
Oracle 9i builds on historic oracle strengths to offer the first complete and
simple software infrastructure for the internet’s next generation of intelligent,
collaborative applications. Oracle 9i new features expedite delivery of the
performance, scalability, and availability that is crucial to providing hosted
service software for anyone, anywhere and anytime.
2.5.3 Hardware Specification
In order to implement a new system the choice of a processor with maximum
possible speed is made. There should be sufficient memory to store data and
software tools for efficient processing.
Processor : 2 GHZ or better Intel or AMD processor
Hard Disk Capacity : 10 GB (minimum)
Ram Capacity : 256 MB (minimum)
Display : XGA (1024*768) or higher-
Resolution monitor
Keyboard/Mouse : Keyboard and Microsoft mouse
Drive : CD ROM or DVD ROM drive
Printer : Laser Printer
11
COLLEGE LIBRARY MANAGEMENT SYSTEM
LEVEL 0
College library
Request Response
User management User
system
LEVEL 1
MES T.O Abdulla Memorial college kunnukara
Add
category tblCategory
12
COLLEGE LIBRARY MANAGEMENT SYSTEM
Add
tblDep
departm
ent
Semester
Add
details tblSemester
Admin semester
Add
employ tblemp
ee
tblBookreg
View tblBookissue
tblFine
LEVEL 1
MES T.O Abdulla Memorial college kunnukara
Book
tblCategory
register
tblBookissue
13
COLLEGE LIBRARY MANAGEMENT SYSTEM
Member tblSemester
register
tblMember
tblMember
Book
tblBookreg
issue &
return tblBookissue
Employee register
tblDep
Book tblExampaper
reference
register tblNewspaper
tblMagazine
tblBookissue
Fine
register tblFine
Log
register tblLog
3.1 Introduction
System design provides understanding and procedural details necessary for
implementing the system recommended in the feasibility study. The term design
describes a final system. It refers to the technical specification is that will be
applied in implementing a candidate system. It also includes the construction of
program testing.
14
COLLEGE LIBRARY MANAGEMENT SYSTEM
15
COLLEGE LIBRARY MANAGEMENT SYSTEM
16
COLLEGE LIBRARY MANAGEMENT SYSTEM
The input that are introduced to the project as like the student and staff
information, book details, book issue, book return etc. All these data are
introduced through the input design. The layout of the screen is designed and
documented with use of a display layout sheet or its equivalent. Many computer
systems have software packages that assist in the design and documentation
process.
17
COLLEGE LIBRARY MANAGEMENT SYSTEM
18
COLLEGE LIBRARY MANAGEMENT SYSTEM
19
COLLEGE LIBRARY MANAGEMENT SYSTEM
20
COLLEGE LIBRARY MANAGEMENT SYSTEM
1. Administrator Module
This is the main module in the proposed system. The admin can register and
retrieve the details of any members in college, details of new books etc. And can
also update, create, delete the record of membership as per requirement
plans……….
There are five sub modules in the administrator module:
Category Register
Allow the administrator to register each category of books available in the library
like novel, study based, story etc.
Department Register
Allow
MES the
T.O administrator
Abdulla Memorialto college
registerkunnukara
each department in the college
Semester Register
Here the admin should register each department and semester in the college.
Employee details
Allow the administrator to register new employee and update the member
records.
Employee details
Admin can view the details in book register, book issue and return, fine and
over due details of the late returns
2. Employee Module
21
COLLEGE LIBRARY MANAGEMENT SYSTEM
In this module employee can manage transactions of books and check the
availability and view the details of book……….
22
COLLEGE LIBRARY MANAGEMENT SYSTEM
23
COLLEGE LIBRARY MANAGEMENT SYSTEM
This module is mainly concerned with details of book issuing. In this module, we
can issue book to the various members with the help of library card provided to
them. A member can take maximum 3 books with their card. The card facility is
different for both staffs and students in college. It allows that a staff can take 5
books from library. The report of book issue can also be allowed here. The
reports are only for viewing purpose we can’t edit in to it. Thus by creating
reports we can view the book issuing details.
Book Return
It contain the details of book returns. Automatic fine calculation is performed
here for all the late returns. If the book is not returned within the specified date,
fine is calculated by taking the date difference. According to the no: of days that
the book can hold, the fine is calculated differently for both staffs and students.
In order to maintain the returning details a report is prepared, which contain the
whole details of book return.
24
COLLEGE LIBRARY MANAGEMENT SYSTEM
25
COLLEGE LIBRARY MANAGEMENT SYSTEM
Sub loaddata()
With MSHFlexGrid1
.ColWidth(0) = 1500
.ColWidth(1) = 1500
End With
remove.Enabled = False
update.Enabled = False
End Sub
Private Sub MSHFlexGrid1_Click()
update.Enabled = True
remove.Enabled = True
Add.Enabled = False
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
cname = MSHFlexGrid1.TextMatrix(r, 1)
End Sub
Private Sub remove_Click()
If rs.State = 1 Then rs.Close
rs.Open "update tblCategory set status=0 where category_id ='" & (id.Text) & "'"
MsgBox "removed"
Add.Enabled = True
remove.Enabled = False
update.Enabled = False
loaddata
clear
loadid
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
MES T.O Abdulla
rs.Open "select *Memorial college kunnukara
from tblCategory where category_id='" & (id.Text) & "'"
If rs.EOF Then
MsgBox "not found"
Else
If rs.State = 1 Then rs.Close
rs.Open "update tblCategory set category_name='" & (cname.Text) & "' where
category_id='" & (id.Text) & "'"
MsgBox "updated"
End If
loaddata
clear
loadid
27
COLLEGE LIBRARY MANAGEMENT SYSTEM
End Sub
Department form
Private Sub Add_Click()
If id.Text <> "" Then
If rs.State = 1 Then rs.Close
rs.Open "select count(*) from tblDep where dept_name='" & dname.Text & " ' ",
con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
MsgBox "data already exist"
Else
If rs.State = 1 Then rs.Close
rs.Open "insert into tblDep values('" & (id.Text) & "','" & (dname.Text) & "',1)",
con, adOpenDynamic, adLockOptimistic
MsgBox "inserted"
End If
End If
clear
loadid
loaddata
End Sub
Sub clear()
id.Text = ""
MES T.O Abdulla Memorial college kunnukara
dname.Text = ""
End Sub
Private Sub Command1_Click()
Unload Me
MDIForm1.Show
End Sub
Private Sub Command2_Click()
id.Text = ""
dname.Text = ""
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
28
COLLEGE LIBRARY MANAGEMENT SYSTEM
loadid
End Sub
Private Sub Form_Load()
connection
loadid
loaddata
remove.Enabled = False
update.Enabled = False
End Sub
Sub loadid()
If rs.State = 1 Then rs.Close
rs.Open "select count(*)from tblDep", con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
id.Text = rs(0) + 1
Else
id.Text = 1
End If
End Sub
Sub loaddata()
With MSHFlexGrid1
.ColWidth(0) = 1000
.ColWidth(1) = 1500
End With
If rs.State = 1 Then rs.Close
MES T.O"select
rs.Open Abdulla Memorial collegefrom
dept_id,dept_name kunnukara
tblDep where status =1", con,
adOpenDynamic, adLockOptimistic
Set MSHFlexGrid1.DataSource = rs
End Sub
Private Sub MSHFlexGrid1_Click()
update.Enabled = True
remove.Enabled = True
Add.Enabled = False
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
dname = MSHFlexGrid1.TextMatrix(r, 1)
End Sub
29
COLLEGE LIBRARY MANAGEMENT SYSTEM
Employee form
Private Sub Add_Click()
If id.Text <> "" Then
If rs.State = 1 Then rs.Close
30
COLLEGE LIBRARY MANAGEMENT SYSTEM
rs.Open "select count(*) from tblemp where emp_name='" & empname.Text & " '
", con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
MsgBox "data already exist"
Else
If rs.State = 1 Then rs.Close
rs.Open "insert into tblemp values('" & (id.Text) & "','" & (empname.Text) & "','" &
(phno.Text) & "','" & (addr.Text) & "','" & (mail.Text) & "','" & (pw.Text) & "',1)",
con, adOpenDynamic, adLockOptimistic
MsgBox "inserted"
End If
End If
clear
loadid
loaddata
End Sub
Private Sub Command1_Click()
Unload Me
MDIForm1.Show
End Sub
Private Sub Command2_Click()
id.Text = " "
empname.Text = " "
phno.Text
MES = " " Memorial college kunnukara
T.O Abdulla
addr.Text = " "
mail.Text = ""
pw.Text = " "
Add.Enabled = True
update.Enabled = True
remove.Enabled = True
End Sub
Private Sub empname_KeyPress(KeyAscii As Integer)
If KeyAscii = 32 Or KeyAscii = 46 Or KeyAscii = 8 Or KeyAscii = 127 Or (KeyAscii
> 64 And KeyAscii < 91) Or (KeyAscii > 96 And KeyAscii < 123) Then
Else
empname.SetFocus: SendKeys "{End}": SendKeys "{BACKSPACE}"
31
COLLEGE LIBRARY MANAGEMENT SYSTEM
End If
End Sub
Private Sub Form_Load()
connection
loadid
loaddata
End Sub
Sub loaddata()
With MSHFlexGrid1
.ColWidth(0) = 1000
.ColWidth(1) = 1500
.ColWidth(2) = 1500
.ColWidth(3) = 2000
.ColWidth(4) = 2000
.ColWidth(5) = 1500
End With
If rs.State = 1 Then rs.Close
rs.Open "select emp_id,emp_name,phno,address,email,password from tblemp
where status =1", con, adOpenDynamic, adLockOptimistic
Set MSHFlexGrid1.DataSource = rs
End Sub
Sub loadid()
MES T.O Abdulla
If rs.State Memorial
= 1 Then college kunnukara
rs.Close
rs.Open "select count(*)from tblemp", con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
id.Text = rs(0) + 1
Else
id.Text = 1
End If
End Sub
Sub clear()
id.Text = " "
empname.Text = " "
phno.Text = " "
addr.Text = " "
mail.Text = ""
32
COLLEGE LIBRARY MANAGEMENT SYSTEM
update.Enabled = False
remove.Enabled = False
loaddata
clear
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
rs.Open "select * from tblemp where emp_id='" & (id.Text) & "'"
If rs.EOF Then
MsgBox "not found"
Else
If rs.State = 1 Then rs.Close
rs.Open "update tblemp set emp_name=' " & (empname.Text) & " ',phno='" &
(phno.Text) & "',address='" & (addr.Text) & "',password ='" & (pw.Text) &
"',email='" & mail & "' where emp_id='" & (id.Text) & "'"
MsgBox "updated"
End If
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
MES T.O Abdulla Memorial college kunnukara
clear
End Sub
Semester form
Dim con As New ADODB.connection
Dim rs As New ADODB.Recordset
Private Sub Add_Click()
If id.Text <> "" Then
If rs.State = 1 Then rs.Close
rs.Open "select count(*) from tblSemester where sem_name='" & (sname.Text) & "
'", con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
MsgBox "data already exist"
Else
34
COLLEGE LIBRARY MANAGEMENT SYSTEM
Add.Enabled = False
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
sname = MSHFlexGrid1.TextMatrix(r, 1)
MES T.O Abdulla Memorial college kunnukara
End Sub
Private Sub remove_Click()
If rs.State = 1 Then rs.Close
rs.Open "update tblSemester set status=0 where sem_id='" & (id.Text) & "'"
MsgBox "removed"
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
rs.Open "select * from tblSemester where sem_id='" & (id.Text) & "'"
If rs.EOF Then
MsgBox "not found"
36
COLLEGE LIBRARY MANAGEMENT SYSTEM
Else
If rs.State = 1 Then rs.Close
rs.Open "update tblSemester set sem_name=' " & (sname.Text) & " ' where
sem_id='" & (id.Text) & "'"
MsgBox "updated"
End If
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
End Sub
Book register form
Dim category As String
Private Sub Add_Click()
If no.Text <> "" Then
If rs.State = 1 Then rs.Close
rs.Open "select category_id from tblCategory where category_name='" &
Combo1.Text & "'", con, adOpenDynamic, adLockOptimistic
MES T.O Abdulla Memorial college kunnukara
cid = rs(0)
If rs.State = 1 Then rs.Close
rs.Open "insert into tblBookreg values('" & (no.Text) & "','" & (title.Text) & "', '" &
(author.Text) & "','" & (pname.Text) & "' ,'" & (cid) & "','" & (price.Text) & "','" &
(qty.Text) & "','" & Format(DTPicker1.Value, "dd-mmm-yy") & "',1)", con,
adOpenDynamic, adLockOptimistic
MsgBox "inserted"
End If
clear
loadid
loaddata
End Sub
Private Sub author_KeyPress(KeyAscii As Integer)
If KeyAscii = 32 Or KeyAscii = 46 Or KeyAscii = 8 Or KeyAscii = 127 Or (KeyAscii
> 64 And KeyAscii < 91) Or (KeyAscii > 96 And KeyAscii < 123) Then
Else
37
COLLEGE LIBRARY MANAGEMENT SYSTEM
Combo1.Text = ""
price.Text = ""
qty.Text = ""
bdate.Text = ""
End Sub
Private Sub MSHFlexGrid1_Click()
update.Enabled = True
remove.Enabled = True
Add.Enabled = False
r = MSHFlexGrid1.Row
no = MSHFlexGrid1.TextMatrix(r, 0)
title = MSHFlexGrid1.TextMatrix(r, 1)
author = MSHFlexGrid1.TextMatrix(r, 2)
pname = MSHFlexGrid1.TextMatrix(r, 3)
Combo1 = MSHFlexGrid1.TextMatrix(r, 4)
price = MSHFlexGrid1.TextMatrix(r, 5)
qty = MSHFlexGrid1.TextMatrix(r, 6)
MES T.O Abdulla Memorial college kunnukara
bdate = MSHFlexGrid1.TextMatrix(r, 7)
End Sub
Private Sub price_Change()
If Not IsNumeric(price.Text) Then
price.SetFocus: SendKeys "{End}": SendKeys "{BACKSPACE}"
End If
End Sub
Private Sub qty_Change()
If Not IsNumeric(qty.Text) Then
qty.SetFocus: SendKeys "{End}": SendKeys "{BACKSPACE}"
End If
End Sub
Private Sub remove_Click()
If rs.State = 1 Then rs.Close
rs.Open "update tblBookreg set status=0 where book_no='" & (no.Text) & "'"
MsgBox "removed"
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
40
COLLEGE LIBRARY MANAGEMENT SYSTEM
loaddata
clear
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
rs.Open "select category_id from tblCategory where category_name='" &
Combo1.Text & "'", con, adOpenDynamic, adLockOptimistic
category = rs(0)
If rs.State = 1 Then rs.Close
rs.Open "select * from tblBookreg where book_no='" & (no.Text) & "'"
If rs.EOF Then
MsgBox "not found"
Else
If rs.State = 1 Then rs.Close
rs.Open "update tblBookreg set title='" & (title.Text) & "' ,author='" &
(author.Text) & "',p_name='" & (pname.Text) & "',category_id='" & (category) &
"',price='" & (price.Text) & "',qty='" & (qty.Text) & "',b_date='" &
Format(DTPicker1.Value, "dd-mmm-yy") & "' where book_no='" & (no.Text) & "'",
con, adOpenDynamic, adLockOptimistic
MsgBox "updated"
End If
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
loadid
End Sub
Member form
Dim category As String
Dim n As String
Private Sub Add_Click()
If id.Text <> "" Then
If rs.State = 1 Then rs.Close
41
COLLEGE LIBRARY MANAGEMENT SYSTEM
rs.Open "select count(*) from tblMember where name='" & mname.Text & " ' ",
con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
MsgBox "data already exist"
Else
If rs.State = 1 Then rs.Close
rs.Open "select sem_id from tblSemester where sem_name='" & Combo1.Text &
"'", con, adOpenDynamic, adLockOptimistic
sem = rs(0)
If rs.State = 1 Then rs.Close
rs.Open "insert into tblMember values('" & (id.Text) & "','" & (mname.Text) & "', '"
& (n) & "','" & (sem) & "','" & (phno.Text) & "',1)", con, adOpenDynamic,
adLockOptimistic
MsgBox "inserted"
End If
End If
clear
MES T.O Abdulla Memorial college kunnukara
loadid
loaddata
End Sub
Sub clear()
id.Text = ""
mname.Text = ""
Option1.Value = False
Option2.Value = False
Combo1.Text = ""
phno.Text = ""
End Sub
Private Sub Command1_Click()
Unload Me
MDIForm1.Show
End Sub
Private Sub Command2_Click()
id.Text = ""
mname.Text = ""
Option1.Value = False
42
COLLEGE LIBRARY MANAGEMENT SYSTEM
Option2.Value = False
Combo1.Text = ""
phno.Text = ""
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loadid
End Sub
Private Sub mname_KeyPress(KeyAscii As Integer)
If KeyAscii = 32 Or KeyAscii = 46 Or KeyAscii = 8 Or KeyAscii = 127 Or (KeyAscii
> 64 And KeyAscii < 91) Or (KeyAscii > 96 And KeyAscii < 123) Then
Else
mname.SetFocus: SendKeys "{End}": SendKeys "{BACKSPACE}"
End If
End Sub
Private Sub Option1_Click()
nMES
= "f" T.O Abdulla Memorial college kunnukara
End Sub
Private Sub Option2_Click()
n = "m"
End Sub
Private Sub phno_Change()
If Len(phno.Text) > 10 Then
MsgBox "enter a valid phone number"
phno.Text = ""
End If
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
rs.Open "select * from tblMember where card_id='" & (id.Text) & "'"
If rs.EOF Then
MsgBox "not found"
Else
If rs.State = 1 Then rs.Close
rs.Open "select sem_id from tblSemester where sem_name='" & Combo1.Text &
"'", con, adOpenDynamic, adLockOptimistic
43
COLLEGE LIBRARY MANAGEMENT SYSTEM
.ColWidth(0) = 1000
.ColWidth(1) = 2000
.ColWidth(2) = 700
.ColWidth(3) = 1000
.ColWidth(4) = 2000
End With
If rs.State = 1 Then rs.Close
rs.Open "select
tblMember.card_id,tblMember.name,tblMember.gender,tblSemester.sem_name,t
blMember.phone from tblMember,tblSemester where
tblMember.sem_id=tblSemester.sem_id and tblMember.status =1 ", con,
adOpenDynamic, adLockOptimistic
Set MSHFlexGrid1.DataSource = rs
MES
End T.O Abdulla Memorial college kunnukara
Sub
Sub loadid()
If rs.State = 1 Then rs.Close
rs.Open "select count(*)from tblMember", con, adOpenDynamic,
adLockOptimistic
If rs(0) > 0 Then
id.Text = rs(0) + 1
Else
id.Text = 1
End If
End Sub
Private Sub MSHFlexGrid1_Click()
update.Enabled = True
remove.Enabled = True
Add.Enabled = False
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
mname = MSHFlexGrid1.TextMatrix(r, 1)
gender = MSHFlexGrid1.TextMatrix(r, 2)
Combo1 = MSHFlexGrid1.TextMatrix(r, 3)
phno = MSHFlexGrid1.TextMatrix(r, 4)
End Sub
Private Sub remove_Click()
45
COLLEGE LIBRARY MANAGEMENT SYSTEM
46
COLLEGE LIBRARY MANAGEMENT SYSTEM
End Sub
Private Sub cid_LostFocus()
If cid <> "" Then
If rs.State = 1 Then rs.Close
rs.Open "select count(*)from tblMember where card_id='" & (cid.Text) & "'", con,
adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
Else
MsgBox "card id does not exist"
End If
End If
End Sub
Private Sub Command1_Click()
Unload Me
MDIForm1.Show
End Sub
Private Sub cmdReturn_Click()
If rs.State = 1 Then rs.Close
rs.Open "update tblBookissue set return_date='" & Format(DTPicker1.Value, "dd-
mmm-yy") & "', status='returned' where issue_id='" & (id.Text) & "'", con,
adOpenDynamic, adLockOptimistic
MsgBox "updated"
Add.Enabled = True
update.Enabled = False
loaddata
clear
loadid
End Sub
Private Sub Command2_Click()
id.Text = ""
cid.Text = ""
no.Text = ""
idate.Text = ""
ddate.Text = ""
rdate.Text = ""
Option1.Value = False
47
COLLEGE LIBRARY MANAGEMENT SYSTEM
Option2.Value = False
rdate.Enabled = False
DTPicker3.Enabled = False
cmdReturn.Enabled = False
Add.Enabled = True
update.Enabled = False
loadid
End Sub
Private Sub DTPicker1_Change()
idate.Text = DTPicker1.Value
ddate.Text = DateAdd("d", 15, DTPicker1.Value)
End Sub
Private Sub DTPicker2_Change()
ddate.Text = DTPicker2.Value
End Sub
Private Sub DTPicker3_Change()
rdate.Text = DTPicker3.Value
End Sub
Private Sub Form_Load()
connection
loadid
loaddata
cmdReturn.Enabled = False
update.Enabled = False
End Sub
Sub loadid()
If rs.State = 1 Then rs.Close
rs.Open "select count(*)from tblBookissue", con, adOpenDynamic,
adLockOptimistic
If rs(0) > 0 Then
id.Text = rs(0) + 1
Else
id.Text = 1
End If
End Sub
Private Sub MSHFlexGrid1_Click()
48
COLLEGE LIBRARY MANAGEMENT SYSTEM
update.Enabled = True
Add.Enabled = False
rdate.Enabled = True
DTPicker3.Enabled = True
cmdReturn.Enabled = True
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
cid = MSHFlexGrid1.TextMatrix(r, 1)
no = MSHFlexGrid1.TextMatrix(r, 2)
idate
MES =T.O
MSHFlexGrid1.TextMatrix(r, 3)
Abdulla Memorial college kunnukara
ddate = MSHFlexGrid1.TextMatrix(r, 4)
rdate = MSHFlexGrid1.TextMatrix(r, 5)
g = MSHFlexGrid1.TextMatrix(r, 6)
If g = "Student" Then
Option1.Value = True
Else
Option2.Value = True
End If
End Sub
Sub loaddata()
With MSHFlexGrid1
.ColWidth(0) = 1000
.ColWidth(1) = 1000
.ColWidth(2) = 1000
.ColWidth(3) = 1000
.ColWidth(4) = 1000
.ColWidth(5) = 1000
.ColWidth(6) = 2000
End With
If rs.State = 1 Then rs.Close
rs.Open"select
tblBookissue.issue_id,tblMember.card_id,tblBookreg.book_no,tblBookissue.iss_d
ate,tblBookissue.due_date,tblBookissue.return_date,tblBookissue.usertype from
tblBookissue,tblMember,tblBookreg where
tblBookissue.card_id=tblMember.card_id and tblBookissue.book_no
=tblBookreg.book_no ", con, adOpenDynamic, adLockOptimistic
49
COLLEGE LIBRARY MANAGEMENT SYSTEM
Set MSHFlexGrid1.DataSource = rs
End Sub
Private Sub no_LostFocus()
If no <> "" Then
If rs.State = 1 Then rs.Close
rs.Open "select count(*)from tblBookreg where book_no='" & (no.Text) & "'", con,
adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
MES T.O
If rs.State = Abdulla Memorial college kunnukara
1 Then rs.Close
rs.Open "select status from tblBookissue where book_no='" & (no.Text) & "'", con,
adOpenDynamic, adLockOptimistic
If rs.BOF = False Then
If rs(0) = "issued" Then
MsgBox "Book is already issued"
no.Text = ""
End If
End If
Else
MsgBox "book number does not exist"
End If
End If
End Sub
Private Sub Option1_Click()
g = "Student"
End Sub
Private Sub Option2_Click()
g = "Staff"
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
rs.Open "select * from tblBookissue where issue_id='" & (id.Text) & "'"
If rs.EOF Then
MsgBox "not found"
Else
If rs.State = 1 Then rs.Close
rs.Open "update tblBookissue set card_id='" & cid.Text & "',book_no='" &
50
COLLEGE LIBRARY MANAGEMENT SYSTEM
51
COLLEGE LIBRARY MANAGEMENT SYSTEM
update.Enabled = False
End Sub
Sub clear()
id.Text = ""
Combo1.Text = ""
subject.Text = ""
year.Text = ""
nop.Text = ""
End Sub
Sub loaddata()
With MSHFlexGrid1
.ColWidth(0) = 1000
.ColWidth(1) = 1000
.ColWidth(2) = 2000
.ColWidth(3) = 1000
.ColWidth(4) = 1000
End With
If rs.State = 1 Then rs.Close
rs.Open "select
tblExampaper.q_id,tblDep.dept_name,tblExampaper.subject,tblExampaper.year,
tblExampaper.no_pages from tblExampaper,tblDep where
tblExampaper.dept_id=tblDep.dept_id ", con, adOpenDynamic,
adLockOptimistic
Set MSHFlexGrid1.DataSource = rs
End Sub
Sub loaddep()
If rs.State = 1 Then rs.Close
rs.Open "select dept_name from tblDep", con, adOpenDynamic,
adLockOptimistic
If rs.BOF = False Then
rs.MoveFirst
While Not rs.EOF
Combo1.AddItem rs(0)
rs.MoveNext
Wend
End If
53
COLLEGE LIBRARY MANAGEMENT SYSTEM
loaddata
End Sub
Sub loadid()
If rs.State = 1 Then rs.Close
rs.Open "select count(*)from tblExampaper", con, adOpenDynamic,
adLockOptimistic
If rs(0) > 0 Then
id.Text = rs(0) + 1
Else
id.Text = 1
End If
End Sub
Private Sub MSHFlexGrid1_Click()
update.Enabled = True
remove.Enabled = True
Add.Enabled = False
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
Combo1 = MSHFlexGrid1.TextMatrix(r, 1)
subject = MSHFlexGrid1.TextMatrix(r, 2)
year = MSHFlexGrid1.TextMatrix(r, 3)
nop = MSHFlexGrid1.TextMatrix(r, 4)
End Sub
Private Sub remove_Click()
If rs.State = 1 Then rs.Close
rs.Open "delete from tblExampaper where q_id='" & (id.Text) & "'"
MsgBox "removed"
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
rs.Open "select * from tblExampaper where q_id='" & (id.Text) & "'"
54
COLLEGE LIBRARY MANAGEMENT SYSTEM
If rs.EOF Then
MsgBox "not found"
Else
If rs.State = 1 Then rs.Close
rs.Open "select dept_id from tblDep where dept_name='" & Combo1.Text & "'",
con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then dep = rs(0)
If rs.State = 1 Then rs.Close
rs.Open "update tblExampaper set dept_id='" & dep & "' ,subject='" &
(subject.Text) & "',year='" & (year.Text) & "',no_pages='" & (nop.Text) & "' where
q_id='" & (id.Text) & "'"
MsgBox "updated"
End If
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
loadid
End Sub
Newspaper form
Private Sub Add_Click()
If id.Text <> "" Then
If rs.State = 1 Then rs.Close
rs.Open "select count(*) from tblNewspaper where name='" & (npname.Text) & "'
", con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
MsgBox "data already exist"
Else
If rs.State = 1 Then rs.Close
rs.Open "insert into tblNewspaper values('" & id.Text & "','" & lan.Text & "','" &
npname.Text & "','" & no.Text & "','" & pname.Text & "',1)", con, adOpenDynamic,
adLockOptimistic
MsgBox "inserted"
End If
55
COLLEGE LIBRARY MANAGEMENT SYSTEM
End If
clear
loadid
loaddata
End Sub
Private Sub Command1_Click()
Unload Me
Frmreference.Show
End Sub
Private Sub Command2_Click()
id.Text = ""
lan.Text = ""
npname.Text = ""
no.Text = ""
pname = ""
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loadid
End Sub
Private Sub Form_Load()
connection
loadid
loaddata
remove.Enabled = False
update.Enabled = False
End Sub
Sub loadid()
If rs.State = 1 Then rs.Close
rs.Open "select count(*)from tblNewspaper", con, adOpenDynamic,
adLockOptimistic
If rs(0) > 0 Then
id.Text = rs(0) + 1
Else
id.Text = 1
End If
56
COLLEGE LIBRARY MANAGEMENT SYSTEM
End Sub
Sub clear()
id.Text = ""
lan.Text = ""
npname.Text = ""
no.Text = ""
pname = ""
End Sub
Sub loaddata()
With MSHFlexGrid1
.ColWidth(0) = 1000
.ColWidth(1) = 2000
.ColWidth(2) = 2000
.ColWidth(3) = 1000
.ColWidth(4) = 2000
End With
If rs.State = 1 Then rs.Close
rs.Open "select newspaper_id,language,name,no_pages,p_name from
tblNewspaper", con, adOpenDynamic, adLockOptimistic
Set MSHFlexGrid1.Recordset = rs
End Sub
Private Sub MSHFlexGrid1_Click()
update.Enabled = True
remove.Enabled = True
Add.Enabled = False
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
lan = MSHFlexGrid1.TextMatrix(r, 1)
npname = MSHFlexGrid1.TextMatrix(r, 2)
no = MSHFlexGrid1.TextMatrix(r, 3)
pname = MSHFlexGrid1.TextMatrix(r, 4)
End Sub
Private Sub no_Change()
If Not IsNumeric(no.Text) Then
no.SetFocus: SendKeys "{End}": SendKeys "{BACKSPACE}"
End If
57
COLLEGE LIBRARY MANAGEMENT SYSTEM
End Sub
Private Sub remove_Click()
If rs.State = 1 Then rs.Close
rs.Open "delete from tblNewspaper where newspaper_id='" & (id.Text) & "'"
MsgBox "removed"
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
loadid
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
rs.Open "select * from tblNewspaper where newspaper_id='" & (id.Text) & "'"
If rs.EOF Then
MsgBox "not found"
Else
If rs.State = 1 Then rs.Close
rs.Open "update tblNewspaper set language='" & lan.Text & "',name=' " &
(npname.Text) & " ',no_pages='" & no.Text & "', p_name='" & (pname.Text) & "'
where newspaper_id='" & (id.Text) & "'", con, adOpenDynamic, adLockOptimistic
MsgBox "updated"
End If
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
loadid
End Sub
Magazine form
Private Sub Add_Click()
If id.Text <> "" Then
If rs.State = 1 Then rs.Close
58
COLLEGE LIBRARY MANAGEMENT SYSTEM
rs.Open "select count(*) from tblMagazine where name='" & (mname.Text) & "' ",
con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
MsgBox "data already exist"
Else
If rs.State = 1 Then rs.Close
rs.Open "insert into tblMagazine values('" & id.Text & "','" & mname.Text & "','" &
pname.Text & "'," & Val(no.Text) & ",1)", con, adOpenDynamic, adLockOptimistic
MsgBox "inserted"
End If
End If
clear
loadid
loaddata
End Sub
Private Sub Command1_Click()
Unload Me
Frmreference.Show
End Sub
Private Sub Command2_Click()
id.Text = ""
mname.Text = ""
pname.Text = ""
no.Text = ""
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loadid
End Sub
Private Sub Form_Load()
connection
clear
loadid
loaddata
End Sub
Sub clear()
59
COLLEGE LIBRARY MANAGEMENT SYSTEM
id.Text = ""
mname.Text = ""
pname.Text = ""
no.Text = ""
End Sub
Sub loaddata()
With MSHFlexGrid1
.ColWidth(0) = 1500
.ColWidth(1) = 1500
.ColWidth(2) = 1500
.ColWidth(3) = 2000
End With
If rs.State = 1 Then rs.Close
rs.Open "select magazine_id ,name,p_name,no_pages from tblMagazine where
status=1", con, adOpenDynamic, adLockOptimistic
Set MSHFlexGrid1.DataSource = rs
End Sub
Sub loadid()
If rs.State = 1 Then rs.Close
rs.Open "select count(*) from tblMagazine", con, adOpenDynamic,
adLockOptimistic
If rs(0) > 0 Then
id.Text = rs(0) + 1
Else
id.Text = 1
End If
End Sub
Private Sub MSHFlexGrid1_Click()
update.Enabled = True
remove.Enabled = True
Add.Enabled = False
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
mname = MSHFlexGrid1.TextMatrix(r, 1)
pname = MSHFlexGrid1.TextMatrix(r, 2)
no = MSHFlexGrid1.TextMatrix(r, 3)
60
COLLEGE LIBRARY MANAGEMENT SYSTEM
End Sub
Private Sub no_Change()
If Not IsNumeric(no.Text) Then
no.SetFocus: SendKeys "{End}": SendKeys "{BACKSPACE}"
End If
End Sub
Private Sub remove_Click()
If rs.State = 1 Then rs.Close
rs.Open "update tblMagazine set status=0 where magazine_id='" & (id.Text) & "'"
MsgBox "removed"
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
rs.Open "select * from tblMagazine where magazine_id='" & (id.Text) & "'"
If rs.EOF Then
MsgBox "not found"
Else
If rs.State = 1 Then rs.Close
rs.Open "update tblMagazine set name=' " & (mname.Text) & " ', p_name='" &
(pname.Text) & "',no_pages=" & Val(no.Text) & " where magazine_id='" & (id.Text)
& "'"
MsgBox "updated"
End If
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
loadid
End Sub
61
COLLEGE LIBRARY MANAGEMENT SYSTEM
Fine form
Private Sub Add_Click()
If rs.State = 1 Then rs.Close
rs.Open "insert into tblFine values('" & (id.Text) & "' , '" & (Combo1.Text) & "','" &
Format(DTPicker1.Value, "dd-mmm-yy") & "','" & (days.Text) & "','" & (amt.Text) &
"')", con, adOpenDynamic, adLockOptimistic
MsgBox "inserted"
If rs.State = 1 Then rs.Close
rs.Open "update tblBookissue set return_date='" & Format(DTPicker1.Value, "dd-
mmm-yy") & "', status='returned' where issue_id='" & (id.Text) & "'", con,
adOpenDynamic, adLockOptimistic
clear
loadid
loaddata
End Sub
Sub comboload()
If rs.State = 1 Then rs.Close
rs.Open "select issue_id from tblBookissue", con, adOpenDynamic,
adLockOptimistic
If rs.BOF = False Then
rs.MoveFirst
While Not rs.EOF
Combo1.AddItem rs(0)
rs.MoveNext
Wend
End If
loaddata
End Sub
Private Sub amt_Change()
If Not IsNumeric(amt.Text) Then
amt.SetFocus: SendKeys "{End}": SendKeys "{BACKSPACE}"
End If
End Sub
Private Sub Command1_Click()
Unload Me
62
COLLEGE LIBRARY MANAGEMENT SYSTEM
MDIForm1.Show
End Sub
Private Sub Command2_Click()
id.Text = ""
Combo1.Text = ""
rdate.Text = ""
days.Text = ""
amt.Text = ""
End Sub
Private Sub days_Change()
If Not IsNumeric(days.Text) Then
days.SetFocus: SendKeys "{End}": SendKeys "{BACKSPACE}"
End If
End Sub
Private Sub DTPicker1_Change()
If Combo1.Text <> "" Then
rdate.Text = DTPicker1.Value
If rs.State = 1 Then rs.Close
rs.Open "select due_date from tblBookissue where issue_id='" & Combo1.Text &
"'", con, adOpenDynamic, adLockOptimistic
dd = CDate(rs(0))
days = Date - dd
amt = Val(days) * 5
Else
MsgBox "Please select issue id"
End If
End Sub
Private Sub Form_Load()
connection
loadid
loaddata
loadBookissue
End Sub
Sub loadBookissue()
If rs.State = 1 Then rs.Close
Combo1.clear
63
COLLEGE LIBRARY MANAGEMENT SYSTEM
.ColWidth(4) = 1500
.ColWidth(5) = 1500
End With
If rs.State = 1 Then rs.Close
rs.Open "select
tblFine.fine_id,tblBookissue.issue_id,tblFine.return_date,tblFine.no_days,tblFine
.fine_amt from tblFine,tblBookissue where
tblFine.issue_id=tblBookissue.issue_id ", con, adOpenDynamic,
adLockOptimistic
Set MSHFlexGrid1.DataSource = rs
End Sub
Private Sub MSHFlexGrid1_Click()
Add.Enabled = False
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
Combo1 = MSHFlexGrid1.TextMatrix(r, 1)
rdate = MSHFlexGrid1.TextMatrix(r, 2)
days = MSHFlexGrid1.TextMatrix(r, 3)
amt = MSHFlexGrid1.TextMatrix(r, 4)
End Sub
Log register form
Private Sub Add_Click()
If rs.State = 1 Then rs.Close
rs.Open "insert into tblLog (log_id,name,article,logdate,time1,status) values('" &
(id.Text) & "','" & (lname.Text) & "','" & (article.Text) & "','" &
Format(DTPicker1.Value, "dd-mmm-yy") & "','" & (t1.Text) & "','1')", con,
adOpenDynamic, adLockOptimistic
MsgBox "inserted"
clear
loadid
loaddata
End Sub
Private Sub Command1_Click()
Unload Me
MDIForm1.Show
65
COLLEGE LIBRARY MANAGEMENT SYSTEM
End Sub
Private Sub Command2_Click()
id.Text = ""
lname.Text = ""
article.Text = ""
ldate.Text = ""
t1.Text = ""
t2.Text = ""
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
End Sub
Private Sub DTPicker1_Change()
ldate.Text = DTPicker1.Value
End Sub
Private Sub Form_Load()
connection
loadid
loaddata
t1 = Time
t2 = Time
update.Enabled = False
End Sub
Sub loaddata()
If rs.State = 1 Then rs.Close
rs.Open "select log_id,name,article,logdate,time1,time2 from tblLog ", con,
adOpenDynamic, adLockOptimistic
Set MSHFlexGrid1.DataSource = rs
End Sub
Sub loadid()
If rs.State = 1 Then rs.Close
rs.Open "select count(*) from tblLog", con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
id.Text = rs(0) + 1
Else
id.Text = 1
66
COLLEGE LIBRARY MANAGEMENT SYSTEM
End If
End Sub
Sub clear()
id.Text = ""
lname.Text = ""
article.Text = ""
ldate.Text = ""
t1.Text = ""
t2.Text = ""
End Sub
Private Sub MSHFlexGrid1_Click()
update.Enabled = True
remove.Enabled = True
Add.Enabled = False
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
lname = MSHFlexGrid1.TextMatrix(r, 1)
article = MSHFlexGrid1.TextMatrix(r, 2)
ldate = MSHFlexGrid1.TextMatrix(r, 3)
t1 = MSHFlexGrid1.TextMatrix(r, 4)
t2 = Time
End Sub
Private Sub returned_Click()
If rs.State = 1 Then rs.Close
rs.Open "update tblLog set time2='" & t2.Text & "', status='returned' where
log_id='" & (id.Text) & "'", con, adOpenDynamic, adLockOptimistic
MsgBox "updated"
Add.Enabled = True
update.Enabled = False
loaddata
clear
loadid
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
rs.Open "select * from tblLog where log_id='" & (id.Text) & "'"
67
COLLEGE LIBRARY MANAGEMENT SYSTEM
If rs.EOF Then
MsgBox "not found"
Else
If rs.State = 1 Then rs.Close
rs.Open "update tblLog set name='" & (lname.Text) & "' ,article='" & (article.Text)
& "',logdate='" & Format(DTPicker1.Value, "dd-mmm-yy") & "',time1='" & (t1.Text)
& "',time2='" & (t2.Text) & "' where log_id='" & (id.Text) & "'"
MsgBox "updated"
End If
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
End Sub
68
COLLEGE LIBRARY MANAGEMENT SYSTEM
In this project system testing are done through three different phases they are
Unit Testing, Validation Testing and Integration testing. Each testing will go
through the specified path and achieve target of producing a good software
product.
Unit Testing
Unit testing changes made in an existing system or a new program. As programs
are invariably related to each other and interact in a total system. So we had
done this project as single project as different modules. Since each project is
related as output of one module is the input to other module. So each portion is
tested against entire system is tested. During the testing the actual output is
compared with the expected output. In College Library Management each
modules are separately tested. That is each module had been separately
executed and checked for errors.
Integration Testing
Integration testing is the systematic technique for constructing the program
structure while at the same time conducting test to uncover errors associated
with the interface. All modules are combined in these testing steps. In the
integration testing step all the errors uncovered and corrected for the next
testing step. The entire program is tested as a whole. In this case all the modules
are combined together as a structure. The main problem arising in this step is
that the correction is found to be very difficult as isolation of causes complicated
by the vast expense of entire program.
Output Testing
Output testing includes producing the output that is generated by the system in
the required format; the format can be both in screen format and the printed
format. Producing the output in correct format is very necessary in the useful
implementation of the system.
System Testing
When a system is developed it is hoped that it performs properly. In practice
however some errors always occur. The main purpose of the testing an
information system is to find the errors and correct them. A successful test is
one which finds an error.
The main objectives of testing are:
To ensure during operation the system will perform as per specifications.
69
COLLEGE LIBRARY MANAGEMENT SYSTEM
To make sure that the system meets user’s requirements during operation.
To verify that the controls incorporated in the library management function
as intended.
To see that when correct inputs are entered to the library management then
outputs are correct.
To make sure that during the operation of incorrect input then the output
will be deleted.
The scope of the system test should include both manual operation and
computerized. Operation system testing is comprehensive evaluation of the
programs, manual procedures, computer operations and controls. System
testing is the process of checking if the developed system is working according to
the original objectives and requirements. All testing is to be conducted in
accordance to the test condition specified earlier.
Acceptance Testing
Acceptance testing is sometimes performed to realistic data of the client to
demonstrate that the software is working satisfactorily. Testing here focuses on
external behavior of the system the internal logic of the program is not
emphasized. Consequently most functional testing performed at these levels.
70
COLLEGE LIBRARY MANAGEMENT SYSTEM
5.3 Security
System testing was performed to verify that all system elements have been
properly integrated and perform allocated function. ‘Security testing’ was done to
check the security mechanisms built into the system, which will protect it from
improper penetration, performance testing was done to test the runtime
performance of the software.
The administrator has been a user name and password to have access to the
proposed system. Hence outside users cannot use the proposed system and
modify the contents of the database. The password given to the administrator
cannot be changed.
71
COLLEGE LIBRARY MANAGEMENT SYSTEM
Laborious.
Time consuming.
More space.
Loss and damage of data.
Difficult to search records.
In future,
We can add new features like college office management, canteen
7. Conclusion
The project entitled “COLLEGE LIBRARY MANAGEMENT SYSTEM” is designed
to use in a college. The complexity for manually doing all the transactions and
other works in library can be highly reduced by implementing this software.
The project entitled “COLLEGE LIBRARY MANAGEMENT SYSTEM” was
successfully designed, developed and tested. The given objectives are met with
satisfaction. The project developed using VISUAL BASIC 6.0 as front end and
72
COLLEGE LIBRARY MANAGEMENT SYSTEM
Oracle SQL as back end is based on the requirement specification of the user
and the analysis system, with flexibility for future enhancement.
The software is less complicated and so it is easier for users to manage with
some initial training and basic knowledge of computer. The maintenance is less
and software is compactable. Since the system is more flexible than the existing
system that is manual, further refinements can be easily done if time and cost
schedule for it.
Actually enhancement refers to the changes in the organizational priorities,
requirements or environmental factors. If the departments wants to add any
more facility or remove existing process it is ease and within scope of itself.
73
COLLEGE LIBRARY MANAGEMENT SYSTEM
Login form
74
COLLEGE LIBRARY MANAGEMENT SYSTEM
MDI form
Category form
75
COLLEGE LIBRARY MANAGEMENT SYSTEM
Department form
Semester form
76
COLLEGE LIBRARY MANAGEMENT SYSTEM
Employee form
77
COLLEGE LIBRARY MANAGEMENT SYSTEM
Member form
Reference form
78
COLLEGE LIBRARY MANAGEMENT SYSTEM
Newspaper form
79
COLLEGE LIBRARY MANAGEMENT SYSTEM
Magazine form
80
COLLEGE LIBRARY MANAGEMENT SYSTEM
Fine form
81
COLLEGE LIBRARY MANAGEMENT SYSTEM
8.2 Report
Book register
82
COLLEGE LIBRARY MANAGEMENT SYSTEM
Over due
Fine
83
COLLEGE LIBRARY MANAGEMENT SYSTEM
[1] “A guide to Visual Basic 6”, fifth Edition Peter Norton, Tec Media
Publications
84
COLLEGE LIBRARY MANAGEMENT SYSTEM
85