You are on page 1of 49

Proj ect Repor t

On
O n l i n e B a c k u p Ma n a g e me n t
S y s t e m
Submitted for partial fulfillment of the degree of
BACHELOR OF ENGINEERING
(Computer Science and Engineering )
By
Mahendra Heda
Rahul Lanjewar
Harish Adkane
Amit Dubey
B.E. 8
th
Semester CSE
Department of Computer Science & Engineering

Under the Guidance of
Er. U. Shrawankar
Department of Computer Science and Engineering

Department of Computer Science & Engineering,
G. H. Raisoni College of Engineering, Nagpur.
(An Autonomous Institution under UGC Act 1956)
2011-2012
CERTIFICATE
Thi s i s to certi fy that the di ssertati on enti tl ed
O n l i n e B a c k u p Ma n a g e me n t
S y s t e m
i s a bonafi de work and i t i s submi tted to the Rastrasant Tukdoji Maharaj Nagpur University,
Nagpur.
By
Mahendra Heda
Rahul Lanjewar
Harish Adkane
Amit Dubey
i n the parti al ful fi l l ment of the degree of BACHELOR OF ENGINEERING in Computer
Science and Engineering, duri ng the academi c year 20011- 2012 under my gui dance .








Department of Computer Science & Engineering,
G. H. Raisoni College of Engineering, Nagpur.
(An Autonomous Institution under UGC Act 1956)
2011-2012

Head,
Er.Shrawankar Mam
Department of Computer Sc.& Engg.
Guide
Miss. U.Shrawankar
Department of Computer Sc.& Engg.
G. H. Raisoni College of Engineering, Nagpur










PREFACE












This project Online Backup Management System was developed to ease the
human efforts and also to keep all the enterprise data safe and secure and If
anytime the data crash occur,the data can be recovered using this software.













ACKNOWLEDGEMENT





Acknowledgement:

I owe a great many thanks to a great many people who helped and
Supported me during the development of this software.

My deepest thanks to Lecturer, Er. U. Shrawankar Mam the Guide of the
project for guiding and correcting various documents of mine with attention and
care. He has taken pain to go through the project and make necessary correction
as and when needed.
I express my thanks to the Principal of, G.H.Raisoni College of Engineering, for
extending her support.

I would also thank my Institution and my faculty members without whom this
project would have been a distant reality. I also extend my heartfelt thanks to
my family and well-wishers.

Projectee:

Mahendra Heda
Rahul Lanjewar
Harish Adkane
Amit Dubey Date:










INDEX




INDEX



1.INTRODUCTION 2

2.PROCESS DESCRIPTION 4

3.TABLE DESIGN 7

- User ..8
- B_d ..8
- Issue ..9
- DbIssue ..9

4.PROJECT DETAIL 10

- Flow Charts ..11
- Class Diagram ..13

5.FORM CODING 21

- Login ..22
- Main ..24
- AddBook ..27
- UpdateDelete ..29
- Search ..32
- Issue ..34
- Return ..37

6. CONCLUSION 39

7. BIBLIOGRAPHY 41















INTRODUCTION










Introduction:



Need for developing a library module was a conventional way to manage the all the
details and database about the books manually was a little bit difficult task and even
more difficult was searching a single book in the large database.

Library module is a fully functional library management tool loaded with detailed
options for entering the information about the books.

Issues and returns are also managed without any user intervention.

All the operator needs is to input the details of the book or the name of the student to
whom the book issued.

Moreover, the system also supports definition of a Library Fine policy so that the
books returned late are fined according to the policies in control of a higher authority.

Library Management System almost satisfies all the requirement in Library.

Such type of system is very useful in various organizations where data or record is to
be managed.




















PROCESS
DESCRIPTION











The DEPARTMENTAL LIBRARY System is designed & developed for a receipt and
issuance of books in the library along with the students details. The books received in the
library are entered in Books Entry form and the new student is entered in the student entry
form. When the student wants to get the desired book the same is issued on the availability
basis to the student. The issuance and due date for the returning of the book is also entered
into the Book Issue form under third menu Book Issue. The student has to pay the fine if any
on the basis of no. of days delayed deposit of the book in the library.

FRONT END: C#
C# is Graphical Rapid Application Development (RAD) tool that aims at providing the
user with a graphical interface that is intuitive and easy to use. C# is a popular programming
tool that can be used to write any kind of visual application ranging from a game to a
database management application. Now-a-days C# is being widely used for developing
different types of applications and performing various types of jobs. With C#, one can
automate everyday tasks, add custom required features and functions to suit ones need, and
create applications, which makes task easier.
A C# programming environment provides all features that are required to develop a graphical
user interface as ready to use components. The C# programming environment is also called
Point and Click environment. The programmer does not have to write the code to create and
display commonly required user-friendly features each time around.
When the programmer needs a specific user interface feature such as a button, he selects the
appropriate ready to use component provided by the Visual programming environment. These
components can be moved, resized and renamed as required. So a Visual programming
environment automates the process of creating the user interface by designing Visual
interface using the ready to use components. In addition, it also provides the means of
associating the user written logically defined code with the components used in a project.
My project on DEPARTMENTAL LIBRARY deals with the transaction happenings in
Library in an organization/institute.
This project will be proved easier, as more of the tasks obtained are managed by a mouse
click. The final reports and other facilities and calculations are calculated and updated
automatically.

Advantages of C#
Ready to use components
A C# programming environment provides all features that are required to develop a
graphical user interface as ready to use components.
The Visual programming environment is also called Point and Click environment.
The programmer does not have to write the code to create and display commonly required
user-friendly features each time around.
When the programmer needs a specific user interface features such as a button, he selects the
appropriate ready to use component provided by the Visual Programming environment.
These components can be moved, resized and renamed as required. Also there is no
restriction on number of controls placed in the project.
Built in Code
The interface components provided by the Visual programming environment has some code
built into them. For e.g., a button Knows when it has been clicked upon and then when the
event occurs, it executes the appropriate code.














TABLE DESIGN














S.No. Field Name Data Type
1 Name Varchar
2 College Id Int
3 Designation Varchar
4 Contact No Int
5 Username Varchar
6 Password Varchar

Table: User


S.No. Field Name Data Type
1 BookId Int
2 Book Name Varchar
3 Author Varchar
4 Publication Varchar
5 Cost Int
6 Quantity Int
7 Subject Varchar
8 Status Varchar

Table :B_d








S.No. Field Name Data Type
1 Date Date/Time
2 BookId Int
3 IssuerId Int

Table :Issue






Table: dbissue









PROJECT
S.No. Field Name Data Type
1 Date Date/Time
2 BookId Int
3 IssuerId Int
DETAILS













FLOWCHARTS:

Control Flow:












The above flowchart describes the flow of control in the application and also what different
modules are involved in the application.







Class Diagram:








This is Main Form designed for selection of the different Menus. Following menu options
have been provided in this Home Form:-

1. Books Entry
2. User Entry
3. Issue of Books
a) Issue of Books
b) Return of the Books
4. Search Book
5. Reports
6. Exit


By clicking the Add Book Menu of the Main form this form can be displayed for the entry of
new books in the library. Following Text Boxes have been provided for the entry of the
books related information:-
1. Book Id
2. Book Name
3. Author
4. Publication
Main Form
5. Cost
6. Quantity
7. Subject
8. Cost


In addition to above different Update, Delete, Add, Search, Refresh and Exit command
buttons have been provided in the form.
Add New Book




By clicking the second menu User Entry this form can be obtained for the entry of the
new user coming to the library as user account. The following provisions have been provided
in this form:-
1. Name
2. College Id
Update Delete Form
3. Designation
4. Contact No.
5. Username
6. Password




In addition to above different Update, Delete, Add, Search, Refresh and Exit command
buttons have been provided in the form.
This form can be obtained by clicking the Issues of Books under the third menu Issues of
Books for issuing a particular book available in the library along with the issue and due date.
The following text boxes have been provided for entry of Issuance of the Book.
Sign Up

1. Book Id.
2. Student ID






In addition to above different Update, Delete, Add, Search, Refresh and Exit command
buttons have been provided in the form.
This form can be obtained by clicking the Books Return under the third menu Issues of
Books for returning a particular book issued to user from the library along with the issue ,
due date and return date with fine if any. The following text boxes have been provided for
entry of return of the Books.
1. Book Id
Issue Book Form




In addition to above different Update, Delete, Add, Search, Refresh and Exit command
buttons have been provided in the form.
In this Library Management Software , Search engine for searching of books is also
provided,which makes issue of books further simplified for the user.
In this software we can search book in database by 5 ways:
1. By Author Name
2. By Publication Name
3. By Book Name
4. By Book Id
Return Book Form
5. By Cost





Search By Book Name Form



FORMS
CODING






Login Form:

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;
namespace project
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void login_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection("Data Source = .\\sqlexpress; Initial Catalog
= library ; Integrated Security=True");

SqlCommand cmd = new SqlCommand("select * from users", con);
con.Open();
SqlDataReader dr;
dr = cmd.ExecuteReader();
while (dr.Read())
{
if (textBox1.Text == dr[4].ToString() && textBox2.Text == dr[5].ToString())
{
mainform frm = new mainform();
frm.ShowDialog();
this.Close();
}
else
{
MessageBox.Show("please check username & password");
textBox1.Text = "";
textBox2.Text = "";
textBox1.Focus();
}
}
con.Close();
}

private void exit_Click(object sender, EventArgs e)
{
this.Close();
}
}
}



Main Form:
namespace project
{
public partial class mainform : Form
{
public mainform()
{
InitializeComponent();
}
private void ADDBOOKToolStripMenuItem_Click(object sender, EventArgs
e)
{
addbook frm = new addbook();
frm.ShowDialog();
}
private void uPDATEDELETEBOOKToolStripMenuItem_Click(object sender,
EventArgs e)
{
updatedelete frm = new updatedelete();
frm.ShowDialog();
}
private void aUTHORToolStripMenuItem_Click(object sender, EventArgs e)
{
searchbyauthor frm = new searchbyauthor();
frm.ShowDialog();
}
private void nAMEToolStripMenuItem_Click(object sender, EventArgs e)
{
searchbyname frm = new searchbyname();
frm.ShowDialog();
}
private void bOOKIDToolStripMenuItem_Click(object sender, EventArgs e)
{
searchbyid frm = new searchbyid();
frm.ShowDialog();
}
private void eXITToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Close();
}
private void pUBLICATIONToolStripMenuItem_Click(object sender, EventArgs e)
{
searchbypublication frm = new searchbypublication();
frm.ShowDialog();
}
private void hELPToolStripMenuItem_Click(object sender, EventArgs e)
{
signup frm = new signup();
frm.ShowDialog();
}

private void eXITToolStripMenuItem1_Click(object sender, EventArgs e)
{
this.Close();
}

private void toolStripMenuItem2_Click(object sender, EventArgs e)
{
RETURN_BOOK frm = new RETURN_BOOK();
frm.ShowDialog();
}

private void sUBJECTToolStripMenuItem_Click(object sender, EventArgs e)
{
SEARCHBYSUBJECT frm = new SEARCHBYSUBJECT();
frm.ShowDialog();
}

private void iSSUERETURNToolStripMenuItem_Click(object sender, EventArgs e)
{
ISSUE_BOOK frm = new ISSUE_BOOK();
frm.ShowDialog();
}


private void bOOKSNOTRETURNEDToolStripMenuItem_Click(object sender,
EventArgs e)
{
NOTRETURNED frm = new NOTRETURNED();
frm.ShowDialog();
}

private void uSERINFOToolStripMenuItem_Click(object sender, EventArgs e)
{
USERINFO frm = new USERINFO();
frm.ShowDialog();
}
}
}












AddBook Form:

namespace project
{
public partial class addbook : Form
{
public addbook()
{
InitializeComponent();
}
private void Add_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection("Data Source=.\\sqlexpress;Initial
Catalog=library;Integrated Security=True");

try
{
SqlCommand cmd = new SqlCommand("insert into b_d values('" + textBox1.Text
+ "','" + textBox2.Text + "','" + textBox3.Text + "','" + textBox4.Text + "'," + textBox5.Text +
"," + textBox6.Text + ",'" + textBox7.Text + "','" + textBox8.Text + "')", con);
con.Open();
cmd.ExecuteNonQuery();
MessageBox.Show("Record Saved");
}

catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
con.Close();
}


private void Exit_Click(object sender, EventArgs e)
{
this.Close();
}
}
}
























Update/Delete Form:

namespace project
{
public partial class updatedelete : Form
{
public updatedelete()
{
InitializeComponent();
}
SqlConnection con = new SqlConnection("Data Source=.\\sqlexpress;Initial
Catalog=library;Integrated Security=True");

private void textBox7_TextChanged(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection("Data Source=.\\sqlexpress;Initial
Catalog=library;Integrated Security=True");

SqlCommand cmd = new SqlCommand("select * from b_d where bookid='" +
textBox7.Text + "'", con);
con.Open();
SqlDataReader dr;
dr = cmd.ExecuteReader();
groupBox1.Visible = false;
while (dr.Read())
{
if (textBox7.Text == dr[0].ToString())
{
groupBox1.Visible = true;
textBox2.Text = dr[1].ToString();
textBox3.Text = dr[2].ToString();
textBox4.Text = dr[3].ToString();
textBox5.Text = dr[4].ToString();
textBox6.Text = dr[5].ToString();
textBox1.Text = dr[6].ToString();
}
Else
{

groupBox1.Visible = false;
MessageBox.Show("enter correct id");
}
}
con.Close();
}

private void Delete_Click(object sender, EventArgs e)
{
try
{
SqlConnection con = new SqlConnection("Data Source=.\\sqlexpress;Initial
Catalog=library;Integrated Security=True");

SqlCommand cmd = new SqlCommand("delete from b_d where bookid='" +
textBox7.Text + "'", con);
con.Open();
cmd.ExecuteNonQuery();
MessageBox.Show("Record Deleted");
}



catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void Update_Click(object sender, EventArgs e)
{
groupBox1.Visible = true;
try
{
SqlCommand cmd = new SqlCommand("update b_d set bookname='" +
textBox2.Text + "',author='" + textBox3.Text + "',publication='" + textBox4.Text + "',cost="
+ textBox5.Text + ",quantity=" + textBox6.Text + ",subject='"+textBox1.Text+"' where
bookid='" + textBox7.Text + "'", con);
con.Open();
cmd.ExecuteNonQuery();
MessageBox.Show("Record Updated");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
con.Close();
}

private void Exit_Click(object sender, EventArgs e)
{
this.Close();
}
}
}







Search Form:

namespace project
{
public partial class searchbyname : Form
{
public searchbyname()
{
InitializeComponent();
}
SqlConnection con = new SqlConnection("Data Source=.\\sqlexpress;Initial
Catalog=library;Integrated Security=True");
private void Search_Click(object sender, EventArgs e)
{
comboBox1.Items.Clear();
textBox4.Text = "";
textBox5.Text = "";
textBox6.Text = "";
textBox7.Text = "";
textBox2.Text = "";
SqlCommand cmd = new SqlCommand("select * from b_d where bookname like '" +
textBox1.Text + "'", con);
con.Open();
SqlDataReader dr;
dr = cmd.ExecuteReader();
while (dr.Read())
{
comboBox1.Items.Add(dr[2].ToString());
}
con.Close();
}


private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection("Data Source=.\\sqlexpress;Initial
Catalog=library;Integrated Security=True");
SqlCommand cmd = new SqlCommand("select * from b_d where author like '" +
comboBox1.Text + "'", con);
con.Open();
SqlDataReader dr;
dr = cmd.ExecuteReader();
while (dr.Read())
{
textBox4.Text = dr[0].ToString();
textBox5.Text = dr[3].ToString();
textBox6.Text = dr[4].ToString();
textBox7.Text = dr[5].ToString();
textBox2.Text = dr[6].ToString();
}
con.Close();
}

private void Exit_Click(object sender, EventArgs e)
{
this.Close();
}
}
}









Issue Form:

namespace project
{
public partial class ISSUE_BOOK : Form
{
public ISSUE_BOOK()
{
InitializeComponent();
}
SqlConnection con = new SqlConnection("Data Source=.\\sqlexpress;Initial
Catalog=library;Integrated Security=True");


private void button1_Click(object sender, EventArgs e)
{
try
{

SqlCommand cmd = new SqlCommand("insert into issue
values('"+dateTimePicker1.Value+"','"+textBox1.Text+"'," + textBox2.Text + ")", con
con.Open();
cmd.ExecuteNonQuery();
MessageBox.Show("Book Issued");
}

catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

con.Close();
database();
update();
}

private void database()
{
SqlCommand cmd = new SqlCommand("insert into dbissue values('" +
dateTimePicker1.Value + "','" + textBox1.Text + "'," + textBox2.Text + ")", con);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
}

private void update()
{
SqlCommand cmd = new SqlCommand("update b_d set status = 'NA' where
bookid="+textBox1.Text+"", con);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
}

private void textBox1_TextChanged(object sender, EventArgs e)
{
SqlCommand cmd = new SqlCommand("select * from b_d where bookid='" +
textBox1.Text + "'", con);
con.Open();
SqlDataReader dr;
dr = cmd.ExecuteReader();
textBox2.Text = "";
while (dr.Read())
{
textBox4.Text = dr[7].ToString();
}
con.Close();
}
private void button2_Click(object sender, EventArgs e)
{
this.Close();
}
}
}





















Return Form:

namespace project
{
public partial class RETURN_BOOK : Form
{
public RETURN_BOOK()
{
InitializeComponent();
}
SqlConnection con = new SqlConnection("Data Source=.\\sqlexpress;Initial
Catalog=library;Integrated Security=True");

private void button1_Click(object sender, EventArgs e)
{
try
{
SqlCommand cmd = new SqlCommand("delete from issue where bookid='" +
textBox1.Text + "'", con);
con.Open();
cmd.ExecuteNonQuery();
MessageBox.Show("Thanks!!! Book Returned");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
con.Close();
ret();
}



private void ret()
{
SqlCommand cmd = new SqlCommand("update b_d set status ='AV' where bookid="
+ textBox1.Text + "", con);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
}
}
}











CONCLUSION













Conclusion:

After we have completed the project we are sure the problems in the existing system would
overcome. The DEPARTMENTAL LIBRARY SYSTEM process made computerized to
reduce human errors and to increase the efficiency. The main focus of this project is to lessen
human efforts. The maintenance of the records is made efficient, as all the records are stored
in the ACCESS database, through which data can be retrieved easily. The navigation control
is provided in all the forms to navigate through the large amount of records. If the numbers of
records are very large then user has to just type in the search string and user gets the results
immediately. The editing is also made simpler. The user has to just type in the required field
and press the update button to update the desired field.

The Books and Students are given a particular unique id no. So that they can be accessed
correctly and without errors. Our main aim of the project is to get the correct information
about a particular student and books available in the library.

The problems, which existed in the earlier system, have been removed to a large extent. And
it is expected that this project will go a long way in satisfying users requirements. The
computerization of the DEPARTMENTAL LIBRARY will not only improves the efficiency
but will also reduce human stress thereby indirectly improving human recourses.









BIBLIOGRAPHY






Books :
Database Management Systems By Korth
Microsoft SQL
Microsoft C#


References :
www.freshersworld.com
www.google.com
www.123eng.com

You might also like