You are on page 1of 56

AN

PROJECT REPORT
ON
SHOP STAFF MANAGEMENT SYSTEM
BACHELOR OF COMPUTER APPLICATIONS
FROM
Pt. Ravishankar Shukla University Raipur (C.G)

FINAL YEAR

Year: 2022-2023

Guided by Submitted by
Mr. MANNU RAWANI RITIK RAJ
RA
(HOD C.S.) CLASS – BCA III

Submitted to
Pragati College Raipur (C.G)

Pt. Ravishankar Shukla University Raipur (C.G)


ACKNOWLEDEMENT

No work can be completed successfully without the help, inspiration and


encouragement by the elders and seniors. So my heartily thanks to all of
them who helped me while preparing this project. I would begin by thanking
to my parents who provided me the required support for completing this job.

I Acknowledge and thanks for the help received from

Mr. MANNU RAWANI our “Project In Charge” and classmates who


guided me to complete this project.
CERTIFICATE OF APPROVAL

This is to certify that the Project work on “SHOP STAFF


MANAGEMENT SYSTEM” is carried out by RITIK RAJ a student of
BCA-III YEAR at PRAGATI COLLEGE is hereby approved as a
credible work in the discipline of Project for the award of degree of
BCA-III YEAR during the year 2022-23 from Pt. Ravishankar Shukla
University, Raipur (CG).

Mr. MANNU RAWANI


HOD-Computer Science
Pragati College, Raipur (C.G.)
CERTIFICATE OF EVALUATION
This is to certify that the Project work entitled is “SHOP STAFF
MANAGEMENT SYSTEM” carried out by RITIK RAJ a student of BCA-III
Year at Pragati College, Raipur after proper evaluation and examination, is
here by approved as a credible work in the discipline of Project work
and is done in a satisfactory manner for its acceptance as a requisite
for the award of degree of “BCA-III Year " during the year 2022- 2023
from Pt. Ravishankar Shukla University, Raipur (CG).

Internal Examiner External Examiner


INDEX
S.D Contents Page No.

1 Chapter1 Introduction 6-7


 Purpose
 Scope
2 Chapter 2 System Discription 8-10
 Features
 Advantages
 Disadvantages
3 Chapter3Software 11-14
Requirements Specification
 Functional Requirement
 Non-Functional Requirement

4 Chapter 3. System Design 15-20


 Data Flow Diagram(DFD)
 E-R Diagram
5 Chapter 4. Implementation 21-50
 Screenshots
 Source Code
6 Chapter 5. Software Testing 51-53

7 Chapter 6. Conclusion 54

8 Chapter 8. Future Enhancement 55

9 Chapter 9. Softcopy of the Project on CD 56


Page 6 of 56

Chapter 1

INTRODUCTION

The Staff management is an application that is designed to reduce the manual work
that is involved in storing the details of the Staff. Without the Staffs, there would not be
any proper functioning of the organization. Staffs are the backbone of any company. The
staff management system is an application that will track the records all the Staffs or
staffs of the organization. This application will contain the details like name, designation,
salary information, attendance details, leave details, client details, project details etc. The
performance of the Staffs can also be kept track of through this application. This
application can contain the administrator who can post the announcements, holidays,
birthdays and notes. This will be one of the interesting projects that one can work on and
implement in real time world.

Every organization wheather big or small has changes to overcome and


managing the information of sales, Product, Discount, Inventory, Stock. Every
Shop Management System has different product needs therefore we design
exclusive Staff Management System that are adopted to your manager
requirement.

Purpose:
This document aims to give a brief description about the Management
System Project. With the help of this document the needs of the company and
the solution that will be provided to that needs will be clearly presented. In
other words this document will provide a basis for valid a tionand verification

RITIK RAJ BCA III YEAR


Page 7 of 56
.

Scope:

It may help collecting perfect management in detail. In a very short time


the collection will be obvious, simple and sensible it will help a person to
know the management of passed year perfectly and vividly. It also helps in
current all works relative to Shop Management System. It will be also reduce
the cost of collecting the management and collection procedure will go on
smoothly.

RITIK RAJ BCA III YEAR


Page 8 of 56

Chapter 2

System Discription

 Features of Shop Management System:


 Product and Component based
 Reporting & Charting in more comprehensive way users account to control the
access and maintain security.
 Simple Status & Resolutions.
 Multi-level Priorities & Severities.
 Targets & Milestones for guiding the programmers.
 Attachments & Additional Comments for more information.
 Robust database back-end.

RITIK RAJ BCA III YEAR


Page 9 of 56

 Advantages of Shop Management System:

Using spreadsheets to handle HR processes and manage Staffs has become a thing
of the past. As remote and hybrid working models gain traction, HR professionals and
Staffs are not often under the same roof. In this case, it can seem nearly impossible
to manage Staffs effectively and keep them productive, engaged, and happy. If remote
Staffs have to message their HR representatives to mark attendance or call their managers
every day to record their working hours, this can degrade the overall Staff experience.
That's why it's essential to shift towards modern, cloud-based systems that provide
seamless working experience to Staffs, no matter where they work from.

This is where the Staff management system truly shines. With


convenient automation and centralized data, the Staff management system makes people
operations a breeze. If you are wondering if an Staff management system is worth the
investment, check out the following ways that this solution can improve your
organization.

Simple and efficient HR processes

An Staff management system can significantly cut down the need for manual data
entry. You'll open up your HR team and Staffs to spend time on important projects, rather
than wasting efforts on HR-related emails, spreadsheets, and phone calls. All of Staff
management processes, from recruitment to offboarding, can be effortlessly automated,
simplified, and tracked through the application.

RITIK RAJ BCA III YEAR


Page 10 of 56

 Disadvantages of Shop Management System:

One of the disadvantages of these systems is their cost. As a small business owner,
you have to do everything you can to rein in expenses, and an HR management system
will cost you several thousand dollars for installation, setup, training, and consulting, as
well as an intensive time commitment before the system is up and running. You can cut
these costs by getting a remotely hosted system, but you’re likely to spend hours on the
phone with your remote customer service representative whenever something goes awry,
which further cuts into your productivity.

Loss of Subjectivity

Because HR management systems do such a good job of listing Staff


accomplishments, certifications, and degrees, managers may be tempted to promote based
on the objective data your system provides. This may discourage supervisors from taking
the time to get to know Staffs on a personal basis as part of their evaluation of what staff
members can contribute to your company. The truth is that a computer can only provide
you with measurable factors that don’t always tell the full story.

RITIK RAJ BCA III YEAR


Page 11 of 56

Chapter3

Software Requirements Specification

 Functional Requirement
In this section, we will explain the major functions of HRMS along with the
dataflow. So the major functionality of the project such as authentication
mechanism,personaldataprocessing,recruitment,report,andgraphicaluserinterfaceuni
twillexplainedstepbystep.

 Authentication and Authorization

Being connected to internet, users will be able to get into the system.
Inorder to see the interface related to his/her role type, the users account
should be authorized and also his/her user name and password should
beauthenticated.Thesetasksarebasicallyheldbythefunctionsimplementedun
dertheheaderofAuthenticationandAuthorizationmajorfunction.

RITIK RAJ BCA III YEAR


Page 12 of 56

RITIK RAJ BCA III YEAR


Page 13 of 56

RITIK RAJ BCA III YEAR


Page 14 of 56

The aim of the system is to developed “SHOP STAFF


MANAGEMENTSYSTEM” software, which should automate the process to
create and store staff details . The system is supposed to be used as a subsystem in
a large office system, which
couldbemanualsystemoracomputerizedone.Therefore,theproposedsystemmustbea
bleto function under bothcir cumstances.

Theproposedsystemisnotafreewareandduetotheusageofswings,becomesuserinterac
tive.

The project demand a page of employee details that include:-

Staffs personal detail.


Staffs salary, allow access, deductions.

 Non-Functional Requirements

 Performance requirements

The number of the online user of the can bees timated as 40atmost.

There is no restriction on the number of the users to be added to the database.

 Hardware Requirements

The application will be storing staff’ personal data. Roughly…MB of


storage capacity is needed.

RITIK RAJ BCA III YEAR


Page 15 of 56

Chapter 4
System Design

 DATA FLOW DIAGRAM

A Data Flow Diagram (DFD) is a traditional visual representation of the information


flows within a system. A neat and clear DFD can depict the right amount of the system
requirement graphically. It can be manual, automated, or a combination of both.

It shows how data enters and leaves the system, what changes the information, and
where data is stored.

The objective of a DFD is to show the scope and boundaries of a system as a whole. It
may be used as a communication tool between a system analyst and any person who plays
a part in the order that acts as a starting point for redesigning a system. The DFD is also
called as a data flow graph or bubble chart.

The following observation about DFD’S are essential:

1. All names should be unique. This makes it easier to refer to elements in the DFD.

2. Remember that DFD is not a flow chart. Arrows is a flow chart that represents
the order of events; arrows in DFD represents flowing data. A DFD does not
involve any order of events.

3. Suppress logical decisions. If we ever have the urge to draw a diamond-shaped


box in a DFD, suppress that urge! A diamond-shaped box is used in flow charts to

RITIK RAJ BCA III YEAR


Page 16 of 56

represents decision points with multiple exists paths of which the only one is taken.
This implies an ordering of events, which makes no sense in a DFD.

4. Do not become bogged down with details. Defer error conditions and error
handling until the end of the analysis.

The aim of the system is to develope “SHOP EMPLOYEE


MANAGEMENTSYSTEM” software, which should automate the process to
create and store Staff details . The system is supposed to be used as a subsystem
in a
largeofficesystem,whichcouldbemanualsystemoracomputerizedone.Therefore,the
proposedsystemmustbeableto function under both circumstances.

The proposed systemisnota free ware anddue to the usage of wings, becomes
user interactive.

The project demand a page of employee details that

include:-Staff personal detail.


Staff salary, allow access, deductions.

RITIK RAJ BCA III YEAR


Page 17 of 56

 Non-Functional Requirements

 Performance requirements

The number of the online user of the can bees timated as40atmost.

There is no restriction on the number of the users to be added to the database.

 Hardware Requirements

Theapplicationwillbestoringemployees’personaldata.Roughly…MBofstorag
ecapacityisneeded.

RITIK RAJ BCA III YEAR


Page 18 of 56

Grocery Management Staff Management

Shop
Login Management
Product Management Management
System

Sales Management Discount Management

ZERO LEVEL DFD

RITIK RAJ BCA III YEAR


Page 19 of 56

TWO LEVEL DFD

RITIK RAJ BCA III YEAR


Page 20 of 56

E-R Diagram

RITIK RAJ BCA III YEAR


Page 21 of 56

Chapter 5
Implementation
 Screen Shot

RITIK RAJ BCA III YEAR


Page 22 of 56

RITIK RAJ BCA III YEAR


Page 23 of 56

RITIK RAJ BCA III YEAR


Page 24 of 56

RITIK RAJ BCA III YEAR


Page 25 of 56

RITIK RAJ BCA III YEAR


Page 26 of 56

RITIK RAJ BCA III YEAR


Page 27 of 56

Source Code
Loading

Public Class LOADINGPAGE


Dim i As Integer
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Timer1.Enabled = True
ProgressBar1.Maximum = 100
i=1
End Sub

Private Sub Timer1_Tick_1(sender As Object, e As EventArgs) Handles Timer1.Tick

ProgressBar1.Value = ProgressBar1.Value + 1
Label1.Text = "Process " & i & " % Completed"
i += 1
If i > 100 Then
Timer1.Enabled = False
LOGINPAGE.Show()
Me.Hide()
End If
End Sub

Private Sub PictureBox1_Click(sender As Object, e As EventArgs) Handles


PictureBox1.Click

End Sub
End Class

RITIK RAJ BCA III YEAR


Page 28 of 56

Login
Public Class LOGINPAGE

Private Sub Button1_Click_1(sender As Object, e As EventArgs) Handles Button1.Click


If TextBox1.Text = "Admin" And TextBox2.Text = "Ritik123" Then
MessageBox.Show("LOGIN ", "LOGIN PAGE ", MessageBoxButtons.OK,
MessageBoxIcon.Information)
TextBox1.Text = ""
TextBox2.Text = ""
HOMEPAGE.Show()
Me.Hide()
Else
MessageBox.Show("Username or password wrong", "LOGIN PAGE",
MessageBoxButtons.OK, MessageBoxIcon.Error)
End If
End Sub

Private Sub CheckBox1_CheckedChanged_1(sender As Object, e As EventArgs) Handles


CheckBox1.CheckedChanged
Try
If (CheckBox1.Checked = False) Then
TextBox2.PasswordChar = "*"
Exit Sub
ElseIf (CheckBox1.Checked = True) Then
TextBox2.PasswordChar = String.Empty
Exit Sub
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
RITIK RAJ BCA III YEAR
Page 29 of 56
End Sub

Private Sub Label5_Click(sender As Object, e As EventArgs) Handles Label5.Click


Dim i As String
i = InputBox("Enter Your Best Day in Life", "Forget Page")
If i = "5-2-2021" Then
MessageBox.Show("Username = Admin and Password = Aanchal123", "Forget Page",
MessageBoxButtons.OK, MessageBoxIcon.Information)
Else
MessageBox.Show("ANSWER WRONG", "Forget Page", MessageBoxButtons.OK,
MessageBoxIcon.Error)
End If
End Sub

Private Sub PictureBox2_Click(sender As Object, e As EventArgs) Handles


PictureBox2.Click
Application.Exit()
End Sub

Private Sub PictureBox3_Click(sender As Object, e As EventArgs) Handles


PictureBox3.Click
Me.WindowState = FormWindowState.Minimized
End Sub
End Class

Homepage
Public Class LOGINPAGE

Private Sub Button1_Click_1(sender As Object, e As EventArgs) Handles Button1.Click


If TextBox1.Text = "Admin" And TextBox2.Text = "Ritik123" Then

RITIK RAJ BCA III YEAR


Page 30 of 56
MessageBox.Show("LOGIN ", "LOGIN PAGE ", MessageBoxButtons.OK,
MessageBoxIcon.Information)
TextBox1.Text = ""
TextBox2.Text = ""
HOMEPAGE.Show()
Me.Hide()
Else
MessageBox.Show("Username or password wrong", "LOGIN PAGE",
MessageBoxButtons.OK, MessageBoxIcon.Error)
End If
End Sub

Private Sub CheckBox1_CheckedChanged_1(sender As Object, e As EventArgs) Handles


CheckBox1.CheckedChanged
Try
If (CheckBox1.Checked = False) Then
TextBox2.PasswordChar = "*"
Exit Sub
ElseIf (CheckBox1.Checked = True) Then
TextBox2.PasswordChar = String.Empty
Exit Sub
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub

Private Sub Label5_Click(sender As Object, e As EventArgs) Handles Label5.Click


Dim i As String
i = InputBox("Enter Your Best Day in Life", "Forget Page")
If i = "5-2-2021" Then

RITIK RAJ BCA III YEAR


Page 31 of 56
MessageBox.Show("Username = Admin and Password = Aanchal123", "Forget Page",
MessageBoxButtons.OK, MessageBoxIcon.Information)
Else
MessageBox.Show("ANSWER WRONG", "Forget Page", MessageBoxButtons.OK,
MessageBoxIcon.Error)
End If
End Sub

Private Sub PictureBox2_Click(sender As Object, e As EventArgs) Handles


PictureBox2.Click
Application.Exit()
End Sub

Private Sub PictureBox3_Click(sender As Object, e As EventArgs) Handles


PictureBox3.Click
Me.WindowState = FormWindowState.Minimized
End Sub
End Class

Grocery
Imports System.Data.OleDb
Public Class GROCERYPAGE

Dim con As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data


Source=D:\RITIK PROJECT\Shop Management.mdb")
Private Sub PictureBox3_Click_1(sender As Object, e As EventArgs) Handles
PictureBox3.Click
CASHIERPAGE.Show()
Me.Hide()
End Sub

RITIK RAJ BCA III YEAR


Page 32 of 56

Public Sub clr()


TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
ComboBox1.Text = ""
TextBox5.Text = ""
TextBox1.Focus()
End Sub

Private Sub PictureBox2_Click(sender As Object, e As EventArgs) Handles


PictureBox2.Click
CLOTHESPAGE.Show()
Me.Hide()
End Sub

Private Sub PictureBox1_Click(sender As Object, e As EventArgs) Handles


PictureBox1.Click
HOMEPAGE.Show()
Me.Hide()
End Sub

Private Sub PictureBox4_Click(sender As Object, e As EventArgs) Handles


PictureBox4.Click
Me.WindowState = FormWindowState.Minimized
End Sub

Private Sub PictureBox5_Click(sender As Object, e As EventArgs) Handles


PictureBox5.Click
Application.Exit()
End Sub

RITIK RAJ BCA III YEAR


Page 33 of 56

Public Sub sho()


Dim cmd As New OleDbCommand("select * from GROCERY where ID_NO like '%' +
@parm1+ '%' OR FULL_NAME like '%' + @parm1+ '%' OR GENDER like '%' + @parm1+ '%'
OR SALARY like '%' + @parm1+ '%' ", con)
cmd.Parameters.AddWithValue("@parm1", TextBox6.Text)
Dim da As New OleDbDataAdapter
da.SelectCommand = cmd
Dim g As New DataTable
g.Clear()
da.Fill(g)
DataGridView1.DataSource = g
End Sub
Public Sub rrr()
con.Open()
Dim adp As New OleDbDataAdapter("select * from GROCERY", con)
Dim ds As New DataSet
adp.Fill(ds, "RR")
DataGridView1.DataSource = ds.Tables("RR")
con.Close()
End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click


CON.Open()
Dim cmd As New OleDbCommand()
cmd.Connection = CON
cmd.CommandType = CommandType.Text
cmd.CommandText = "insert into GROCERY values('" & TextBox1.Text & "','" &
TextBox2.Text & "'," & TextBox3.Text & ",'" & ComboBox1.Text & "','" &
DateTimePicker1.Text & "','" & DateTimePicker2.Text & "', '" & TextBox4.Text & "','" &
TextBox5.Text & "')"

RITIK RAJ BCA III YEAR


Page 34 of 56
If TextBox1.Text = Nothing Or TextBox2.Text = Nothing Or TextBox3.Text = Nothing Or
TextBox4.Text = Nothing Or TextBox5.Text = Nothing Or ComboBox1.Text = Nothing Then
MessageBox.Show("plsece fial all infomation", "CASHIER PAGE",
MessageBoxButtons.OK, MessageBoxIcon.Warning)
Else
Try
cmd.ExecuteNonQuery()
clr()
MessageBox.Show("RECORD SAVED", "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Information)
Catch ex As Exception
MessageBox.Show(ex.Message, "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Error)
End Try
End If
con.Close()
rrr()
End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click


con.Open()
Dim cmd As New OleDbCommand()
cmd.Connection = con
cmd.CommandType = CommandType.Text
cmd.CommandText = "update GROCERY set FULL_NAME='" & TextBox2.Text & "',
PHONE_NO=" & TextBox3.Text & ", GENDER='" & ComboBox1.Text & "', DOB='" &
DateTimePicker1.Text & "', JOINING_DATE='" & DateTimePicker2.Text &
"',DEPARTMENT='" & TextBox4.Text & "',SALARY='" & TextBox5.Text & "' where ID_NO='"
& TextBox1.Text & "' "
Try
cmd.ExecuteNonQuery()

RITIK RAJ BCA III YEAR


Page 35 of 56
clr()
MessageBox.Show("RECORD UPDATE", "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Information)
sho()
Catch ex As Exception
MessageBox.Show(ex.Message, "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Error)
End Try
con.Close()
End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click


con.Open()
Dim cmd As New OleDbCommand()
cmd.Connection = con
cmd.CommandType = CommandType.Text
cmd.CommandText = "delete from GROCERY where ID_NO='" & TextBox1.Text & "' "
If TextBox1.Text = Nothing Then
MessageBox.Show("ENTER ID NO", "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Hand)
Else
Try
cmd.ExecuteNonQuery()
clr()
MessageBox.Show("RECORD DLETE", "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Information)
sho()
Catch ex As Exception
MessageBox.Show(ex.Message, "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Error)
End Try

RITIK RAJ BCA III YEAR


Page 36 of 56
End If
con.Close()

End Sub

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click


TextBox1.Enabled = True
clr()
TextBox6.Text = ""
Button1.Enabled = True
Button3.Enabled = False
Button2.Enabled = False
End Sub

Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click


Dim cmd As New OleDbCommand("select * from GROCERY where ID_NO like '%' +
@parm1+ '%' OR FULL_NAME like '%' + @parm1+ '%' OR GENDER like '%' + @parm1+ '%'
OR SALARY like '%' + @parm1+ '%' ", con)
cmd.Parameters.AddWithValue("@parm1", TextBox6.Text)
Dim da As New OleDbDataAdapter
da.SelectCommand = cmd
Dim g As New DataTable
g.Clear()
da.Fill(g)
DataGridView1.DataSource = g
End Sub

Private Sub Form5_Load(sender As Object, e As EventArgs) Handles MyBase.Load


'TODO: This line of code loads data into the 'Shop_ManagementDataSet.GROCERY'
table. You can move, or remove it, as needed.
Me.GROCERYTableAdapter.Fill(Me.Shop_ManagementDataSet.GROCERY)

RITIK RAJ BCA III YEAR


Page 37 of 56
clr()
rrr()
End Sub

Private Sub DataGridView1_CellMouseClick(sender As Object, e As


DataGridViewCellMouseEventArgs) Handles DataGridView1.CellMouseClick
If e.RowIndex >= 0 Then
Try
Button3.Enabled = True
Button2.Enabled = True
Button1.Enabled = False
TextBox1.Enabled = False
Dim i As Integer
i = DataGridView1.CurrentRow.Index
Me.TextBox1.Text = DataGridView1.Item(0, i).Value
Me.TextBox2.Text = DataGridView1.Item(1, i).Value
Me.TextBox3.Text = DataGridView1.Item(2, i).Value
Me.ComboBox1.Text = DataGridView1.Item(3, i).Value
Me.DateTimePicker1.Text = DataGridView1.Item(4, i).Value
Me.TextBox5.Text = DataGridView1.Item(7, i).Value
Catch ex As Exception
MessageBox.Show("NO RECORD", "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Information)
End Try
End If
End Sub

Private Sub Label11_Click(sender As Object, e As EventArgs) Handles Label11.Click

End Sub

RITIK RAJ BCA III YEAR


Page 38 of 56
Private Sub DataGridView1_CellContentClick(sender As Object, e As
DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
End Sub
End Class

Cloth
Imports System.Data.OleDb
Public Class CLOTHESPAGE

Dim con As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data


Source=D:\AANCHAL PROJECT\Shop Management.mdb")
Private Sub PictureBox3_Click(sender As Object, e As EventArgs) Handles
PictureBox3.Click
CASHIERPAGE.Show()
Me.Hide()
End Sub

Private Sub PictureBox2_Click(sender As Object, e As EventArgs) Handles


PictureBox2.Click
GROCERYPAGE.Show()
Me.Hide()
End Sub

Private Sub PictureBox1_Click(sender As Object, e As EventArgs) Handles


PictureBox1.Click
HOMEPAGE.Show()
Me.Hide()
End Sub

RITIK RAJ BCA III YEAR


Page 39 of 56
Private Sub PictureBox4_Click(sender As Object, e As EventArgs) Handles
PictureBox4.Click
Me.WindowState = FormWindowState.Minimized
End Sub

Private Sub PictureBox5_Click(sender As Object, e As EventArgs) Handles


PictureBox5.Click
Application.Exit()
End Sub

Public Sub SHO()


Dim cmd As New OleDbCommand("select * from CLOTHES where ID_NO like '%' +
@parm1+ '%' OR FULL_NAME like '%' + @parm1+ '%' OR GENDER like '%' + @parm1+ '%'
OR SALARY like '%' + @parm1+ '%' ", con)
cmd.Parameters.AddWithValue("@parm1", TextBox6.Text)
Dim da As New OleDbDataAdapter
da.SelectCommand = cmd
Dim g As New DataTable
g.Clear()
da.Fill(g)
DataGridView1.DataSource = g
End Sub
Public Sub CLR()
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
ComboBox1.Text = ""
TextBox5.Text = ""
End Sub
Public Sub RRR()
con.Open()

RITIK RAJ BCA III YEAR


Page 40 of 56
Dim adp As New OleDbDataAdapter("select * from CLOTHES", con)
Dim ds As New DataSet
adp.Fill(ds, "RR")
DataGridView1.DataSource = ds.Tables("RR")
con.Close()
End Sub

Private Sub Form6_Load(sender As Object, e As EventArgs) Handles MyBase.Load


'TODO: This line of code loads data into the 'Shop_ManagementDataSet.CLOTHES'
table. You can move, or remove it, as needed.
Me.CLOTHESTableAdapter.Fill(Me.Shop_ManagementDataSet.CLOTHES)
RRR()

End Sub

Private Sub DataGridView1_CellMouseClick(sender As Object, e As


DataGridViewCellMouseEventArgs) Handles DataGridView1.CellMouseClick
If e.RowIndex >= 0 Then
Try
Button3.Enabled = True
Button2.Enabled = True
Button1.Enabled = False
TextBox1.Enabled = False
Dim i As Integer
i = DataGridView1.CurrentRow.Index
Me.TextBox1.Text = DataGridView1.Item(0, i).Value
Me.TextBox2.Text = DataGridView1.Item(1, i).Value
Me.TextBox3.Text = DataGridView1.Item(2, i).Value
Me.ComboBox1.Text = DataGridView1.Item(3, i).Value
Me.DateTimePicker1.Text = DataGridView1.Item(4, i).Value
Me.TextBox5.Text = DataGridView1.Item(7, i).Value

RITIK RAJ BCA III YEAR


Page 41 of 56
Catch ex As Exception
MessageBox.Show("NO RECORD", "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Information)
End Try
End If
End Sub

Private Sub Button4_Click_1(sender As Object, e As EventArgs) Handles Button4.Click


TextBox1.Enabled = True
CLR()
TextBox1.Focus()
Button1.Enabled = True
Button3.Enabled = False
Button2.Enabled = False
End Sub

Private Sub Button1_Click_1(sender As Object, e As EventArgs) Handles Button1.Click


con.Open()
Dim cmd As New OleDbCommand()
cmd.Connection = con
cmd.CommandType = CommandType.Text
cmd.CommandText = "insert into CLOTHES values('" & TextBox1.Text & "','" &
TextBox2.Text & "'," & TextBox3.Text & ",'" & ComboBox1.Text & "','" &
DateTimePicker1.Text & "','" & DateTimePicker2.Text & "', '" & TextBox4.Text & "','" &
TextBox5.Text & "')"
If TextBox1.Text = Nothing Or TextBox2.Text = Nothing Or TextBox3.Text = Nothing Or
TextBox4.Text = Nothing Or TextBox5.Text = Nothing Or ComboBox1.Text = Nothing Then
MessageBox.Show("plsece fial all infomation", "CASHIER PAGE",
MessageBoxButtons.OK, MessageBoxIcon.Warning)
Else
Try

RITIK RAJ BCA III YEAR


Page 42 of 56
cmd.ExecuteNonQuery()
CLR()
MessageBox.Show("RECORD SAVED", "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Information)
Catch ex As Exception
MessageBox.Show(ex.Message, "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Error)
End Try
End If
con.Close()
RRR()
End Sub

Private Sub Button2_Click_1(sender As Object, e As EventArgs) Handles Button2.Click


con.Open()
Dim cmd As New OleDbCommand()
cmd.Connection = con
cmd.CommandType = CommandType.Text
cmd.CommandText = "delete from CLOTHES where ID_NO='" & TextBox1.Text & "' "
If TextBox1.Text = Nothing Then
MessageBox.Show("ENTER ID NO", "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Hand)
Else
Try
cmd.ExecuteNonQuery()
CLR()
MessageBox.Show("RECORD DLETE", "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Information)
SHO()
Catch ex As Exception

RITIK RAJ BCA III YEAR


Page 43 of 56
MessageBox.Show(ex.Message, "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Error)
End Try
End If
con.Close()
End Sub

Private Sub Button3_Click_1(sender As Object, e As EventArgs) Handles Button3.Click


con.Open()
Dim cmd As New OleDbCommand()
cmd.Connection = con
cmd.CommandType = CommandType.Text
cmd.CommandText = "update CLOTHES set FULL_NAME='" & TextBox2.Text & "',
PHONE_NO=" & TextBox3.Text & ", GENDER='" & ComboBox1.Text & "', DOB='" &
DateTimePicker1.Text & "',SALARY='" & TextBox5.Text & "' where ID_NO='" &
TextBox1.Text & "' "
Try
cmd.ExecuteNonQuery()
CLR()
MessageBox.Show("RECORD UPDATE", "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Information)
SHO()
Catch ex As Exception
MessageBox.Show(ex.Message, "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Error)
End Try
con.Close()
End Sub

Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click

RITIK RAJ BCA III YEAR


Page 44 of 56
Dim cmd As New OleDbCommand("select * from CLOTHES where ID_NO like '%' +
@parm1+ '%' OR FULL_NAME like '%' + @parm1+ '%' OR GENDER like '%' + @parm1+ '%'
OR SALARY like '%' + @parm1+ '%' ", con)
cmd.Parameters.AddWithValue("@parm1", TextBox6.Text)
Dim da As New OleDbDataAdapter
da.SelectCommand = cmd
Dim g As New DataTable
g.Clear()
da.Fill(g)
DataGridView1.DataSource = g
End Sub
End Class

Cashier
Imports System.Data.OleDb
Public Class CASHIERPAGE

Dim CON As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data


Source=D:\RITIK PROJECT\Shop Management.mdb")
Private Sub Form4_Load(sender As Object, e As EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'Shop_ManagementDataSet.CASHIER' table.
You can move, or remove it, as needed.
Me.CASHIERTableAdapter.Fill(Me.Shop_ManagementDataSet.CASHIER)
rrr()
End Sub

Public Sub SHO()


Dim cmd As New OleDbCommand("select * from CASHIER where ID_NO like '%' +
@parm1+ '%' OR FULL_NAME like '%' + @parm1+ '%' OR GENDER like '%' + @parm1+ '%'
OR SALARY like '%' + @parm1+ '%' ", CON)

RITIK RAJ BCA III YEAR


Page 45 of 56
cmd.Parameters.AddWithValue("@parm1", TextBox6.Text)
Dim da As New OleDbDataAdapter
da.SelectCommand = cmd
Dim g As New DataTable
g.Clear()
da.Fill(g)
DataGridView1.DataSource = g
End Sub
Public Sub CLR()
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
ComboBox1.Text = ""
TextBox5.Text = ""
TextBox1.Focus()
End Sub
Public Sub rrr()
CON.Open()
Dim adp As New OleDbDataAdapter("select * from CASHIER", CON)
Dim ds As New DataSet
adp.Fill(ds, "RR")
DataGridView1.DataSource = ds.Tables("RR")
CON.Close()
End Sub
Private Sub Label4_Click(sender As Object, e As EventArgs)
Dim obj = New GROCERYPAGE
obj.Show()
Me.Hide()
End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

RITIK RAJ BCA III YEAR


Page 46 of 56
CON.Open()
Dim cmd As New OleDbCommand()
cmd.Connection = CON
cmd.CommandType = CommandType.Text
cmd.CommandText = "insert into CASHIER values('" & TextBox1.Text & "','" &
TextBox2.Text & "'," & TextBox3.Text & ",'" & ComboBox1.Text & "','" &
DateTimePicker1.Text & "','" & DateTimePicker2.Text & "', '" & TextBox4.Text & "','" &
TextBox5.Text & "')"
If TextBox1.Text = Nothing Or TextBox2.Text = Nothing Or TextBox3.Text = Nothing Or
TextBox4.Text = Nothing Or TextBox5.Text = Nothing Or ComboBox1.Text = Nothing Then
MessageBox.Show("plsece fial all infomation", "CASHIER PAGE",
MessageBoxButtons.OK, MessageBoxIcon.Warning)
Else
Try
cmd.ExecuteNonQuery()
MessageBox.Show("RECORD SAVED", "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Information)
CLR()
Catch ex As Exception
MessageBox.Show(ex.Message, "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Error)
End Try
End If
CON.Close()
rrr()
End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click


CON.Open()
Dim cmd As New OleDbCommand()
cmd.Connection = CON

RITIK RAJ BCA III YEAR


Page 47 of 56
cmd.CommandType = CommandType.Text
cmd.CommandText = "delete from CASHIER where ID_NO='" & TextBox1.Text & "' "
If TextBox1.Text = Nothing Then
MessageBox.Show("ENTER ID NO", "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Hand)
Else
Try
cmd.ExecuteNonQuery()
CLR()
MessageBox.Show("RECORD DLETE", "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Information)
SHO()
Catch ex As Exception
MessageBox.Show(ex.Message, "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Error)
End Try
End If
CON.Close()
End Sub

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click


TextBox1.Enabled = True
CLR()
Button1.Enabled = True
Button3.Enabled = False
Button2.Enabled = False
End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click


CON.Open()
Dim cmd As New OleDbCommand()

RITIK RAJ BCA III YEAR


Page 48 of 56
cmd.Connection = CON
cmd.CommandType = CommandType.Text
cmd.CommandText = "update CASHIER set FULL_NAME='" & TextBox2.Text & "',
PHONE_NO=" & TextBox3.Text & ", GENDER='" & ComboBox1.Text & "', DOB='" &
DateTimePicker1.Text & "',SALARY='" & TextBox5.Text & "' where ID_NO='" &
TextBox1.Text & "' "
Try
cmd.ExecuteNonQuery()
CLR()
MessageBox.Show("RECORD UPDATE", "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Information)
SHO()
Catch ex As Exception
MessageBox.Show(ex.Message, "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Error)
End Try
CON.Close()
End Sub

Private Sub PictureBox2_Click(sender As Object, e As EventArgs) Handles


PictureBox2.Click
GROCERYPAGE.Show()
Me.Hide()
End Sub

Private Sub PictureBox1_Click(sender As Object, e As EventArgs) Handles


PictureBox1.Click
CLOTHESPAGE.Show()
Me.Hide()
End Sub

RITIK RAJ BCA III YEAR


Page 49 of 56
Private Sub PictureBox3_Click(sender As Object, e As EventArgs) Handles
PictureBox3.Click
HOMEPAGE.Show()
Me.Hide()
End Sub

Private Sub PictureBox4_Click(sender As Object, e As EventArgs) Handles


PictureBox4.Click
Me.WindowState = FormWindowState.Minimized
End Sub

Private Sub PictureBox5_Click(sender As Object, e As EventArgs) Handles


PictureBox5.Click
Application.Exit()
End Sub

Private Sub DataGridView1_CellMouseClick(sender As Object, e As


DataGridViewCellMouseEventArgs) Handles DataGridView1.CellMouseClick
If e.RowIndex >= 0 Then
Try
Button3.Enabled = True
Button2.Enabled = True
Button1.Enabled = False
TextBox1.Enabled = False
Dim i As Integer
i = DataGridView1.CurrentRow.Index
Me.TextBox1.Text = DataGridView1.Item(0, i).Value
Me.TextBox2.Text = DataGridView1.Item(1, i).Value
Me.TextBox3.Text = DataGridView1.Item(2, i).Value
Me.ComboBox1.Text = DataGridView1.Item(3, i).Value
Me.DateTimePicker1.Text = DataGridView1.Item(4, i).Value

RITIK RAJ BCA III YEAR


Page 50 of 56
Me.TextBox5.Text = DataGridView1.Item(7, i).Value
Catch ex As Exception
MessageBox.Show("NO RECORD", "CASHIER PAGE", MessageBoxButtons.OK,
MessageBoxIcon.Information)
End Try
End If
End Sub
Private Sub Button5_Click_1(sender As Object, e As EventArgs) Handles Button5.Click
Dim cmd As New OleDbCommand("select * from CASHIER where ID_NO like '%' +
@parm1+ '%' OR FULL_NAME like '%' + @parm1+ '%' OR GENDER like '%' + @parm1+ '%'
OR SALARY like '%' + @parm1+ '%' ", CON)
cmd.Parameters.AddWithValue("@parm1", TextBox6.Text)
Dim da As New OleDbDataAdapter
da.SelectCommand = cmd
Dim g As New DataTable
g.Clear()
da.Fill(g)
DataGridView1.DataSource = g
End Sub
End Class

RITIK RAJ BCA III YEAR


Page 51 of 56

CHAPTER 6
SOFTWARE TESTING

 INTRODUCTION:
Testing is the set of activities that can be planned in advanced and s conducted
systematically. Testing requires that the developer discard preconceived notions of the
“correctness” of the software just developed and overcome a conflict of interest that occurs
when errors are encounterd.

Testing principles are:

 All tests should be traceable to customer requirements


 Testing should be planned long before the testing begins
 Testing should begin “in the small” and progress towards testing “in the
large”.
 Exhaustive testing is not possible
 To be most effective, testing should be conducted by an independent third
party.

Testing objective are

o Testing is the process of executing a program within the intent of


finding an error.
o A good test case is one that has high probability of finding an as-
yetundis covered error.
o A successful test is one that un covers an as yet-undiscovered error
There are various testing strategies available to accommodate from
low-level testing to high level testing as discussed below.

TEST PLAN

RITIK RAJ BCA III YEAR


Page 52 of 56
Testing is the major quality control measure employed during software
development. In the project, the first test considered is the unit testing. In this unit
testing, each modules of the system are tested separately. This is carried out during
programming stage itself. Each module should work satisfactory as regard from the
module. After the entire module are checked independently and completed then the
integration testing is performed to check whether there is any interface errors. Then
those errors are verified and corrected. And also the security test is performed to
allow only authorized persons to this system. Finally, the validation testing is
performed to validate whether the customer requirements are stratified are not.

UNIT TESTING

The unit testing is carried out on coding. Here different modules are tested
against the specifications produced during design for the modules. Unit testing
mainly focused first in the smallest and low level modules, proceeding one at a time.
Each module was tested against required functionally and test cases were
developed to test the boundary values. Unit testing focuses verification effort on the
smallest unit of software design the software component or module. The unit test
focuses on the internal processing logic and data structures within the boundary of
the component. This type of testing can be conducted in parallel for multiple
components.

INTEGRATION TESTING:

Integration testing is a systematic technique for consulting the


software architecture while at the same time conducting test to
uncover errors associated with interfacing. The objective is to take
unit tested components and build a program structure that has been
dictated by design.

VALIDATION TESTING:

Validation testing is that validation succeeds when software


functions in a manner that can be reasonably expected by the user.

RITIK RAJ BCA III YEAR


Page 53 of 56
Validation testing begins after the culmination of integration testing,
software is completely assembled as a package; interfacing errors
have been uncovered and corrected.

The error detecting during this testing is:

 Incorrect Function
 Input Condition Errors
 Database Error
 Performance Error
 Initialization and Interface Error

SECURITY TESTING:

Security testing verifies that protection mechanisms built into a


system will, in fact, protect it from improper penetration. The system
security must, of course, be tested for invulnerability from flank or rear
attack.

Test case:

The system provides authentication by means of validating the


username and password. It won’t allow the user gives the exact

RITIK RAJ BCA III YEAR


Page 54 of 56

Chapter 7

CONCLUSION

This Software is efficient in maintaining customers details and can


easily perform operations or customers record. This software also reduce the
word load of the shopkeeper to know the quality products available and also
keep the records of how many products are purchased and sold.

RITIK RAJ BCA III YEAR


Page 55 of 56

CHAPTER 8
FUTURE ENHANCEMENT

Future Enhancement

This system is developed such a way that additional enhancement can


be done without much difficulty. The renovation of the project would
increase the flexibility of the system. Also the features are provided in such
a way that the system can also be made better and efficient functionality
The programs were coded in an easier and more structured manner so that
may further modifications may be incorporated easily. The processing time
in this system is very lesser compared to existing system. This system has
good flexibility of accommodating any more changes that might arise in the
future also. In this system, data integrity is maintained and data redundancy
is avoided and it increase system efficiency. The database is designed in
such a way that it will be also helpful for enhancement of the system

RITIK RAJ BCA III YEAR


Page 56 of 56

CHAPTER 9
Softcopy of the Project on CD

RITIK RAJ BCA III YEAR

You might also like