Book Store Management
Book Store Management
Book Store Management
Rachana K-R19197656
MRS SUMA
ASSISTANT PROFESSOR
DEPARTMENT OF COMPUTER SCIENCE
MSRCASC
BENGALURU-560054
DEPARTMENT OF COMPUTER SCIENCE
CERTIFICATE
External Examiners:
1.____________________
2.____________________
DECLARATION
SUBMITTED BY: -
Rachana K-R19197656
DATE:
SIGNATURE:
PREFACE
ACKNOWLEDGEMENT
I take this precious opportunity to express our gratitude towards "Book store
software " to grant the permission for undergoing project
It adds to my pleasure to acknowledge the persons who have helped me while
the project work was in progress. Here is an important attempt to thank all
those who have generously helped me in making this project success.
I am very thankful to Prof PRATHIBA V K our HOD for her guidance, support
and encouragement throughout the project.
We would like to express our sincere gratitude to our internal guide Mrs.
Suma our Asst.prof without her guidance our project would not be delight of
the day.
CONTENTS
1. PROJECT OVERVIEW
2. INTRODUCTION
3. OBJECTIVES
4. SYSTEM ANALYSIS AND DESIGN
5. PROJECT REQUIREMENTS
6. LANGUAGE DESCRIPTION
7. DATA DICTIONARY
8. SNAPSHOT OF PROJECT
9. CODE
10.TESTING
11.FUTURE ENHANCEMENT
12.CONCLUSION
13.BIBLIOGRAPHY
PROJECT OVERVIEW
This project definitely helps the user to buy anything from this store because
in this BOOK STORE you can purchase anything with clicking of some button
of the mouse and pressing some keys of the keyboard.
By using this project, the user can save his or her time by purchasing the
product which time they are wasting by roaming in the market. From here,
they can get most probably all the things they want besides fast-moving
Entertainment goods. They have various choices in the one Collection.
INTRODUCTION
For example, any customer wants to purchase any book from the shop
than first of all customer just choose the stream of the book than he/she can
see the more than one type of books there and then he/she can choose the
specific book from there. And then purchase it by paying price on bookshop
cash counter or online payment mode and receives its bill.
OBJECTIVES
The main objective of the project is to develop an online book store system.
The current system is only computerized within that organization. The main
aim of the project is to make the book store system accessible to the
community. Thus, making the project more economical and reducing the time
consumption in order to overcome the problems of the existing system, are
adding more facilities and making the system online. The key feature of the
project is the online review of books and purchasing options.
User Registration
Admin Registration
Book Details Entry
View Books
Bill
Payment
SYSTEM ANALYSIS AND DESIGN
Analysis is to study what must be done to solve the problem. This involves
gathering information and using tools called the analysis phase is to have
clear understanding of the product to be developed. The goal of this phase is
to produce the system requirement specification document to the person who
is responsible for that is the system analysis. Once the system analysis is
completed the system analysis has a firm understanding about the product to
be developed and what is to be done next in the software development.
SYSTEM DESIGN
System Design reference to technical specification that is use in the proposed
system. Problem analysis is very important process in the software
requirements specification document. The various approaches of problem
analysis are:
Structure analysis
Information approach
Object oriented modelling
Proto typing
In this system the system analysis approach users three technique and they
are:
Data dictionary
ER-diagram (ERD)
Data flow diagram (DFD)
DATA DICTIONARY:
Data dictionary gives the information about all the details in the DFD and
identify the composite data in terms of their data type it is very important in
software development tool.
A tool shows the flow of the data through the system is DFD it views a system
as a function that transform a set of inputs into a desired set of outputs.
ER MODEL
The entity-Relation model is a popular high-level conceptual data model. It
describes the structuring of data a constraint and their use in the design of
conceptual scheme of database applications.
ER DIAGRAM
The diagrammatic notation associated with the ER Model is called the ER
diagram.
ENTITY
The ER model describes data in terms of entities, relationship and attributes.
Any entity is a thing is the real world with an independent existence. An entity
may be an object with a physical existence, such as a person, a car, a building
or it may be an object with conceptual existence such as a course, a company
or a job.
ATTRIBUTE
An attribute is a property that describes an entity. EX: The attributes of a
person entity are his name, address job, salary etc. for an entity, each attribute
will have a value.
ER Diagram Symbols
DATA FLOW DIAGRAM
Like all other Net languages, VB.Net has complete support for object-oriented
concepts. Everything in Vb.Net is an object and all objects inherit from the
base class object.
Boolean conditions
Atomic garbage collection
Standard library
Assembly versioning
Properties and events
Delegates and event management
Easy to use generics
Indexers
Conditional compilation
Simple multithreading.
The Net Framework:
The Net Framework is a revolutionary flat form that helps you to write the
following types of applications:
Windows application
Web applications
Web services
Visual Studio Code is a lightweight but powerful source code editor which
runs on your desktop and is available for Windows, macOS and Linux. It
comes with built-in support for JavaScript, TypeScript and Node.js and has a
rich ecosystem of extensions for other languages (such as C++, C#, Java,
Python, PHP, Go) and runtimes (such as .NET and Unity).
Using these tools, you can write all kinds of VB.Net programs from simple
command-line applications to more complex applications. Visual Basic Express
and Visual Web Developer Express edition are trimmed down versions of
Visual Studio and has the same look and feel. They retain most features of
Visual Studio.
Code Editor
Debugger
Designer
MY SQL
HARDWARE REQUIREMENTS
Hardware basically refers to the item in a PC can be touched and felt like
keyboard, monitor, mouse, and the system unit. Additional hardware
components that can be added to the PC are modem, printer, scanner etc.
Monitor
Keyboard
Mouse
Hard disk
RAM 8 GB
SOFTWARE REQUIREMENTS
Front End: VB.Net
Back End: My SQL
Database: My SQL
Microsoft Window 10
Visual Studio 2019
DATABASE
SNAPSHOTS
CODING
PROCESS FORM
Public Class Splash
Private Sub spalsh_Load (sender As Object, e As EventArgs) Handles MyBase.Load
Timer1.Start()
End Sub
LOGIN FORM
BILLS FORM
Imports System.Data.SqlClient
Public Class bills
Dim Con as New SqlConnection("Data Source=(LocalDB)\
MSSQLLocalDB;AttachDbFilename=C:\Users\madha\Documents\
BookShopvbDb.mdf;Integrated Security=True;Connect Timeout=30")
Public Property UserName As String
Private Sub Populate()
Con.Open()
Dim query = "select * from BookTb1"
Dim adapter As SqlDataAdapter
adapter = New SqlDataAdapter(query, Con)
Dim builder As SqlCommandBuilder
builder = New SqlCommandBuilder(adapter)
Dim ds As DataSet
ds = New DataSet
adapter.Fill(ds)
BooksDGV.DataSource = ds.Tables(0)
Con.Close()
End Sub
Private Sub bills_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Populate()
UnameLbl.Text = UserName
End Sub
Dim Key = 0, Stock = 0, i = 0, GrdTotal = 0
Con.Close()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Private Sub PrintDocument1_PrintPage(sender As Object, e As
Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
e.Graphics.DrawString("BookShop", New Font("Century Gothic", 25),
Brushes.MidnightBlue, 350, 40)
e.Graphics.DrawString("====Your Bill====", New Font("Century Gothic", 16),
Brushes.MidnightBlue, 300, 70)
Dim bm As New Bitmap(Me.BillDGV.Width, Me.BillDGV.Height)
BillDGV.DrawToBitmap(bm, New Rectangle(0, 0, Me.BillDGV.Width,
Me.BillDGV.Height))
e.Graphics.DrawImage(bm, 60, 120)
e.Graphics.DrawString("Total Amount Rs. " + GrdTotal.ToString, New
Font("Century Gothic", 15), Brushes.MidnightBlue, 280, 500)
e.Graphics.DrawString("========Thanks for buying in our Shop========",
New Font("Century Gothic", 15), Brushes.Crimson, 150, 580)
End Sub
BOOKS FORM
Imports System.Data.SqlClient
Public Class books
Dim Con As New SqlConnection("Data Source=(LocalDB)\
MSSQLLocalDB;AttachDbFilename=C:\Users\madha\Documents\
BookShopvbDb.mdf;Integrated Security=True;Connect Timeout=30")
Private Sub Populate()
Con.Open()
Dim query = "select * from BookTb1"
Dim adapter As SqlDataAdapter
adapter = New SqlDataAdapter(query, Con)
Dim builder As SqlCommandBuilder
builder = New SqlCommandBuilder(adapter)
Dim ds As DataSet
ds = New DataSet
adapter.Fill(ds)
BooksDGV.DataSource = ds.Tables(0)
Con.Close()
End Sub
Private Sub Filter()
Con.Open()
Dim query = "select * from BookTb1 where Category= '" &
FilterCb1.SelectedItem.ToString() & "'"
Dim adapter As SqlDataAdapter
adapter = New SqlDataAdapter(query, Con)
Dim builder As SqlCommandBuilder
builder = New SqlCommandBuilder(adapter)
Dim ds As DataSet
ds = New DataSet
adapter.Fill(ds)
BooksDGV.DataSource = ds.Tables(0)
Con.Close()
End Sub
Private Sub Reset()
BookNameTb.Text = ""
AuthorTb.Text = ""
QtyTb.Text = ""
PriceTb.Text = ""
CatCb1.SelectedIndex = -1
Key = 0
End Sub
Private Sub SaveBtn_Click_1(sender As Object, e As EventArgs) Handles
SaveBtn.Click
If BookNameTb.Text = "" Or AuthorTb.Text = "" Or QtyTb.Text = "" Or
PriceTb.Text = "" Or CatCb1.SelectedIndex = -1 Then
MsgBox("Missing Information")
Else
Con.Open()
Dim query As String
query = "insert into BookTb1 values('" & BookNameTb.Text & "','" &
AuthorTb.Text & "','" & CatCb1.SelectedItem.ToString & "'," & QtyTb.Text & "," &
PriceTb.Text & ")"
Dim cmd As SqlCommand
cmd = New SqlCommand(query, Con)
cmd.ExecuteNonQuery()
MsgBox("Book Saved Successfully")
Con.Close()
Populate()
Reset()
End If
End Sub
Dim Key = 0
Private Sub BooksDGV_CellMouseClick(sender As Object, e As
DataGridViewCellMouseEventArgs) Handles BooksDGV.CellMouseClick
Dim row As DataGridViewRow = BooksDGV.Rows(e.RowIndex)
BookNameTb.Text = row.Cells(1).Value.ToString
AuthorTb.Text = row.Cells(2).Value.ToString
CatCb1.SelectedItem = row.Cells(3).Value.ToString
QtyTb.Text = row.Cells(4).Value.ToString
PriceTb.Text = row.Cells(5).Value.ToString
If BookNameTb.Text = "" Then
Key = 0
Else
Key = Convert.ToInt32(row.Cells(0).Value.ToString)
End If
End Sub
Private Sub books_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Populate()
End Sub
Private Sub ResetBtn_Click_1(sender As Object, e As EventArgs) Handles
ResetBtn.Click
Reset()
End Sub
Private Sub DeleteBtn_Click_1(sender As Object, e As EventArgs) Handles
DeleteBtn.Click
If Key = 0 Then
MsgBox("Select the Book to be deleted")
Else
Con.Open()
Dim query As String
query = "Delete from BookTb1 where BId = " & Key & ""
Dim cmd As SqlCommand
cmd = New SqlCommand(query, Con)
cmd.ExecuteNonQuery()
MsgBox("Book Deleted Successfully")
Con.Close()
Populate()
Reset()
End If
End Sub
Private Sub Label15_Click_1(sender As Object, e As EventArgs) Handles
Label15.Click
Application.Exit()
End Sub
Private Sub EditBtn_Click_1(sender As Object, e As EventArgs) Handles EditBtn.Click
If BookNameTb.Text = "" Or AuthorTb.Text = "" Or QtyTb.Text = "" Or
PriceTb.Text = "" Or CatCb1.SelectedIndex = -1 Then
MsgBox("Missing Information")
Else
Con.Open()
Dim query As String
query = "Update BookTb1 set Title= '" & BookNameTb.Text & "' ,Author= '"
& AuthorTb.Text & "' ,Category= '" & CatCb1.SelectedItem.ToString & "' ,Quantity= "
& QtyTb.Text & ",Price= " & PriceTb.Text & " where BId=" & Key & " "
Dim cmd As SqlCommand
cmd = New SqlCommand(query, Con)
cmd.ExecuteNonQuery()
MsgBox("Book Updated Successfully")
Con.Close()
Populate()
Reset()
End If
End Sub
Private Sub RefreshBtn_Click_1(sender As Object, e As EventArgs) Handles
RefreshBtn.Click
Populate()
End Sub
Private Sub Label12_Click_1(sender As Object, e As EventArgs) Handles
Label12.Click
Dim Obj = New users()
Obj.Show()
Me.Hide()
End Sub
End Sub
End Sub
USER FORM
Imports System.Data.SqlClient
Public Class users
Dim Con As New SqlConnection("Data Source=(LocalDB)\
MSSQLLocalDB;AttachDbFilename=C:\Users\madha\Documents\
BookShopvbDb.mdf;Integrated Security=True;Connect Timeout=30")
Private Sub Populate()
Con.Open()
Dim query = "select * from UserTb1"
Dim adapter As SqlDataAdapter
adapter = New SqlDataAdapter(query, Con)
Dim builder As SqlCommandBuilder
builder = New SqlCommandBuilder(adapter)
Dim ds As DataSet
ds = New DataSet
adapter.Fill(ds)
UserDGV.DataSource = ds.Tables(0)
Con.Close()
End Sub
Private Sub Reset()
UnameTb.Text = ""
PhoneTb.Text = ""
AddressTb.Text = ""
PasswordTb.Text = ""
Key = 0
End Sub
Private Sub SaveBtn_Click(sender As Object, e As EventArgs) Handles SaveBtn.Click
If UnameTb.Text = "" Or PhoneTb.Text = "" Or AddressTb.Text = "" Or
PasswordTb.Text = "" Then
MsgBox("Missing Information")
Else
Con.Open()
Dim query As String
query = "insert into UserTb1 values('" & UnameTb.Text & "','" & PhoneTb.Text
& "','" & AddressTb.Text & "','" & PasswordTb.Text & "')"
Dim cmd As SqlCommand
cmd = New SqlCommand(query, Con)
cmd.ExecuteNonQuery()
MsgBox("User Saved Successfully")
Con.Close()
Populate()
Reset()
End If
End Sub
Private Sub users_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Populate()
End Sub
Dim Key = 0
Private Sub DeleteBtn_Click(sender As Object, e As EventArgs) Handles
DeleteBtn.Click
If Key = 0 Then
MsgBox("Select the user to be deleted")
Else
Con.Open()
Dim query As String
query = "Delete from UserTb1 where Id = " & Key & ""
Dim cmd As SqlCommand
cmd = New SqlCommand(query, Con)
cmd.ExecuteNonQuery()
MsgBox("User Deleted Successfully")
Con.Close()
Populate()
Reset()
End If
End Sub
Private Sub UserDGV_CellMouseClick(sender As Object, e As
DataGridViewCellMouseEventArgs) Handles UserDGV.CellMouseClick
Dim row As DataGridViewRow = UserDGV.Rows(e.RowIndex)
UnameTb.Text = row.Cells(1).Value.ToString
PhoneTb.Text = row.Cells(2).Value.ToString
AddressTb.Text = row.Cells(3).Value.ToString
PasswordTb.Text = row.Cells(4).Value.ToString
If UnameTb.Text = "" Then
Key = 0
Else
Key = Convert.ToInt32(row.Cells(0).Value.ToString)
End If
End Sub
End Sub
End Sub
End Class
DASHBOARD FORM
Imports System.Data.SqlClient
Public Class Dashboard
Dim Con As New SqlConnection("Data Source=(LocalDB)\
MSSQLLocalDB;AttachDbFilename=C:\Users\madha\Documents\
BookShopvbDb.mdf;Integrated Security=True;Connect Timeout=30")
Private Sub CountBooks()
Dim BookNum As Integer
Con.Open()
Dim Sql = "select COUNT(*) from BookTb1"
Dim cmd As SqlCommand
cmd = New SqlCommand(Sql, Con)
BookNum = cmd.ExecuteScalar
BooksLbl.Text = BookNum
Con.Close()
End Sub
Private Sub CountUsers()
Dim UsersNum As Integer
Con.Open()
Dim Sql = "select COUNT(*) from UserTb1"
Dim cmd As SqlCommand
cmd = New SqlCommand(Sql, Con)
UsersNum = cmd.ExecuteScalar
UsersLbl.Text = UsersNum
Con.Close()
End Sub
Private Sub SumAmount()
Dim Amount As Integer
Con.Open()
Dim Sql = "select Sum(Amount) from BillTb1"
Dim cmd As SqlCommand
cmd = New SqlCommand(Sql, Con)
Amount = cmd.ExecuteScalar
AmountLbl.Text = "Rs " + Convert.ToString(Amount)
Con.Close()
End Sub
Private Sub Dashboard_Load(sender As Object, e As EventArgs) Handles
MyBase.Load
CountBooks()
CountUsers()
SumAmount()
End Sub
Private Sub Label15_Click(sender As Object, e As EventArgs) Handles Label15.Click
Application.Exit()
End Sub
Private Sub Label9_Click(sender As Object, e As EventArgs) Handles Label9.Click
Dim Obj = New books()
Obj.Show()
Me.Hide()
End Sub
Private Sub Label12_Click(sender As Object, e As EventArgs) Handles Label12.Click
Dim Obj = New users()
Obj.Show()
Me.Hide()
End Sub
Private Sub Label14_Click(sender As Object, e As EventArgs) Handles Label14.Click
Dim Obj = New login()
Obj.Show()
Me.Hide()
End Sub
End Class
TESTING
Testing is the major quality control measured employed during software
development. Experienced software developers often stay "Testing never
ends, it just gets transformed from your customer Every time you use the
program, a test is being conducted". Its basic function to detect the errors in
the software.
Types of Testing
1.Unit testing
2.Integration testing
3.System testing
Validation it provides the final assurance that software meets all functional,
behavioural and performance requirement to software once validation must
be combined with other system elements. System testing verifies that as
elements combine properly and that overall system function and performance
achieved.
User acceptance testing test has the objective of selling the user on the
validity and reliability of system verifies that system's procedures operate to
acceptances test is the users show. User motivation and knowledge are critical
for the successful performance of the system.
Following are the two types of techniques which have been used to test this
project:
VALIDATION TESTING
At the culmination of integration testing, software is completely assembly as a
package, interface error has uncovered and corrected and a final serves of
software tests-validation testing may begin validation can be defined in many
ways. But a simple definition is that validation succeeds when software
functions in a manner that can reasonably expected by customer, software
function in a manner that can be reasonably expected by the customer,
software validation is achieved through a series of black box test that
demonstrate conformity with the requirements A test plan outline the class
test that will be used to demonstrate conformity with requirements. Both the
plan and produced are designed to ensured that all function is satisfied. All
behaviour characteristics are achieved, all performance requirements are
attained documentation is corrected and human engineering and other
requirements are met.
FUTURE ENHANCEMENT
As system is flexible, you can generate more report and screen as and
when required.
The system is modified in future as per the owner requirement.
The current system can be extended to allow the users to create
accounts and save products in to wish list.
The users could subscribe for price alerts which would enable them to
receive messages when price for products fall below a particular level.
The current system is confined only to the shopping cart process. It can
be extended to have an easy to use check out process. Users can have
multiple shipping and billing information saved. During checkout they
can use the drag and drop feature to select shipping and billing
information.
CONCLUSION
The switch from written books being from bookstores to being ordered online
or even digital copies has had profound effects on the industry including
bookstores and libraries and the general people of the world. The positives
include easy access for everyone and cheaper books along with saving natural
resources. Negatives however are much greater and cannot be ignored. Some
negatives include the loss jobs and businesses through the digitalization of
books, as well losing our sense of our past and always be updated about
change in technology on sites, more described sites to be explored and
satisfied. Books role humanity history that it bittersweet to be replacing them.
It seems that e-book, google books, and online retailer’s future and the
future good.
BILIOGRPHY
Books Referred:
Sites Referred:
www.google.com
www.wikipedia.com
www.researchgate.net
www.slideshare.net
www.academia.edu