Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1. INTRODUCTION
developed for Owen Library. The main aim of the project is to transfer the manual
details into a full-fledged computerized. There are number of modules in this project.
They are Master Module, Transaction Module, Fine Modules and Search Module
The main aim of this project is to reduce the manual work in Library
processing. The system can easily maintain all Book Transaction, Amount, and
Status and also maintain the entire books in library, details of books and unit.
Through this project the time is saving and also the workload of the people working
The details of Library process have been computerized. The next important
feature is its user friendliness and easy navigation. Flexibility of the system is also
maintained. This is a client server programming, user can easily maintain all Library
process.
backend.
The main aim of this project is to reduce the manual work of the Owen trust library.
The user can easly maintain all the details like member, book and rack. Moreover,
santa is maintained here. Also this project is developed with the main aim of
reducing the time in a cost effective manner. Also the workload of the people
working in the organization is reduced, much.
2. SYSTEM ANALYSIS
The first stage of software development is the study of the system under
consideration and its requirement analysis. During these stages constant interaction
with the users of the system is necessary. System analysis is the key to the life cycle.
To ensure the success of the system, careful and extensive analysis is required.
Analysis is a detailed study of various operations performed by the system. This
involves gathering information and using structured tools for analysis.
Documentation
Project and
System scope Study and
analyze the
existing
system
Documentation
System improvement
Objectives
Define and
prioritize Design
Business Phase
Requirements
Business Requirements
Configuration phase
The purpose of the study phase is to answer the questions. Are the problems
really worth solving? And is a new system really worth building? To answer these
questions, the study phase thoroughly analyzes the alleged problems and
opportunities first identified in the survey phase. The system analyst will
The purpose of the definition phase is to identify what the new system is to do
without the consideration of technology; in other words, to define the business
requirements for a new system.
Approach
Determining the user requirement is not easy. System requirement change, the
articulation of requirements is difficult and heavy user involvement and
motivations are uncertain. Problems with the user analyst interface add further
difficulties to the procedure.
There are three strategies for eliciting information regarding the users
requirements asking question, obtaining information from the present system and
prototyping .The asking strategy assumes a stable system where the user is well
informed about information requirements. In contrast, prototyping strategy is
appropriate for high uncertainty information requirement determination
The existing system is done manually with lot of works imposed on the
people. And their having no formal way of Book Issuing, Book Returning, Bill
making and storing books and details about the library, and they are maintaining all
the information put only in paper work. Suppose we need particular information, this
is very difficult to take from the file. They have to maintain all works properly. The
existing system is difficult to maintain. So there are a lot of disadvantages in the
existing system.
The proposed system is a computerized one. The details about the Library
Management Processing are kept in the server of the system. All the manual works
are computerized. We see the account from any place at any time. It generates
automatic Id number and maintains all Books immediately. It gives sufficient
information when we are asking. We can monitor all stock details every minute and
also we can see the book details, Status of the books, Type of the books available etc.
3. SYSTEM SPECIFICATION
About Sofware
.Net Framework
DLL Problems
.Net architecture removes the common problems caused by DLL versions.
Platforms
.Net application consists of managed code that can execute on any platform
that supports the .Net CLR.
Types
.Net CLR verifies that all code is type safe.
Error Handling
All errors are reported as exceptions, which simplifies code maintain.
Compare to VB
VB 6.0, a programming language from Microsoft, is a popular language
because of the simplicity it offers in terms of syntax. However, it lacks the object
oriented programming approach. To overcome this drawback Microsoft in its new
.NET strategy revamped the existing VB to VB.NET.
Moreover, the VB.NET has following addition features compare to VB 6.0.
Multithreading
In a multithreading environment, each process is broken into one or more
threads. These threads when executed by the processor can sometimes cause
problems. This especially when multiple threads try to access shared data.
For example, a simple code like x=x+1 may fail if multiple threads attempt to
execute if simultaneously and x happens to be a shared variable among the threads.
This can be avoided if only the programmer manages the threads through the
program. VB.NET allows programmers to synchronize threads from within a
program which ultimately improves the performance of the program.
VB.Net Capabilities
VB.NET offers capabilities for developing the following.
Web Application
User Interface
Program
User Interface
A user interface is the screen through which the user interacts with the
application. Thus for any application to be successful it needs to have a good user
interface.
Program
A program is a set of instructions that are used to carry out a specific task.
Console applications a created using VB.NET consists mainly of programs and no
user interface.
Class Library
Form
A form is added automatically to the application when a new application is
created. When a form is added to the application, winforms created an instance of the
form class.
Controls are visual interface components that are placed on a form to create a
user interface. All controls that appear on a windows form inherit from the
usercontrol class.
Label
The label control contains descriptive text that is set and retrieved using the
control’s text property. It is used for designating names to the various controls on the
form.
Textbox
The Textbox control is used to get input from the user or display text to the
user. Some of the important properties of textbox are following.
Text - used to show and get the text that entered in textbox
Button
The button control is the easiest way to allow the user to interact with an
application. The user can click the button to perform the required action.
ListBox
The ListBox control is used to display long lists of options from which the
user can choose. Each property in the list is called an item. There are two types of list
boxes supported in winforms.
Listbox
Checked Listbox
GetItemCheckState(integer)
Get particular item check state. If it is checked then it returns true otherwise
false.
Item
Item is used to retrieve the text of the particular item by using index value.
Example
Dim i
For i = 0 To CheckedListBox1.Items.Count - 1
If CheckedListBox1.GetItemCheckState(i) Then
msgbox(CheckedListBox1.Items.Item(i).ToString)
End If
Next
The above example views the item that is checked state in the checkedlistbox.
Combobox
The combobox control features of the Textbox and Listbox controls. This
control allows the user to select an item either by typing text into the combobox, or
by selecting it from the list.
ComboBox1.Items.Add("car")
ComboBox1.Items.Add("bus")
ComboBox1.Items.Add("train")
Timer
The timer control is a component that raises an event at regular intervals. It is
like a clock that keeps on ticking at specified intervals and it raises an event.
Start and Stop methods are used to start and stop the timer tick event
respectively.
Tick is an event that triggered when the specified timer interval has elapsed
and the timer is enabled.
Scrollbars
There are two types of Scrollbars supported in winforms. They
HscrollBar
VscrollBar
ProgressBar
The progress bar control is used to indicate the progress of an action. It
displays an appropriate number of rectangles arranged in a horizontal bar. When the
action is complete the bar gets filled.
ToolTip
The ToolTip control is used to display text when the mouse moves over a
particular control. For example, the ToolTip control can be used to display the
function of a button when the mouse is on that button.
About Access
Microsoft Access:
Using Microsoft access, we can manage all the information from a single
database file. Within the file, the data is divided into separate storage containers
called tables.
Tables
using a separate table for each means; you can store the data only once, which makes
the database more efficient. A common field relates two tables so that Ms Access can
bring together the data from the table for viewing, editing or printing.
Queries
Queries are used to view, change & analyze data on different ways. It can be
used as the source of records for forms, reports and data access pages. An SQL query
is a query you create by using an SQL Statement. We can use Structured Query
Microsoft Access.
When we create a query in query design view, Access constructs the equivalent SQL
statements behind the scenes for you. In fact, most query properties in the property
sheet in query Design view have equivalent clauses and options available in SQL
view. If we want, to view or edit the SQL statements in SQL view. However, after
we make changes to a query in SQL view, the query might not be displayed the way
it was previously in Design view.
Some SQL queries, called SQL specific queries, can't be created in the design grid.
For pass through, data definition, and union queries, we must create the SQL
statements directly in SQL view. For sub queries, you enter the SQL in the Field row
or the Criteria row of the query design grid.
Forms:
Reports
4. TESTING
“No man is perfect ”said a philosopher. Every human being is born with
certain imperfections and has to struggle to make himself performance “God Has
made the world imperfectly”, said a student of his guru, and he replied “Only to be
made perfect by you”. This is the case not with the human alone also with the system
he has designed.
The software, which has been developed, has to be tested to prove its
validity. Testing is considered to be the least creative phase of the least creative
phase of the whole cycle of system design. In the real sense it is the phase, which
helps to bring out the creativity of the other phases makes it shine.
Testing forms a core part of any project. There are various types of testing are
there. In this system we are done following testing
- White Box testing
- Black Box testing
- Unit Testing
- Integration Testing
- User Interface Testing
5. PROJECT DESCRIPTION
Library Process
A user must complete the sign-up process, which involves the completion of
form to be filled in by the user and to be submitted. Once the users are login with
their user id & password, they are allowed to.
Implementation of modules:
Master Module:
1. Member
2. Book Master
3. Magazine
Member:
The system will ask for the details like Type, Type Id, Type Name, Number
of cards and Return Days One book is given for each card.
Book Master:
The system will be denote what are available books we have, then it will
displays all the details. It includes the Access Number, Author Name, Book Title,
Publisher, Number of Pages, Edition, Price, Subject, Remark, and Number of cards
and Status. In this case if the book is lost it has to be paid by an amount of about two
times more than the actual price.
Transaction Module
The Transaction module is sub divided into
1. Book Issue
2. Book Return
Book Issue
The system will be maintaining all the appropriate details of issued books. At
the time of book issue the system will collect the following information from the
borrower. They are type name, member Id, Name, Department, no of cards and issue
date etc.For each card only one book is issued.
Book Return
The system will maintain all the appropriate details of returned books. At that
time of returning the system will fetch the following information from the system.
They are type name, member id, issue date, cards, actual return date and old fine
calculations etc. . In the case of delay the fine value for each day is about twenty-five
paise. In this case if the book is lost it has to be paid by an amount of about two
times more than the actual price.
Fine calculation
The system will maintain all the appropriate details for fine details of
members. In the case of delay the fine value for each day is about twenty-five paise.
In this case if the book is lost it has to be paid by an amount of about two times more
than the actual price.
Search
The Search module will be divided into
1. Book Search
2. Member Search
Book Search
The system will maintain all the appropriate details of books. At that time of
searching the system will fetch the following information from the system. They are
search type and type name etc. The management in the library may not know the
stock of books that are stored in the library. So the management uses this type
inorder to search the books whether book is on issue or not.Thus using this prosses
searches the books.
Member Search
The system will maintain all the appropriate details of members of the
library. .The management in the library may not know which member has taken the
book from the library. At that time of searching the system will fetch the following
information from the system. They are member type, number of cards and whether
the book is issued to the member or not etc.
6. SYSTEM DESIGN
Insert
Member Detail
Member Tbl
Member
1) Customer_Master
2) Card_master
3) department_master
4) book_master
5) author_detail
6) Rack_master
7) Book_detail
8) magazine_master
9)santa_master
10) issue_master
7. SOURCE CODE
frmbookentry
Private Sub authorflex_KeyPressEvent(ByVal sender As Object,
ByVal e As AxMSFlexGridLib.DMSFlexGridEvents_KeyPressEvent) Handles
authorflex.KeyPressEvent
With authorflex
If e.keyAscii = 13 And .Col = .Cols - 1 Then
If MsgBox("More Author", MsgBoxStyle.YesNo +
MsgBoxStyle.Question, "Library") = MsgBoxResult.Yes Then
.Rows = .Rows + 1
.Row = .Row + 1
.Col = 1
.Focus()
.set_TextMatrix(.Row, 0, .Row)
Else
cmdsave.Focus()
End If
ElseIf e.keyAscii = 13 Then
.Col = .Col + 1
ElseIf e.keyAscii = 8 Then
If .get_TextMatrix(.Row, .Col) = "" Then
.Row = .Row - 1
.Rows = .Rows - 1
.Col = 1
ElseIf .Row <> 0 Then
.set_TextMatrix(.Row, .Col,
Mid(.get_TextMatrix(.Row, .Col), 1, Len(.get_TextMatrix(.Row, .Col))
- 1))
End If
Else
.set_TextMatrix(.Row, .Col, .get_TextMatrix(.Row,
.Col) + Chr(e.keyAscii))
End If
End With
End Sub
Private Sub frmBookEntry_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
authorflex.set_TextMatrix(1, 0, "1")
cmd = New OleDbCommand("select dept_name from dept_master",
con)
dr = cmd.ExecuteReader
Do While dr.Read
cmbdept.Items.Add(dr(0))
Loop
dr.Close()
Call grid()
Call clear()
End Sub
dr.Close()
End If
End With
dr.Close()
End Sub
Sub clear()
txtbid.Clear()
txtbname.Clear()
txtpub.Clear()
txtedition.Clear()
txtcopies.Clear()
txtpages.Clear()
txtprice.Clear()
txtrid.Clear()
authorflex.Rows = 1
authorflex.Rows = 2
authorflex.set_TextMatrix(1, 0, "1")
txtbname.Focus()
Call autogen()
End Sub
.set_TextMatrix(.Row, 0, .Row)
.set_TextMatrix(.Row, 1, dr(1))
.Rows = .Rows + 1
.Row = .Row + 1
End While
.Rows = .Rows - 1
End With
dr.Close()
End If
Else
dr.Close()
End If
End With
dr.Close()
End Sub
Private Sub txtrid_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles txtrid.KeyPress
e.Handled = True
End Sub
dr.Close()
End Sub
Private Sub txtbid_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles txtbid.KeyPress
If Asc(e.KeyChar) = 13 Then
txtbname.Focus()
End If
End Sub
Sub autogen()
cmd = New OleDbCommand("select max(book_id)from
book_master", con)
dr = cmd.ExecuteReader
dr.Read()
If Not IsDBNull(dr(0)) Then
txtbid.Text = dr(0) + 1
dr.Close()
Else
txtbid.Text = 1
dr.Close()
End If
dr.Close()
End Sub
frmcustomer
Private Sub cmdsava_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles cmdsava.Click
Dim s As String
If optmale.Checked = True Then
s = "Male"
Else
s = "Female"
End If
If txtid.Text <> "" And txtname.Text <> "" And
txtaddress.Text <> "" And txtphone.Text <> "" And txtemail.Text <>
"" And txtnoc.Text <> "" Then
cmd = New OleDbCommand("select * from customer_master
where cust_id='" + txtid.Text + "'", con)
dr = cmd.ExecuteReader
If Not dr.HasRows Then
dr.Close()
'cmd = New OleDbCommand("insert into magazine_master
values('" + txtno.Text + "','" + txtname.Text + "','" + cmbtype.Text
+ "','" + cmbsub.Text + "'," + txtprice.Text + ")", con)
Try
cmd = New OleDbCommand("insert into
customer_master values('" + txtid.Text + "','" + txtname.Text +
"','" + txtaddress.Text + "','" + s + "','" + CStr(dtpdob.Value) +
"' ,'" + CStr(dtpdoj.Value) + "'," + txtphone.Text + ",'" +
txtemail.Text + "'," + txtnoc.Text + ",'current')", con)
cmd.ExecuteNonQuery()
Catch ex As Exception
MsgBox(ex.Message)
End Try
MsgBox("One Record Saved")
dr.Close()
cmd = New OleDbCommand("insert into card_master
values('" + txtid.Text + "'," + txtnoc.Text + ")", con)
cmd.ExecuteNonQuery()
dr.Close()
clear()
autoid()
grid()
Else
dr.Close()
MsgBox("Already Exists")
End If
Else
dr.Close()
MsgBox("Fields Are Empty")
End If
End Sub
Private Sub cmdupdate_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles cmdupdate.Click
Dim s As String
If optmale.Checked = True Then
s = "Male"
Else
s = "Female"
End If
If txtid.Text <> "" And txtname.Text <> "" And
txtaddress.Text <> "" And txtphone.Text <> "" And txtemail.Text <>
"" And txtnoc.Text <> "" Then
cmd = New OleDbCommand("select * from customer_master
where cust_id='" + txtid.Text + "'", con)
dr = cmd.ExecuteReader
If dr.HasRows Then
dr.Close()
Try
cmd = New OleDbCommand("update customer_master
set cust_name='" + txtname.Text + "',address='" + txtaddress.Text +
"',sex='" + s + "',dob='" + CStr(dtpdob.Value) + "' ,doj='" +
CStr(dtpdoj.Value) + "',phone=" + txtphone.Text + ",email='" +
txtemail.Text + "',no_of_cards=" + txtnoc.Text + " where cust_id='"
+ txtid.Text + "'", con)
cmd.ExecuteNonQuery()
Catch ex As Exception
MsgBox(ex.Message)
End Try
MsgBox("One Record Updated")
dr.Close()
cmd = New OleDbCommand("update card_master set
cur_avail_cards=" + txtnoc.Text + " where cust_id='" + txtid.Text +
"'", con)
cmd.ExecuteNonQuery()
dr.Close()
clear()
autoid()
grid()
Else
dr.Close()
MsgBox("Record Not Found")
End If
Else
dr.Close()
MsgBox("Fields Are Empty")
End If
End Sub
Private Sub cmddelete_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles cmddelete.Click
If txtid.Text <> "" And txtname.Text <> "" Then
cmd = New OleDbCommand("select * from customer_master
where cust_id='" + txtid.Text + "'", con)
dr = cmd.ExecuteReader
If dr.HasRows Then
dr.Close()
Try
If MsgBox("Are You Sure", MsgBoxStyle.OKCancel +
MsgBoxStyle.Question, "Customer Master") = MsgBoxResult.Cancel Then
Exit Sub
End If
cmd = New OleDbCommand("delete * from
customer_master where cust_id='" + txtid.Text + "'", con)
cmd.ExecuteNonQuery()
Catch ex As Exception
MsgBox(ex.Message)
End Try
MsgBox("One Record Deleted")
dr.Close()
cmd = New OleDbCommand("delete * from card_master
where cust_id='" + txtid.Text + "'", con)
cmd.ExecuteNonQuery()
dr.Close()
clear()
autoid()
grid()
Else
dr.Close()
MsgBox("Record Not Found")
End If
Else
dr.Close()
MsgBox("Fields Are Empty")
End If
End Sub
Sub autoid()
cmd = New OleDbCommand("select max(val(cust_id)) from
customer_master", con)
dr = cmd.ExecuteReader
dr.Read()
If Not IsDBNull(dr(0)) Then
txtid.Text = Val(dr(0).ToString) + 1
Else
txtid.Text = 1
End If
dr.Close()
End Sub
Sub grid()
With flex1
cmd = New OleDbCommand("select * from customer_master",
con)
dr = cmd.ExecuteReader
If dr.HasRows Then
.Rows = 1
.Rows = 2
While dr.Read
.set_TextMatrix(.Row, 0, dr(0))
.set_TextMatrix(.Row, 1, dr(1))
.set_TextMatrix(.Row, 2, Format(dr(5),
"dd/MM/yyyy"))
.set_TextMatrix(.Row, 3, dr(6))
.set_TextMatrix(.Row, 4, dr(8))
.Rows = .Rows + 1
.Row = .Row + 1
End While
dr.Close()
End If
dr.Close()
End With
End Sub
Sub clear()
txtid.Clear()
txtname.Clear()
txtaddress.Clear()
txtphone.Clear()
txtemail.Clear()
txtnoc.Clear()
End Sub
txtid.Text = dr(0)
txtname.Text = dr(1)
txtaddress.Text = dr(2)
If dr(3) = "Male" Then
optmale.Checked = True
Else
optfemale.Checked = True
End If
dtpdob.Value = dr(4)
dtpdoj.Value = dr(5)
txtphone.Text = dr(6)
txtemail.Text = dr(7)
txtnoc.Text = dr(8)
End If
dr.Close()
End With
End Sub
txtname.Focus()
End If
End Sub
frmfine
Private Sub txtcid_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles txtcid.KeyPress
If Asc(e.KeyChar) = 13 Then
flexgroup.Visible = True
cmd = New OleDbCommand("select * from customer_master",
con)
dr = cmd.ExecuteReader
If dr.HasRows Then
With flex
.Rows = 1
.Rows = 2
.Row = 1
While dr.Read
.set_TextMatrix(.Row, 0, dr(0))
.set_TextMatrix(.Row, 1, dr(1))
.set_TextMatrix(.Row, 2, Format(dr(5),
"dd/MM/yyyy"))
.Rows = .Rows + 1
.Row += 1
End While
.Focus()
End With
dr.Close()
End If
dr.Close()
End If
dr.Close()
End Sub
Private Sub flex_KeyPressEvent(ByVal sender As Object, ByVal e
As AxMSFlexGridLib.DMSFlexGridEvents_KeyPressEvent) Handles
flex.KeyPressEvent
If e.keyAscii = 13 Then
With flex
If .get_TextMatrix(.Row, .Col) <> "" Then
txtcid.Text = .get_TextMatrix(.Row, 0)
txtcname.Text = .get_TextMatrix(.Row, 1)
txtdoj.Text = .get_TextMatrix(.Row, 2)
flexgroup.Visible = False
cmd = New OleDbCommand("select * from
fine_master where cust_id='" + .get_TextMatrix(.Row, 0) + "'", con)
dr = cmd.ExecuteReader
If dr.HasRows Then
dr.Read()
If dr(1) <> 0 Then
txtofine.Text = dr(1)
dr.Close()
txtpay.Focus()
Else
dr.Close()
MsgBox("No Fine")
txtcid.Focus()
End If
Else
dr.Close()
MsgBox("No Fine")
End If
End If
End With
End If
End Sub
frmissue
Private Sub frmissue_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Call clear()
Call loadBook()
End Sub
Sub clear()
txtino.Clear()
txtmid.Clear()
txtmname.Clear()
txtnoc.Clear()
flex.Rows = 1
flex.Rows = 2
Call autoid()
End Sub
Sub autoid()
cmd = New OleDbCommand("select max(issue_no) from
issue_master", con)
dr = cmd.ExecuteReader
dr.Read()
If Not IsDBNull(dr(0)) Then
txtino.Text = dr(0) + 1
Else
txtino.Text = "1"
End If
dr.Close()
End Sub
Private Sub txtino_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles txtino.KeyPress
If Asc(e.KeyChar) = 13 Then
cmd = New OleDbCommand("select
cust_id,cust_name,no_of_cards from customer_master", con)
dr = cmd.ExecuteReader
With memflex
If dr.HasRows Then
.Rows = 1
.Rows = 2
.Row = 1
While dr.Read
.set_TextMatrix(.Row, 0, dr(0))
.set_TextMatrix(.Row, 1, dr(1))
.set_TextMatrix(.Row, 2, dr(2))
.Rows = .Rows + 1
.Row = .Row + 1
End While
.Visible = True
dr.Close()
.Focus()
End If
End With
End If
dr.Close()
End Sub
End With
dr.Close()
End Sub
Private Sub bookflex_KeyPressEvent(ByVal sender As Object, ByVal
e As AxMSFlexGridLib.DMSFlexGridEvents_KeyPressEvent) Handles
bookflex.KeyPressEvent
Dim i As Integer
With bookflex
If e.keyAscii = 13 Then
cmd = New OleDbCommand("select
book_id,book_name,dept_name,edition,publisher,no_of_pages,rack_id
from book_master where book_id='" + .get_TextMatrix(.Row, 0) + "'",
con)
dr = cmd.ExecuteReader
If dr.HasRows Then
dr.Read()
For i = 0 To 6
flex.set_TextMatrix(flex.Row, i, dr(i))
Next
dr.Close()
txtac.Text = Val(txtac.Text) - 1
End If
.Visible = False
flex.Col = 6
flex.Focus()
End If
End With
dr.Close()
End Sub
dr.Close()
cmd = New OleDbCommand("update card_master
set cur_avail_cards='" + txtac.Text + "' where cust_id='" +
txtmid.Text + "'", con)
cmd.ExecuteNonQuery()
dr.Close()
For i = 1 To flex.Rows - 1
cmd = New OleDbCommand("insert into
book_detail values('" + txtino.Text + "','" + flex.get_TextMatrix(i,
0) + "','not returned')", con)
cmd.ExecuteNonQuery()
dr.Close()
cmd = New OleDbCommand("select
cur_avail_copies from book_avail_detail where book_id='" +
flex.get_TextMatrix(i, 0) + "'", con)
dr = cmd.ExecuteReader
If dr.HasRows Then
dr.Read()
avail = dr(0) - 1
dr.Close()
cmd = New OleDbCommand("update
book_avail_detail set cur_avail_copies=" + Str(avail) + " where
book_id='" + flex.get_TextMatrix(i, 0) + "'", con)
cmd.ExecuteNonQuery()
dr.Close()
End If
dr.Close()
Next
MsgBox("Books Issued")
dr.Close()
Call clear()
Else
MsgBox("Issue No Already Used")
dr.Close()
End If
Else
MsgBox("No Book Issued")
End If
Else
MsgBox("Fields Are Empty")
End If
End With
End Sub
dr.Close()
frmmagazine
Private Sub frmmagazine_Load(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MyBase.Load
Call dept()
cmbtype.Items.Add("Select Type")
cmbtype.Items.Add("Monthly")
cmbtype.Items.Add("Daily")
cmbtype.Items.Add("Weekly")
cmbtype.Items.Add("15 Days")
clear()
autoid()
grid()
End Sub
Sub dept()
cmbsub.Items.Clear()
cmd = New OleDbCommand("select dept_name from dept_master",
con)
dr = cmd.ExecuteReader
cmbsub.Items.Add("Select Department")
While dr.Read
cmbsub.Items.Add(dr(0))
End While
dr.Close()
End Sub
Sub clear()
txtno.Clear()
txtname.Clear()
cmbtype.SelectedIndex = 0
cmbsub.SelectedIndex = 0
txtprice.Clear()
End Sub
Sub autoid()
cmd = New OleDbCommand("select max(val(magazine_no)) from
magazine_master", con)
dr = cmd.ExecuteReader
dr.Read()
If Not IsDBNull(dr(0)) Then
txtno.Text = Val(dr(0).ToString) + 1
Else
txtno.Text = 1
End If
dr.Close()
End Sub
Sub grid()
With flex1
cmd = New OleDbCommand("select * from magazine_master",
con)
dr = cmd.ExecuteReader
If dr.HasRows Then
.Rows = 1
.Rows = 2
While dr.Read
.set_TextMatrix(.Row, 0, dr(0))
.set_TextMatrix(.Row, 1, dr(1))
.set_TextMatrix(.Row, 2, dr(2))
.set_TextMatrix(.Row, 3, dr(3))
.set_TextMatrix(.Row, 4, dr(4))
.Rows = .Rows + 1
.Row = .Row + 1
End While
dr.Close()
End If
dr.Close()
End With
End Sub
Private Sub txtprice_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles txtprice.KeyPress
If Asc(e.KeyChar) >= 47 And Asc(e.KeyChar) <= 58 Or
Asc(e.KeyChar) = 8 Then
e.Handled = False
ElseIf Asc(e.KeyChar) = 13 Then
cmdsave.Focus()
Else
e.Handled = True
End If
End Sub
8. SCREEN OUTPUT
9. FUTURE ENHANCEMENTS
Some of the future enhancements that can be done in this project are:
2. Finding what are the books in which rack are computerized in future.
10. CONCLUSION
been designed and developed for Library process. The details of Library process
have been computerized. The next important feature is its user friendliness and easy
programming, user can easily maintain all Library process. Though the system has
This system has been divided into modules such that each module has
separate entity making modification easy without affecting the main design of the
system.
This system works in a fashion, which is very user-friendly and also gives
more option to the user. All the works that have to be done manually during the
examination has been computerized in a better way. The system is tested by possible
sample input and the performance of the system proved much efficient data
maintenance and retrieval is achieved much efficiently and satisfactorily.
11. BIBLOGRAPHY
Dominic Selly