SlideShare a Scribd company logo
Submitted for thepartial fulfillment of the
Award of thedegree of
M.sc.
In
Computer Science
(2015-2017)
DEPARTMENT OF COMPUTER SCIENCE
CHINMAYA DEGREE COLLEGE
HARIDWAR, UTTRAKHAND
(Affiliated To- H.N.B. Garhwal Central University, Garhwal)
Submittedby: Under the Supervision
HIMANSHUCHAUHAN Mr. VAISHNO DASS SHARMA
DECLARATION
I hear by declare that this submission is my own work and
that, to the best of my knowledge and belief, it contain no
material previously written by another person nor
material which has been accepted for the university or
other institute of higher learning, except where due
acknowledge has been made in the text.
Place..……………….. Signature ………………..
Date………………….. Name………………………
Reg. No………………
ACKNOWLEDGEMENT
The satisfaction that accompanies the successful
completion of any task would be incomplete without the
mention of people whose ceaseless cooperation made it
possible, whose constant guidance and encouragement all
efforts with success.
We are grateful to our project guide Mr. Vaishno
Dass Sharma for the guidance, inspiration and
construction suggestions that helpful us in the
preparation of this project.
We also thank our colleagues who have helped in
successful completion of the project.
HIMANSHU CHAUHAN
CONTENTS
1. PREFACE
 Project Name
 Introduction
 Need of Project
 Objective
 Area of Project
2. SRS
 Purpose of Application
 Scope of Project
 General idea of Project
 Tool & Platform
 Function Requirement
 Non function Requirement Specification
 Abbreviation
3. System Analysis
4. Feasibility Study
5. Dad’s R Diagrams, Tables
6. Design
7. Testing
8. Coding & Implementation
9. Maintenance & Post Implementation
10. Database
11. Snap shots and coding
12. Abbreviations
13. Reference & Bibliography
1.
PREFACE
PREFACE
LIBRARY MANAGEMENT SYSTEM
Library Management is the systematic method of managing the
whole library through a simple and interactive interface – LMS
(Library Management Software). Using LMS, the librarian can
handle basic housekeeping functions of a library such as storing
all the library item details like author name, edition, price, etc. of
all the books in a library database. It helps to provide information
on any book present in library to the user as well as staff member.
Library Management Software keeps a track on all the books that
are issued, returned and added to the library. Overseeing fee
collection and fine issued to late return on the book are other
important functions of LMS Software. Overall having a LMS
Software is important for an efficient, user-friendly, fast and
secure library management - be it a small size school library
having limited users and books or a large size public library.
LMS software comes in various shape and sizes (e.g. small
library software, cloud based library management software etc.),
platform-specific (e.g. Windows-only, Linux-only, MAC-only) or
supports multiple platforms (covering MAC, Linux, UNIX etc.),
publisher-specific (e.g. Microsoft) or multi-vendor, static (i.e. fixed,
updated manually by administrator) or dynamic (automatically
updated by the SAM solution vendor), simple recognition (e.g.
using just exe data) or complex recognition (e.g. tying together
multiple footprints such as executable meta, registry entries,
SWID tag data, package manager details or product specific
details gathered by running scripts).
Some commonly used LMS Software are – SURPASS, Lucidea
Integrated Library Systems, Koha ILS, L4U, OPALS, Destiny
Library Manager, Handy Library Manager, Insignia Library
System, Access-It Library, MODERNLIB, Atriuum, LIBRARIAN,
Readerware, etc.
It is comprehensively packaged software that supports the librarian
very effectively. The software might be either of use only for the
librarian or might be useful for both - users and the library staff.
Most software consists of modules that are integrated on the home
page. The modules might consist of the following areas:
1. Administration : funds, stock verification , other items stock
verification, members, membership card, vendors, news paper,
current awareness, and help.
2. Acquisition: Book orders, receipt and invoices related to
quotations, procurement and purchase of items.
3. Catalogues: Classification and Index of materials stocked.
4. Circulation: Materials lent and their receipt
5. Member faculty: suggestion(books), OPAC, recent
acquisition.
6. Article indexing: article indexing, current awareness
7. Serial Tracking: Journals, Periodicals, Magazines and
Newspapers that are subscribed and have to track them on
daily/weekly/monthly basis
8. Import data: import data, export data
9. Public Interface Usage: Checking on the software updates
In this software, each user (and even the item) has a unique ID
created by the database that allows the library staff to track the
activities and status. Large libraries use both user and staff
interfaces of the software and have many integrated features.
Small libraries don’t engage in additional expense and just use the
basic software system. The interfaces are simple and easy to use.
The navigation tools in these are also clean and easily accessibility
to the data is possible.
Nowadays, the cloud based & online library management system
is widely in demand. In this segment there are some high end
software that have integrated automotive system that updates
information by scanning the ISBN code.
2. SRS
SOFTWARE REQUIREMENT SPECIFICATION
This system can manage all the happenings of the library. Books
transaction including, Stock verification, membership card,
vendors, current awareness, news pepper, cataloguing book,
Circulation, Member faculty, and Article indexing. It can be very
easily handled by this module. Overall this system can be very
helpful and make things easier.
Purpose:
The purpose of this project/software application is to provide an
environment to user by those he/she can keep eye on the daily
transaction as well as the report generated by those transactions
only a click of mouse.
This proposed software would enhance the capability and
efficiency of the project as well as the user. The communication
between the manager and staff will be fast and calculation ime will
be reduced.
Scope:
This project can be used in the organization that is using the
library for study or for consulting purpose. This project is useful &
application for those organization who want to automate the
maintain of records of students and books.
GENERAL IDEA OF PROJECT:-
The project is use to provide an environment to user by which
he/she can keep eye on the daily transaction as well as the report
generated by the daily transaction only a click of mouse. It
provides a user friendly environment for doing their work
efficiently and effectively.
This project is developing for organization which uses her facility
of library in their organization this project is to automate the work
of library so that the complexity can reduce as well as the working
and managing can be increase as well as the time can save too
with the help of using this software . this software applications
based upon the level security (Admin & user level). Which is use
to increase the authority feature. By using this software we can
also keep an eye on each of the entry of event occur by user.
weather it will be the user or administrator.
TOOLS AND REQURIMENT:-
We are using the C# technology for fulfill the requirements of user
by developing this software application. We are working C# in
front end & using “SQL Server management studio 2008”
database management system for using database service in back
end.
It provide user friendly environment for doing their work efficiently
and effectively with some requirements.
1. Record of member.
2. Record of Stock.
3. Record of Newspaper, current awareness and vendors.
4. Record of books.
5. View the record for all.
6. View and print passbook.
7. View and print Annual Report.
8. Search the record by all.
9. Books can be issued by some authorized person who has a
login ID.
10. Books can be returned by some authorized person who
has a login ID.
11. Record of books can be deleted by an authorized
person who will play the role of ADMIN/SERVER.
12. Record of books can be updated by an authorized
person who will play the role of ADMIN/SERVER.
13. Automatic calculation of fine during the late submission
of books.
14. If any books contains fine, that can be submitted only
by user who has a login ID.
FEATURE:-
1. With the load balancing feature & full utilization of resources.
2. By giving the faculty to view the records of their own with any
unique identity.
3. By giving the feature that only authorized person can
change/update the record of book/fine/user login.
4. Circulated book report generation /cataloguing/Import and
export/serial books feature also available in this project.
5. Also managing Admin user ID. (change password, add new
user and delete user ID and password)
All the password assistance will be the hand of an
administrator who works as a server.
FUNCTION REQUIRMENT SPECIFICATION:-
 We will automate the software application system without
breach the security.
Over software application will perform some specific
feature which are given below:-
1. The software maintains the details of each dealing.
2. The software provides each detail of recording books and
students.
3. It also keeps the author and publisher name with their
books.
4. Facility to update and delete the pre-entered records as
well insertion of new records.
5. The issuing and returning of books y readers.
6. Calculations of due.
NON-FUNCTION REQIREMNET SPECIFICATION:-
These are the type of requirements which are not provided by us
in the limited time interval. We might be providing these
functionalities in the next version of this software application.
These requirements are as Follows:-
1. The search engine is added which perform searching of
books.
2. Generation of fine receipts.
HARDWARE AND SOFTWARE SPECIFICATION:-
Hardware specification of the machine at which “Library
Management System” was developed in:-
 SONY PERSONAL COMPUTER
 Intel(R) Core(TM) i3-3227U CPU @ 1.90GHz 1.90GHz.
 8.00 GB RAM
 64-bit operating system, x64-based processor
 500GB hard disk
SOFTWARE SPECIFICATION:-
Following software platform were used during the development of
the system
 Operating system WINDOWS 10
 Language C# (Microsoft Visual Studio 2010 with Windows
Form based).
 Database: SQL Server Management Studio 2008.
TECHNOLOGY USED:-
C#
There are various Microsoft technologies used widely for
developing dynamic web based applications and web services.
Among them is C# which is basically a modern, object-oriented
language developed for the .NET platform. It encompasses on the
same path set by its predecessors by providing programmers with
various tools and services that can fully utilize computing as well
as communication.
The biggest advantage of using C# is that it is a robust
programming language that integrates robust security protocols. It
runs on various servers and is supported by various platforms. A-
1 Technology has years of expertise under its belt in developing
rich quality web applications in C# programming language.
C# is a simple, type-safe, object oriented, general-
purpose programming language. Visual C# provides code-
focused developers with powerful tools and language support to
build rich, connected web and client applications on the .NET
Framework. It is intended to be suitable for writing applications for
both hosted and embedded systems, ranging from very large
sophisticated operating systems, down to the very small OS
having dedicated functions.
C# is basically based on its predecessor C++ language
and includes aspects of several other programming languages
(most notably Delphi and Java) with particular emphasis on
simplification. We at A-1 Technology have highly skilled and
dedicated developers and programmers who are well versed with
all the features of C#. Moreover, our development process tends
to be highly versatile and incorporates the overall feature set of
C# without sacrificing the power and control that have been a
hallmark of C and C++. Over the years we have been able to fuse
C# with with C and C++ and created widely appreciated web
development projects.
The reason why many developers tend to incline more towards
C# is the fact that it is more typesafe than C++. Moreover there
are no implicit conversions between booleans and integers,
enumeration members and integers and any user-defined
conversion must be explicitly marked as explicit or implicit, unlike
C++ copy constructors and conversion operators.
Due to its elegant object-oriented design, C# has become an ideal
choice for creating subset architecture. Our developers and
programmers at A-1 Technology offer a wide range of
components-from high-level business objects to system-level
applications. Using simple C# language constructs, we are able to
convert these components into XML Web services, allowing them
to be invoked across the Internet, from any language running on
any operating system. This makes our applications universal
giving users easy access.
WINDOWS FORM
Windows Forms is a graphical (GUI) class library included as a
part of Microsoft .NET Framework providing a platform to write
rich client applications for desktop, laptop, and tablet PCs. While it
is seen as a replacement for the earlier and more
complex C++ based Microsoft Foundation Class Library it does
not offer a comparable paradigm and only acts as a platform for
the user interface tier in a multi-tier solution.
3.
SYSTEM
ANALYSIS
SYSTEM ANALYSIS
Analysis, the first step of any system development approach is
concerned with devising a precise, understandable and correct
model of the real word.
Before building anything complex, such as arouse, a computer
program or hardware-software system, the builder must
understand the requirement and. the real word environment in
which it will exit.
The purpose of the analysis phase is to model the real world
system so that it can be understood. To do this examine
requirements, analyze their implication and restate them
rigorously. We must abstract important-word features first and
defer small details until later. The successful analysis model
states what must be done, without restriction how it is done, and
avoids implementation decisions, the program as a preparation
for design.
REQUIREMENT ANALYSIS:
Software is always a part of large system. Work beginning by
establishing requirement for all system element amends then
allocating some subset by their requirement of Software. This
system view is essential, when software must interface with other
element such as hardware, people and database. Engineering
and analysis encompasses requirement gathering of the system
level with a small amount of top level design and analysis.
The requirement gathering process is intensified and focusing
especially on the software to understand the nature of the
programs to be built, the software engineering, must understand
the information domain for the software as well as the required
functions, performance and interfaces. Requirement for both the
system and the software are documented and viewed to the
customer. A requirement baseline report is to be prepared for type
of function.
REQUIREMENT FOR THE PROJECT:-
1. The project must accommodate the new requirement specified
by end user.
2. The project must allow the user to take hard copy of the data.
3. The project must be easy to use and simpler to understand that
it should have easy to use navigation tools with some sort of
assistance (tool tip text) attached with them
4. Should serve almost all desire of the common user, must meet
the basic requirement criteria for a good Data Retrieval,
Manipulation &storage System for a cooperation society.
REQUIREMENT DETERMINATION:-
After making a complete analysis of the first job was to determine
the user requirement .For this purpose the following were taken.
 On site Observation.
 interviewing
4. FEASIBILITY STUDY
The main aim of feasibility study is to determine whether the
product is financially and technically feasible. the feasibility study
involves analysis of the problem collection of data which would be
input of the system, the processing required to be carried out on
these data, the output data required to be produce by the system
as well as study of various constraints on the behavior of then
system. The collected data are analyzed to arrive at the following:
 An abstract definition of the problem.
 Formulation of the different solution strategies.
 Examination of alternative solution strategies and their
benefit, indicating resources required, development, cost
and time in respect of each of the alternative solutions.
 A cost/benefit analysis is performed to determine which
solution is the best.
 At this stage, it may also be determined whether any of the
solution is not feasible due to high cost, resource
constraints, or extra ordinary technical reasons.
ECONOMIC FEASIBILITY:-
Economic analysis is almost frequently used method for
evaluating the effectiveness of a library information system. More
commonly known as the cost benefit analysis, the procedure is to
determine the benefits and savings that are expected from a
candidate system and compare them with costs. If benefit
outweighs costs, those decisions are made to design and
implement the system. Otherwise father justification or alteration
the proposed system will have tube made if it to have a chance of
benefit approved. The result of theism analysis points out whether
the candidate is economically feasible or not System
TECHNICAL FEASIBILITY:-
Technical feasibility enters on the existing system (hardware
Software, etc.) and to what extent it can suppose the proposed
addition. Taking into account the capacity of the system
operation. it is technically feasible to adept the system
immediately. The system has feasible.
BEHAVIORAL FEASIBILITY:-
People are coherently resistant to changes, and computers have
been known to facilitate change. Behavioral feasibility includes
the training to the user and staff on a library information system.
Date entity forms must be user friendly so that training requires
less time. The front end of the system has been developing by
using C# which is user friendly and easy to operate. This would
require formal training and education. It would also improve the
transaction Speed and provide worldwide accessing facilities to
the customer, which lead to increase the efficiency of library
pattern.
OPERATION FEASIBILITY:-
The proposed system will simplify almost all the operation of the
library system. This system is user friendly. This system will
reduce most of the paper work resulting in improvement in quality
Work. The programmer maintenance and modification cost is
almost nil’s the system under development is operationally
feasible.
5. DATA FLOW DIAGRAM:-
Data flow diagram is graphic tool. It is used to describe and
analyses the movement of data through a system manual or
computerized. They focus on the data flowing into system,
between process in and of the data stores.
The data flow diagram does not show control information, such as
the time at which the process are executed or decision among
AlterNet data path. The data flow diagram contains following
element.
1. Process
2. Data flow
3. Actors
4. Data flow
DATA FLOW
These system modes are termed as data flow diagram (DEF). A
full description of system consists of a set of data’s, which
compromises of various levels.
There is various level of data flow diagram (DFD). The previous
level of UFO can be broken down into more detailed DFD. This
occurs repeatedly until sufficient
Detail (lowest level) is described to allow the analyst to fully
understand that portion at system.
 The various levels DFD
 Physical level DFD
PHYSICAL LEVEL DFD:
The physical DFD is a model Of current system and to insure that
the current systems have been clearly understood,
Physical level DFD’s actual devises, department, people etc.
Involved in the System.
LOGICAL LEVEL DFD:-
During the design activities of the Proposed System this is taken
as the basis for drawing the system.
Logical level DFD are the model of proposed system. They should
clearly show the requirement on which the data should be
building.
Finally the conclusion for the different levels of DFD’s we can say
that both physical and logical DFD’s support a Top down
approach to system analysis for this purpose analyst Begin by
developing a general understanding of the system and gradually
explored component in grid detail. This achieve though the
context diagram
LEVELS OF DFD:-
 Context Level DFD
 Zero level DFD
 Fist level DFD
 Second level DFD
CONTEXT LEVEL DFD:-
ZERO LEVEL DFD:-
FIRST LEVEL DFD:-
SECOND LEVEL DFD:-
6. DESIGN
SYSTEM DESIGN:
The design is a solution and the translation of the requirement in
two ways of meeting them. It is a ”how to" approach for creation
of a new system. It provides the understanding and the
procedural detail necessary for the implementation of the system.
The design of a LIBRARY MANAGEMENT SYSTEM produces
the detail that state how a system will meet the requirement
identified during the system analysis. It is stored by identifying
reports and other system analysis produced. The system design
also describes the data to be input, calculated or stored.
Individual data items and calculation procedures are written in
detail. File structure and storage devices are selected. It also
includes the way the data is processed to produce the desired
output. Design is responsible for providing programs with clearly
outlined specifications that state what the software should do. As
programming starts, system design is available to answer the
question clarifying the Fuzzy areas and handle problems that co-
front the programming while implementing the design
specifications.
Emphasis is on translation the performance requirement in to
design specification. Design goes logical and physical stage of
development. Logical design reviews the present physical system.
Prepare input and output specification: make edit and design
walkthrough. The physical design maps out a detail of the
physical system. System implementation and the device
implementation. Benefits
The following are benefit of using the application:
ECONOMICAL:
The project is very cheap when compared to other commonly
available. Data Retrieval, manipulation & storage system for a
cooperative society.
EASY TO MASTER:
The project provides the user an easy approach to its functionality
by providing toolbars that contains buttons for almost all required
tasks. The user can easily navigate form one part of the project to
another without having any sort of trouble.
SECURITY:
The project IS divided into three measure application the
administrator, the user and the Guest, the administrator is
authorized for modification of data change password for all the
three levels; he can also change the values of CD,OD & Interest.
The user can modify the data but cannot change password, CD,
OD and interest. The guest can only view the data but cannot
make any changes.
RELIABILITY:
The project is highly reliable because there is no chance of any
loss of data and the data available can be altered only by the
authorized user.
TIME SAVER:
Data retrieval and storage using this system is much faster than
maintaining the record manually.
7. TESTING
Testing is a process through which any error is discovered and
connected. Testing is the major quality control used during
software development. There may be logical or runtime error in
the code.
There are two basic techniques of testing.
1. Black box testing (functional/External Testing)
2. White box Testing (structural/Internal Testing)
1) BLACK BOX TESTING:-
In black box testing the code segment is hidden from user and the
error are discovered by just giving the input values to the code
segment and output is compared with the expected output. if
there is some deviation then we say that the segment has some
error.
2) WHITE BOX TESTING:-
In this testing the code is open to the tester and it can be
inspected statement vice. In this technique tester can get the
intermediate values of the variable.
To quality check the system. different levels of testing is
required:
a) Unit testing :-
Testing start with unit testing. It is performed by the
programmer, and then modules are ready to be combine
who writes the Code for the modules.
b) Integration testing :-
When unit testing is performed by programmer then the
modules are ready to be combine, then integration testing is
done for the connectivity of the different modules.
c) System testing :-
After integration testing the entire system is tested about the
portability, ad0ptabillty etc. The system is tested against the
system requirements to see if all the requirements are met and
the system performed as specified by the requirements.
d) Acceptance testing:-
This testing is performed to demonstrate to the client, on the real
life data of the client, the operation of the system. in this project
“Library Management System we give the complete detail of
library.
8.IMPLEMENTATION
The implementation phase is less creative then system design. It
is primarily concerned with user training, site preparation, and file
conversion. During final testing, user expectance is tested,
followed by user training. Depending on the nature of system
Extensive user training may be require. Conversions usually take
place at about the same time the user is being-trained.
Programming is ought to be a design work. The initial parameter
of the candidate system should be modified as a result of
programming efforts. Programming provides a ”realty test” for the
assumption made by analyst.
System testing checks the deadlines and accuracy of the system
to access update and retrieve data from new files. Once the
program becomes available, test data are read into the computer
and processed against the files provided for testing. If successful,
program is them run with ”live data”. Otherwise a diagnostic test is
used to locate and correct error. in most conversion, a parallel run
is conducted rear the new system simultaneous run with oil
system. This method, though costly, provides edit assurance
against error in the candidate system and also the user staff bad
opportunity to gain experience though operation.
9.
POST IMPLEMENTION
9.POST IMPLEMENTATION
After the installation phase is completed and the user staff is
adjusted to the changes created by the candidate system
evolution and maintenance begins. Like any system there is an
aging process that the requires periodic maintenance of hardware
and software if the new information is inconsistent with the design
specification then changes have to be made hardware also
requires periodic maintenance is to being the new system to
standard.
9.1
MAINTENANCE
MAINTENANCE:-
Maintenance is required because software requirements changes
very frequently than the software are needed to be updated or
modify.
Moreover there may be some error ex-posed at the execution
time which work accidently not covered during the testing phase.
It is the correction of implementation phase.
Maintenance technique includes very popular method called
reversed engineering. Maintenance is the costliest part of SDLC.
Analyst and programmer spend for more time in maintenance
process then develop the software. It accounts for 50%-80% of
total system development time.
Maintenance is broadly classified in four categories:
1. Corrective Maintenance:
It means repairing, processing or performance failure or
making changes because of previously incorrect problems or
false assumption.
2. Perfective Maintenance:
It is also known as enhanced maintenance means
enhancing the performance or modifying the software to
respond to the users additional or changing needs. It is for
improving and the implementation of the system according to
the customer needs or requirements.
3. Adaptive Maintenance:
It means changing the software function. This is done to
adapt to the external environment change. Porting of S/W to
work on a new computer platform or with a new O/S.
4. Preventive Maintenance:
It is the process by which we prevent out system form being
absolute. Preventive Maintenance involves the concept of
re-engineering & reverse engineering in which an old system
with an old technology is re-engineered issuing new
technology.
10.
DATABASE
SQL SERVER MANAGEMENT STUDIO
SQL Server Management Studio (SSMS) is an integrated
environment for managing any SQL infrastructure, from SQL
Server to SQL Database. SSMS provides tools to configure,
monitor, and administer instances of SQL from wherever you
deploy it. With SSMS you can deploy, monitor, and upgrade the
data-tier components used by your applications, as well as build
queries and scripts.
LOGIN DATABASE
MEMBERSHIP CARD DATABASE
STOCK VERIFICATION
STOCK VERIFICATION (OTHER ITEMS)
CURRENT AWARENESS
BOOKS
CONFERENCE/CONGRESS/MEETING/PROCEEDINGS
ANNUAL REPORT
CIRCULATION
CD CIRCULATION
SERIALS
CIRCULATED BOOK REPORT GENRATION
FINE MANAGEMENT
SNAPSHOT WINDOW FORM AND CODE
FORM 1
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Data.Sql;
namespace library_management_system
{
public partial class Login : Form
{
SqlCommand mycommand ;
SqlDataReader reader;
public Login()
{
InitializeComponent();
}
private void textBox2_TextChanged(object sender, EventArgs e)
{
textBox2.PasswordChar = '*';
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
SqlConnection myconn = new
SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library");
myconn.Open();
mycommand = new SqlCommand("select * from login", myconn);
reader = mycommand.ExecuteReader();
string name = textBox1.Text;
String pass = textBox2.Text;
while (reader.Read())
{
String name1 = reader.GetString(0);
String pass1 = reader.GetString(1);
if (name1 == name && pass1 == pass)
{
Welcome f2 = new Welcome();
f2.Show();
Hide();
goto vai;
}
}
if (reader.IsClosed == false)
{
MessageBox.Show("user name or password is wrong");
}
vai:
myconn.Close();
reader.Close();
}
private void button2_Click(object sender, EventArgs e)
{
}
private void button2_Click_1(object sender, EventArgs e)
{
textBox1.Text = "";
textBox2.Text = "";
}
private void label4_Click(object sender, EventArgs e)
{
}
private void textBox2_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == 'r')
{
SqlConnection myconn = new
SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library");
myconn.Open();
mycommand = new SqlCommand("select * from login", myconn);
reader = mycommand.ExecuteReader();
string name = textBox1.Text;
String pass = textBox2.Text;
while (reader.Read())
{
String name1 = reader.GetString(0);
String pass1 = reader.GetString(1);
if (name1 == name && pass1 == pass)
{
Welcome f2 = new Welcome();
f2.Show();
Hide();
goto vai;
}
}
if (reader.IsClosed == false)
{
MessageBox.Show("user name or password is wrong");
}
vai:
myconn.Close();
reader.Close();
}
}
private void progressBar1_Click(object sender, EventArgs e)
{
}
private void progressBar1_Click_1(object sender, EventArgs e)
{
}
private void timer1_Tick(object sender, EventArgs e)
{
}
}
}
FORM 2
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace library_management_system
{
public partial class Welcome : Form
{
// f4.Show();
public Welcome()
{
InitializeComponent();
}
private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
{
if (treeView1.SelectedNode.Text == "SERIALS")
{
Form1 f1 = new Form1();
f1.Show();
Hide();
}
if (treeView1.SelectedNode.Text == "BOOK")
{
CIRCULATION f14 = new CIRCULATION();
f14.Show();
Hide();
}
if (treeView1.SelectedNode.Text =="MEMBERSHIP CARD")
{
Form3 f3 = new Form3();
f3.Show();
Hide();
}
if (treeView1.SelectedNode.Text == "ARTICLE INDEXING")
{
Form13 f13 = new Form13();
f13.Show();
Hide();
}
if (treeView1.SelectedNode.Text == "CURRENT AWARENESS")
{
Form12 f12 = new Form12();
f12.Show();
Hide();
}
if (treeView1.SelectedNode.Text == "CIRCULATED BOOKS")
{
Form11 f11 = new Form11();
f11.Show();
Hide();
}
if (treeView1.SelectedNode.Text == "FINE MANAGEMENT")
{
Form10 f10 = new Form10();
f10.Show();
Hide();
}
if (treeView1.SelectedNode.Text == "ANNUAL REPORT")
{
Form9 f9 = new Form9();
f9.Show();
Hide();
}
if (treeView1.SelectedNode.Text == "CONFERENCE / CONGRESS / MEETING /
PROCEEDINGS")
{
Form7 f7 = new Form7();
f7.Show();
Hide();
}
if (treeView1.SelectedNode.Text == "THESIS")
{
Form8 f8 = new Form8();
f8.Show();
Hide();
}
if (treeView1.SelectedNode.Text =="STOCK VERIFICATION")
{
Form4 f4= new Form4();
f4.Show();
Hide();
}
if (treeView1.SelectedNode.Text == "BOOKS")
{
Form6 F6 = new Form6();
F6.Show();
Hide();
}
if (treeView1.SelectedNode.Text == "OTHER ITEMS(STOCK VERFN.)")
{
Form5 f5 = new Form5();
f5.Show();
Hide();
}
if (treeView1.SelectedNode.Text == "ADMINISTRATION")
{
tabPage2.Hide();
tabPage1.Show();
tabPage1.Select();
}
else if (treeView1.SelectedNode.Text=="ACQUISITION")
{
tabPage1.Hide();
tabPage2.Show();
tabPage2.Select();
}
else if (treeView1.SelectedNode.Text=="CATALOGUING BOOK")
{
tabPage1.Hide();
tabPage2.Hide();
tabPage3.Show();
tabPage3.Select();
}
else if (treeView1.SelectedNode.Text == "CIRCULATION")
{
tabPage1.Hide();
tabPage2.Hide();
tabPage3.Hide();
tabPage4.Show();
tabPage4.Select();
}
else if (treeView1.SelectedNode.Text == "MEMBER FACLITIES")
{
tabPage1.Hide();
tabPage2.Hide();
tabPage3.Hide();
tabPage4.Hide();
tabPage5.Show();
tabPage5.Select();
}
else if (treeView1.SelectedNode.Text == "ARTICLE INDEXING")
{
tabPage1.Hide();
tabPage2.Hide();
tabPage3.Hide();
tabPage4.Hide();
tabPage5.Hide();
tabPage6.Show();
tabPage6.Select();
}
else if (treeView1.SelectedNode.Text == "SERIALS")
{
tabPage1.Hide();
tabPage2.Hide();
tabPage3.Hide();
tabPage4.Hide();
tabPage5.Hide();
tabPage6.Hide();
tabPage7.Show();
tabPage7.Select();
}
else if (treeView1.SelectedNode.Text == "IMPORT DATA")
{
tabPage1.Hide();
tabPage2.Hide();
tabPage3.Hide();
tabPage4.Hide();
tabPage5.Hide();
tabPage6.Hide();
tabPage7.Hide();
tabPage8.Show();
tabPage8.Select();
}
}
private void tabPage1_Click(object sender, EventArgs e)
{
}
private void Form2_Load(object sender, EventArgs e)
{
}
private void tabPage8_Click(object sender, EventArgs e)
{
}
private void panel1_Paint(object sender, PaintEventArgs e)
{
}
private void tabPage2_Click(object sender, EventArgs e)
{
}
private void button5_Click(object sender, EventArgs e)
{
Form3 f3 = new Form3();
f3.Show();
Hide();
}
private void button2_Click(object sender, EventArgs e)
{
Form4 f4 = new Form4();
f4.Show();
Hide();
}
private void button3_Click(object sender, EventArgs e)
{
Form5 f5 = new Form5();
f5.Show();
Hide();
}
private void button21_Click(object sender, EventArgs e)
{
Form6 f6 = new Form6();
f6.Show();
Hide();
}
private void button20_Click(object sender, EventArgs e)
{
Form7 f7 = new Form7();
f7.Show();
Hide();
}
private void button19_Click(object sender, EventArgs e)
{
Form8 f8 = new Form8();
f8.Show();
Hide();
}
private void button24_Click(object sender, EventArgs e)
{
Form9 F9 = new Form9();
F9.Show();
Hide();
}
private void button28_Click(object sender, EventArgs e)
{
Form10 f10 = new Form10();
f10.Show();
Hide();
}
private void button32_Click(object sender, EventArgs e)
{
Form11 f11 = new Form11();
f11.Show();
Hide();
}
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void button26_Click(object sender, EventArgs e)
{
Form1 f1 = new Form1();
f1.Show();
Hide();
}
private void button25_Click(object sender, EventArgs e)
{
CIRCULATION f14 = new CIRCULATION();
f14.Show();
Hide();
}
private void button33_Click(object sender, EventArgs e)
{
Form13 f13 = new Form13();
f13.Show();
Hide();
}
private void button34_Click(object sender, EventArgs e)
{
Form12 f12 = new Form12();
f12.Show();
Hide();
}
private void button8_Click(object sender, EventArgs e)
{
Form12 f12 = new Form12();
f12.Show();
Hide();
}
private void tabPage4_Click(object sender, EventArgs e)
{
}
private void button27_Click(object sender, EventArgs e)
{
Form2 f2 = new Form2();
f2.Show();
Hide();
}
private void button29_Click(object sender, EventArgs e)
{
Form14 f14 = new Form14();
f14.Show();
Hide();
}
private void button18_Click(object sender, EventArgs e)
{
}
private void button35_Click(object sender, EventArgs e)
{
Form15 F15 = new Form15();
F15.Show();
Hide();
}
private void button36_Click(object sender, EventArgs e)
{
Form16 F16 = new Form16();
F16.Show();
Hide();
}
private void button37_Click(object sender, EventArgs e)
{
Form17 F17 = new Form17();
F17.Show();
Hide();
}
}
}
FORM 3
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.Sql;
using System.Data.SqlClient;
namespace library_management_system
{
public partial class Form3 : Form
{
SqlConnection cnn;
SqlCommand cmd;
// SqlDataReader reader;
// DataSet ds;
// SqlDataAdapter da;
// DataRow dr=new DataRow() ;
// string id;
public Form3()
{
InitializeComponent();
}
private void button10_Click(object sender, EventArgs e)
{
Welcome f2 = new Welcome();
f2.Show();
Hide();
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
}
private void button13_Click(object sender, EventArgs e)
{
DateTime dateofBirth = new DateTime();
long TotalFineDue;
cnn = new
SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library");
cnn.Open();
cmd = new SqlCommand("select * from members", cnn);
String memEmpNo = textBox2.Text;
String name = textBox1.Text;
String defignationRollNo = comboBox1.Text;
String department = comboBox2.Text;
String category = comboBox3.Text;
String sowtwereAccess = comboBox4.Text;
String VALIDITY = maskedTextBox2.Text;
String password1 = textBox5.Text;
String verifyPassword = textBox6.Text;
String contactNo = maskedTextBox4.Text;
String registrationNo = maskedTextBox5.Text;
String status1 = textBox11.Text;
String gotoMemberid = textBox12.Text;
String CirculationStatus = textBox4.Text;
if (textBox3.Text == "")
{
TotalFineDue = 0;
}
else
{
TotalFineDue = long.Parse(textBox3.Text);
}
String FatherName = textBox7.Text;
String Address1 = textBox8.Text;
String AddressLocal = textBox9.Text;
String Email = textBox10.Text;
dateofBirth = DateTime.Parse(maskedTextBox1.Text);
DateTime dateFrom = DateTime.Parse(maskedTextBox7.Text);
DateTime Dateto = DateTime.Parse(maskedTextBox3.Text);
DateTime PrintedCardDate = DateTime.Parse(maskedTextBox6.Text);
String booksIssued = numericUpDown1.Text;
cmd.CommandText = "INSERT INTO members VALUES('" + memEmpNo + "','" + name +
"','" + defignationRollNo + "','" + department + "','" + category + "','" +
sowtwereAccess + "','" + VALIDITY + "','" + password1 + "','" + verifyPassword + "'," +
contactNo + ",'" + registrationNo + "','" + status1 + "','" + gotoMemberid + "','" +
CirculationStatus + "'," + TotalFineDue + ",'" + FatherName + "' ,'" + Address1 + "' ,'"
+ AddressLocal + "','" + Email + "','" + dateofBirth + "','" + dateFrom + "','" + Dateto
+ "','" + PrintedCardDate + "'," + booksIssued + ")";
cmd.ExecuteNonQuery();
cnn.Close();
MessageBox.Show("save record sucessfully");
}
private void textBox2_TextChanged(object sender, EventArgs e)
{
}
private void maskedTextBox2_MaskInputRejected(object sender,
MaskInputRejectedEventArgs e)
{
}
private void textBox5_TextChanged(object sender, EventArgs e)
{
textBox5.PasswordChar = '*';
}
private void textbox6_Leave(object sender, EventArgs e)
{
//textBox6.PasswordChar = '*';
if (textBox5.Text != textBox6.Text)
{
MessageBox.Show("Password are not similar");
label33.ForeColor = System.Drawing.Color.Red;
label33.Text = "unCorrect password";
}
else
{
label33.ForeColor = System.Drawing.Color.Green;
label33.Text = "Correct password";
}
}
private void textBox6_TextChanged(object sender, EventArgs e)
{
}
private void numericUpDown1_ValueChanged(object sender, EventArgs e)
{
}
private void button16_Click(object sender, EventArgs e)
{
textBox2.Text = "";
textBox1.Text="";
comboBox1.Text="";
comboBox2.Text="";
comboBox3.Text="";
comboBox4.Text="";
maskedTextBox2.Text="";
textBox5.Text="";
textBox6.Text="";
maskedTextBox4.Text="";
maskedTextBox5.Text="";
textBox11.Text="";
textBox12.Text="";
textBox4.Text="";
textBox3.Text = "";
textBox7.Text = "";
textBox8.Text = "";
textBox9.Text = "";
textBox10.Text = "";
maskedTextBox1.Text = "";
maskedTextBox7.Text="";
maskedTextBox3.Text = "";
maskedTextBox6.Text = "";
numericUpDown1.Text = "";
}
private void panel3_Paint(object sender, PaintEventArgs e)
{
}
private void Form3_Load(object sender, EventArgs e)
{
textBox6.PasswordChar = '*';
}
private void button14_Click(object sender, EventArgs e)
{
DateTime dateofBirth = new DateTime();
long TotalFineDue;
cnn = new
SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library");
cnn.Open();
cmd = new SqlCommand("select * from members", cnn);
String memEmpNo = textBox2.Text;
String name = textBox1.Text;
String defignationRollNo = comboBox1.Text;
String department = comboBox2.Text;
String category = comboBox3.Text;
String sowtwereAccess = comboBox4.Text;
String VALIDITY = maskedTextBox2.Text;
String password1 = textBox5.Text;
String verifyPassword = textBox6.Text;
String contactNo = maskedTextBox4.Text;
String registrationNo = maskedTextBox5.Text;
String status1 = textBox11.Text;
String gotoMemberid = textBox12.Text;
String CirculationStatus = textBox4.Text;
if (textBox3.Text == "")
{
TotalFineDue = 0;
}
else
{
TotalFineDue = long.Parse(textBox3.Text);
}
String FatherName = textBox7.Text;
String Address1 = textBox8.Text;
String AddressLocal = textBox9.Text;
String Email = textBox10.Text;
dateofBirth = DateTime.Parse(maskedTextBox1.Text);
DateTime dateFrom = DateTime.Parse(maskedTextBox7.Text);
DateTime Dateto = DateTime.Parse(maskedTextBox3.Text);
DateTime PrintedCardDate = DateTime.Parse(maskedTextBox6.Text);
String booksIssued = numericUpDown1.Text;
cnn = new
SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library");
cnn.Open();
cmd = new SqlCommand("select * from members", cnn);
cmd.CommandText = "update members set memEmpNo='" + textBox2.Text +
"',name='" + textBox1.Text + "', defignationRollNo = '" + comboBox1.Text + "', department
= '" + comboBox2.Text + "',category = '" + comboBox3.Text + "', sowtwereAccess = '" +
comboBox4.Text + "', VALIDITY = '" + maskedTextBox2.Text + "', password1 = '" +
textBox5.Text + "', verifyPassword = '" + textBox6.Text + "',contactNo = '" +
maskedTextBox4.Text + "', registrationNo = '" + maskedTextBox5.Text + "', status1 = '" +
textBox11.Text + "', gotoMemberid = '" + textBox12.Text + "', CirculationStatus = '" +
textBox4.Text + "', TotalFineDue = " + textBox3.Text + ", FatherName = '" + textBox7.Text
+ "', Address1 = '" + textBox8.Text + "', AddressLocal = '" + textBox9.Text + "', Email =
'" + textBox10.Text + "', dateofBirth = '" + maskedTextBox1.Text + "', dateFrom = '" +
maskedTextBox7.Text + "', Dateto = '" + maskedTextBox3.Text + "', PrintedCardDate = '" +
maskedTextBox6.Text + "', booksIssued = '" + numericUpDown1.Text + "' ";
}
private void button17_Click(object sender, EventArgs e)
{
Login f1 = new Login();
f1.Show();
Hide();
}
private void button12_Click(object sender, EventArgs e)
{
//cnn = new
SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library");
// cnn.Open();
// cmd = new SqlCommand("select * from members", cnn);
// cmd.CommandText="select * from member";
// da=new SqlDataAdapter (cmd.CommandText ,cnn);
// da.Fill(ds,"memb");
// dr=ds.Tables[0].Rows[ds.Tables[0].Rows.Count - 1];
// textBox2.Text = dr[0]
}
private void pictureBox1_Click(object sender, EventArgs e)
{
}
private void button15_Click(object sender, EventArgs e)
{
cnn = new
SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library");
cnn.Open();
cmd = new SqlCommand("select * from members", cnn);
cmd.CommandText = "delete from members where memEmpNo= " + "'" +
textBox2.Text + "'";
cmd.ExecuteNonQuery();
cnn.Close();
MessageBox.Show("delete record sucessfully");
}
}
}
FORM 4
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.Sql;
using System.Data.SqlClient;
namespace library_management_system
{
public partial class Form4 : Form
{
SqlConnection cnn;
SqlCommand cmd;
public Form4()
{
InitializeComponent();
}
private void label7_Click(object sender, EventArgs e)
{
}
private void Form4_Load(object sender, EventArgs e)
{
}
private void button21_Click(object sender, EventArgs e)
{
}
private void button22_Click(object sender, EventArgs e)
{
}
private void button20_Click(object sender, EventArgs e)
{
}
private void button19_Click(object sender, EventArgs e)
{
}
private void button10_Click(object sender, EventArgs e)
{
Welcome f2 = new Welcome();
f2.Show();
Hide();
}
private void button13_Click(object sender, EventArgs e)
{
long Price;
long YearOfPublication;
long Edition;
long VerificationDatefrom;
long VerificationdateTo;
cnn = new
SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library");
cnn.Open();
cmd = new SqlCommand("select * from stockverificationregister", cnn);
String AccessionNo = textBox11.Text;
String Title = textBox2.Text;
String Author = textBox10.Text;
String language1 = textBox3.Text;
if (textBox4.Text == "")
{
Price = 0;
}
else
{
Price = long.Parse(textBox4.Text);
}
if (textBox5.Text == "")
{
YearOfPublication = 0;
}
else
{
YearOfPublication = long.Parse(textBox5.Text);
}
if (textBox7.Text == "")
{
Edition = 0;
}
else
{
Edition = long.Parse(textBox7.Text);
}
String Location = textBox6.Text;
String subject1 = textBox8.Text;
String GotoAccessionNo = textBox12.Text;
if (maskedTextBox1.Text == "")
{
VerificationDatefrom = 0;
}
else
{
VerificationDatefrom = long.Parse(maskedTextBox1.Text);
}
if (maskedTextBox2.Text == "")
{
VerificationdateTo = 0;
}
else
{
VerificationdateTo = long.Parse(maskedTextBox2.Text);
}
String Status1 = textBox1.Text;
String Remarks = textBox9.Text;
cmd.CommandText = "INSERT INTO stockverificationregister VALUES('" +
AccessionNo + "','" + Title + "','" + Author + "','" + language1 + "'," + Price + "," +
YearOfPublication + "," + Edition + ",'" + Location + "','" + subject1 + "','" +
GotoAccessionNo + "'," + VerificationDatefrom + "," + VerificationdateTo + ",'" + Status1
+ "','" + Remarks + "')";
cmd.ExecuteNonQuery();
cnn.Close();
MessageBox.Show("save record sucessfully");
}
private void button14_Click(object sender, EventArgs e)
{
long Price;
long YearOfPublication;
long Edition;
long VerificationDatefrom;
long VerificationdateTo;
cnn = new
SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library");
cnn.Open();
cmd = new SqlCommand("select * from stockverificationregister", cnn);
String AccessionNo = textBox11.Text;
String Title = textBox2.Text;
String Author = textBox10.Text;
String language1 = textBox3.Text;
if (textBox4.Text == "")
{
Price = 0;
}
else
{
Price = long.Parse(textBox4.Text);
}
if (textBox5.Text == "")
{
YearOfPublication = 0;
}
else
{
YearOfPublication = long.Parse(textBox5.Text);
}
if (textBox7.Text == "")
{
Edition = 0;
}
else
{
Edition = long.Parse(textBox7.Text);
}
String Location = textBox6.Text;
String subject1 = textBox8.Text;
String GotoAccessionNo = textBox12.Text;
if (maskedTextBox1.Text == "")
{
VerificationDatefrom = 0;
}
else
{
VerificationDatefrom = long.Parse(maskedTextBox1.Text);
}
if (maskedTextBox2.Text == "")
{
VerificationdateTo = 0;
}
else
{
VerificationdateTo = long.Parse(maskedTextBox2.Text);
}
String Status1 = textBox1.Text;
String Remarks = textBox9.Text;
cmd.CommandText = "INSERT INTO stockverificationregister VALUES('" +
AccessionNo + "','" + Title + "','" + Author + "','" + language1 + "'," + Price + "," +
YearOfPublication + "," + Edition + ",'" + Location + "','" + subject1 + "','" +
GotoAccessionNo + "'," + VerificationDatefrom + "," + VerificationdateTo + ",'" + Status1
+ "','" + Remarks + "')";
cmd.ExecuteNonQuery();
cnn.Close();
MessageBox.Show("Update record sucessfully");
}
private void button15_Click(object sender, EventArgs e)
{
cnn = new
SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library");
cnn.Open();
cmd = new SqlCommand("select * from stockverificationregister", cnn);
cmd.CommandText = "delete from stockverificationregister where AccessionNo= "
+ "'" + textBox11.Text + "'";
cmd.ExecuteNonQuery();
cnn.Close();
MessageBox.Show("delete record sucessfully");
}
private void button17_Click(object sender, EventArgs e)
{
Login f1 = new Login();
f1.Show();
Hide();
}
private void button16_Click(object sender, EventArgs e)
{
textBox11.Text = "";
textBox2.Text = "";
textBox10.Text = "";
textBox3.Text = "";
textBox4.Text = "";
textBox5.Text = "";
textBox7.Text = "";
textBox6.Text = "";
textBox8.Text = "";
textBox12.Text = "";
maskedTextBox1.Text = "";
maskedTextBox2.Text = "";
textBox1.Text = "";
textBox9.Text = "";
}
private void button12_Click(object sender, EventArgs e)
{
}
}
}
FORM 5
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.Sql;
using System.Data.SqlClient;
namespace library_management_system
{
public partial class Form5 : Form
{
SqlConnection cnn;
SqlCommand cmd;
public Form5()
{
InitializeComponent();
}
private void button10_Click(object sender, EventArgs e)
{
Welcome f2 = new Welcome();
f2.Show();
Hide();
}
private void Form5_Load(object sender, EventArgs e)
{
}
private void button13_Click(object sender, EventArgs e)
{
}
private void button12_Click(object sender, EventArgs e)
{
long Price;
long YearOfPublication;
long VerificationDateFrom;
long VerificationDateTo;
cnn = new
SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library");
cnn.Open();
cmd = new SqlCommand("select * from stockverificationregisterotheritems",
cnn);
String RecordId = textBox11.Text;
String AccessionNo =textBox13.Text;
String Title =textBox2.Text;
String Author=textBox10.Text;
if (textBox4.Text == "")
{
Price = 0;
}
else
{
Price = long.Parse(textBox4.Text);
}
if (textBox5.Text == "")
{
YearOfPublication = 0;
}
else
{
YearOfPublication = long.Parse(textBox5.Text);
}
String Location=textBox6.Text;
String GotoAccessionNo = textBox12.Text;
if (maskedTextBox1.Text == "")
{
VerificationDateFrom = 0;
}
else
{
VerificationDateFrom = long.Parse(maskedTextBox1.Text);
}
if (maskedTextBox2.Text == "")
{
VerificationDateTo = 0;
}
else
{
VerificationDateTo = long.Parse(maskedTextBox2.Text);
}
String Status1 = textBox1.Text;
String Remarks = textBox9.Text;
String TypeOfMaterial = comboBox1.Text;
cmd.CommandText = "INSERT INTO stockverificationregisterotheritems VALUES('"
+ RecordId + "' , '" + AccessionNo + "' ,'" + Title + "' , '" + Author + "' , " + Price +
" , " + YearOfPublication + " ,'" + Location + "' , '" + GotoAccessionNo + "' , " +
VerificationDateFrom + " ," + VerificationDateTo + " ,'" + Status1 + "' ,'" + Remarks +
"' , '" + TypeOfMaterial + "')";
cmd.ExecuteNonQuery();
cnn.Close();
MessageBox.Show("Add record sucessfully");
}
private void button15_Click(object sender, EventArgs e)
{
cnn = new
SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library");
cnn.Open();
cmd = new SqlCommand("select * from stockverificationregisterotheritems",
cnn);
cmd.CommandText = "delete from stockverificationregisterotheritems where
RecordId= " + "'" + textBox11.Text + "'";
cmd.ExecuteNonQuery();
cnn.Close();
MessageBox.Show("delete record sucessfully");
}
private void button16_Click(object sender, EventArgs e)
{
textBox11.Text = "";
textBox13.Text = "";
textBox2.Text = "";
textBox10.Text = "";
textBox4.Text = "";
textBox5.Text = "";
textBox6.Text = "";
textBox12.Text = "";
maskedTextBox1.Text = "";
maskedTextBox2.Text = "";
textBox1.Text = "";
textBox9.Text = "";
comboBox1.Text = "";
}
}
}
FORM 6
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.Sql;
using System.Data.SqlClient;
namespace library_management_system
{
public partial class Form6 : Form
{
SqlConnection cnn;
SqlCommand cmd;
String typeofBook;
public Form6()
{
InitializeComponent();
}
private void Form6_Load(object sender, EventArgs e)
{
}
private void label15_Click(object sender, EventArgs e)
{
}
private void label14_Click(object sender, EventArgs e)
{
}
private void vScrollBar1_Scroll(object sender, ScrollEventArgs e)
{
HScrollBar h1 = new HScrollBar();
h1.Height = 1600;
h1.Width = 1000;
}
private void button4_Click(object sender, EventArgs e)
{
}
private void textBox5_TextChanged(object sender, EventArgs e)
{
}
private void label40_Click(object sender, EventArgs e)
{
}
private void button10_Click(object sender, EventArgs e)
{
}
private void comboBox6_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void label49_Click(object sender, EventArgs e)
{
}
private void panel1_Paint(object sender, PaintEventArgs e)
{
}
private void label13_Click(object sender, EventArgs e)
{
}
private void label19_Click(object sender, EventArgs e)
{
}
private void label12_Click(object sender, EventArgs e)
{
}
private void label11_Click(object sender, EventArgs e)
{
}
private void label10_Click(object sender, EventArgs e)
{
}
private void label9_Click(object sender, EventArgs e)
{
}
private void textBox13_TextChanged(object sender, EventArgs e)
{
}
private void textBox14_TextChanged(object sender, EventArgs e)
{
}
private void textBox12_TextChanged(object sender, EventArgs e)
{
}
private void textBox11_TextChanged(object sender, EventArgs e)
{
}
private void textBox10_TextChanged(object sender, EventArgs e)
{
}
private void textBox9_TextChanged(object sender, EventArgs e)
{
}
private void textBox8_TextChanged(object sender, EventArgs e)
{
}
private void textBox7_TextChanged(object sender, EventArgs e)
{
}
private void textBox6_TextChanged(object sender, EventArgs e)
{
}
private void label4_Click(object sender, EventArgs e)
{
}
private void textBox3_TextChanged(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
}
private void comboBox4_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void label32_Click(object sender, EventArgs e)
{
}
private void label5_Click(object sender, EventArgs e)
{
}
private void label6_Click(object sender, EventArgs e)
{
}
private void button29_Click(object sender, EventArgs e)
{
Welcome f2 = new Welcome();
f2.Show();
Hide();
}
private void button13_Click(object sender, EventArgs e)
{
long edition;
long DateYear;
long price;
long price1;
long PriceRupee;
cnn = new
SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library");
cnn.Open();
cmd = new SqlCommand("select * from books", cnn);
String catalogTo = comboBox1.Text;
String language1 = comboBox3.Text;
String SortBy = comboBox4.Text;
String NewArrivals = textBox1.Text;
String TypeofMaterial = comboBox6.Text;
String language2 = textBox3.Text;
String AccessionPrefix = textBox6.Text;
String AccessionNo = textBox5.Text;
String AccDate = textBox7.Text;
String classNumber = textBox8.Text;
String BookNumber = textBox9.Text;
String Title = textBox11.Text;
String SubTitle = textBox12.Text;
String Responsiblity = textBox13.Text;
String editionSurname = textBox23.Text;
String editionForname = textBox24.Text;
String editorSurname = textBox25.Text;
String editorForname = textBox28.Text;
String TranslatorSurname = textBox27.Text;
String TranslatorForename = textBox30.Text;
String compilerSurname = textBox26.Text;
String compilerForname = textBox29.Text;
if (textBox14.Text == "")
{
edition = 0;
}
else
{
edition = long.Parse(textBox14.Text);
}
String placeOfPub = textBox31.Text;
String Publisher = textBox32.Text;
if (textBox33.Text == "")
{
DateYear = 0;
}
else
{
DateYear = long.Parse(textBox33.Text);
}
if (comboBox7.Text =="")
{
price = 0;
}
else
{
price = long.Parse(comboBox7.Text);
}
if (textBox34.Text == "")
{
price1 = 0;
}
else
{
price1 = long.Parse(textBox34.Text);
}
String GotoAccessionNo = textBox36.Text;
if (textBox35.Text == "")
{
PriceRupee = 0;
}
else
{
PriceRupee = long.Parse(textBox35.Text);
}
String CopyDetailsOfCataloguedBook = textBox2.Text;
String pages = textBox20.Text;
String Volume = textBox19.Text;
String AcmpMaterial = textBox18.Text;
String notes = textBox21.Text;
String ISBN = textBox22.Text;
String Subject1 = comboBox5.Text;
String subject2 = textBox38.Text;
String descriptions = richTextBox1.Text;
String keywords = textBox37.Text;
String AuthorityFile = richTextBox2.Text;
String Remarks = textBox39.Text;
String AddedEntries = richTextBox3.Text;
if (checkBox2.Checked == true)
{
typeofBook = "General";
}
else if (checkBox3.Checked == true)
{
typeofBook = "Text";
}
else if (checkBox4.Checked == true)
{
typeofBook = "Reference";
}
else
{
typeofBook = "";
}
cmd.CommandText = "INSERT INTO books VALUES('" + catalogTo + "' , '" +
language1 + "' , '" + SortBy + "' , '" + NewArrivals + "' , '" + TypeofMaterial + "' , '"
+ language2 + "' , '" + AccessionPrefix + "' , '" + AccessionNo + "' , '" + AccDate + "'
, '" + classNumber + "' , '" + BookNumber + "' , '" + Title + "' , '" + SubTitle + "' ,
'" + Responsiblity + "' , '" + editionSurname + "' , '" + editionForname + "' , '" +
editorSurname + "' , '" + editorForname + "' , '" + TranslatorSurname + "' , '" +
TranslatorForename + "' , '" + compilerSurname + "' , '" + compilerForname + "' , " +
edition + " , '" + placeOfPub + "' , '" + Publisher + "' , " + DateYear + " , " + price +
" , " + price1 + " , '" + GotoAccessionNo + "' , " + PriceRupee + " , '" +
CopyDetailsOfCataloguedBook + "' , '" + pages + "' , '" + Volume + "' , '" + AcmpMaterial
+ "' , '" + notes + "' , '" + ISBN + "' , '" + Subject1 + "' , '" + subject2 + "' , '" +
descriptions + "' , '" + keywords + "' , '" + AuthorityFile + "' , '" + Remarks + "' , '"
+ AddedEntries + "' , '" + typeofBook + "')";
cmd.ExecuteNonQuery();
cnn.Close();
MessageBox.Show("save record sucessfully");
}
private void button14_Click(object sender, EventArgs e)
{
long edition;
long DateYear;
long price;
long price1;
long PriceRupee;
cnn = new
SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library");
cnn.Open();
cmd = new SqlCommand("select * from books", cnn);
String catalogTo = comboBox1.Text;
String language1 = comboBox3.Text;
String SortBy = comboBox4.Text;
String NewArrivals = textBox1.Text;
String TypeofMaterial = comboBox6.Text;
String language2 = textBox3.Text;
String AccessionPrefix = textBox6.Text;
String AccessionNo = textBox5.Text;
String AccDate = textBox7.Text;
String classNumber = textBox8.Text;
String BookNumber = textBox9.Text;
String Title = textBox11.Text;
String SubTitle = textBox12.Text;
String Responsiblity = textBox13.Text;
String editionSurname = textBox23.Text;
String editionForname = textBox24.Text;
String editorSurname = textBox25.Text;
String editorForname = textBox28.Text;
String TranslatorSurname = textBox27.Text;
String TranslatorForename = textBox30.Text;
String compilerSurname = textBox26.Text;
String compilerForname = textBox29.Text;
if (textBox14.Text == "")
{
edition = 0;
}
else
{
edition = long.Parse(textBox14.Text);
}
String placeOfPub = textBox31.Text;
String Publisher = textBox32.Text;
if (textBox33.Text == "")
{
DateYear = 0;
}
else
{
DateYear = long.Parse(textBox33.Text);
}
if (comboBox7.Text == "")
{
price = 0;
}
else
{
price = long.Parse(comboBox7.Text);
}
if (textBox34.Text == "")
{
price1 = 0;
}
else
{
price1 = long.Parse(textBox34.Text);
}
String GotoAccessionNo = textBox36.Text;
if (textBox35.Text == "")
{
PriceRupee = 0;
}
else
{
PriceRupee = long.Parse(textBox35.Text);
}
String CopyDetailsOfCataloguedBook = textBox2.Text;
String pages = textBox20.Text;
String Volume = textBox19.Text;
String AcmpMaterial = textBox18.Text;
String notes = textBox21.Text;
String ISBN = textBox22.Text;
String Subject1 = comboBox5.Text;
String subject2 = textBox38.Text;
String descriptions = richTextBox1.Text;
String keywords = textBox37.Text;
String AuthorityFile = richTextBox2.Text;
String Remarks = textBox39.Text;
String AddedEntries = richTextBox3.Text;
if (checkBox2.Checked == true)
{
typeofBook = "General";
}
else if (checkBox3.Checked == true)
{
typeofBook = "Text";
}
else if (checkBox4.Checked == true)
{
typeofBook = "Reference";
}
else
{
typeofBook = "";
}
cmd.CommandText = "INSERT INTO books VALUES('" + catalogTo + "' , '" +
language1 + "' , '" + SortBy + "' , '" + NewArrivals + "' , '" + TypeofMaterial + "' , '"
+ language2 + "' , '" + AccessionPrefix + "' , '" + AccessionNo + "' , '" + AccDate + "'
, '" + classNumber + "' , '" + BookNumber + "' , '" + Title + "' , '" + SubTitle + "' ,
'" + Responsiblity + "' , '" + editionSurname + "' , '" + editionForname + "' , '" +
editorSurname + "' , '" + editorForname + "' , '" + TranslatorSurname + "' , '" +
TranslatorForename + "' , '" + compilerSurname + "' , '" + compilerForname + "' , " +
edition + " , '" + placeOfPub + "' , '" + Publisher + "' , " + DateYear + " , " + price +
" , " + price1 + " , '" + GotoAccessionNo + "' , " + PriceRupee + " , '" +
CopyDetailsOfCataloguedBook + "' , '" + pages + "' , '" + Volume + "' , '" + AcmpMaterial
+ "' , '" + notes + "' , '" + ISBN + "' , '" + Subject1 + "' , '" + subject2 + "' , '" +
descriptions + "' , '" + keywords + "' , '" + AuthorityFile + "' , '" + Remarks + "' , '"
+ AddedEntries + "' , '" + typeofBook + "')";
cmd.ExecuteNonQuery();
cnn.Close();
MessageBox.Show("update record sucessfully");
}
private void button15_Click(object sender, EventArgs e)
{
cnn = new
SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library");
cnn.Open();
cmd = new SqlCommand("select * from books", cnn);
cmd.CommandText = "delete from books where catalogTo= " + "'" +
comboBox1.Text + "'";
cmd.ExecuteNonQuery();
cnn.Close();
MessageBox.Show("delete record sucessfully");
}
private void button17_Click(object sender, EventArgs e)
{
Login f1 = new Login();
f1.Show();
Hide();
}
private void button16_Click(object sender, EventArgs e)
{
comboBox1.Text = "";
comboBox3.Text = "";
comboBox4.Text = "";
textBox1.Text = "";
comboBox6.Text= "";
textBox3.Text = "";
textBox6.Text = "";
textBox5.Text= "";
textBox7.Text = "";
textBox8.Text = "";
textBox9.Text = "";
textBox11.Text = "";
textBox12.Text = "";
textBox13.Text = "";
textBox23.Text = "";
textBox24.Text = "";
textBox25.Text = "";
textBox28.Text = "";
textBox27.Text = "";
textBox30.Text = "";
textBox26.Text = "";
textBox29.Text = "";
textBox14.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox31.Text = "";
textBox32.Text = "";
textBox33.Text = "";
comboBox7.Text = "";
textBox34.Text = "";
textBox36.Text ="";
textBox35.Text = "";
textBox2.Text = "";
textBox20.Text = "";
textBox19.Text = "";
textBox18.Text = "";
textBox21.Text = "";
textBox22.Text = "";
textBox22.Text = "";
textBox22.Text = "";
comboBox5.Text ="";
comboBox5.Text ="";
textBox38.Text="";
richTextBox1.Text="";
textBox37.Text="";
richTextBox2.Text="";
textBox39.Text="";
richTextBox3.Text="";
}
}
}
FORM 7
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.Sql;
using System.Data.SqlClient;
namespace library_management_system
{
public partial class Form7 : Form
{
SqlConnection cnn;
SqlCommand cmd;
String typeofbook;
public Form7()
{
InitializeComponent();
}
private void label42_Click(object sender, EventArgs e)
{
}
private void button7_Click(object sender, EventArgs e)
{
Welcome f2 = new Welcome();
f2.Show();
Hide();
}
private void button13_Click(object sender, EventArgs e)
{
String price;
String price1;
String priceRupee;
cnn = new
SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library");
cnn.Open();
cmd = new SqlCommand("select * from meeting", cnn);
String catalogto = comboBox1.Text;
String language1 = comboBox3.Text;
String sortby = comboBox4.Text;
String newArrivals = textBox1.Text;
String typeofmaterial = comboBox6.Text;
String copyDetailsOfCataloguedBook = textBox2.Text;
String language2 = textBox3.Text;
String AccessionNumberPrefix = textBox6.Text;
String AccessionNo = textBox5.Text;
String AccDate = textBox7.Text;
String callNumberClassNumber = textBox8.Text;
String bookNumber = textBox9.Text;
String callNumber = textBox10.Text;
String Title = textBox11.Text;
String subTitle = textBox12.Text;
String Responsibility = textBox13.Text;
String editionSurname = textBox23.Text;
String editionForename = textBox24.Text;
String editorSurname = textBox25.Text;
String editorForename = textBox28.Text;
String TranslatorSurname = textBox27.Text;
String TranslatorForename = textBox30.Text;
String compilerSurname = textBox26.Text;
String compilerForename = textBox29.Text;
String edition = textBox14.Text;
String name = textBox31.Text;
String refNo = textBox32.Text;
String PlaceofIndustry = textBox33.Text;
price = comboBox7.Text;
price1 = textBox34.Text;
priceRupee = textBox35.Text;
/* if (comboBox7.Text == "")
{
price = 0;
}
else
{
price = double.Parse(comboBox7.Text);
}
if (textBox34.Text == "")
{
price1 = 0;
}
else
{
price1 = double.Parse(textBox34.Text);
}
if (textBox35.Text == "")
{
priceRupee = 0;
}
else
{
priceRupee = double.Parse(textBox35.Text);
}*/
String GoToAccessionNo = textBox36.Text;
String pages = textBox20.Text;
String volume = textBox19.Text;
String AcmpMaterial = textBox18.Text;
String Notes = textBox21.Text;
String ISBN = textBox22.Text;
String subject1 = comboBox5.Text;
String subject2 = textBox38.Text;
String Descriptors = richTextBox1.Text;
String keywords = textBox37.Text;
String Remarks = textBox39.Text;
if (checkBox2.Checked == true)
{
typeofbook = "General";
}
else if (checkBox3.Checked == true)
{
typeofbook = "Text";
}
else if (checkBox4.Checked == true)
{
typeofbook = "Reference";
}
else
{
typeofbook = "";
}
String AddedEntries = richTextBox3.Text;
String authf = richTextBox2.Text;
cmd.CommandText = "INSERT INTO meeting VALUES('" + catalogto + "' , '" +
language1 + "' , '" + sortby + "' , '" + newArrivals + "' , '" + typeofmaterial + "' , '"
+
copyDetailsOfCataloguedBook + "' , '" + language2 + "' , '" +
AccessionNumberPrefix + "' , '" + AccessionNo + "' , '" + AccDate + "' , '" +
callNumberClassNumber +
"' , '" + bookNumber + "' , '" + callNumber + "' , '" + Title + "' , '" +
subTitle + "' , '" + Responsibility + "', '" + editionSurname + "' ,'" + editionForename
+
"' , '" + editorSurname + "' , '" + editorForename + "','" +
TranslatorSurname + "' ,'" + TranslatorForename + "', '" + compilerSurname + "' , '" +
compilerForename +
"' , '" + edition + "', '" + name + "', '" + refNo + "' , '" +
PlaceofIndustry + "', " + price + ", " + price1 + " , " + priceRupee + ", '" +
GoToAccessionNo +
"' , '" + pages + "' , '" + volume + "', '" + AcmpMaterial + "' , '" +
Notes + "', '" + ISBN + "' ,'" + subject1 + "' ,'" + subject2 + "', '" + Descriptors +
"', '" + keywords + "' ,'" + Remarks + "', '" + typeofbook + "' , '" +
AddedEntries + "' , '" + authf + "')";
cmd.ExecuteNonQuery();
cnn.Close();
MessageBox.Show("save record sucessfully");
}
private void button18_Click(object sender, EventArgs e)
{
}
private void button15_Click(object sender, EventArgs e)
{
cnn = new
SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library");
cnn.Open();
cmd = new SqlCommand("select * from meeting", cnn);
cmd.CommandText = "delete from meeting where catalogto= " +
"'"+comboBox1.Text+"'";
cmd.ExecuteNonQuery();
cnn.Close();
MessageBox.Show("delete record sucessfully");
}
}
}
FORM 8
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace library_management_system
{
public partial class Form8 : Form
{
public Form8()
{
InitializeComponent();
}
private void richTextBox4_TextChanged(object sender, EventArgs e)
{
}
private void Form8_Load(object sender, EventArgs e)
{
}
private void button21_Click(object sender, EventArgs e)
{
}
private void button19_Click(object sender, EventArgs e)
{
}
private void button20_Click(object sender, EventArgs e)
{
}
private void button22_Click(object sender, EventArgs e)
{
}
private void button18_Click(object sender, EventArgs e)
{
}
private void button13_Click(object sender, EventArgs e)
{
}
private void button14_Click(object sender, EventArgs e)
{
}
private void button15_Click(object sender, EventArgs e)
{
}
private void button16_Click(object sender, EventArgs e)
{
}
private void button17_Click(object sender, EventArgs e)
{
}
private void button6_Click(object sender, EventArgs e)
{
Welcome f2 = new Welcome();
f2.Show();
Hide();
}
}
}
FORM 9
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.Sql;
using System.Data.SqlClient;
namespace library_management_system
{
public partial class Form9 : Form
{
SqlConnection cnn;
SqlCommand cmd;
public Form9()
{
InitializeComponent();
}
private void label2_Click(object sender, EventArgs e)
{
}
private void Form9_Load(object sender, EventArgs e)
{
}
private void button10_Click(object sender, EventArgs e)
{
Welcome f2 = new Welcome();
f2.Show();
Hide();
}
private void button12_Click(object sender, EventArgs e)
{
cnn = new
SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library");
cnn.Open();
cmd = new SqlCommand("select * from annualReport", cnn);
String id = textBox2.Text;
String companyname = comboBox1.Text;
String year1 = textBox3.Text;
String productServices = comboBox2.Text;
String gotoSerialNo = textBox1.Text;
cmd.CommandText = "INSERT INTO annualReport VALUES('" + id + "','" +
companyname + "' , '" + year1 + "' , '" + productServices + "' , '" + gotoSerialNo +
"')";
cmd.ExecuteNonQuery();
cnn.Close();
MessageBox.Show("Add record sucessfully");
}
private void button13_Click(object sender, EventArgs e)
{
}
}
}
FORM 10
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.Sql;
using System.Data.SqlClient;
namespace library_management_system
{
public partial class Form10 : Form
{
SqlConnection cnn;
SqlCommand cmd;
public Form10()
{
InitializeComponent();
}
private void dataGridView1_CellContentClick(object sender,
DataGridViewCellEventArgs e)
{
}
private void dataGridView1_CellContentClick_1(object sender,
DataGridViewCellEventArgs e)
{
}
private void button10_Click(object sender, EventArgs e)
{
Welcome f2 = new Welcome();
f2.Show();
Hide();
}
private void label10_Click(object sender, EventArgs e)
{
}
private void Form10_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'dataSet11.finemanagement'
table. You can move, or remove it, as needed.
// this.finemanagementTableAdapter.Fill(this.dataSet11.finemanagement);
}
private void button1_Click(object sender, EventArgs e)
{
long SelectedBalAmt;
DateTime DateOfRecived = new DateTime();
long payAmount;
long ExemptAmount;
long TotalAmountBalance;
cnn = new
SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library");
cnn.Open();
cmd = new SqlCommand("select * from finemanagement", cnn);
String memberid = textBox1.Text;
String name = textBox2.Text;
String MId = textBox3.Text;
if (textBox4.Text == "")
{
SelectedBalAmt = 0;
}
else
{
SelectedBalAmt = long.Parse(textBox4.Text);
}
DateOfRecived = DateTime.Parse(maskedTextBox1.Text);
if (textBox5.Text == "")
{
payAmount = 0;
}
else
{
payAmount = long.Parse(textBox5.Text);
}
if (textBox6.Text == "")
{
ExemptAmount = 0;
}
else
{
ExemptAmount = long.Parse(textBox6.Text);
}
if (textBox8.Text == "")
{
TotalAmountBalance = 0;
}
else
{
TotalAmountBalance = long.Parse(textBox8.Text);
}
String Remarks = textBox7.Text;
cmd.CommandText = "INSERT INTO finemanagement VALUES('" + memberid + "' , '"
+ name + "' , '" + MId + "' , " + SelectedBalAmt + " , " + DateOfRecived + " ," +
payAmount + "," + ExemptAmount + " , " + TotalAmountBalance + " , '" + Remarks + "')";
cmd.ExecuteNonQuery();
cnn.Close();
MessageBox.Show("payed");
}
}
}
FORM 11
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.Sql;
using System.Data.SqlClient;
namespace library_management_system
{
public partial class Form11 : Form
{
public Form11()
{
SqlConnection cnn;
SqlCommand cmd;
InitializeComponent();
}
private void panel1_Paint(object sender, PaintEventArgs e)
{
}
private void panel5_Paint(object sender, PaintEventArgs e)
{
}
private void button10_Click(object sender, EventArgs e)
{
Welcome f2 = new Welcome();
f2.Show();
}
private void button5_Click(object sender, EventArgs e)
{
}
}
}
FORM 12
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace library_management_system
{
public partial class Form12 : Form
{
public Form12()
{
InitializeComponent();
}
private void label6_Click(object sender, EventArgs e)
{
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void button10_Click(object sender, EventArgs e)
{
Welcome f2 = new Welcome();
f2.Show();
Hide();
}
private void button1_Click(object sender, EventArgs e)
{
}
}
}
FORM 13
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace library_management_system
{
public partial class Form13 : Form
{
public Form13()
{
InitializeComponent();
}
private void button10_Click(object sender, EventArgs e)
{
Welcome f2 = new Welcome();
f2.Show();
Hide();
}
private void Form13_Load(object sender, EventArgs e)
{
}
private void textBox2_TextChanged(object sender, EventArgs e)
{
}
private void label12_Click(object sender, EventArgs e)
{
}
private void textBox3_TextChanged(object sender, EventArgs e)
{
}
private void textBox4_TextChanged(object sender, EventArgs e)
{
}
private void textBox5_TextChanged(object sender, EventArgs e)
{
}
private void textBox6_TextChanged(object sender, EventArgs e)
{
}
private void label13_Click(object sender, EventArgs e)
{
}
private void button13_Click(object sender, EventArgs e)
{
}
}
}
FORM 14
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace library_management_system
{
public partial class Form14 : Form
{
public Form14()
{
InitializeComponent();
}
private void panel4_Paint(object sender, PaintEventArgs e)
{
}
private void radioButton5_CheckedChanged(object sender, EventArgs e)
{
}
private void radioButton6_CheckedChanged(object sender, EventArgs e)
{
}
private void radioButton4_CheckedChanged(object sender, EventArgs e)
{
}
private void button16_Click(object sender, EventArgs e)
{
Welcome F2 = new Welcome();
F2.Show();
Hide();
}
private void button7_Click(object sender, EventArgs e)
{
Login F1 = new Login();
F1.Show();
Hide();
}
private void button1_Click(object sender, EventArgs e)
{
}
}
}
FORM 15
FORM 16
FORM 17
BIBLIOGRAPHY
BIBLIOGRAPHY
BOOKS NAME AUTHOR PUBLISHER
Physical database
design
Tom nadeau Morgan kaufmann
SQL Clearly
explained
Jan L. harriangton Morgan kaufmann
library management system

More Related Content

What's hot

Library management system
Library management systemLibrary management system
Library management system
Imdad Ul Haq
 
Library Management System - LMS
Library Management System - LMSLibrary Management System - LMS
Library Management System - LMS
Hasibul Haque Hira
 
Library management system
Library management systemLibrary management system
Library management system
Paresh Gosavi
 
Software Development Methodologies Library Management System (Part-1)
Software Development Methodologies Library Management System (Part-1)Software Development Methodologies Library Management System (Part-1)
Software Development Methodologies Library Management System (Part-1)
Totan Banik
 
Online Library management system proposal by Banuka Dananjaya Subasinghe
Online Library management system proposal by Banuka Dananjaya SubasingheOnline Library management system proposal by Banuka Dananjaya Subasinghe
Online Library management system proposal by Banuka Dananjaya Subasinghe
BanukaSubasinghe
 
Library management system
Library management systemLibrary management system
Library management system
Krishna Malhotra
 
Library Management system
Library Management systemLibrary Management system
Library Management system
Tayyab Hussain
 
Library Management System
Library Management SystemLibrary Management System
Library Management SystemRanjan Ranjan
 
Library management system
Library management systemLibrary management system
Library management system
techlike
 
Library management system
Library management systemLibrary management system
Library management system
Sara Malik
 
Library management system
Library management systemLibrary management system
Library management systemsiddiqui241993
 
Thesis on Library Management System | LMS | Project Report
Thesis on Library Management System | LMS | Project ReportThesis on Library Management System | LMS | Project Report
Thesis on Library Management System | LMS | Project Report
Manish Sahani
 
Library Management System Waterfall Model
Library Management System Waterfall ModelLibrary Management System Waterfall Model
Library Management System Waterfall Model
mitwa1990
 
Project online library management
Project online library managementProject online library management
Project online library management
Prem Prasun
 
Library management system
Library management systemLibrary management system
Library management systemABhay Panchal
 
Library mangement-system
Library mangement-systemLibrary mangement-system
Library mangement-systemRafiul Rafi
 
Synopsis of Library Management System
Synopsis of Library Management SystemSynopsis of Library Management System
Synopsis of Library Management System
Ankit Verma
 
Online Library Management
Online Library ManagementOnline Library Management
Online Library ManagementVarsha Sarkar
 
Library management system
Library management systemLibrary management system
Library management system
Khushboo Taneja
 
Library management system synopsis
Library management system synopsisLibrary management system synopsis
Library management system synopsis
Shubham Upadhyay
 

What's hot (20)

Library management system
Library management systemLibrary management system
Library management system
 
Library Management System - LMS
Library Management System - LMSLibrary Management System - LMS
Library Management System - LMS
 
Library management system
Library management systemLibrary management system
Library management system
 
Software Development Methodologies Library Management System (Part-1)
Software Development Methodologies Library Management System (Part-1)Software Development Methodologies Library Management System (Part-1)
Software Development Methodologies Library Management System (Part-1)
 
Online Library management system proposal by Banuka Dananjaya Subasinghe
Online Library management system proposal by Banuka Dananjaya SubasingheOnline Library management system proposal by Banuka Dananjaya Subasinghe
Online Library management system proposal by Banuka Dananjaya Subasinghe
 
Library management system
Library management systemLibrary management system
Library management system
 
Library Management system
Library Management systemLibrary Management system
Library Management system
 
Library Management System
Library Management SystemLibrary Management System
Library Management System
 
Library management system
Library management systemLibrary management system
Library management system
 
Library management system
Library management systemLibrary management system
Library management system
 
Library management system
Library management systemLibrary management system
Library management system
 
Thesis on Library Management System | LMS | Project Report
Thesis on Library Management System | LMS | Project ReportThesis on Library Management System | LMS | Project Report
Thesis on Library Management System | LMS | Project Report
 
Library Management System Waterfall Model
Library Management System Waterfall ModelLibrary Management System Waterfall Model
Library Management System Waterfall Model
 
Project online library management
Project online library managementProject online library management
Project online library management
 
Library management system
Library management systemLibrary management system
Library management system
 
Library mangement-system
Library mangement-systemLibrary mangement-system
Library mangement-system
 
Synopsis of Library Management System
Synopsis of Library Management SystemSynopsis of Library Management System
Synopsis of Library Management System
 
Online Library Management
Online Library ManagementOnline Library Management
Online Library Management
 
Library management system
Library management systemLibrary management system
Library management system
 
Library management system synopsis
Library management system synopsisLibrary management system synopsis
Library management system synopsis
 

Similar to library management system

11 Project-Online Library Management System
11 Project-Online Library Management System11 Project-Online Library Management System
11 Project-Online Library Management System
Heather Strinden
 
amansingh.docx
amansingh.docxamansingh.docx
amansingh.docx
ammusingh2409
 
library management
library management library management
library management
sarthakkhanna1994
 
Phase 1 Documentation (Added System Req)
Phase 1 Documentation (Added System Req)Phase 1 Documentation (Added System Req)
Phase 1 Documentation (Added System Req)Reinier Eiman
 
11.project online library management system
11.project online library management system11.project online library management system
11.project online library management systemmonika ahalawat
 
Library Management System (1) (1).pptx
Library Management System (1) (1).pptxLibrary Management System (1) (1).pptx
Library Management System (1) (1).pptx
PiyushChoudhary341047
 
11.project online library management system
11.project online library management system11.project online library management system
11.project online library management systemricharamgarh
 
OS Password-Manager-Report.docx
OS Password-Manager-Report.docxOS Password-Manager-Report.docx
OS Password-Manager-Report.docx
rinim85726
 
Ignou MCA 6th Semester Synopsis
Ignou MCA 6th Semester SynopsisIgnou MCA 6th Semester Synopsis
Ignou MCA 6th Semester Synopsis
Hitesh Jangid
 
Aisha Email System
Aisha Email SystemAisha Email System
Aisha Email System
IOSR Journals
 
Srs library m s
Srs library m sSrs library m s
Srs library m s
karthik venkatesh
 
Library Management System
Library Management SystemLibrary Management System
Library Management System
Pankaj Kumar
 
Software requirements specification of Library Management System
Software requirements specification of Library Management SystemSoftware requirements specification of Library Management System
Software requirements specification of Library Management System
Soumili Sen
 
SRS for Library Management System
SRS for Library Management SystemSRS for Library Management System
SRS for Library Management System
Toseef Hasan
 
IRJET- Android Application for WIFI based Library Book Locator
IRJET-  	  Android Application for WIFI based Library Book LocatorIRJET-  	  Android Application for WIFI based Library Book Locator
IRJET- Android Application for WIFI based Library Book Locator
IRJET Journal
 
LIBARARY MANAGEMENT SYSTEM..docx
LIBARARY MANAGEMENT SYSTEM..docxLIBARARY MANAGEMENT SYSTEM..docx
LIBARARY MANAGEMENT SYSTEM..docx
AmitmAHI4
 
Library Management System
Library Management SystemLibrary Management System
Library Management SystemAditya Shah
 
Mca(.net & java) application projects abstracts(v)
Mca(.net & java) application projects abstracts(v)Mca(.net & java) application projects abstracts(v)
Mca(.net & java) application projects abstracts(v)
S3 Infotech IEEE Projects
 
Project report
Project report Project report
Project report
MansiKulkarni18
 

Similar to library management system (20)

11 Project-Online Library Management System
11 Project-Online Library Management System11 Project-Online Library Management System
11 Project-Online Library Management System
 
amansingh.docx
amansingh.docxamansingh.docx
amansingh.docx
 
library management
library management library management
library management
 
Phase 1 Documentation (Added System Req)
Phase 1 Documentation (Added System Req)Phase 1 Documentation (Added System Req)
Phase 1 Documentation (Added System Req)
 
11.project online library management system
11.project online library management system11.project online library management system
11.project online library management system
 
Library Management System (1) (1).pptx
Library Management System (1) (1).pptxLibrary Management System (1) (1).pptx
Library Management System (1) (1).pptx
 
11.project online library management system
11.project online library management system11.project online library management system
11.project online library management system
 
OS Password-Manager-Report.docx
OS Password-Manager-Report.docxOS Password-Manager-Report.docx
OS Password-Manager-Report.docx
 
Ignou MCA 6th Semester Synopsis
Ignou MCA 6th Semester SynopsisIgnou MCA 6th Semester Synopsis
Ignou MCA 6th Semester Synopsis
 
Aisha Email System
Aisha Email SystemAisha Email System
Aisha Email System
 
Srs library m s
Srs library m sSrs library m s
Srs library m s
 
Library Management System
Library Management SystemLibrary Management System
Library Management System
 
Software requirements specification of Library Management System
Software requirements specification of Library Management SystemSoftware requirements specification of Library Management System
Software requirements specification of Library Management System
 
SRS for Library Management System
SRS for Library Management SystemSRS for Library Management System
SRS for Library Management System
 
IRJET- Android Application for WIFI based Library Book Locator
IRJET-  	  Android Application for WIFI based Library Book LocatorIRJET-  	  Android Application for WIFI based Library Book Locator
IRJET- Android Application for WIFI based Library Book Locator
 
LIBARARY MANAGEMENT SYSTEM..docx
LIBARARY MANAGEMENT SYSTEM..docxLIBARARY MANAGEMENT SYSTEM..docx
LIBARARY MANAGEMENT SYSTEM..docx
 
Library Management System
Library Management SystemLibrary Management System
Library Management System
 
Mca(.net & java) application projects abstracts(v)
Mca(.net & java) application projects abstracts(v)Mca(.net & java) application projects abstracts(v)
Mca(.net & java) application projects abstracts(v)
 
Project report
Project report Project report
Project report
 
Project
ProjectProject
Project
 

Recently uploaded

AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Shahin Sheidaei
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
Globus
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
Tier1 app
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
informapgpstrackings
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
IES VE
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
kalichargn70th171
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
RISE with SAP and Journey to the Intelligent Enterprise
RISE with SAP and Journey to the Intelligent EnterpriseRISE with SAP and Journey to the Intelligent Enterprise
RISE with SAP and Journey to the Intelligent Enterprise
Srikant77
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
Graphic Design Crash Course for beginners
Graphic Design Crash Course for beginnersGraphic Design Crash Course for beginners
Graphic Design Crash Course for beginners
e20449
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Anthony Dahanne
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar
 

Recently uploaded (20)

AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
RISE with SAP and Journey to the Intelligent Enterprise
RISE with SAP and Journey to the Intelligent EnterpriseRISE with SAP and Journey to the Intelligent Enterprise
RISE with SAP and Journey to the Intelligent Enterprise
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
Graphic Design Crash Course for beginners
Graphic Design Crash Course for beginnersGraphic Design Crash Course for beginners
Graphic Design Crash Course for beginners
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 

library management system

  • 1. Submitted for thepartial fulfillment of the Award of thedegree of M.sc. In Computer Science (2015-2017) DEPARTMENT OF COMPUTER SCIENCE
  • 2. CHINMAYA DEGREE COLLEGE HARIDWAR, UTTRAKHAND (Affiliated To- H.N.B. Garhwal Central University, Garhwal) Submittedby: Under the Supervision HIMANSHUCHAUHAN Mr. VAISHNO DASS SHARMA DECLARATION I hear by declare that this submission is my own work and that, to the best of my knowledge and belief, it contain no material previously written by another person nor material which has been accepted for the university or other institute of higher learning, except where due acknowledge has been made in the text. Place..……………….. Signature ……………….. Date………………….. Name………………………
  • 3. Reg. No……………… ACKNOWLEDGEMENT The satisfaction that accompanies the successful completion of any task would be incomplete without the mention of people whose ceaseless cooperation made it possible, whose constant guidance and encouragement all efforts with success. We are grateful to our project guide Mr. Vaishno Dass Sharma for the guidance, inspiration and construction suggestions that helpful us in the preparation of this project. We also thank our colleagues who have helped in successful completion of the project.
  • 4. HIMANSHU CHAUHAN CONTENTS 1. PREFACE  Project Name  Introduction  Need of Project  Objective  Area of Project 2. SRS  Purpose of Application  Scope of Project  General idea of Project  Tool & Platform  Function Requirement  Non function Requirement Specification  Abbreviation 3. System Analysis
  • 5. 4. Feasibility Study 5. Dad’s R Diagrams, Tables 6. Design 7. Testing 8. Coding & Implementation 9. Maintenance & Post Implementation 10. Database 11. Snap shots and coding 12. Abbreviations 13. Reference & Bibliography
  • 6.
  • 8. PREFACE LIBRARY MANAGEMENT SYSTEM Library Management is the systematic method of managing the whole library through a simple and interactive interface – LMS (Library Management Software). Using LMS, the librarian can handle basic housekeeping functions of a library such as storing all the library item details like author name, edition, price, etc. of all the books in a library database. It helps to provide information on any book present in library to the user as well as staff member. Library Management Software keeps a track on all the books that are issued, returned and added to the library. Overseeing fee collection and fine issued to late return on the book are other important functions of LMS Software. Overall having a LMS Software is important for an efficient, user-friendly, fast and secure library management - be it a small size school library having limited users and books or a large size public library. LMS software comes in various shape and sizes (e.g. small library software, cloud based library management software etc.), platform-specific (e.g. Windows-only, Linux-only, MAC-only) or supports multiple platforms (covering MAC, Linux, UNIX etc.), publisher-specific (e.g. Microsoft) or multi-vendor, static (i.e. fixed, updated manually by administrator) or dynamic (automatically updated by the SAM solution vendor), simple recognition (e.g. using just exe data) or complex recognition (e.g. tying together multiple footprints such as executable meta, registry entries, SWID tag data, package manager details or product specific details gathered by running scripts). Some commonly used LMS Software are – SURPASS, Lucidea Integrated Library Systems, Koha ILS, L4U, OPALS, Destiny
  • 9. Library Manager, Handy Library Manager, Insignia Library System, Access-It Library, MODERNLIB, Atriuum, LIBRARIAN, Readerware, etc. It is comprehensively packaged software that supports the librarian very effectively. The software might be either of use only for the librarian or might be useful for both - users and the library staff. Most software consists of modules that are integrated on the home page. The modules might consist of the following areas: 1. Administration : funds, stock verification , other items stock verification, members, membership card, vendors, news paper, current awareness, and help. 2. Acquisition: Book orders, receipt and invoices related to quotations, procurement and purchase of items. 3. Catalogues: Classification and Index of materials stocked. 4. Circulation: Materials lent and their receipt 5. Member faculty: suggestion(books), OPAC, recent acquisition. 6. Article indexing: article indexing, current awareness 7. Serial Tracking: Journals, Periodicals, Magazines and Newspapers that are subscribed and have to track them on daily/weekly/monthly basis 8. Import data: import data, export data 9. Public Interface Usage: Checking on the software updates In this software, each user (and even the item) has a unique ID created by the database that allows the library staff to track the activities and status. Large libraries use both user and staff interfaces of the software and have many integrated features. Small libraries don’t engage in additional expense and just use the basic software system. The interfaces are simple and easy to use. The navigation tools in these are also clean and easily accessibility to the data is possible.
  • 10. Nowadays, the cloud based & online library management system is widely in demand. In this segment there are some high end software that have integrated automotive system that updates information by scanning the ISBN code.
  • 12. SOFTWARE REQUIREMENT SPECIFICATION This system can manage all the happenings of the library. Books transaction including, Stock verification, membership card, vendors, current awareness, news pepper, cataloguing book, Circulation, Member faculty, and Article indexing. It can be very easily handled by this module. Overall this system can be very helpful and make things easier. Purpose: The purpose of this project/software application is to provide an environment to user by those he/she can keep eye on the daily transaction as well as the report generated by those transactions only a click of mouse. This proposed software would enhance the capability and efficiency of the project as well as the user. The communication between the manager and staff will be fast and calculation ime will be reduced. Scope: This project can be used in the organization that is using the library for study or for consulting purpose. This project is useful & application for those organization who want to automate the maintain of records of students and books. GENERAL IDEA OF PROJECT:- The project is use to provide an environment to user by which he/she can keep eye on the daily transaction as well as the report generated by the daily transaction only a click of mouse. It provides a user friendly environment for doing their work efficiently and effectively.
  • 13. This project is developing for organization which uses her facility of library in their organization this project is to automate the work of library so that the complexity can reduce as well as the working and managing can be increase as well as the time can save too with the help of using this software . this software applications based upon the level security (Admin & user level). Which is use to increase the authority feature. By using this software we can also keep an eye on each of the entry of event occur by user. weather it will be the user or administrator. TOOLS AND REQURIMENT:- We are using the C# technology for fulfill the requirements of user by developing this software application. We are working C# in front end & using “SQL Server management studio 2008” database management system for using database service in back end. It provide user friendly environment for doing their work efficiently and effectively with some requirements. 1. Record of member. 2. Record of Stock. 3. Record of Newspaper, current awareness and vendors. 4. Record of books. 5. View the record for all. 6. View and print passbook. 7. View and print Annual Report. 8. Search the record by all. 9. Books can be issued by some authorized person who has a login ID. 10. Books can be returned by some authorized person who has a login ID.
  • 14. 11. Record of books can be deleted by an authorized person who will play the role of ADMIN/SERVER. 12. Record of books can be updated by an authorized person who will play the role of ADMIN/SERVER. 13. Automatic calculation of fine during the late submission of books. 14. If any books contains fine, that can be submitted only by user who has a login ID. FEATURE:- 1. With the load balancing feature & full utilization of resources. 2. By giving the faculty to view the records of their own with any unique identity. 3. By giving the feature that only authorized person can change/update the record of book/fine/user login. 4. Circulated book report generation /cataloguing/Import and export/serial books feature also available in this project. 5. Also managing Admin user ID. (change password, add new user and delete user ID and password) All the password assistance will be the hand of an administrator who works as a server. FUNCTION REQUIRMENT SPECIFICATION:-  We will automate the software application system without breach the security. Over software application will perform some specific feature which are given below:- 1. The software maintains the details of each dealing. 2. The software provides each detail of recording books and students. 3. It also keeps the author and publisher name with their books.
  • 15. 4. Facility to update and delete the pre-entered records as well insertion of new records. 5. The issuing and returning of books y readers. 6. Calculations of due. NON-FUNCTION REQIREMNET SPECIFICATION:- These are the type of requirements which are not provided by us in the limited time interval. We might be providing these functionalities in the next version of this software application. These requirements are as Follows:- 1. The search engine is added which perform searching of books. 2. Generation of fine receipts. HARDWARE AND SOFTWARE SPECIFICATION:- Hardware specification of the machine at which “Library Management System” was developed in:-  SONY PERSONAL COMPUTER  Intel(R) Core(TM) i3-3227U CPU @ 1.90GHz 1.90GHz.  8.00 GB RAM  64-bit operating system, x64-based processor  500GB hard disk SOFTWARE SPECIFICATION:- Following software platform were used during the development of the system  Operating system WINDOWS 10  Language C# (Microsoft Visual Studio 2010 with Windows Form based).  Database: SQL Server Management Studio 2008.
  • 16. TECHNOLOGY USED:- C# There are various Microsoft technologies used widely for developing dynamic web based applications and web services. Among them is C# which is basically a modern, object-oriented language developed for the .NET platform. It encompasses on the same path set by its predecessors by providing programmers with various tools and services that can fully utilize computing as well as communication. The biggest advantage of using C# is that it is a robust programming language that integrates robust security protocols. It runs on various servers and is supported by various platforms. A- 1 Technology has years of expertise under its belt in developing rich quality web applications in C# programming language. C# is a simple, type-safe, object oriented, general- purpose programming language. Visual C# provides code- focused developers with powerful tools and language support to build rich, connected web and client applications on the .NET Framework. It is intended to be suitable for writing applications for both hosted and embedded systems, ranging from very large sophisticated operating systems, down to the very small OS having dedicated functions. C# is basically based on its predecessor C++ language and includes aspects of several other programming languages (most notably Delphi and Java) with particular emphasis on simplification. We at A-1 Technology have highly skilled and dedicated developers and programmers who are well versed with all the features of C#. Moreover, our development process tends to be highly versatile and incorporates the overall feature set of C# without sacrificing the power and control that have been a hallmark of C and C++. Over the years we have been able to fuse
  • 17. C# with with C and C++ and created widely appreciated web development projects. The reason why many developers tend to incline more towards C# is the fact that it is more typesafe than C++. Moreover there are no implicit conversions between booleans and integers, enumeration members and integers and any user-defined conversion must be explicitly marked as explicit or implicit, unlike C++ copy constructors and conversion operators. Due to its elegant object-oriented design, C# has become an ideal choice for creating subset architecture. Our developers and programmers at A-1 Technology offer a wide range of components-from high-level business objects to system-level applications. Using simple C# language constructs, we are able to convert these components into XML Web services, allowing them to be invoked across the Internet, from any language running on any operating system. This makes our applications universal giving users easy access. WINDOWS FORM Windows Forms is a graphical (GUI) class library included as a part of Microsoft .NET Framework providing a platform to write rich client applications for desktop, laptop, and tablet PCs. While it is seen as a replacement for the earlier and more complex C++ based Microsoft Foundation Class Library it does not offer a comparable paradigm and only acts as a platform for the user interface tier in a multi-tier solution.
  • 19. SYSTEM ANALYSIS Analysis, the first step of any system development approach is concerned with devising a precise, understandable and correct model of the real word. Before building anything complex, such as arouse, a computer program or hardware-software system, the builder must understand the requirement and. the real word environment in which it will exit. The purpose of the analysis phase is to model the real world system so that it can be understood. To do this examine requirements, analyze their implication and restate them rigorously. We must abstract important-word features first and defer small details until later. The successful analysis model states what must be done, without restriction how it is done, and avoids implementation decisions, the program as a preparation for design. REQUIREMENT ANALYSIS: Software is always a part of large system. Work beginning by establishing requirement for all system element amends then allocating some subset by their requirement of Software. This
  • 20. system view is essential, when software must interface with other element such as hardware, people and database. Engineering and analysis encompasses requirement gathering of the system level with a small amount of top level design and analysis. The requirement gathering process is intensified and focusing especially on the software to understand the nature of the programs to be built, the software engineering, must understand the information domain for the software as well as the required functions, performance and interfaces. Requirement for both the system and the software are documented and viewed to the customer. A requirement baseline report is to be prepared for type of function. REQUIREMENT FOR THE PROJECT:- 1. The project must accommodate the new requirement specified by end user. 2. The project must allow the user to take hard copy of the data. 3. The project must be easy to use and simpler to understand that it should have easy to use navigation tools with some sort of assistance (tool tip text) attached with them 4. Should serve almost all desire of the common user, must meet the basic requirement criteria for a good Data Retrieval, Manipulation &storage System for a cooperation society. REQUIREMENT DETERMINATION:- After making a complete analysis of the first job was to determine the user requirement .For this purpose the following were taken.  On site Observation.  interviewing
  • 21. 4. FEASIBILITY STUDY The main aim of feasibility study is to determine whether the product is financially and technically feasible. the feasibility study involves analysis of the problem collection of data which would be input of the system, the processing required to be carried out on these data, the output data required to be produce by the system as well as study of various constraints on the behavior of then system. The collected data are analyzed to arrive at the following:  An abstract definition of the problem.  Formulation of the different solution strategies.  Examination of alternative solution strategies and their benefit, indicating resources required, development, cost and time in respect of each of the alternative solutions.  A cost/benefit analysis is performed to determine which solution is the best.  At this stage, it may also be determined whether any of the solution is not feasible due to high cost, resource constraints, or extra ordinary technical reasons. ECONOMIC FEASIBILITY:-
  • 22. Economic analysis is almost frequently used method for evaluating the effectiveness of a library information system. More commonly known as the cost benefit analysis, the procedure is to determine the benefits and savings that are expected from a candidate system and compare them with costs. If benefit outweighs costs, those decisions are made to design and implement the system. Otherwise father justification or alteration the proposed system will have tube made if it to have a chance of benefit approved. The result of theism analysis points out whether the candidate is economically feasible or not System TECHNICAL FEASIBILITY:- Technical feasibility enters on the existing system (hardware Software, etc.) and to what extent it can suppose the proposed addition. Taking into account the capacity of the system operation. it is technically feasible to adept the system immediately. The system has feasible. BEHAVIORAL FEASIBILITY:- People are coherently resistant to changes, and computers have been known to facilitate change. Behavioral feasibility includes the training to the user and staff on a library information system. Date entity forms must be user friendly so that training requires less time. The front end of the system has been developing by using C# which is user friendly and easy to operate. This would require formal training and education. It would also improve the transaction Speed and provide worldwide accessing facilities to the customer, which lead to increase the efficiency of library pattern. OPERATION FEASIBILITY:- The proposed system will simplify almost all the operation of the library system. This system is user friendly. This system will
  • 23. reduce most of the paper work resulting in improvement in quality Work. The programmer maintenance and modification cost is almost nil’s the system under development is operationally feasible. 5. DATA FLOW DIAGRAM:- Data flow diagram is graphic tool. It is used to describe and analyses the movement of data through a system manual or computerized. They focus on the data flowing into system, between process in and of the data stores. The data flow diagram does not show control information, such as the time at which the process are executed or decision among AlterNet data path. The data flow diagram contains following element. 1. Process 2. Data flow 3. Actors 4. Data flow DATA FLOW
  • 24. These system modes are termed as data flow diagram (DEF). A full description of system consists of a set of data’s, which compromises of various levels. There is various level of data flow diagram (DFD). The previous level of UFO can be broken down into more detailed DFD. This occurs repeatedly until sufficient Detail (lowest level) is described to allow the analyst to fully understand that portion at system.  The various levels DFD  Physical level DFD PHYSICAL LEVEL DFD: The physical DFD is a model Of current system and to insure that the current systems have been clearly understood, Physical level DFD’s actual devises, department, people etc. Involved in the System. LOGICAL LEVEL DFD:-
  • 25. During the design activities of the Proposed System this is taken as the basis for drawing the system. Logical level DFD are the model of proposed system. They should clearly show the requirement on which the data should be building. Finally the conclusion for the different levels of DFD’s we can say that both physical and logical DFD’s support a Top down approach to system analysis for this purpose analyst Begin by developing a general understanding of the system and gradually explored component in grid detail. This achieve though the context diagram LEVELS OF DFD:-  Context Level DFD  Zero level DFD  Fist level DFD  Second level DFD
  • 30.
  • 31.
  • 32. 6. DESIGN SYSTEM DESIGN: The design is a solution and the translation of the requirement in two ways of meeting them. It is a ”how to" approach for creation of a new system. It provides the understanding and the procedural detail necessary for the implementation of the system. The design of a LIBRARY MANAGEMENT SYSTEM produces the detail that state how a system will meet the requirement identified during the system analysis. It is stored by identifying reports and other system analysis produced. The system design also describes the data to be input, calculated or stored. Individual data items and calculation procedures are written in detail. File structure and storage devices are selected. It also includes the way the data is processed to produce the desired output. Design is responsible for providing programs with clearly outlined specifications that state what the software should do. As programming starts, system design is available to answer the question clarifying the Fuzzy areas and handle problems that co- front the programming while implementing the design specifications. Emphasis is on translation the performance requirement in to design specification. Design goes logical and physical stage of development. Logical design reviews the present physical system. Prepare input and output specification: make edit and design walkthrough. The physical design maps out a detail of the physical system. System implementation and the device implementation. Benefits
  • 33. The following are benefit of using the application: ECONOMICAL: The project is very cheap when compared to other commonly available. Data Retrieval, manipulation & storage system for a cooperative society. EASY TO MASTER: The project provides the user an easy approach to its functionality by providing toolbars that contains buttons for almost all required tasks. The user can easily navigate form one part of the project to another without having any sort of trouble. SECURITY: The project IS divided into three measure application the administrator, the user and the Guest, the administrator is authorized for modification of data change password for all the three levels; he can also change the values of CD,OD & Interest. The user can modify the data but cannot change password, CD, OD and interest. The guest can only view the data but cannot make any changes. RELIABILITY: The project is highly reliable because there is no chance of any loss of data and the data available can be altered only by the authorized user.
  • 34. TIME SAVER: Data retrieval and storage using this system is much faster than maintaining the record manually.
  • 35. 7. TESTING Testing is a process through which any error is discovered and connected. Testing is the major quality control used during software development. There may be logical or runtime error in the code. There are two basic techniques of testing. 1. Black box testing (functional/External Testing) 2. White box Testing (structural/Internal Testing) 1) BLACK BOX TESTING:- In black box testing the code segment is hidden from user and the error are discovered by just giving the input values to the code segment and output is compared with the expected output. if there is some deviation then we say that the segment has some error. 2) WHITE BOX TESTING:- In this testing the code is open to the tester and it can be inspected statement vice. In this technique tester can get the intermediate values of the variable. To quality check the system. different levels of testing is required: a) Unit testing :- Testing start with unit testing. It is performed by the programmer, and then modules are ready to be combine who writes the Code for the modules.
  • 36. b) Integration testing :- When unit testing is performed by programmer then the modules are ready to be combine, then integration testing is done for the connectivity of the different modules. c) System testing :- After integration testing the entire system is tested about the portability, ad0ptabillty etc. The system is tested against the system requirements to see if all the requirements are met and the system performed as specified by the requirements. d) Acceptance testing:- This testing is performed to demonstrate to the client, on the real life data of the client, the operation of the system. in this project “Library Management System we give the complete detail of library.
  • 37. 8.IMPLEMENTATION The implementation phase is less creative then system design. It is primarily concerned with user training, site preparation, and file conversion. During final testing, user expectance is tested, followed by user training. Depending on the nature of system Extensive user training may be require. Conversions usually take place at about the same time the user is being-trained. Programming is ought to be a design work. The initial parameter of the candidate system should be modified as a result of programming efforts. Programming provides a ”realty test” for the assumption made by analyst. System testing checks the deadlines and accuracy of the system to access update and retrieve data from new files. Once the program becomes available, test data are read into the computer and processed against the files provided for testing. If successful, program is them run with ”live data”. Otherwise a diagnostic test is used to locate and correct error. in most conversion, a parallel run is conducted rear the new system simultaneous run with oil system. This method, though costly, provides edit assurance against error in the candidate system and also the user staff bad opportunity to gain experience though operation.
  • 39. 9.POST IMPLEMENTATION After the installation phase is completed and the user staff is adjusted to the changes created by the candidate system evolution and maintenance begins. Like any system there is an aging process that the requires periodic maintenance of hardware and software if the new information is inconsistent with the design specification then changes have to be made hardware also requires periodic maintenance is to being the new system to standard.
  • 40. 9.1
  • 41. MAINTENANCE MAINTENANCE:- Maintenance is required because software requirements changes very frequently than the software are needed to be updated or modify. Moreover there may be some error ex-posed at the execution time which work accidently not covered during the testing phase. It is the correction of implementation phase. Maintenance technique includes very popular method called reversed engineering. Maintenance is the costliest part of SDLC. Analyst and programmer spend for more time in maintenance
  • 42. process then develop the software. It accounts for 50%-80% of total system development time. Maintenance is broadly classified in four categories: 1. Corrective Maintenance: It means repairing, processing or performance failure or making changes because of previously incorrect problems or false assumption. 2. Perfective Maintenance: It is also known as enhanced maintenance means enhancing the performance or modifying the software to respond to the users additional or changing needs. It is for improving and the implementation of the system according to the customer needs or requirements. 3. Adaptive Maintenance: It means changing the software function. This is done to adapt to the external environment change. Porting of S/W to work on a new computer platform or with a new O/S. 4. Preventive Maintenance: It is the process by which we prevent out system form being absolute. Preventive Maintenance involves the concept of re-engineering & reverse engineering in which an old system with an old technology is re-engineered issuing new technology.
  • 43.
  • 45. SQL Server Management Studio (SSMS) is an integrated environment for managing any SQL infrastructure, from SQL Server to SQL Database. SSMS provides tools to configure, monitor, and administer instances of SQL from wherever you deploy it. With SSMS you can deploy, monitor, and upgrade the data-tier components used by your applications, as well as build queries and scripts.
  • 51. BOOKS
  • 59. SNAPSHOT WINDOW FORM AND CODE FORM 1
  • 60. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Data.Sql; namespace library_management_system { public partial class Login : Form { SqlCommand mycommand ; SqlDataReader reader; public Login() { InitializeComponent(); } private void textBox2_TextChanged(object sender, EventArgs e) { textBox2.PasswordChar = '*'; } private void Form1_Load(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { SqlConnection myconn = new SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library"); myconn.Open(); mycommand = new SqlCommand("select * from login", myconn); reader = mycommand.ExecuteReader(); string name = textBox1.Text; String pass = textBox2.Text; while (reader.Read()) { String name1 = reader.GetString(0); String pass1 = reader.GetString(1); if (name1 == name && pass1 == pass) { Welcome f2 = new Welcome(); f2.Show(); Hide(); goto vai; } } if (reader.IsClosed == false) { MessageBox.Show("user name or password is wrong"); } vai:
  • 61. myconn.Close(); reader.Close(); } private void button2_Click(object sender, EventArgs e) { } private void button2_Click_1(object sender, EventArgs e) { textBox1.Text = ""; textBox2.Text = ""; } private void label4_Click(object sender, EventArgs e) { } private void textBox2_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == 'r') { SqlConnection myconn = new SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library"); myconn.Open(); mycommand = new SqlCommand("select * from login", myconn); reader = mycommand.ExecuteReader(); string name = textBox1.Text; String pass = textBox2.Text; while (reader.Read()) { String name1 = reader.GetString(0); String pass1 = reader.GetString(1); if (name1 == name && pass1 == pass) { Welcome f2 = new Welcome(); f2.Show(); Hide(); goto vai; } } if (reader.IsClosed == false) { MessageBox.Show("user name or password is wrong"); } vai: myconn.Close(); reader.Close(); } } private void progressBar1_Click(object sender, EventArgs e) {
  • 62. } private void progressBar1_Click_1(object sender, EventArgs e) { } private void timer1_Tick(object sender, EventArgs e) { } } }
  • 64. using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace library_management_system { public partial class Welcome : Form { // f4.Show(); public Welcome() { InitializeComponent(); } private void treeView1_AfterSelect(object sender, TreeViewEventArgs e) { if (treeView1.SelectedNode.Text == "SERIALS") { Form1 f1 = new Form1(); f1.Show(); Hide(); } if (treeView1.SelectedNode.Text == "BOOK") { CIRCULATION f14 = new CIRCULATION(); f14.Show(); Hide(); } if (treeView1.SelectedNode.Text =="MEMBERSHIP CARD") { Form3 f3 = new Form3(); f3.Show(); Hide(); } if (treeView1.SelectedNode.Text == "ARTICLE INDEXING") { Form13 f13 = new Form13(); f13.Show(); Hide(); } if (treeView1.SelectedNode.Text == "CURRENT AWARENESS") { Form12 f12 = new Form12(); f12.Show(); Hide(); } if (treeView1.SelectedNode.Text == "CIRCULATED BOOKS") { Form11 f11 = new Form11(); f11.Show();
  • 65. Hide(); } if (treeView1.SelectedNode.Text == "FINE MANAGEMENT") { Form10 f10 = new Form10(); f10.Show(); Hide(); } if (treeView1.SelectedNode.Text == "ANNUAL REPORT") { Form9 f9 = new Form9(); f9.Show(); Hide(); } if (treeView1.SelectedNode.Text == "CONFERENCE / CONGRESS / MEETING / PROCEEDINGS") { Form7 f7 = new Form7(); f7.Show(); Hide(); } if (treeView1.SelectedNode.Text == "THESIS") { Form8 f8 = new Form8(); f8.Show(); Hide(); } if (treeView1.SelectedNode.Text =="STOCK VERIFICATION") { Form4 f4= new Form4(); f4.Show(); Hide(); } if (treeView1.SelectedNode.Text == "BOOKS") { Form6 F6 = new Form6(); F6.Show(); Hide(); } if (treeView1.SelectedNode.Text == "OTHER ITEMS(STOCK VERFN.)") { Form5 f5 = new Form5(); f5.Show(); Hide(); } if (treeView1.SelectedNode.Text == "ADMINISTRATION") { tabPage2.Hide(); tabPage1.Show(); tabPage1.Select(); } else if (treeView1.SelectedNode.Text=="ACQUISITION") { tabPage1.Hide(); tabPage2.Show(); tabPage2.Select();
  • 66. } else if (treeView1.SelectedNode.Text=="CATALOGUING BOOK") { tabPage1.Hide(); tabPage2.Hide(); tabPage3.Show(); tabPage3.Select(); } else if (treeView1.SelectedNode.Text == "CIRCULATION") { tabPage1.Hide(); tabPage2.Hide(); tabPage3.Hide(); tabPage4.Show(); tabPage4.Select(); } else if (treeView1.SelectedNode.Text == "MEMBER FACLITIES") { tabPage1.Hide(); tabPage2.Hide(); tabPage3.Hide(); tabPage4.Hide(); tabPage5.Show(); tabPage5.Select(); } else if (treeView1.SelectedNode.Text == "ARTICLE INDEXING") { tabPage1.Hide(); tabPage2.Hide(); tabPage3.Hide(); tabPage4.Hide(); tabPage5.Hide(); tabPage6.Show(); tabPage6.Select(); } else if (treeView1.SelectedNode.Text == "SERIALS") { tabPage1.Hide(); tabPage2.Hide(); tabPage3.Hide(); tabPage4.Hide(); tabPage5.Hide(); tabPage6.Hide(); tabPage7.Show(); tabPage7.Select(); } else if (treeView1.SelectedNode.Text == "IMPORT DATA") { tabPage1.Hide(); tabPage2.Hide(); tabPage3.Hide(); tabPage4.Hide(); tabPage5.Hide(); tabPage6.Hide(); tabPage7.Hide(); tabPage8.Show(); tabPage8.Select(); }
  • 67. } private void tabPage1_Click(object sender, EventArgs e) { } private void Form2_Load(object sender, EventArgs e) { } private void tabPage8_Click(object sender, EventArgs e) { } private void panel1_Paint(object sender, PaintEventArgs e) { } private void tabPage2_Click(object sender, EventArgs e) { } private void button5_Click(object sender, EventArgs e) { Form3 f3 = new Form3(); f3.Show(); Hide(); } private void button2_Click(object sender, EventArgs e) { Form4 f4 = new Form4(); f4.Show(); Hide(); } private void button3_Click(object sender, EventArgs e) { Form5 f5 = new Form5(); f5.Show(); Hide(); } private void button21_Click(object sender, EventArgs e) { Form6 f6 = new Form6(); f6.Show(); Hide(); } private void button20_Click(object sender, EventArgs e) { Form7 f7 = new Form7();
  • 68. f7.Show(); Hide(); } private void button19_Click(object sender, EventArgs e) { Form8 f8 = new Form8(); f8.Show(); Hide(); } private void button24_Click(object sender, EventArgs e) { Form9 F9 = new Form9(); F9.Show(); Hide(); } private void button28_Click(object sender, EventArgs e) { Form10 f10 = new Form10(); f10.Show(); Hide(); } private void button32_Click(object sender, EventArgs e) { Form11 f11 = new Form11(); f11.Show(); Hide(); } private void tabControl1_SelectedIndexChanged(object sender, EventArgs e) { } private void button26_Click(object sender, EventArgs e) { Form1 f1 = new Form1(); f1.Show(); Hide(); } private void button25_Click(object sender, EventArgs e) { CIRCULATION f14 = new CIRCULATION(); f14.Show(); Hide(); } private void button33_Click(object sender, EventArgs e) { Form13 f13 = new Form13(); f13.Show(); Hide(); }
  • 69. private void button34_Click(object sender, EventArgs e) { Form12 f12 = new Form12(); f12.Show(); Hide(); } private void button8_Click(object sender, EventArgs e) { Form12 f12 = new Form12(); f12.Show(); Hide(); } private void tabPage4_Click(object sender, EventArgs e) { } private void button27_Click(object sender, EventArgs e) { Form2 f2 = new Form2(); f2.Show(); Hide(); } private void button29_Click(object sender, EventArgs e) { Form14 f14 = new Form14(); f14.Show(); Hide(); } private void button18_Click(object sender, EventArgs e) { } private void button35_Click(object sender, EventArgs e) { Form15 F15 = new Form15(); F15.Show(); Hide(); } private void button36_Click(object sender, EventArgs e) { Form16 F16 = new Form16(); F16.Show(); Hide(); } private void button37_Click(object sender, EventArgs e) { Form17 F17 = new Form17(); F17.Show(); Hide(); }
  • 70. } }
  • 72. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.Sql; using System.Data.SqlClient; namespace library_management_system { public partial class Form3 : Form { SqlConnection cnn; SqlCommand cmd; // SqlDataReader reader; // DataSet ds; // SqlDataAdapter da; // DataRow dr=new DataRow() ; // string id; public Form3() { InitializeComponent(); } private void button10_Click(object sender, EventArgs e) { Welcome f2 = new Welcome(); f2.Show(); Hide(); } private void checkBox1_CheckedChanged(object sender, EventArgs e) { } private void button13_Click(object sender, EventArgs e) { DateTime dateofBirth = new DateTime(); long TotalFineDue; cnn = new SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library"); cnn.Open(); cmd = new SqlCommand("select * from members", cnn); String memEmpNo = textBox2.Text; String name = textBox1.Text; String defignationRollNo = comboBox1.Text; String department = comboBox2.Text; String category = comboBox3.Text; String sowtwereAccess = comboBox4.Text; String VALIDITY = maskedTextBox2.Text; String password1 = textBox5.Text; String verifyPassword = textBox6.Text;
  • 73. String contactNo = maskedTextBox4.Text; String registrationNo = maskedTextBox5.Text; String status1 = textBox11.Text; String gotoMemberid = textBox12.Text; String CirculationStatus = textBox4.Text; if (textBox3.Text == "") { TotalFineDue = 0; } else { TotalFineDue = long.Parse(textBox3.Text); } String FatherName = textBox7.Text; String Address1 = textBox8.Text; String AddressLocal = textBox9.Text; String Email = textBox10.Text; dateofBirth = DateTime.Parse(maskedTextBox1.Text); DateTime dateFrom = DateTime.Parse(maskedTextBox7.Text); DateTime Dateto = DateTime.Parse(maskedTextBox3.Text); DateTime PrintedCardDate = DateTime.Parse(maskedTextBox6.Text); String booksIssued = numericUpDown1.Text; cmd.CommandText = "INSERT INTO members VALUES('" + memEmpNo + "','" + name + "','" + defignationRollNo + "','" + department + "','" + category + "','" + sowtwereAccess + "','" + VALIDITY + "','" + password1 + "','" + verifyPassword + "'," + contactNo + ",'" + registrationNo + "','" + status1 + "','" + gotoMemberid + "','" + CirculationStatus + "'," + TotalFineDue + ",'" + FatherName + "' ,'" + Address1 + "' ,'" + AddressLocal + "','" + Email + "','" + dateofBirth + "','" + dateFrom + "','" + Dateto + "','" + PrintedCardDate + "'," + booksIssued + ")"; cmd.ExecuteNonQuery(); cnn.Close(); MessageBox.Show("save record sucessfully"); } private void textBox2_TextChanged(object sender, EventArgs e) { } private void maskedTextBox2_MaskInputRejected(object sender, MaskInputRejectedEventArgs e) { } private void textBox5_TextChanged(object sender, EventArgs e) { textBox5.PasswordChar = '*'; } private void textbox6_Leave(object sender, EventArgs e) { //textBox6.PasswordChar = '*'; if (textBox5.Text != textBox6.Text) { MessageBox.Show("Password are not similar"); label33.ForeColor = System.Drawing.Color.Red;
  • 74. label33.Text = "unCorrect password"; } else { label33.ForeColor = System.Drawing.Color.Green; label33.Text = "Correct password"; } } private void textBox6_TextChanged(object sender, EventArgs e) { } private void numericUpDown1_ValueChanged(object sender, EventArgs e) { } private void button16_Click(object sender, EventArgs e) { textBox2.Text = ""; textBox1.Text=""; comboBox1.Text=""; comboBox2.Text=""; comboBox3.Text=""; comboBox4.Text=""; maskedTextBox2.Text=""; textBox5.Text=""; textBox6.Text=""; maskedTextBox4.Text=""; maskedTextBox5.Text=""; textBox11.Text=""; textBox12.Text=""; textBox4.Text=""; textBox3.Text = ""; textBox7.Text = ""; textBox8.Text = ""; textBox9.Text = ""; textBox10.Text = ""; maskedTextBox1.Text = ""; maskedTextBox7.Text=""; maskedTextBox3.Text = ""; maskedTextBox6.Text = ""; numericUpDown1.Text = ""; } private void panel3_Paint(object sender, PaintEventArgs e) { } private void Form3_Load(object sender, EventArgs e) { textBox6.PasswordChar = '*'; }
  • 75. private void button14_Click(object sender, EventArgs e) { DateTime dateofBirth = new DateTime(); long TotalFineDue; cnn = new SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library"); cnn.Open(); cmd = new SqlCommand("select * from members", cnn); String memEmpNo = textBox2.Text; String name = textBox1.Text; String defignationRollNo = comboBox1.Text; String department = comboBox2.Text; String category = comboBox3.Text; String sowtwereAccess = comboBox4.Text; String VALIDITY = maskedTextBox2.Text; String password1 = textBox5.Text; String verifyPassword = textBox6.Text; String contactNo = maskedTextBox4.Text; String registrationNo = maskedTextBox5.Text; String status1 = textBox11.Text; String gotoMemberid = textBox12.Text; String CirculationStatus = textBox4.Text; if (textBox3.Text == "") { TotalFineDue = 0; } else { TotalFineDue = long.Parse(textBox3.Text); } String FatherName = textBox7.Text; String Address1 = textBox8.Text; String AddressLocal = textBox9.Text; String Email = textBox10.Text; dateofBirth = DateTime.Parse(maskedTextBox1.Text); DateTime dateFrom = DateTime.Parse(maskedTextBox7.Text); DateTime Dateto = DateTime.Parse(maskedTextBox3.Text); DateTime PrintedCardDate = DateTime.Parse(maskedTextBox6.Text); String booksIssued = numericUpDown1.Text; cnn = new SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library"); cnn.Open(); cmd = new SqlCommand("select * from members", cnn); cmd.CommandText = "update members set memEmpNo='" + textBox2.Text + "',name='" + textBox1.Text + "', defignationRollNo = '" + comboBox1.Text + "', department = '" + comboBox2.Text + "',category = '" + comboBox3.Text + "', sowtwereAccess = '" + comboBox4.Text + "', VALIDITY = '" + maskedTextBox2.Text + "', password1 = '" + textBox5.Text + "', verifyPassword = '" + textBox6.Text + "',contactNo = '" + maskedTextBox4.Text + "', registrationNo = '" + maskedTextBox5.Text + "', status1 = '" + textBox11.Text + "', gotoMemberid = '" + textBox12.Text + "', CirculationStatus = '" + textBox4.Text + "', TotalFineDue = " + textBox3.Text + ", FatherName = '" + textBox7.Text + "', Address1 = '" + textBox8.Text + "', AddressLocal = '" + textBox9.Text + "', Email = '" + textBox10.Text + "', dateofBirth = '" + maskedTextBox1.Text + "', dateFrom = '" + maskedTextBox7.Text + "', Dateto = '" + maskedTextBox3.Text + "', PrintedCardDate = '" + maskedTextBox6.Text + "', booksIssued = '" + numericUpDown1.Text + "' "; }
  • 76. private void button17_Click(object sender, EventArgs e) { Login f1 = new Login(); f1.Show(); Hide(); } private void button12_Click(object sender, EventArgs e) { //cnn = new SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library"); // cnn.Open(); // cmd = new SqlCommand("select * from members", cnn); // cmd.CommandText="select * from member"; // da=new SqlDataAdapter (cmd.CommandText ,cnn); // da.Fill(ds,"memb"); // dr=ds.Tables[0].Rows[ds.Tables[0].Rows.Count - 1]; // textBox2.Text = dr[0] } private void pictureBox1_Click(object sender, EventArgs e) { } private void button15_Click(object sender, EventArgs e) { cnn = new SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library"); cnn.Open(); cmd = new SqlCommand("select * from members", cnn); cmd.CommandText = "delete from members where memEmpNo= " + "'" + textBox2.Text + "'"; cmd.ExecuteNonQuery(); cnn.Close(); MessageBox.Show("delete record sucessfully"); } } }
  • 78. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.Sql; using System.Data.SqlClient; namespace library_management_system { public partial class Form4 : Form { SqlConnection cnn; SqlCommand cmd; public Form4() { InitializeComponent(); } private void label7_Click(object sender, EventArgs e) { } private void Form4_Load(object sender, EventArgs e) { } private void button21_Click(object sender, EventArgs e) { } private void button22_Click(object sender, EventArgs e) { } private void button20_Click(object sender, EventArgs e) { } private void button19_Click(object sender, EventArgs e) { } private void button10_Click(object sender, EventArgs e) { Welcome f2 = new Welcome(); f2.Show(); Hide(); }
  • 79. private void button13_Click(object sender, EventArgs e) { long Price; long YearOfPublication; long Edition; long VerificationDatefrom; long VerificationdateTo; cnn = new SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library"); cnn.Open(); cmd = new SqlCommand("select * from stockverificationregister", cnn); String AccessionNo = textBox11.Text; String Title = textBox2.Text; String Author = textBox10.Text; String language1 = textBox3.Text; if (textBox4.Text == "") { Price = 0; } else { Price = long.Parse(textBox4.Text); } if (textBox5.Text == "") { YearOfPublication = 0; } else { YearOfPublication = long.Parse(textBox5.Text); } if (textBox7.Text == "") { Edition = 0; } else { Edition = long.Parse(textBox7.Text); } String Location = textBox6.Text; String subject1 = textBox8.Text; String GotoAccessionNo = textBox12.Text; if (maskedTextBox1.Text == "") { VerificationDatefrom = 0; } else { VerificationDatefrom = long.Parse(maskedTextBox1.Text); } if (maskedTextBox2.Text == "") { VerificationdateTo = 0; } else { VerificationdateTo = long.Parse(maskedTextBox2.Text);
  • 80. } String Status1 = textBox1.Text; String Remarks = textBox9.Text; cmd.CommandText = "INSERT INTO stockverificationregister VALUES('" + AccessionNo + "','" + Title + "','" + Author + "','" + language1 + "'," + Price + "," + YearOfPublication + "," + Edition + ",'" + Location + "','" + subject1 + "','" + GotoAccessionNo + "'," + VerificationDatefrom + "," + VerificationdateTo + ",'" + Status1 + "','" + Remarks + "')"; cmd.ExecuteNonQuery(); cnn.Close(); MessageBox.Show("save record sucessfully"); } private void button14_Click(object sender, EventArgs e) { long Price; long YearOfPublication; long Edition; long VerificationDatefrom; long VerificationdateTo; cnn = new SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library"); cnn.Open(); cmd = new SqlCommand("select * from stockverificationregister", cnn); String AccessionNo = textBox11.Text; String Title = textBox2.Text; String Author = textBox10.Text; String language1 = textBox3.Text; if (textBox4.Text == "") { Price = 0; } else { Price = long.Parse(textBox4.Text); } if (textBox5.Text == "") { YearOfPublication = 0; } else { YearOfPublication = long.Parse(textBox5.Text); } if (textBox7.Text == "") { Edition = 0; } else { Edition = long.Parse(textBox7.Text); } String Location = textBox6.Text; String subject1 = textBox8.Text; String GotoAccessionNo = textBox12.Text; if (maskedTextBox1.Text == "") { VerificationDatefrom = 0;
  • 81. } else { VerificationDatefrom = long.Parse(maskedTextBox1.Text); } if (maskedTextBox2.Text == "") { VerificationdateTo = 0; } else { VerificationdateTo = long.Parse(maskedTextBox2.Text); } String Status1 = textBox1.Text; String Remarks = textBox9.Text; cmd.CommandText = "INSERT INTO stockverificationregister VALUES('" + AccessionNo + "','" + Title + "','" + Author + "','" + language1 + "'," + Price + "," + YearOfPublication + "," + Edition + ",'" + Location + "','" + subject1 + "','" + GotoAccessionNo + "'," + VerificationDatefrom + "," + VerificationdateTo + ",'" + Status1 + "','" + Remarks + "')"; cmd.ExecuteNonQuery(); cnn.Close(); MessageBox.Show("Update record sucessfully"); } private void button15_Click(object sender, EventArgs e) { cnn = new SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library"); cnn.Open(); cmd = new SqlCommand("select * from stockverificationregister", cnn); cmd.CommandText = "delete from stockverificationregister where AccessionNo= " + "'" + textBox11.Text + "'"; cmd.ExecuteNonQuery(); cnn.Close(); MessageBox.Show("delete record sucessfully"); } private void button17_Click(object sender, EventArgs e) { Login f1 = new Login(); f1.Show(); Hide(); } private void button16_Click(object sender, EventArgs e) { textBox11.Text = ""; textBox2.Text = ""; textBox10.Text = ""; textBox3.Text = ""; textBox4.Text = ""; textBox5.Text = ""; textBox7.Text = ""; textBox6.Text = ""; textBox8.Text = "";
  • 82. textBox12.Text = ""; maskedTextBox1.Text = ""; maskedTextBox2.Text = ""; textBox1.Text = ""; textBox9.Text = ""; } private void button12_Click(object sender, EventArgs e) { } } }
  • 84. using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.Sql; using System.Data.SqlClient; namespace library_management_system { public partial class Form5 : Form { SqlConnection cnn; SqlCommand cmd; public Form5() { InitializeComponent(); } private void button10_Click(object sender, EventArgs e) { Welcome f2 = new Welcome(); f2.Show(); Hide(); } private void Form5_Load(object sender, EventArgs e) { } private void button13_Click(object sender, EventArgs e) { } private void button12_Click(object sender, EventArgs e) { long Price; long YearOfPublication; long VerificationDateFrom; long VerificationDateTo; cnn = new SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library"); cnn.Open(); cmd = new SqlCommand("select * from stockverificationregisterotheritems", cnn); String RecordId = textBox11.Text; String AccessionNo =textBox13.Text; String Title =textBox2.Text; String Author=textBox10.Text; if (textBox4.Text == "") { Price = 0; } else
  • 85. { Price = long.Parse(textBox4.Text); } if (textBox5.Text == "") { YearOfPublication = 0; } else { YearOfPublication = long.Parse(textBox5.Text); } String Location=textBox6.Text; String GotoAccessionNo = textBox12.Text; if (maskedTextBox1.Text == "") { VerificationDateFrom = 0; } else { VerificationDateFrom = long.Parse(maskedTextBox1.Text); } if (maskedTextBox2.Text == "") { VerificationDateTo = 0; } else { VerificationDateTo = long.Parse(maskedTextBox2.Text); } String Status1 = textBox1.Text; String Remarks = textBox9.Text; String TypeOfMaterial = comboBox1.Text; cmd.CommandText = "INSERT INTO stockverificationregisterotheritems VALUES('" + RecordId + "' , '" + AccessionNo + "' ,'" + Title + "' , '" + Author + "' , " + Price + " , " + YearOfPublication + " ,'" + Location + "' , '" + GotoAccessionNo + "' , " + VerificationDateFrom + " ," + VerificationDateTo + " ,'" + Status1 + "' ,'" + Remarks + "' , '" + TypeOfMaterial + "')"; cmd.ExecuteNonQuery(); cnn.Close(); MessageBox.Show("Add record sucessfully"); } private void button15_Click(object sender, EventArgs e) { cnn = new SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library"); cnn.Open(); cmd = new SqlCommand("select * from stockverificationregisterotheritems", cnn); cmd.CommandText = "delete from stockverificationregisterotheritems where RecordId= " + "'" + textBox11.Text + "'"; cmd.ExecuteNonQuery(); cnn.Close(); MessageBox.Show("delete record sucessfully"); }
  • 86. private void button16_Click(object sender, EventArgs e) { textBox11.Text = ""; textBox13.Text = ""; textBox2.Text = ""; textBox10.Text = ""; textBox4.Text = ""; textBox5.Text = ""; textBox6.Text = ""; textBox12.Text = ""; maskedTextBox1.Text = ""; maskedTextBox2.Text = ""; textBox1.Text = ""; textBox9.Text = ""; comboBox1.Text = ""; } } }
  • 88. using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.Sql; using System.Data.SqlClient; namespace library_management_system { public partial class Form6 : Form { SqlConnection cnn; SqlCommand cmd; String typeofBook; public Form6() { InitializeComponent(); } private void Form6_Load(object sender, EventArgs e) { } private void label15_Click(object sender, EventArgs e) { } private void label14_Click(object sender, EventArgs e) { } private void vScrollBar1_Scroll(object sender, ScrollEventArgs e) { HScrollBar h1 = new HScrollBar(); h1.Height = 1600; h1.Width = 1000; } private void button4_Click(object sender, EventArgs e) { } private void textBox5_TextChanged(object sender, EventArgs e) { } private void label40_Click(object sender, EventArgs e) {
  • 89. } private void button10_Click(object sender, EventArgs e) { } private void comboBox6_SelectedIndexChanged(object sender, EventArgs e) { } private void label49_Click(object sender, EventArgs e) { } private void panel1_Paint(object sender, PaintEventArgs e) { } private void label13_Click(object sender, EventArgs e) { } private void label19_Click(object sender, EventArgs e) { } private void label12_Click(object sender, EventArgs e) { } private void label11_Click(object sender, EventArgs e) { } private void label10_Click(object sender, EventArgs e) { } private void label9_Click(object sender, EventArgs e) { } private void textBox13_TextChanged(object sender, EventArgs e) { } private void textBox14_TextChanged(object sender, EventArgs e)
  • 90. { } private void textBox12_TextChanged(object sender, EventArgs e) { } private void textBox11_TextChanged(object sender, EventArgs e) { } private void textBox10_TextChanged(object sender, EventArgs e) { } private void textBox9_TextChanged(object sender, EventArgs e) { } private void textBox8_TextChanged(object sender, EventArgs e) { } private void textBox7_TextChanged(object sender, EventArgs e) { } private void textBox6_TextChanged(object sender, EventArgs e) { } private void label4_Click(object sender, EventArgs e) { } private void textBox3_TextChanged(object sender, EventArgs e) { } private void button2_Click(object sender, EventArgs e) { } private void comboBox4_SelectedIndexChanged(object sender, EventArgs e) { }
  • 91. private void label32_Click(object sender, EventArgs e) { } private void label5_Click(object sender, EventArgs e) { } private void label6_Click(object sender, EventArgs e) { } private void button29_Click(object sender, EventArgs e) { Welcome f2 = new Welcome(); f2.Show(); Hide(); } private void button13_Click(object sender, EventArgs e) { long edition; long DateYear; long price; long price1; long PriceRupee; cnn = new SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library"); cnn.Open(); cmd = new SqlCommand("select * from books", cnn); String catalogTo = comboBox1.Text; String language1 = comboBox3.Text; String SortBy = comboBox4.Text; String NewArrivals = textBox1.Text; String TypeofMaterial = comboBox6.Text; String language2 = textBox3.Text; String AccessionPrefix = textBox6.Text; String AccessionNo = textBox5.Text; String AccDate = textBox7.Text; String classNumber = textBox8.Text; String BookNumber = textBox9.Text; String Title = textBox11.Text; String SubTitle = textBox12.Text; String Responsiblity = textBox13.Text; String editionSurname = textBox23.Text; String editionForname = textBox24.Text; String editorSurname = textBox25.Text; String editorForname = textBox28.Text; String TranslatorSurname = textBox27.Text; String TranslatorForename = textBox30.Text; String compilerSurname = textBox26.Text; String compilerForname = textBox29.Text; if (textBox14.Text == "") {
  • 92. edition = 0; } else { edition = long.Parse(textBox14.Text); } String placeOfPub = textBox31.Text; String Publisher = textBox32.Text; if (textBox33.Text == "") { DateYear = 0; } else { DateYear = long.Parse(textBox33.Text); } if (comboBox7.Text =="") { price = 0; } else { price = long.Parse(comboBox7.Text); } if (textBox34.Text == "") { price1 = 0; } else { price1 = long.Parse(textBox34.Text); } String GotoAccessionNo = textBox36.Text; if (textBox35.Text == "") { PriceRupee = 0; } else { PriceRupee = long.Parse(textBox35.Text); } String CopyDetailsOfCataloguedBook = textBox2.Text; String pages = textBox20.Text; String Volume = textBox19.Text; String AcmpMaterial = textBox18.Text; String notes = textBox21.Text; String ISBN = textBox22.Text; String Subject1 = comboBox5.Text; String subject2 = textBox38.Text; String descriptions = richTextBox1.Text; String keywords = textBox37.Text; String AuthorityFile = richTextBox2.Text; String Remarks = textBox39.Text; String AddedEntries = richTextBox3.Text; if (checkBox2.Checked == true) { typeofBook = "General"; }
  • 93. else if (checkBox3.Checked == true) { typeofBook = "Text"; } else if (checkBox4.Checked == true) { typeofBook = "Reference"; } else { typeofBook = ""; } cmd.CommandText = "INSERT INTO books VALUES('" + catalogTo + "' , '" + language1 + "' , '" + SortBy + "' , '" + NewArrivals + "' , '" + TypeofMaterial + "' , '" + language2 + "' , '" + AccessionPrefix + "' , '" + AccessionNo + "' , '" + AccDate + "' , '" + classNumber + "' , '" + BookNumber + "' , '" + Title + "' , '" + SubTitle + "' , '" + Responsiblity + "' , '" + editionSurname + "' , '" + editionForname + "' , '" + editorSurname + "' , '" + editorForname + "' , '" + TranslatorSurname + "' , '" + TranslatorForename + "' , '" + compilerSurname + "' , '" + compilerForname + "' , " + edition + " , '" + placeOfPub + "' , '" + Publisher + "' , " + DateYear + " , " + price + " , " + price1 + " , '" + GotoAccessionNo + "' , " + PriceRupee + " , '" + CopyDetailsOfCataloguedBook + "' , '" + pages + "' , '" + Volume + "' , '" + AcmpMaterial + "' , '" + notes + "' , '" + ISBN + "' , '" + Subject1 + "' , '" + subject2 + "' , '" + descriptions + "' , '" + keywords + "' , '" + AuthorityFile + "' , '" + Remarks + "' , '" + AddedEntries + "' , '" + typeofBook + "')"; cmd.ExecuteNonQuery(); cnn.Close(); MessageBox.Show("save record sucessfully"); } private void button14_Click(object sender, EventArgs e) { long edition; long DateYear; long price; long price1; long PriceRupee; cnn = new SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library"); cnn.Open(); cmd = new SqlCommand("select * from books", cnn); String catalogTo = comboBox1.Text; String language1 = comboBox3.Text; String SortBy = comboBox4.Text; String NewArrivals = textBox1.Text; String TypeofMaterial = comboBox6.Text; String language2 = textBox3.Text; String AccessionPrefix = textBox6.Text; String AccessionNo = textBox5.Text; String AccDate = textBox7.Text; String classNumber = textBox8.Text; String BookNumber = textBox9.Text; String Title = textBox11.Text; String SubTitle = textBox12.Text; String Responsiblity = textBox13.Text; String editionSurname = textBox23.Text; String editionForname = textBox24.Text; String editorSurname = textBox25.Text;
  • 94. String editorForname = textBox28.Text; String TranslatorSurname = textBox27.Text; String TranslatorForename = textBox30.Text; String compilerSurname = textBox26.Text; String compilerForname = textBox29.Text; if (textBox14.Text == "") { edition = 0; } else { edition = long.Parse(textBox14.Text); } String placeOfPub = textBox31.Text; String Publisher = textBox32.Text; if (textBox33.Text == "") { DateYear = 0; } else { DateYear = long.Parse(textBox33.Text); } if (comboBox7.Text == "") { price = 0; } else { price = long.Parse(comboBox7.Text); } if (textBox34.Text == "") { price1 = 0; } else { price1 = long.Parse(textBox34.Text); } String GotoAccessionNo = textBox36.Text; if (textBox35.Text == "") { PriceRupee = 0; } else { PriceRupee = long.Parse(textBox35.Text); } String CopyDetailsOfCataloguedBook = textBox2.Text; String pages = textBox20.Text; String Volume = textBox19.Text; String AcmpMaterial = textBox18.Text; String notes = textBox21.Text; String ISBN = textBox22.Text; String Subject1 = comboBox5.Text; String subject2 = textBox38.Text; String descriptions = richTextBox1.Text; String keywords = textBox37.Text;
  • 95. String AuthorityFile = richTextBox2.Text; String Remarks = textBox39.Text; String AddedEntries = richTextBox3.Text; if (checkBox2.Checked == true) { typeofBook = "General"; } else if (checkBox3.Checked == true) { typeofBook = "Text"; } else if (checkBox4.Checked == true) { typeofBook = "Reference"; } else { typeofBook = ""; } cmd.CommandText = "INSERT INTO books VALUES('" + catalogTo + "' , '" + language1 + "' , '" + SortBy + "' , '" + NewArrivals + "' , '" + TypeofMaterial + "' , '" + language2 + "' , '" + AccessionPrefix + "' , '" + AccessionNo + "' , '" + AccDate + "' , '" + classNumber + "' , '" + BookNumber + "' , '" + Title + "' , '" + SubTitle + "' , '" + Responsiblity + "' , '" + editionSurname + "' , '" + editionForname + "' , '" + editorSurname + "' , '" + editorForname + "' , '" + TranslatorSurname + "' , '" + TranslatorForename + "' , '" + compilerSurname + "' , '" + compilerForname + "' , " + edition + " , '" + placeOfPub + "' , '" + Publisher + "' , " + DateYear + " , " + price + " , " + price1 + " , '" + GotoAccessionNo + "' , " + PriceRupee + " , '" + CopyDetailsOfCataloguedBook + "' , '" + pages + "' , '" + Volume + "' , '" + AcmpMaterial + "' , '" + notes + "' , '" + ISBN + "' , '" + Subject1 + "' , '" + subject2 + "' , '" + descriptions + "' , '" + keywords + "' , '" + AuthorityFile + "' , '" + Remarks + "' , '" + AddedEntries + "' , '" + typeofBook + "')"; cmd.ExecuteNonQuery(); cnn.Close(); MessageBox.Show("update record sucessfully"); } private void button15_Click(object sender, EventArgs e) { cnn = new SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library"); cnn.Open(); cmd = new SqlCommand("select * from books", cnn); cmd.CommandText = "delete from books where catalogTo= " + "'" + comboBox1.Text + "'"; cmd.ExecuteNonQuery(); cnn.Close(); MessageBox.Show("delete record sucessfully"); } private void button17_Click(object sender, EventArgs e) { Login f1 = new Login(); f1.Show(); Hide(); }
  • 96. private void button16_Click(object sender, EventArgs e) { comboBox1.Text = ""; comboBox3.Text = ""; comboBox4.Text = ""; textBox1.Text = ""; comboBox6.Text= ""; textBox3.Text = ""; textBox6.Text = ""; textBox5.Text= ""; textBox7.Text = ""; textBox8.Text = ""; textBox9.Text = ""; textBox11.Text = ""; textBox12.Text = ""; textBox13.Text = ""; textBox23.Text = ""; textBox24.Text = ""; textBox25.Text = ""; textBox28.Text = ""; textBox27.Text = ""; textBox30.Text = ""; textBox26.Text = ""; textBox29.Text = ""; textBox14.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox31.Text = ""; textBox32.Text = ""; textBox33.Text = "";
  • 97. comboBox7.Text = ""; textBox34.Text = ""; textBox36.Text =""; textBox35.Text = ""; textBox2.Text = ""; textBox20.Text = ""; textBox19.Text = ""; textBox18.Text = ""; textBox21.Text = ""; textBox22.Text = ""; textBox22.Text = ""; textBox22.Text = ""; comboBox5.Text =""; comboBox5.Text =""; textBox38.Text=""; richTextBox1.Text=""; textBox37.Text=""; richTextBox2.Text=""; textBox39.Text=""; richTextBox3.Text=""; } } }
  • 99. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.Sql; using System.Data.SqlClient; namespace library_management_system { public partial class Form7 : Form { SqlConnection cnn; SqlCommand cmd; String typeofbook; public Form7() { InitializeComponent(); } private void label42_Click(object sender, EventArgs e) { } private void button7_Click(object sender, EventArgs e) { Welcome f2 = new Welcome(); f2.Show(); Hide(); } private void button13_Click(object sender, EventArgs e) { String price; String price1; String priceRupee; cnn = new SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library"); cnn.Open(); cmd = new SqlCommand("select * from meeting", cnn); String catalogto = comboBox1.Text; String language1 = comboBox3.Text; String sortby = comboBox4.Text; String newArrivals = textBox1.Text; String typeofmaterial = comboBox6.Text; String copyDetailsOfCataloguedBook = textBox2.Text; String language2 = textBox3.Text; String AccessionNumberPrefix = textBox6.Text; String AccessionNo = textBox5.Text; String AccDate = textBox7.Text;
  • 100. String callNumberClassNumber = textBox8.Text; String bookNumber = textBox9.Text; String callNumber = textBox10.Text; String Title = textBox11.Text; String subTitle = textBox12.Text; String Responsibility = textBox13.Text; String editionSurname = textBox23.Text; String editionForename = textBox24.Text; String editorSurname = textBox25.Text; String editorForename = textBox28.Text; String TranslatorSurname = textBox27.Text; String TranslatorForename = textBox30.Text; String compilerSurname = textBox26.Text; String compilerForename = textBox29.Text; String edition = textBox14.Text; String name = textBox31.Text; String refNo = textBox32.Text; String PlaceofIndustry = textBox33.Text; price = comboBox7.Text; price1 = textBox34.Text; priceRupee = textBox35.Text; /* if (comboBox7.Text == "") { price = 0; } else { price = double.Parse(comboBox7.Text); } if (textBox34.Text == "") { price1 = 0; } else { price1 = double.Parse(textBox34.Text); } if (textBox35.Text == "") { priceRupee = 0; } else { priceRupee = double.Parse(textBox35.Text); }*/ String GoToAccessionNo = textBox36.Text; String pages = textBox20.Text; String volume = textBox19.Text; String AcmpMaterial = textBox18.Text; String Notes = textBox21.Text; String ISBN = textBox22.Text; String subject1 = comboBox5.Text; String subject2 = textBox38.Text; String Descriptors = richTextBox1.Text; String keywords = textBox37.Text; String Remarks = textBox39.Text;
  • 101. if (checkBox2.Checked == true) { typeofbook = "General"; } else if (checkBox3.Checked == true) { typeofbook = "Text"; } else if (checkBox4.Checked == true) { typeofbook = "Reference"; } else { typeofbook = ""; } String AddedEntries = richTextBox3.Text; String authf = richTextBox2.Text; cmd.CommandText = "INSERT INTO meeting VALUES('" + catalogto + "' , '" + language1 + "' , '" + sortby + "' , '" + newArrivals + "' , '" + typeofmaterial + "' , '" + copyDetailsOfCataloguedBook + "' , '" + language2 + "' , '" + AccessionNumberPrefix + "' , '" + AccessionNo + "' , '" + AccDate + "' , '" + callNumberClassNumber + "' , '" + bookNumber + "' , '" + callNumber + "' , '" + Title + "' , '" + subTitle + "' , '" + Responsibility + "', '" + editionSurname + "' ,'" + editionForename + "' , '" + editorSurname + "' , '" + editorForename + "','" + TranslatorSurname + "' ,'" + TranslatorForename + "', '" + compilerSurname + "' , '" + compilerForename + "' , '" + edition + "', '" + name + "', '" + refNo + "' , '" + PlaceofIndustry + "', " + price + ", " + price1 + " , " + priceRupee + ", '" + GoToAccessionNo + "' , '" + pages + "' , '" + volume + "', '" + AcmpMaterial + "' , '" + Notes + "', '" + ISBN + "' ,'" + subject1 + "' ,'" + subject2 + "', '" + Descriptors + "', '" + keywords + "' ,'" + Remarks + "', '" + typeofbook + "' , '" + AddedEntries + "' , '" + authf + "')"; cmd.ExecuteNonQuery(); cnn.Close(); MessageBox.Show("save record sucessfully"); } private void button18_Click(object sender, EventArgs e) { } private void button15_Click(object sender, EventArgs e) { cnn = new SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library"); cnn.Open(); cmd = new SqlCommand("select * from meeting", cnn);
  • 102. cmd.CommandText = "delete from meeting where catalogto= " + "'"+comboBox1.Text+"'"; cmd.ExecuteNonQuery(); cnn.Close(); MessageBox.Show("delete record sucessfully"); } } }
  • 103. FORM 8
  • 104. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace library_management_system { public partial class Form8 : Form { public Form8() { InitializeComponent(); } private void richTextBox4_TextChanged(object sender, EventArgs e) { } private void Form8_Load(object sender, EventArgs e) { } private void button21_Click(object sender, EventArgs e) { } private void button19_Click(object sender, EventArgs e) { } private void button20_Click(object sender, EventArgs e) { } private void button22_Click(object sender, EventArgs e) { } private void button18_Click(object sender, EventArgs e) { } private void button13_Click(object sender, EventArgs e) {
  • 105. } private void button14_Click(object sender, EventArgs e) { } private void button15_Click(object sender, EventArgs e) { } private void button16_Click(object sender, EventArgs e) { } private void button17_Click(object sender, EventArgs e) { } private void button6_Click(object sender, EventArgs e) { Welcome f2 = new Welcome(); f2.Show(); Hide(); } } }
  • 106. FORM 9
  • 107. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.Sql; using System.Data.SqlClient; namespace library_management_system { public partial class Form9 : Form { SqlConnection cnn; SqlCommand cmd; public Form9() { InitializeComponent(); } private void label2_Click(object sender, EventArgs e) { } private void Form9_Load(object sender, EventArgs e) { } private void button10_Click(object sender, EventArgs e) { Welcome f2 = new Welcome(); f2.Show(); Hide(); } private void button12_Click(object sender, EventArgs e) { cnn = new SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library"); cnn.Open(); cmd = new SqlCommand("select * from annualReport", cnn); String id = textBox2.Text; String companyname = comboBox1.Text; String year1 = textBox3.Text; String productServices = comboBox2.Text; String gotoSerialNo = textBox1.Text; cmd.CommandText = "INSERT INTO annualReport VALUES('" + id + "','" + companyname + "' , '" + year1 + "' , '" + productServices + "' , '" + gotoSerialNo + "')"; cmd.ExecuteNonQuery(); cnn.Close(); MessageBox.Show("Add record sucessfully"); }
  • 108. private void button13_Click(object sender, EventArgs e) { } } }
  • 110. using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.Sql; using System.Data.SqlClient; namespace library_management_system { public partial class Form10 : Form { SqlConnection cnn; SqlCommand cmd; public Form10() { InitializeComponent(); } private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { } private void dataGridView1_CellContentClick_1(object sender, DataGridViewCellEventArgs e) { } private void button10_Click(object sender, EventArgs e) { Welcome f2 = new Welcome(); f2.Show(); Hide(); } private void label10_Click(object sender, EventArgs e) { } private void Form10_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'dataSet11.finemanagement' table. You can move, or remove it, as needed. // this.finemanagementTableAdapter.Fill(this.dataSet11.finemanagement); } private void button1_Click(object sender, EventArgs e) { long SelectedBalAmt; DateTime DateOfRecived = new DateTime(); long payAmount;
  • 111. long ExemptAmount; long TotalAmountBalance; cnn = new SqlConnection("server=SERVERSQLEXPRESS;Trusted_Connection=yes;database=library"); cnn.Open(); cmd = new SqlCommand("select * from finemanagement", cnn); String memberid = textBox1.Text; String name = textBox2.Text; String MId = textBox3.Text; if (textBox4.Text == "") { SelectedBalAmt = 0; } else { SelectedBalAmt = long.Parse(textBox4.Text); } DateOfRecived = DateTime.Parse(maskedTextBox1.Text); if (textBox5.Text == "") { payAmount = 0; } else { payAmount = long.Parse(textBox5.Text); } if (textBox6.Text == "") { ExemptAmount = 0; } else { ExemptAmount = long.Parse(textBox6.Text); } if (textBox8.Text == "") { TotalAmountBalance = 0; } else { TotalAmountBalance = long.Parse(textBox8.Text); } String Remarks = textBox7.Text; cmd.CommandText = "INSERT INTO finemanagement VALUES('" + memberid + "' , '" + name + "' , '" + MId + "' , " + SelectedBalAmt + " , " + DateOfRecived + " ," + payAmount + "," + ExemptAmount + " , " + TotalAmountBalance + " , '" + Remarks + "')"; cmd.ExecuteNonQuery(); cnn.Close(); MessageBox.Show("payed"); } } }
  • 113. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.Sql; using System.Data.SqlClient; namespace library_management_system { public partial class Form11 : Form { public Form11() { SqlConnection cnn; SqlCommand cmd; InitializeComponent(); } private void panel1_Paint(object sender, PaintEventArgs e) { } private void panel5_Paint(object sender, PaintEventArgs e) { } private void button10_Click(object sender, EventArgs e) { Welcome f2 = new Welcome(); f2.Show(); } private void button5_Click(object sender, EventArgs e) { } } }
  • 115. using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace library_management_system { public partial class Form12 : Form { public Form12() { InitializeComponent(); } private void label6_Click(object sender, EventArgs e) { } private void textBox1_TextChanged(object sender, EventArgs e) { } private void button10_Click(object sender, EventArgs e) { Welcome f2 = new Welcome(); f2.Show(); Hide(); } private void button1_Click(object sender, EventArgs e) { } } }
  • 117. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace library_management_system { public partial class Form13 : Form { public Form13() { InitializeComponent(); } private void button10_Click(object sender, EventArgs e) { Welcome f2 = new Welcome(); f2.Show(); Hide(); } private void Form13_Load(object sender, EventArgs e) { } private void textBox2_TextChanged(object sender, EventArgs e) { } private void label12_Click(object sender, EventArgs e) { } private void textBox3_TextChanged(object sender, EventArgs e) { } private void textBox4_TextChanged(object sender, EventArgs e) { } private void textBox5_TextChanged(object sender, EventArgs e) { } private void textBox6_TextChanged(object sender, EventArgs e) {
  • 118. } private void label13_Click(object sender, EventArgs e) { } private void button13_Click(object sender, EventArgs e) { } } }
  • 120. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace library_management_system { public partial class Form14 : Form { public Form14() { InitializeComponent(); } private void panel4_Paint(object sender, PaintEventArgs e) { } private void radioButton5_CheckedChanged(object sender, EventArgs e) { } private void radioButton6_CheckedChanged(object sender, EventArgs e) { } private void radioButton4_CheckedChanged(object sender, EventArgs e) { } private void button16_Click(object sender, EventArgs e) { Welcome F2 = new Welcome(); F2.Show(); Hide(); } private void button7_Click(object sender, EventArgs e) { Login F1 = new Login(); F1.Show(); Hide(); } private void button1_Click(object sender, EventArgs e) { } } }
  • 125. BIBLIOGRAPHY BOOKS NAME AUTHOR PUBLISHER Physical database design Tom nadeau Morgan kaufmann SQL Clearly explained Jan L. harriangton Morgan kaufmann