REP

Published on February 2017 | Categories: Documents | Downloads: 103 | Comments: 0 | Views: 1310
of 69
Download PDF   Embed   Report

Comments

Content

ACKNOWLEDGEMENT
We the students of 5th Semester of Information Technology
Engg. Department headed by Er. Pooja Sharma (H.O.D) are very
grateful Who ably guided us in completing this MAJOR PROJECT ON
“RENTAL SYSTEM FOR BOOK-SHOP” and gave us an opportunity
to learn about the various necessary things for a Minor Project
We would also like to express our heartfelt thanks to our revered
teacher and Project Guide Er. Sushil Kohli, for his valuable
guidance, encouragement and timely support.
Last but not the least, we owe our overwhelming gratitude to
our family and friends who have given us constant support and
motivation to continue with this endeavor.

SANJAY SHARMA
Date:____________
Place: Jammu

0

INTRODUCTION
In the existing system, most of the records are maintained on paper. It
becomes very inconvenient to modify the data. In the existing system, here is a
possibility that the same data in different registers may have different values
which means the entries of the same data do not match. This inconsistent state
does not supply the concrete information which poses a problem in the case
information related to particular search record. Our project is very useful. User is
no longer required to check his register in search of records, as now it can be
searched over the software by choosing some options. The user need not to
type in most of the information. He/she is just required to enter the desired
options. On the whole it liberates the user from keeping lengthy manual records.
In a nutshell, it abates the work load of an organization.
In today’s world, no one likes to perform calculations on calculator or
manually when computer is there. Every one wants his/her work to be done by
computer automatically and displaying the result for further manipulations.
A book shop uses a personal computer to maintain the inventory of books that
are being sold at the shop. The list includes details such as author, title, price,
publisher, stock position, etc. Whenever a customer wants a book, the
shopkeeper inputs the title and author of the book and the system replies
whether it is in the list or not. If it is not, an appropriate message s displayed. If
book is in the list, then the system displays the book details and asks for number
of copies. If the requested copies are available the, total cost of the books is
displayed; otherwise the message “Required copies not in stock” is displayed.

1

Existing System:
While Modifying a record, the person will have to first search the record
and then make changes of that particular record in every related register.

PROPOSED SYSTEM
The following documentation is a project the “Book Rental System”. It is a
detailed summary of all the drawbacks of the old system and how the new
proposed system overcomes these shortcomings. The new system takes into
account the various factors while designing a new system. It keeps into the
account the Economical bandwidth available for the new system. The foremost
thing that is taken care of is the Need and Requirements of the User.

DESCRIPTION
Before developing software we keep following things in mind that we can
develop powerful and quality software
PROBLEM STATEMENT


Problem statement was to design a module:



Which is user friendly



Which will restrict the user from accessing other user’s data.



Which will help user in viewing his data and privileges.



Which will help the administrator to handle all the changes.

2

FUNCTIONS TO BE PROVIDED:
The system will be user friendly and completely menu driven so that the users
shall have no problem in using all options.


The system will be efficient and fast in response.



The system will be customized according to needs.



Name of title



Name of author

REQUIREMENT ANALYSIS
This process is adopted when management of the system development,
Personnel decide that the particular system needs improvement. The system
development life cycle is the set of activities, carried out by the analyst,
designers and users to develop and implement a system. The systems that are
present in the nature follow common life cycle pattern. For example consider the
raining system. Initially the rain falls into the river, river flows into sea, the sea
water evaporates to form vapors, the vapors form clouds which again bring rain.
Similarly consider a man made system initially a system is analyzed, designed
and made operational by the efforts of system analysis. After successful
operation or a number of users, the system becomes less and less effective by
change in the environment. So these changes have to be incorporated in to the
system by minor modifications. So the general activities from the life cycle of the
system are given below:


Selection and identification of the system to be studied



Preliminary study



Defining the system



Design and development of the system

3



Implementation of the system

PROJECT TO BE DEVELOPED IS GOING TO ACHIEVE THE
FOLLOWING OBJECTIVES:


Helps in eliminating the individual maintenance of the record of storage of
books in any educational institute



Helps in reducing maintenance time by automatically shifting /. Storing
the information in relevant modules.



Helps in fast retrieval or instant availability of information required.



Provides flexibility to bring the required change in a record case

of

modification or deletion or seeking information of queries.


Helps in reducing manual power requirement to a single person.



View, Retrieve Information
The program organizes and displays the data efficiently, so that the
information is readily accessible in a variety of ways.



Reports Management
We can quickly define and print a variety of reports directly from the
program.



Customize Display, Data
We can set any size of the data display windows

4

SOFTWARE REQUIREMENTS:
HARDWARE


Computer / Processor
Intel-compatible Pentium IV or Higher, 512 MB RAM, 80 GB hard disk
space available.



Operating System
Microsoft Windows 2000 / Windows XP / Windows Vista



Display Screen (Monitor / TFT)
VGA or higher-resolution video adapter (Super VGA, at least 256-color
recommended).



Peripherals
Mouse or compatible pointing device; Supports printers, scanners

SOFTWARE DESCRIPTION
Operating System

:

Windows XP SP2

Software User

:

Microsoft Visual Studio 2008

Front- End

:

Microsoft Visuabasic.NEt

Back- End

:

MS-ACCESS

5

PROJECT MODULE DESIGN
Category



This module is used for addition of new book category. Each book
category

store unique catergory_id.

This module relates the type of

book. For Example: Computer, Electronic, Science, Math etc. Various
possible implemented in this module are:
Add

:

Addition

Save

:

Save the current / existing



Delete

:

Delete the existing record



Edit

:

Modifies



of

New

book

category

record

the

existing

record
Cancel



:

To terminate the transaction in

between
Exit



:

To exit from the current

:

To scroll the records.

working module
Navigation Buttons




Customer
This module is used for addition of new customer. Each customer can
uniquely store by unique customer_id. The fields used under this module
are Customer Name, Phone No., Address, Proof of Identification,
Address. Various possible operations implemented in this module are:


Add

:

Addition of New Customer



Save

:

Save the current / existing

record

6



Delete

:

Delete the existing record



Edit

:

Modifies

the

existing

record
Cancel



:

To terminate the transaction in

between
Exit



:

To exit from the current

:

To scroll the records.

working module
Navigation Buttons





Book
This module is used for addition of new books. Each book can uniquely
store by unique book_id. The fields used under this module are
Book_ISBNCode, category, publisher, name_of_book, author_name,
Price and total quantity. Various possible operations implemented in this
module are:


Add

:

Addition of New Book



Save

:

Save the current / existing



Delete

:

Delete the existing record



Edit

:

Modifies

record
the

existing

record
Cancel



:

To terminate the transaction in

between
Exit



:

To exit from the current

:

To scroll the records.

working module




Navigation Buttons

Publisher

7

This module is used for addition of new publisher. Each publisher can
uniquely store by unique publisher_id. The fields used under this module
are publisher_id, publisher_name, publisher_address, phone. Various
possible operations implemented in this module are:


Add

:

Addition of New Publisher



Save

:

Save the current / existing



Delete

:

Delete the existing record



Edit

:

Modifies

record
the

existing

record
Cancel



:

To terminate the transaction in

between
Exit



:

To exit from the current

:

To scroll the records.

working module
Navigation Buttons




Search Process
Searching process can be categorized into there ways


Book
Searching by Book by entering the unique Book_ISBN_no



Customer
Searching by Customer by entering the unique customer_no



Publisher
Searching by publisher by entering the unique publisher_no

Transaction Management


Purchase Book
By selecting the unique Book_ISBN_No the fields Book_name, Author
Name, Book price

automatically

displayed. The software operator

selects the name of the customer, enter the value of purchase_quanity,
the field total price can be calculated automatically depending upon the
quantity.

8



Rental
By selecting the unique Book_ISBN_No the fields Book_name, Author
Name, Book publisher automatically displayed. The software operator
enters the rent price and

no. of days. The field total rent generated

automatically by multiplying the rent x no. of days.


Return
By selecting the unique Book_ISBN_No the fields Book_name, Author
Name, Book publisher automatically displayed. The software operator
enters the due price and

no. of days. The field total due generated

automatically by multiplying the due price x no. of days.
Crystal Report
This module enables printing feature in our project.

The below mentioned

crystal reports are generated


Bill report



Book report



Customer report



Publisher report



Rent report



Return report

Module 6 (Help)


About

9

Data Flow Diagram of the proposed System
Request info.

Request info.
1.Reque
st book
list

2.Give
book list

Books

Required
books list

Book Rental
System

Book bank Staff

Books
list

3.Send
books

Returned books

Books

Borrowed books

Reports

BOOK shop

Bought books info

5.View

Reports

Reports

Database

Books,
Faculties,
Staff,
Defaulters
4.Generate
reports

LEVEL 1 DATA FLOW DIAGRAM OF THE PROPOSED SYSTEM

10

SYSTEM ANALYSIS
System analysis is a process of gathering and interpreting facts,
diagnosing problems and the information to recommend improvements on the
system. It is a problem solving activity that requires intensive communication
between the system users and system developers. System analysis or study is
an important phase of any system development process. The system is studied
to the minutest detail and analyzed. The system analyst plays the role of the
interrogator and dwells deep into the working of the present system. The system
is viewed as a whole and the input to the system are identified. The outputs from
the organizations are traced to the various processes. System analysis is
concerned with becoming aware of the problem, identifying the relevant and
decisional variables, analyzing and synthesizing the various factors and
determining an optimal or at least a satisfactory solution or program of action.
A detailed study of the process must be made by various techniques like
interviews, questionnaires etc. The data collected by these sources must be
scrutinized to arrive to a conclusion. The conclusion is an understanding of how
the system functions. This system is called the existing system. Now the existing
system is subjected to close study and problem areas are identified. The
designer now functions as a problem solver and tries to sort out the difficulties
that the enterprise faces. The solutions are given as proposals. The proposal is
then weighed with the existing system analytically and the best one is selected.
The proposal is presented to the user for an endorsement by the user. The
proposal is reviewed on user request and suitable changes are made. This is
loop that ends as soon as the user is satisfied with proposal.
Preliminary study is the process of gathering and interpreting facts, using
the information for further studies on the system. Preliminary study is problem
solving activity that requires intensive communication between the system users
and system developers. It does various feasibility studies. In these studies a
rough figure of the system activities can be obtained, from which the decision
about the strategies to be followed for effective system study and analysis can
be taken.

11

Existing System


Lack of security of data.



More man power.



Time consuming.



Consumes large volume of pare work.



Needs manual calculations.



No direct role for the higher officials.

Proposed System
The aim of proposed system is to develop a system of improved facilities.
The proposed system can overcome all the limitations of the existing system.
The system provides proper security and reduces the manual work.


Security of data.



Ensure data accuracy’s.



Proper control of the higher officials.



Minimize manual data entry.



Minimum time needed for the various processing.



Greater efficiency.



Better service.



User friendliness and interactive.



Minimum time required.

12

FEASIBILITY STUDY
Feasibility study is made to see if the project on completion will serve the
purpose of the organization for the amount of work, effort and the time that
spend on it. Feasibility study lets the developer foresee the future of the project
and the usefulness. A feasibility study of a system proposal is according to its
workability, which is the impact on the organization, ability to meet their user
needs and effective use of resources. Thus when a new application is proposed
it normally goes through a feasibility study before it is approved for development.
The document provide the feasibility of the project that is being designed
and lists various areas that were considered very carefully during the feasibility
study of

this project

such

as Technical,

Economic

and

Operational

feasibilities. The following are its features:
A.

TECHNICAL FEASIBILITY
The system must be evaluated from the technical point of view
first. The assessment of this feasibility must be based on an outline
design of the system requirement in the terms of input, output, programs
and procedures. Having identified an outline system, the investigation
must go on to suggest the type of equipment, required method
developing the system, of running the system once it has been designed.
Technical issues raised during the investigation are:
Does the existing technology sufficient for the suggested


one?

Can the system expand if developed?



The project should be developed such that the necessary functions
and performance are achieved within the constraints. The project is
developed within latest technology. Through the technology may become
obsolete after some period of time, due to the fact that never version of
same software supports older versions, the system may still be used. So
there are minimal constraints involved with this project. The system has
been developed using Java the project is technically feasible for
development.

13

B.

ECONOMIC FEASIBILITY
The developing system must be justified by cost and benefit.
Criteria to ensure that effort is concentrated on project, which will give
best, return at the earliest. One of the factors, which affect the
development of a new system, is the cost it would require.
The following are some of the important financial questions asked
during preliminary investigation:


The costs conduct a full system investigation.



The cost of the hardware and software.



The benefits in the form of reduced costs or fewer costly

errors.
Since the system is developed as part of project work, there is no
manual cost to spend for the proposed system. Also all the resources are
already available, it give an indication of the system is economically
possible for development.

C.

BEHAVIORAL FEASIBILITY
This includes the following questions:



Is there sufficient support for the users?
Will the proposed system cause harm?
The project would be beneficial because it satisfies the objectives

when developed and installed. All behavioral aspects are considered
carefully and conclude that the project is behaviorally feasible.

14

ABOUT OPERATING SYSTEM
Windows XP is a line of operating systems developed by Microsoft for use
on general purpose computer systems, including home and business desktops,
notebook computers and media centers. The letters ‘XP’ stand for experience.
Windows XP is the successor to both Windows 2000 and Windows Me and is
first consumer oriented operating system produced by Microsoft to be built on
the Windows NT kernel and architecture.
The most common editions of operating systems are Windows XP home
edition, which is targeted at home users, and Windows XP professional, which
has additional features such as, support for Windows server domain and two
physical processors and is targeted at power users and business clients.
Windows XP Tablet PC edition is designed to run the ink-aware Tablet PC
platform. Two separate 64 bit versions of Windows XP were also released,
Windows XP 64 bit edition for IA-64(Itanium) processors and Windows XP
Professional x64 edition for x86-64 processors.

15

SOFTWARE DESCRIPTION
Microsoft Visual Basic.Net
Visual Basic .NET (VB.NET or VB .NET) is a version of Microsoft's Visual Basic
that was designed, as part of the company's .NET product group, to make Web
services applications easier to develop. According to Microsoft, VB .NET was
reengineered, rather than released as VB 6.0 with added features, to facilitate
making fundamental changes to the language. VB.NET is the first fully objectoriented programming (OOP) version of Visual Basic, and as such, supports
OOP concepts such as abstraction, inheritance, polymorphism, and aggregation.
In the Visual Basic NET design time environment, the first thing to concentrate
on is that strange, big square in the top left. That's called a form. It's actually the
pretty bit of your programme, the part that others will see when they launch your
masterpiece. Granted, it doesn't look too attractive at the moment, but you'll
soon discover ways to lick it into shape.
To run the form, try this:
 From

the menu bar, click Debug

 From

the drop down menu, click Start

 Alternatively,
 Your

press the F5 key on your keyboard

programme is launched

Congratulations! You have now created your very first programme. It should look
like this:

16

Click the Red X on the form to stop it from running. You will then be returned to
the software environment.
Things like buttons, textboxes, and labels are all things that you can add to your
Forms. They are know as Controls, and are kept in the Toolbox for ease of use.
The Toolbox can be found on the left of the screen. In the picture below, you can
see the toolbox icon next to Form1:

To display all the tools, move your mouse over the toolbox icon. You'll see the
following automatically appear:
There are seven categories of tools available.
The toolbox you'll be working with first is the
Common Controls toolbox. To see the tools,
click on the plus symbol next to Common
Controls. You'll see a long list of tools:

As you can see, there are an awful lot of tools to
choose from! For this first section, we'll only be
using the Button, the TextBox and the Label.
If you want to keep the toolbox displayed, click
the Pin icon next to the X. To close the toolbox,
simply move your mouse away.
In the next part, we'll see how to add a textbox to
the form.

17

How to Add a Control to your VB .NET Forms
Let's start by adding a textbox to our form. With the tools displayed, do the
following:
 Locate the TextBox tool
 Double click the icon
 A textbox is added to your

form

The textbox gets added to the top left position of
your form. To move it down, hold your mouse
over the textbox and drag to a new position:
Notice the small squares around the textbox.
These are sizing handles. Move your mouse
over one of them. The mouse pointer turns into
an extended line with arrowheads. Hold your left
mouse button down and drag outwards. The
textbox is resized. Play around with the sizing
handles until you're happy with the size of your
textbox.
One thing you will notice is that you can't make
the size any higher, but you can make it wider. The reason why you can't make it
any higher is because the default action of a textbox is to have it contain only a
single line of text. If it's only going to contain one line of text, Microsoft reasoned,
there's no reason why you should be able to change its height. A textbox can
only be made higher if it's set to contain multiple lines of text. You'll see how to
do this soon.








Create
two
more
textboxes by double
clicking on the textbox
icon in the toolbar (Or
Right-click
on
the
selected textbox and
choose Copy. Then
Right-click on the Form
and choose Paste.)
Resize them to the
same size as your first
one
Line them up one
below the other with
space in between
Try to create something
that looks like the one below

18

Microsoft Access 2003.
Microsoft Access is the default database of Microsoft Visual Basic.
Microsoft Access 2003 provides many new features that make working with data
and designing a database even easier.

Microsoft Access Database is a

collection of data and objects related to particular topic or purpose. Microsoft
Access Database may contain tables; queries, forms, reports, macros modules
and shortcuts top data access pages.
Microsoft Access is a Relational Database Management System. Using
Access we can organize our data according to subject and can store information
about how different subject are related. In general MS-Access database can
have several small tables.
Microsoft Office Access, previously known as Microsoft Access, is a relational
database management system from Microsoft that combines the relational
Microsoft Jet Database Engine with a graphical user interface and software
development tools. It is a member of the 2007 Microsoft Office system.
Access can use data stored in Access/Jet, Microsoft SQL Server, Oracle,
or any ODBC-compliant data container (including MySQL and PostgreSQL).
Skilled software developers and data architects use it to develop application
software. Relatively unskilled programmers and non-programmer "power users"
can use it to build simple applications. It supports some object-oriented
techniques but falls short of being a fully object-oriented development tool.
Access was also the name of a communications program from Microsoft,
meant to compete with ProComm and other programs. This proved a failure and
was dropped. Years later Microsoft reused the name for its database software.
Access is used by small businesses, within departments of large
corporations, and by hobby programmers to create ad hoc customized desktop
systems for handling the creation and manipulation of data. Access

can

be

used as a database for basic web based applications hosted on Microsoft's
Internet Information Services and utilizing Microsoft Active Server Pages ASP.
Most typical web applications should use tools like ASP/Microsoft SQL Server or
the LAMP stack.

19

DATABASE DESIGN
A database is an organized mechanism that has the capability of storing
information through which a user can retrieve stored information in an effective
and efficient manner. The data is the purpose of any database and must be
protected.
The database design is a two level process. In the first step, user
requirements are gathered together and a database is designed which will meet
these requirements as clearly as possible. This step is called Information Level
Design and it is taken independent of any individual DBMS.
In the second step, this Information level design is transferred into a design
for the specific DBMS that will be used to implement the system in question.
This step is called Physical Level Design, concerned with the characteristics of
the specific DBMS that will be used. A database design runs parallel with the
system design. The organization of the data in the database is aimed to achieve
the following two major objectives.
 Data Integrity
 Data independence
Normalization is the process of decomposing the attributes in an application,
which results in a set of tables with very simple structure. The purpose of
normalization is to make tables as simple as possible. Normalization is carried
out in this system for the following reasons.


To structure the data so that there is no repetition of data, this helps in
saving.



To permit simple retrieval of data in response to query and report request.



To simplify the maintenance of the data through updates, insertions,
deletions.



To reduce the need to restructure or reorganize data which new
application requirements arise.

20

RELATIONAL DATABASE MANAGEMENT SYSTEM (RDBMS):
A relational model represents the database as a collection of relations.
Each relation resembles a table of values or file of records. In formal relational
model terminology, a row is called a tuple, a column header is called an attribute
and the table is called a relation. A relational database consists of a collection of
tables, each of which is assigned a unique name. A row in a tale represents a
set of related values.
RELATIONS, DOMAINS & ATTRIBUTES:


A table is a relation. The rows in a table are called tuples. A tuple is an
ordered set of n elements. Columns are referred to as attributes.
Relationships have been set between every table in the database. This
ensures both Referential and Entity Relationship Integrity. A domain D is a
set of atomic values. A common method of specifying a domain is to
specify a data type from which the data values forming the domain are
drawn. It is also useful to specify a name for the domain to help in
interpreting its values. Every value in a relation is atomic, that is not
decomposable.



RELATIONSHIPS:
Table relationships are established using Key. The two main keys of
prime importance are Primary Key & Foreign Key. Entity Integrity and
Referential Integrity Relationships can be established with these keys.
Entity Integrity enforces that no Primary Key can have null values.
Referential Integrity enforces that no Primary Key can have null values.



Referential Integrity for each distinct Foreign Key value, there must exist
a matching Primary Key value in the same domain. Other key are Super
Key and Candidate Keys.



Relationships have been set between every table in the database. This
ensures both Referential and Entity Relationship Integrity.

21

1.

TABLE : BOOK_MASTER

Field Name
ISBN(PK)
Vategory
Publisher
Book
Author
Price
Total_Quantity
2.

TABLE : CATEGORY

Field Name
Category_ID(PK)
Category
3.

Data Type
Text
Text

TABLE : CUSTOMER_MASTER

Field Name
Category_ID(PK)
Name
Address
Phone
Proof
4.

Data Type
Text
Text
Text
Text
Text
Text
Text

Data Type
Text
Text
Text
Text
Text

TABLE : PUBLISHER_MASTER

Field Name
Pubsliher_ID(PK)
Name
Address
Phone

Data Type
Text
Text
Text
Text

22

5.

TABLE : PURCHASE_MASTER

Field Name
ISBN(PK)
Book
Author
Customer_Name(PK)
Date
Publisher_name
Quantity
Book_Price
Total_Price
6.

TABLE : RENT_MASTER

Field Name
ISBN(PK)
Book
Author
Publisher
Rent_Price
Days
Total_Rent
Customer_name(PK)

7.

Data Type
Text
Text
Text
Text
Text
Text
Text
Text
Text

Data Type
Text
Text
Text
Text
Text
Text
Text
Text

TABLE : RETURN_MASTER

Field Name
ISBN(PK)
Book
Author
Publisher
Due
Days
Total_Due
Customer_name(PK)

Data Type
Text
Text
Text
Text
Text
Text
Text
Text

23

SOURCE CODE

24

Form: MDI
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.IO;
namespace Book_Rental_System
{
public partial class MDI : Form
{
public static Form objlogin;
public static Form objCategory;
public MDI()
{
InitializeComponent();
}
private void MDI_Load(object sender, EventArgs e)
{
MDI f = new MDI();
f.WindowState = FormWindowState.Maximized;
}
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Close();
}
private void timer1_Tick(object sender, EventArgs e)
{
lbl1Date.Text = DateTime.Now.ToLongDateString();
}
private void timer2_Tick(object sender, EventArgs e)
25

{
lbl2Time.Text = DateTime.Now.ToLongTimeString();
}
private void lbl2Time_Click(object sender, EventArgs e)
{
lbl2Time.Text = DateTime.Now.ToLongTimeString();
}
private void aboutUsToolStripMenuItem_Click(object sender, EventArgs e)
{
AboutUs aboutobj = new AboutUs();
aboutobj.MdiParent = this;
aboutobj.Show();
}
private void categoryToolStripMenuItem_Click(object sender, EventArgs e)
{
Category catobj = new Category();
catobj.MdiParent = this;
catobj.Show();
}
private void customerToolStripMenuItem_Click(object sender, EventArgs e)
{
Customer custobj = new Customer();
custobj.MdiParent = this;
custobj.Show();
}
private void bookToolStripMenuItem_Click(object sender, EventArgs e)
{
Book bookobj = new Book();
bookobj.MdiParent = this;
bookobj.Show();
}
private void publisherToolStripMenuItem_Click(object sender, EventArgs e)
{
Publisher pubobj = new Publisher();
26

pubobj.MdiParent = this;
pubobj.Show();
}
private void bookToolStripMenuItem1_Click(object sender, EventArgs e)
{
Search_Book serobj = new Search_Book();
serobj.MdiParent = this;
serobj.Show();
}
private void customerToolStripMenuItem1_Click(object sender, EventArgs e)
{
Search_Customer sercustobj = new Search_Customer();
sercustobj.MdiParent = this;
sercustobj.Show();
}
private void publisherToolStripMenuItem1_Click(object sender, EventArgs e)
{
Search_Publisher serpubobj = new Search_Publisher();
serpubobj.MdiParent = this;
serpubobj.Show();
}
private void addNewUserToolStripMenuItem_Click(object sender,
EventArgs e)
{
New_User newusrobj = new New_User();
newusrobj.MdiParent = this;
newusrobj.Show();
}
private void changePasswordToolStripMenuItem_Click(object sender,
EventArgs e)
{
Change_Password chngpassobj = new Change_Password();
chngpassobj.MdiParent = this;
chngpassobj.Show();
27

}
private void removeUserToolStripMenuItem_Click(object sender, EventArgs e)
{
Remove_User objRem_User = new Remove_User();
objRem_User.MdiParent = this;
objRem_User.Show();
}
private void purchaseToolStripMenuItem_Click(object sender, EventArgs e)
{
Purchase_Book objPur_Book = new Purchase_Book();
objPur_Book.MdiParent = this;
objPur_Book.Show();
}
private void rentalToolStripMenuItem_Click(object sender, EventArgs e)
{
Rental objRental = new Rental();
objRental.MdiParent = this;
objRental.Show();
}
private void returnToolStripMenuItem_Click(object sender, EventArgs e)
{
Return objReturn = new Return();
objReturn.MdiParent = this;
objReturn.Show();
}
private void calculatorToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
System.Diagnostics.Process.Start("calc.exe");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error");
28

}
}
private void MDI_FormClosed(object sender, FormClosedEventArgs e)
{
Application.Exit();
}
private void helpToolStripMenuItem1_Click(object sender, EventArgs e)
{
try
{
System.Diagnostics.Process.Start(Program.help);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error");
}
}
private void bookReportToolStripMenuItem_Click(object sender, EventArgs e)
{
Book_Report objBook_rpt = new Book_Report();
objBook_rpt.MdiParent = this;
objBook_rpt.Show();
}
private void customerReportToolStripMenuItem_Click(object sender,
EventArgs e)
{
Customer_Report objCustomer_rpt = new Customer_Report();
objCustomer_rpt.MdiParent = this;
objCustomer_rpt.Show();
}
private void publisherReportToolStripMenuItem_Click(object sender,
EventArgs e)
{
Publisher_Report objPublisher_rpt = new Publisher_Report();
29

objPublisher_rpt.MdiParent = this;
objPublisher_rpt.Show();
}
private void billReportToolStripMenuItem_Click(object sender, EventArgs e)
{
Bill_Report objBill_rpt = new Bill_Report();
objBill_rpt.MdiParent = this;
objBill_rpt.Show();
}
private void rentReportToolStripMenuItem_Click(object sender, EventArgs e)
{
Rent_Report objRent_rpt = new Rent_Report();
objRent_rpt.MdiParent = this;
objRent_rpt.Show();
}
private void returnReportToolStripMenuItem_Click(object sender, EventArgs
e)
{
Return_Report objReturn_rpt = new Return_Report();
objReturn_rpt.MdiParent = this;
objReturn_rpt.Show();
}
}
}
Form: Publisher
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.OleDb;
30

namespace Book_Rental_System
{
public partial class Publisher : Form
{
public OleDbConnection conn;
public OleDbDataAdapter da;
public DataSet ds;
public DataTable dt;
public OleDbCommand cmd;
public OleDbDataReader dr;
public int maxrecords;
public int pointer;
static public int cnt;
public string pubid;
public Publisher()
{
cnt++;
InitializeComponent();
}
private void Publisher_Load(object sender, EventArgs e)
{
conn = new OleDbConnection(Program.cnstr);
conn.Open();
pointer = 0;
filldata();
navigation();
btnSave.Enabled = false;
}
public void filldata()
{
da = new OleDbDataAdapter("Select * from Publisher_Master", conn);
ds = new DataSet();
da.Fill(ds);
31

dt = ds.Tables[0];
maxrecords = dt.Rows.Count;
}
public void navigation()
{
if (dt.Rows.Count == 0)
{
MessageBox.Show(" There is no data available.");
}
else
{
txtPublisher_ID.Text = dt.Rows[pointer].ItemArray[0].ToString();
txtName.Text = dt.Rows[pointer].ItemArray[1].ToString();
txtAddress.Text = dt.Rows[pointer].ItemArray[2].ToString();
txtPhone.Text = dt.Rows[pointer].ItemArray[3].ToString();
pubid = dt.Rows[pointer].ItemArray[0].ToString();
}
}
private void btnAdd_Click(object sender, EventArgs e)
{
txtPublisher_ID.Focus();
if (dt.Rows.Count == 0)
{
MessageBox.Show("There is no data, Please Insert the Record.");
}
txtPublisher_ID.Clear();
txtName.Clear();
txtAddress.Clear();
txtPhone.Clear();
btnSave.Enabled = true;
}
private void btnSave_Click(object sender, EventArgs e)
{
Boolean inc = false;
32

if (txtPublisher_ID.Text == "")
{
DialogResult sav = MessageBox.Show("The Publisher_ID Field is
Empty.", "Blank Record", MessageBoxButtons.OKCancel,
MessageBoxIcon.Error);
}
else if (txtName.Text == "")
{
DialogResult sav = MessageBox.Show("The Name Field is Empty.",
"Blank Record", MessageBoxButtons.OKCancel, MessageBoxIcon.Error);
}
else if (txtAddress.Text == "")
{
DialogResult sav = MessageBox.Show("The Address Field is Empty.",
"Blank Record", MessageBoxButtons.OKCancel, MessageBoxIcon.Error);
}
else if (txtPhone.Text == "")
{
DialogResult sav = MessageBox.Show("The Phone Field is Empty.",
"Blank Record", MessageBoxButtons.OKCancel, MessageBoxIcon.Error);
}
else
{
string cmdstr = "SELECT Publisher_ID FROM Publisher_Master
WHERE (Publisher_ID = '" + txtPublisher_ID.Text + "')";
cmd = new OleDbCommand(cmdstr, conn);
cmd.ExecuteNonQuery();
dr = cmd.ExecuteReader(CommandBehavior.CloseConnection);
while (dr.Read())
{
if (txtPublisher_ID.Text == dr.GetValue(0).ToString())
{

33

DialogResult sav = MessageBox.Show("The Record is Duplicate,
Please Insert Different Record.", "Duplicate Record",
MessageBoxButtons.OKCancel, MessageBoxIcon.Error);
inc = true;
break;
}
else
{
dr.NextResult();
}
}
if (inc == false)
{
string sql = "INSERT INTO Publisher_Master
(Publisher_ID,Name,Address,Phone) VALUES('" + txtPublisher_ID.Text + "','" +
txtName.Text + "','" + txtAddress.Text + "','" + txtPhone.Text + "')";
Execute(sql);
DialogResult save = MessageBox.Show("Publisher is saved
Successfully.", "Save", MessageBoxButtons.OK, MessageBoxIcon.Information);
cleartextbox();
}
}
btnSave.Enabled = false;
}
private void btnEdit_Click(object sender, EventArgs e)
{
if (txtPublisher_ID.Text == "")
{
DialogResult sav = MessageBox.Show("The Publisher_ID Field is
Empty.", "Blank Record", MessageBoxButtons.OKCancel,
MessageBoxIcon.Error);
}
else if (txtName.Text == "")
{
34

DialogResult sav = MessageBox.Show("The Name Field is Empty.",
"Blank Record", MessageBoxButtons.OKCancel, MessageBoxIcon.Error);
}
else if (txtAddress.Text == "")
{
DialogResult sav = MessageBox.Show("The Address Field is Empty.",
"Blank Record", MessageBoxButtons.OKCancel, MessageBoxIcon.Error);
}
else if (txtPhone.Text == "")
{
DialogResult sav = MessageBox.Show("The Phone Field is Empty.",
"Blank Record", MessageBoxButtons.OKCancel, MessageBoxIcon.Error);
}
else
{
string sql = "UPDATE Publisher_Master SET Publisher_ID = '" +
txtPublisher_ID.Text + "', Name = '" + txtName.Text + "', Address = '" +
txtAddress.Text + "', Phone = '" + txtPhone.Text + "' WHERE (Publisher_ID = '" +
pubid + "')";
Execute(sql);
MessageBox.Show("Record is updated.");
}
}
public void Execute(String sql)
{
cmd = new OleDbCommand(sql, conn);
cmd.ExecuteNonQuery();
filldata();
}
private void btnDelete_Click(object sender, EventArgs e)
{
if (dt.Rows.Count == 0)
{
MessageBox.Show("There is no record available for delete.");
35

cleartextbox();
private void txtPhone_KeyPress(object sender, KeyPressEventArgs e)
{
if ((e.KeyChar < 48 || e.KeyChar > 57) && e.KeyChar != 8)
{
e.Handled = true;
DialogResult num = MessageBox.Show("Only Numbers are allowed.",
"Invalid Key", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}
}
}
Form: Purchase Book
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.OleDb;
using System.IO;
using System.Configuration;
namespace Book_Rental_System
{
public partial class Purchase_Book : Form
{
public OleDbConnection conn;
public OleDbDataAdapter da;
public DataSet ds;
public DataTable dt;
public OleDbCommand cmd;
public int maxrecords;
36

public int pointer;
public Purchase_Book()
{
InitializeComponent();
}
public void fillISBNcmbo()
{
da = new OleDbDataAdapter("SELECT ISBN FROM Book_Master ",
conn);
ds = new DataSet();
da.Fill(ds);
dt = ds.Tables[0];
for (int i = 0; i < dt.Rows.Count; i++)
{
cmbISBN.Items.Add(dt.Rows[i].ItemArray[0]);
}
}
private void cmbISBN_SelectedIndexChanged(object sender, EventArgs e)
{
da = new OleDbDataAdapter("SELECT ISBN FROM Book_Master",
conn);
ds = new DataSet();
da.Fill(ds);
}
public void fillCust_Namecmbo()
{
da = new OleDbDataAdapter("SELECT Name FROM Customer_Master
", conn);
ds = new DataSet();
da.Fill(ds);
dt = ds.Tables[0];
for (int i = 0; i < dt.Rows.Count; i++)
{
cmbCust_Name.Items.Add(dt.Rows[i].ItemArray[0]);
37

}
}
private void cmbCust_Name_SelectedIndexChanged(object sender,
EventArgs e)
{
da = new OleDbDataAdapter("SELECT Name FROM Customer_Master",
conn);
ds = new DataSet();
da.Fill(ds);
}
private void Purchase_Book_Load(object sender, EventArgs e)
{
conn = new OleDbConnection(Program.cnstr);
conn.Open();
pointer = 0;
filldata();
fillISBNcmbo();
fillCust_Namecmbo();
}
public void filldata()
{
da = new OleDbDataAdapter("Select * from Purchase_Master", conn);
ds = new DataSet();
da.Fill(ds);
dt = ds.Tables[0];
maxrecords = dt.Rows.Count;
}
private void btnPurchase_Click(object sender, EventArgs e)
{
if (txtQuantiry.Text == "")
{

38

DialogResult qty = MessageBox.Show("The Quantity Field is Empty.",
"Blank Record", MessageBoxButtons.OKCancel, MessageBoxIcon.Error);
}
else
{
string sql = "INSERT INTO Purchase_Master VALUES('" +
cmbISBN.Text + "','" + txtBook.Text + "','" + txtAuthor.Text + "','" +
cmbCust_Name.Text + "','" + dateTimePicker1.Text + "','" +
txtPublisher_Name.Text + "','" + txtQuantiry.Text + "','" + txtBook_Price.Text + "','"
+ txtTotal_Price.Text + "')";
string qty = txtQuantiry.Text.ToString();
da = new OleDbDataAdapter("Select Total_Quantity from
Book_Master where ISBN='" + cmbISBN.Text + "'", conn);
ds = new DataSet();
da.Fill(ds);
dt = ds.Tables[0];
int total = int.Parse(dt.Rows[0].ItemArray[0].ToString()) int.Parse(txtQuantiry.Text);
string sql1 = "UPDATE Book_Master SET Total_Quantity = " + total
+ " WHERE ISBN = '" + cmbISBN.Text + "'";
Execute(sql);
Execute(sql1);
MessageBox.Show("Record is saved Successfully.");
this.Close();
//}
}
}
public void Execute(String sql)
{
try
{
cmd = new OleDbCommand(sql, conn);
cmd.ExecuteNonQuery();
filldata();
39

}
catch (OleDbException exc)
{
MessageBox.Show(exc.ToString());
}
}
private void btnCancel_Click(object sender, EventArgs e)
{
this.Dispose();
}
private void btnExit_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void txtTotal_Price_Enter(object sender, EventArgs e)
{
if (txtTotal_Price.Text == "")
{
MessageBox.Show("Please enter the price.");
}
int total = int.Parse(txtQuantiry.Text) * int.Parse(txtBook_Price.Text);
txtTotal_Price.Text = total.ToString();
txtTotal_Price.ReadOnly = true;
}
private void cmbISBN_SelectedValueChanged(object sender, EventArgs e)
{
fillAllTextBox();
}
public void fillAllTextBox()
{
string sql="SELECT Book,Author,Publisher,Price FROM Book_Master
where ISBN='" + cmbISBN.SelectedItem.ToString() + "'";
da = new OleDbDataAdapter(sql, conn);
ds = new DataSet();
40

da.Fill(ds);
dt = ds.Tables[0];
txtBook.ReadOnly = true;
txtPublisher_Name.ReadOnly = true;
txtAuthor.ReadOnly = true;
txtBook_Price.ReadOnly = true;
txtBook.Text = dt.Rows[0].ItemArray[0].ToString();
txtAuthor.Text = dt.Rows[0].ItemArray[1].ToString();
txtPublisher_Name.Text = dt.Rows[0].ItemArray[2].ToString();
txtBook_Price.Text = dt.Rows[0].ItemArray[3].ToString();
}
private void txtQuantiry_KeyPress(object sender, KeyPressEventArgs e)
{
if ((e.KeyChar < 48 || e.KeyChar > 57) && e.KeyChar != 8)
{
e.Handled = true;
DialogResult num = MessageBox.Show("Only Numbers are allowed.",
"Invalid Key", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}
private void txtBook_Price_KeyPress(object sender, KeyPressEventArgs e)
{
if ((e.KeyChar < 48 || e.KeyChar > 57) && e.KeyChar != 8)
{
e.Handled = true;
DialogResult num = MessageBox.Show("Only Numbers are allowed.",
"Invalid Key", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}
}
}
Form: Rental.cs
using System;
41

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.OleDb;
namespace Book_Rental_System
{
public partial class Rental : Form
{
public OleDbConnection conn;
public OleDbDataAdapter da;
public DataSet ds;
public DataTable dt;
public OleDbCommand cmd;
public int maxrecords;
public int pointer;
public Rental()
{
InitializeComponent();
}
public void fillISBNcmbo()
{
da = new OleDbDataAdapter("SELECT ISBN FROM Book_Master ",
conn);
ds = new DataSet();
da.Fill(ds);
dt = ds.Tables[0];
for (int i = 0; i < dt.Rows.Count; i++)
{
cmbISBN.Items.Add(dt.Rows[i].ItemArray[0]);
}
42

}
private void cmbISBN_SelectedIndexChanged(object sender, EventArgs e)
{
da = new OleDbDataAdapter("SELECT ISBN FROM Book_Master",
conn);
ds = new DataSet();
da.Fill(ds);
}
public void fillCust_Namecmbo()
{
da = new OleDbDataAdapter("SELECT Name FROM Customer_Master
", conn);
ds = new DataSet();
da.Fill(ds);
dt = ds.Tables[0];
for (int i = 0; i < dt.Rows.Count; i++)
{
cmbCust_Name.Items.Add(dt.Rows[i].ItemArray[0]);
}
}
private void cmbCust_Name_SelectedIndexChanged(object sender,
EventArgs e)
{
da = new OleDbDataAdapter("SELECT Name FROM Customer_Master",
conn);
ds = new DataSet();
da.Fill(ds);
}
private void Rental_Load(object sender, EventArgs e)
{
conn = new OleDbConnection(Program.cnstr);
conn.Open();
pointer = 0;
filldata();
43

fillISBNcmbo();
fillCust_Namecmbo();
btnRent.Enabled = true;
txtTotalRent.ReadOnly = true;
}
public void filldata()
{
da = new OleDbDataAdapter("Select * from Book_Master", conn);
ds = new DataSet();
da.Fill(ds);
dt = ds.Tables[0];
maxrecords = dt.Rows.Count;
}
private void btnRent_Click(object sender, EventArgs e)
{
if (txtRentPrice.Text == "")
{
DialogResult rntpr = MessageBox.Show("The Rent Price Field is
Empty.", "Blank Record", MessageBoxButtons.OKCancel,
MessageBoxIcon.Error);
}
else if (txtDays.Text == "")
{
DialogResult days = MessageBox.Show("The Days Field is Empty.",
"Blank Record", MessageBoxButtons.OKCancel, MessageBoxIcon.Error);
}
else if (txtTotalRent.Text == "")
{
DialogResult totrent = MessageBox.Show("The Total Rent Field is
Empty.", "Blank Record", MessageBoxButtons.OKCancel,
MessageBoxIcon.Error);
}
else
{
44

string sql = "INSERT INTO Rent_Master VALUES('" + cmbISBN.Text +
"','" + txtBook.Text + "','" + txtAuthor.Text + "','" + txtPublisher_Name.Text + "','" +
txtRentPrice.Text + "','" + txtDays.Text + "','" + txtTotalRent.Text + "','" +
cmbCust_Name.Text + "')";
//string qty = 1;
da = new OleDbDataAdapter("Select Total_Quantity from
Book_Master where ISBN='" + cmbISBN.Text + "'", conn);
ds = new DataSet();
da.Fill(ds);
dt = ds.Tables[0];
int total = int.Parse(dt.Rows[0].ItemArray[0].ToString()) - 1;
string sql1 = "UPDATE Book_Master SET Total_Quantity = " + total + "
WHERE ISBN = '" + cmbISBN.Text + "'";
Execute(sql);
Execute(sql1);
MessageBox.Show("Record is saved Successfully.");
this.Close();
}
}
public void Execute(String sql)
{
cmd = new OleDbCommand(sql, conn);
cmd.ExecuteNonQuery();
filldata();
}
private void btnCancel_Click(object sender, EventArgs e)
{
this.Dispose();
}
private void btnExit_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void txtTotalRent_Enter(object sender, EventArgs e)
45

{
int total = int.Parse(txtRentPrice.Text) * int.Parse(txtDays.Text);
txtTotalRent.Text = total.ToString();
txtTotalRent.ReadOnly = true;
}
private void cmbISBN_SelectedValueChanged(object sender, EventArgs e)
{
fillAllTextBox();
}
public void fillAllTextBox()
{
string sql = "SELECT Book,Author,Publisher FROM Book_Master where
ISBN='" + cmbISBN.SelectedItem.ToString() + "'";
da = new OleDbDataAdapter(sql, conn);
ds = new DataSet();
da.Fill(ds);
dt = ds.Tables[0];
txtBook.ReadOnly = true;
txtPublisher_Name.ReadOnly = true;
txtAuthor.ReadOnly = true;
txtTotalRent.ReadOnly = true;
txtBook.Text = dt.Rows[0].ItemArray[0].ToString();
txtAuthor.Text = dt.Rows[0].ItemArray[1].ToString();
txtPublisher_Name.Text = dt.Rows[0].ItemArray[2].ToString();
}
private void txtRentPrice_KeyPress(object sender, KeyPressEventArgs e)
{
if ((e.KeyChar < 48 || e.KeyChar > 57) && e.KeyChar != 8)
{
e.Handled = true;
DialogResult num = MessageBox.Show("Only Numbers are allowed.",
"Invalid Key", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}
46

private void txtDays_KeyPress(object sender, KeyPressEventArgs e)
{
if ((e.KeyChar < 48 || e.KeyChar > 57) && e.KeyChar != 8)
{
e.Handled = true;
DialogResult num = MessageBox.Show("Only Numbers are allowed.",
"Invalid Key", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}
}
}
Form: Return.CS
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.OleDb;
using System.IO;
namespace Book_Rental_System
{
public partial class Return : Form
{
public OleDbConnection conn;
public OleDbDataAdapter da;
public DataSet ds;
public DataTable dt;
public OleDbCommand cmd;
public int maxrecords;
public int pointer;
47

public Return()
{
this.Dispose();
}
private void btnExit_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void txtTotalDue_Enter(object sender, EventArgs e)
{
int total = int.Parse(txtDue.Text) * int.Parse(txtDays.Text);
txtTotalDue.Text = total.ToString();
txtTotalDue.ReadOnly = true;
}
private void cmbISBN_SelectedValueChanged(object sender, EventArgs e)
{
fillAllTextBox();
}
public void fillAllTextBox()
{
string sql = "SELECT Book,Author,Publisher FROM Rent_Master where
ISBN='" + cmbISBN.SelectedItem.ToString() + "'";
da = new OleDbDataAdapter(sql, conn);
ds = new DataSet();
da.Fill(ds);
dt = ds.Tables[0];
txtBook.ReadOnly = true;
txtPublisher_Name.ReadOnly = true;
txtAuthor.ReadOnly = true;
txtTotalDue.ReadOnly = true;
txtBook.Text = dt.Rows[0].ItemArray[0].ToString();
txtAuthor.Text = dt.Rows[0].ItemArray[1].ToString();
txtPublisher_Name.Text = dt.Rows[0].ItemArray[2].ToString();
}
48

private void txtDue_KeyPress(object sender, KeyPressEventArgs e)
{
if ((e.KeyChar < 48 || e.KeyChar > 57) && e.KeyChar != 8)
{
e.Handled = true;
DialogResult num = MessageBox.Show("Only Numbers are allowed.",
"Invalid Key", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}
private void txtDays_KeyPress(object sender, KeyPressEventArgs e)
{
if ((e.KeyChar < 48 || e.KeyChar > 57) && e.KeyChar != 8)
{
e.Handled = true;
DialogResult num = MessageBox.Show("Only Numbers are allowed.",
"Invalid Key", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}
}
}
Form: SearchBook.Cs
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.OleDb;
namespace Book_Rental_System
{
public partial class Search_Book : Form
{
49

OleDbConnection conn;
OleDbDataAdapter da;
DataSet ds;
public Search_Book()
{
InitializeComponent();
}
private void btnSearch_Click(object sender, EventArgs e)
{
da = new OleDbDataAdapter("SELECT * from Book_Master WHERE
ISBN='" + txtBook_ISBN.Text + "'", conn);
ds = new DataSet();
da.Fill(ds);
dataGridView1.DataSource = ds.Tables[0];
}
private void btnAll_Records_Click(object sender, EventArgs e)
{
da = new OleDbDataAdapter("SELECT * from Book_Master", conn);
ds = new DataSet();
da.Fill(ds);
dataGridView1.DataSource = ds.Tables[0];
}
private void btnExit_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void Search_Book_Load(object sender, EventArgs e)
{
conn = new OleDbConnection(Program.cnstr);
conn.Open();
}
}
}
Form: Customer.cs
50

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.OleDb;
namespace Book_Rental_System
{
public partial class Search_Customer : Form
{
OleDbConnection conn;
OleDbDataAdapter da;
DataSet ds;
public Search_Customer()
{
InitializeComponent();
}
private void Search_Customer_Load(object sender, EventArgs e)
{
conn = new OleDbConnection(Program.cnstr);
conn.Open();
}
private void btnSearch_Click(object sender, EventArgs e)
{
da = new OleDbDataAdapter("SELECT * from Customer_Master
WHERE Customer_ID='" + txtCustomer_ID.Text + "' ", conn);
ds = new DataSet();
da.Fill(ds);
dataGridView1.DataSource = ds.Tables[0];
}
private void btnExit_Click(object sender, EventArgs e)
51

{
Application.Exit();
}
private void btnAll_Records_Click(object sender, EventArgs e)
{
da = new OleDbDataAdapter("SELECT * from Customer_Master", conn);
ds = new DataSet();
da.Fill(ds);
dataGridView1.DataSource = ds.Tables[0];
}
}
}
Form: Searchpublihser.cs
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.OleDb;
namespace Book_Rental_System
{
public partial class Search_Publisher : Form
{
OleDbConnection conn;
OleDbDataAdapter da;
DataSet ds;
public Search_Publisher()
{
InitializeComponent();
}
private void Search_Publisher_Load(object sender, EventArgs e)
52

{
conn = new OleDbConnection(Program.cnstr);
conn.Open();
}
private void btnSearch_Click(object sender, EventArgs e)
{
da = new OleDbDataAdapter("SELECT * from Publisher_Master WHERE
Publisher_ID='" + txtPublisher_ID.Text + "' ", conn);
ds = new DataSet();
da.Fill(ds);
dataGridView1.DataSource = ds.Tables[0];
}
private void btnExit_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void btnAll_Records_Click(object sender, EventArgs e)
{
da = new OleDbDataAdapter("SELECT * from Publisher_Master", conn);
ds = new DataSet();
da.Fill(ds);
dataGridView1.DataSource = ds.Tables[0];
}
}
}
Form: Returnreport.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
53

using System.Windows.Forms;
using System.Data.OleDb;
namespace Book_Rental_System
{
public partial class Return_Report : Form
{
public OleDbConnection conn;
public OleDbDataAdapter da;
public DataSet ds;
public DataTable dt;
public OleDbCommand cmd;
public Return_Report()
{
InitializeComponent();
}
private void Return_Report_Load(object sender, EventArgs e)
{
conn = new OleDbConnection(Program.cnstr);
conn.Open();
da = new OleDbDataAdapter("Select * from Return_Master", conn);
ds = new DataSet();
da.Fill(ds);
dt = ds.Tables[0];
Return_CrystalReport cr6 = new Return_CrystalReport();
crystalReportViewer6.ReportSource = cr6;
}
private void crystalReportViewer6_Load(object sender, EventArgs e)
{
}
}
}

54

SNAPSHOTS

55

56

57

58

59

60

61

62

63

SYSTEM IMPLEMENTATION
Implementation is the stage in the project where the theoretical design is
turned into a working system. The implementation phase constructs, installs and
operates the new system. The most crucial stage in achieving a new successful
system is that it will work efficiently and effectively.
There are several activities involved while implementing a new project they are







End user training
End user Education
Training on the application software
System Design
Parallel Run And To New System
Post implementation Review

End user Training:
The successful implementation of the new system will purely upon the
involvement of the officers working in that department. The officers will be
imparted the necessary training on the new technology.
End User Education:
The education of the end user start after the implementation and testing is
over. When the system is found to be more difficult to under stand and complex,
more effort is put to educate the end used to make them aware of the system,
giving them lectures about the new system and providing them necessary
documents and materials about how the system can do this.
Training of application software:
After providing the necessary basic training on the computer awareness,
the users will have to be trained upon the new system such as the screen flows
and screen design type of help on the screen, type of errors while entering the
data, the corresponding validation check at each entry and the way to correct the
data entered. It should then cover information needed by the specific user or
group to use the system.
Post Implementation View:
The department is planning a method to know the states of t he past
implementation process. For that regular meeting will be arranged by the
concerned officers about the implementation problem and success

TESTING

64

Testing is a process of executing a program with the interest of finding an
error. A good test is one that has high probability of finding the yet undiscovered
error. Testing should systematically uncover different classes of errors in a
minimum amount of time with a minimum amount of efforts. Two classes of
inputs are provided to test the process


A

software

configuration

that

includes

a

software

requirement

specification, a design specification and source code.


A software configuration that includes a test plan and procedure, any
testing tool and test cases and their expected results.
Testing is divided into several distinct operations:

1.

Unit Testing
Unit test comprises of a set tests performed by an individual
program prior to the integration of the unit into large system. A program
unit is usually the smallest free functioning part of the whole system.
Module unit testing should be as exhaustive as possible to ensure that
each representation handled by each module has been tested. All the
units that makeup the system must be tested independently to ensure
that they work as required.
During unit testing some errors were raised and all of them were
rectified and handled well. The result was quiet satisfactory and it worked
well.

2.

Integration Testing
Integration testing is a system technique for constructing the
program structure while at the same time conducting tests to uncover
errors associated with interfacing. The objective is to take unit tested
modules and build a program structure that has been dictated by design.
Bottom-up integration is the traditional strategy used to integrate the
components of a software system into functioning whole. Bottom-up
integration consists of unit test followed by testing of the entire system. A
sub-system consists of several modules that communicated with other
defined interface.

65

3.

Validation Testing
After validation testing, software is completely assembled as a
package, interfacing errors that have been uncovered and corrected and
the final series of software test; the validation test begins. Steps taken
during software design and testing can greatly improve the probability of
successful integration in the larger system. System testing is actually a
series of different tests whose primary purpose is to fully exercise the
compute –based system.

4.

Recovery Testing
It is a system that forces the software to fail in a variety of ways
and verifies that the recovery is properly performed.

5.

Security Testing
It attempts to verify that protection mechanisms built into a system
will in fact protect it from improper penetration. The system’s security
must of course be tested from in vulnerability form frontal attack.

6.

Stress Testing
Stress tools are designed to confront programs with abnormal
situations. Stress testing executes a system in a manner that demands
resources in abnormal quantity and volume.

7.

Black Box Testing
Black box testing is done to find out the following information as
shown in below:


Incorrect or missing functions.



Interface errors.



Errors or database access.



Performance error.



Termination error.

The mentioned testing is carried out successfully for this
application according to the user’s requirement specification.
8.

Test Data Output
After preparing test data, the system under study is tested using
the test data. While testing the system using test data, errors are again
uncovered and corrected by using above testing and corrections are also
noted for future use.

66

CONCLUSION & FUTURE ENHANCEMENT
The new realities of Digital information processing require that access is
provided in a widely distributed manner, and it is up to the user to locate what is
needed. The ability to call up all relevant information at the click of a mouse is a
researcher’s dream. In future we develop a Book-bank monitoring system project
aims at developing a software infrastructure that enables those who manage and
maintain such collections to make them publicly available. The entire
University/College/ department/ community stands to benefit greatly from an
online book-bank monitoring system. The system will enable the update,
retrieval, deletion, and generation of status reports according to the existing
demands.

67

BIBLIOGRAPHY
Books:


Visual Programming By Abhishek Sagar & Dhanpat Rai
Co.



Visual Basic By Black



Access 2003 by BPB Publications



Microsoft SQL Server by BPB Publications

Site Address


www.google.co.in



www.vbcode.com

68

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close