Professional Documents
Culture Documents
Pet Shop
Pet Shop
A
PROJECT REPORT
ON
“pet shop management
system” Under the guidance of
Mrs. Reshma More
Submitted by
1
CERTIFICATE
This is certify that the project report entitled,
BACHELOR OF COMPUTER
APPLICATION
DATE:
PRINCIPAL EXTERNAL
2
EXAMINER
Index
Table of Contents
Sr. No Phase Name Page No.
1. Preliminary Investigation 4
1.1 Acknowledgement 5
1.2 Organizational Overview 6
1.3 Current System 7
1.4 Limitations Of the system 7
1.5 Scope of proposed system 7
1.6 Advantage of proposed system 8
1.7 Feasibility Study 9
1.8 Gantt Chart 11
2. System Analysis 12
2.1 Fact Finding Techniques 13
2.2 Event Table 14
2.3 Use Case 18
2.4 Activity Diagram 24
2.5 Class Diagram 32
2.6 Object Diagram 35
2.7 Sequence Diagram 41
2.8 Collaboration Diagram 52
3. System Design 57
3.1 Derived Tables from entities and relationships 58
3.2 Deployment Diagram 63
3.3 Component Diagram 64
3.4 System Flow Chart 65
4. System Coding 66
4.1 Menu Tree 67
4.2 Test Cases, Test Data, Test Result 68
4.3 Program Descriptor 81
4.4 Code 88
4.5 Screen Layout 113
4.6 Hardware & Software requirement 116
4.7 References & Bibliography 117
3
Phase – 1
4
Preliminary
Investigation
Acknowledgement
5
Your’s sincerely,
MISS. AKSHAYA SUBHASH KADAM .
Date:
Organizational Overview
Name of organization: -
“Sai Pet
Shop”
Address:-
At Post (Markandi)
Tal –chiplun Dist - Ratnagiri
Contact No:-
9587440344
6
This project is made for the Sai Pet shop,which is one
of the popular Pet shop in Chiplun city.
Study Of Current
System
This project is of Computer System for Pet Shop
Management. Their current system is also manual system.
But this current system is very lass user friendly and
it have no facility of printed pay slip so whenever client comes
then receptionist first fill up all the information on computer
and then prepares the receipt manually .
This procedure consumes so much valuable time of
receptionist as well as client. In the existing system assigning
appointment to individual client and maintaining their daily
records is a time consuming process .
Pet shop manager has to manually maintain record
of client and pet in the form of case paper.
7
Limitations Of Current
System
Maintaining register s very tedious and time
making job.
Mistakes can happen while rewriting into in
register.
One can make error while calculations bill amount
in hand.
Any charge in staff information required.
Proposed System
This system is designed for Pet Shop Management.
The scope of the system includes:
8
In proposed system all receipt of a pet are generated by
receptionist
Drawbacks
The only drawbacks of this system are that the
system has no central database.
9
FEASIBILTY STUDY
Technical feasibility
The proposed system that has developed is found technology feasible for
the Pet shop system .The hardware and software resources are easily available to
the branch. The staff has efficient knowledge of hardware and software
technology, so there is no need to depend on outside experts.
Operational feasibility
Operational feasibility measures of how will the applications well work in
organization. Required operational skills and expertise is already been
available with the firm. Operational feasibility of the system can be
ensuring through the following:
The user of the system can be trained to use the application system adjust
with the new environment, so that they are capable to work on the new
system.
User friendliness of the proposed system makes the user to do the work
efficiently.
System work smoothly without any difficulties.
Well documentation of the proposed system gives complete idea about the
system design to the user.
10
So the proposed system has the support by applicants who makes
application . So the system is operationally feasible.
Economic feasibility
Economic feasibility is most important from the point of any system.
Before finalizing the decision it should be seen that whether the proposed system
is financial viable or not. Cost-benefit analysis is required to be carried out.
In case of the present system, it found as the firm’s business is
increasing day to day they should go far computerized system. The cost of
hardware and software is affordable to the branch.
The cost of development and maintenance of the system is justifiable to
the use and benefits of the owner.
As the existing system will be replace by the computerized one the
computerized one the complexities and difficulties will be reduced significantly.
Gantt chart
Sr.No Phase Expected Date of Completion Actual date Remark
of
Completion
1 Preliminary Investigation
11
proposed system
C Feasibility Study 30th June
2 System Analysis
A Fact finding 5th July
B Even Table 25th Nov
C Use Case Diagram 30th Nov
D Activity Diagram 5th Dec
E Class Diagram 10th Dec
F Object Diagram 15th Dec
G Sequence/Collaboration 20th Dec
Diagram
3 System Design
A Derive Tables from 3rd Jan
entities and relationships
B Component Diagram 5th Jan
C Package Diagram 8th Jan
D Deployment Diagram 12th Jan
E Form/Report Layouts 15th Jan
4 System Coding
A Design database(tables 20th Jan
with attributes &
constraints)
B Coding 20th Feb
C Test cases and 25th Feb
Validations
5 Soft Copy Submission 1st March
6 System Implementation 5th March
7 Project Review 7th March
8 Project Report 10th March
Submission
12
Phase - 2
13
System Analysis
14
5) How do you maintain Information of vendor?
By keeping records in the register.
Event Table:
Sr. Event Trigger Source Activity Response Destination
1 Add new New Admin Create new New client Admin
client client client record record is
record details addad
2 Search Searching Admin Search for Display Admin
client client client details client
records details details
3 Update Updating Admin i. Search for Client Admin
client client client record is
record details details updated
ii. Update
client
record
4 Delete Deleting Admin i. Search for Client Admin
client client client record is
record details details deleted
ii. Delete
client
details
5 Add new New Admin Create new New Admin
vendor vendor vendor record vendor
record details record is
addad
15
6 Search Searching Admin Search for Display Admin
vendor vendor vendor details vendor
records details details
7 Update Updating Admin i. Search for Vendor Admin
vendor vendor vendor record is
record details details updated
ii. Update
vendor
record
8 Delete Deleting Admin i. Search for Vendor Admin
vendor vendor vendor record is
record details details deleted
ii. Delete
vendor
details
9 Add new New Admin Create new New Admin
employee employee employee record employee
record details record is
added
10 Search Searching Admin Search for Display Admin
employee employee employee details employee
records details details
11 Update Updating Admin i. Search for Employee Admin
employee employee employee record is
record details details updated
ii. Update
employee
record
12 Delete Deleting Admin i. Search for Employee Admin
employee employee employee record is
record details details deleted
ii. Delete
employee
details
13 Add new New pet Admin Create new pet New pet Admin
pet record details record record is
added
14 Search pet Searching Admin Search for pet Display pet Admin
records pet details details details
16
15 Update pet Updating Admin i. Search for Pet record Admin
record pet details pet details is updated
ii. Update pet
record
16 Delete pet Deleting Admin i. Search for Pet record Admin
record pet details pet details is deleted
ii. Delete pet
details
17 Add new New Admin Create new New Admin
purchase purchase purchase purchase
product details products record product
record record is
added
18 Search Searching Admin Search for Display Admin
purchase purchase purchase product purchase
product product details product
records details details
19 Update Updating Admin i. Search for Purchase Admin
purchase purchase purchase product
record product product record is
details details updated
ii. Update
purchase
product
record
20 Delete Deleting Admin i. Search for Purchase Admin
purchase purchase purchase product
product product product record is
record details details deleted
ii. Delete
purchase
product
details
21 Add new New stock Admin Create new stock New stock Admin
stock details record record is
added
22 Search Searching Admin Search for stock Display Admin
stock stock details stock
records details details
17
23 Update Updating Admin i. Look up Stock Admin
stock stock product record is
record details availabilit updated
y
ii. Search for
stock
details
iii. Update
stock
Record
24 Delete Deleting Admin i Search for Stock Admin
stock stock stock record is
record details details deleted
ii Delete
stock
details
25 Add new New order Admin Create new order New order Admin
order details record record is
record added
26 Search Searching Admin Search for order Order Admin
order order details record is
records details searched
27 Update Updating Admin i Search for Order Admin
order order order record is
record details details updated
ii Update
order
record
28 Delete Deleting Admin i Search for Order Admin
order order order record is
record details details deleted
ii Delete
order
details
29 Generate Generating Admin Generate bill/ Bill Admin
bill bill Calculate bill generated
30 Search bill Search old Admin Search for bill Bill found Admin
bill
18
31 Update bill Change Admin i search bill Bill Admin
bill details ii update bill updated
19
Admin
20
Manage Supplier Record
21
Manage Purchase Product Record
22
Manage Customer Order Record
23
Manage Employee Record
24
Activity Diagram
25
1) Customer
a) Add new customer
26
2) Supplier
a) Add new supplier
27
C) Delete supplier details
3)Employee
28
a) Add new employee
30
6) Generate order for supplier
7)Received Order
31
8)Generate customer bill
32
9)Update customer
33
Class Diagrams:
Customer Supplier
Cust_id:numeric supp_id:numeric
Cust_name:varchar supp_name:varchar
cust_adds:varchar supp_adds:varchar
contact_no:numeric contact_no:numeric
Add():structure Add():structure
Update():void Update():void
Delete():void Delete():void
Delete():text
Employee Product
emp_id:numeric prod_id:numeric
emp_name:varchar prod_name:varchar
emp_adds:varchar prod_type:text
contact_no:numeric
New_prod:structure
Add():structure Update():void
Update():void Delete():void
Delete():void
Stock Pet
Prod_id:numeric pet_id:numeric
Prod__name:varchar pet_type:varchar
quantity:numeric pet_color:varchar
prod_weight:numeric pet_price:numeric
34
Update Stock():null Add():structure
Update():void
Delete():void
Bill
Bill_no:numeric
Bill_date:date
Cust_id:numeric
Cust_name:varchar
Prod_qty:numeric
Total_amt:numeric
Create_bill():void
Print():void
Order
order_no:numeric
order_date:date
prod_list:varchar
Tax:numeric
discount:numeric
Total_amt:numeric
Create_order():void
Update():void
Delete():void
35
Class Association Diagram
1
Employee 1 * Customer
1 1 1 1
* Pet *
Supplier
1
*
Product
*
*
1 1 1
1 1 1 1
Stock Customer Order
Supplier Order
1
1
Customer Bill
36
Object Diagrams
1) One employee has one or many pet
P1:Pet
Pet_id:101
Pet_type:cat
Pet_color:white
Pet_price:3000
e:Employee P2:Pet
emp_id:111 Pet_id:102
emp_name:Abhishek Pet_type:cat
emp_address:pune Pet_color:white
emp__salary:5000 Pet_price:3000
cont__no:922297390
P3:Pet
Pet_id:101
Pet_type:cat
Pet_color:Brown 37
Pet_price:000
2) One customer has one or many pet
P1:Pet
Pet_id:101
Pet_type:cat
Pet_color:white
Pet_price:3000
C: Customer
P2:Pet
Cust_id:1
Pet_id:102
Cust_Name: abc
Pet_type:cat
Cust_Addr: chiplun
Pet_color:white
ContactNo: 258027
Pet_price:3000
P3:Pet
Pet_id:103
Pet_type:cat 38
Pet_color:white
Pet_price:3500
3) One stock has one or many product
p1:product
prod_id:101
prod_name:cat
s1:stock p2product
prod_id:101
prod_name:cat prod_id:102
prod_quant:10 prod_name:cat
prod_weight:8kg
p3:product
prod_id:103
prod_name:cat
emp_id:111 prod_id:101
emp_name:Ankita prod_name:cat
emp_address:chiplun prod_quant:10
emp_salary:5000 39
prod_weight:8kg
cont_no:56669930
5) One employee to many customer
o:supplier order
6)s:supplier
One supplier has one supplier order
order_id:100
supplier_id:111 order_date:11 jan 2014
supplier_name:Amit supplier_name:sachin
supplier_address:chiplun prod_name:pet 40
cont_no:56669930 prod_quantity:10
prod_weight:kg
7) One employee to many product
p1:product
prod_id:101
prod_name:cat
prod_price:5000
e:Employee p2:product
emp_id:111
emp_name:Ankita prod_id:102
emp_address:chiplun prod_name:cat
emp_salary:5000 prod_price:4000
cont_no:56669930
p3:product
prod_id:103
prod_name:cat
prod_price:4500
41
B:customer bill
o:customer order
bill_id:101
order_id:100 date:11 feb 2016
order_date:11 jan 2014 customer_name:shakti
customer_name:Amar cont_no:8778447780
prod_name:pet pet_type:cat
prod_quantity:10 pet_color:black
prod_weight:kg pet_price:4000
p1:product
prod_id:101
prod_name:cat
prod_price:4500
o:supplier order
p2:product
order_id:100
order_date:11 jan 2014
supplier_name:sachin
prod_id:102
prod_name:pet
prod_name:cat
prod_quantity:10
prod_price:4500
prod_weight:kg
p3:product
prod_id:103
prod_name:cat
prod_price:4500
42
Sequence Diagrams:
43
2) Update customer record
44
3) Delete customer record:
45
4) Add new supplier
46
6) Delete supplier record:
47
7) Add new employee
48
8) Update employee record:
49
10) Add new pet
50
11) Update pet Record
51
13) Add stock record
52
15) Add purchase_order record
53
Collaboration Diagrams:
54
1) Add customer record
:Admin
57
12) Generating order
58
14) Receive order
59
Phase – 3
System
Design
60
1) Customer Details
2) Supplier Details
Field Name Data Type Description Attributes
Supplier Id Number Hold supplier Id Field size=50
Supplier Name Text Hold supplier name Field size=50
3) Pet Details
Field Name Data Type Description Attributes
Pet Type Text Hold Pet type Field size=50
Pet Id Number Hold Pet Id Field size=50
Pet Color Text Hold Pet color Field size=50
Pet Status Text Hold Pet status Field size=50
Pet Price Number Hold Pet price Field Size=50
4) Products Details
61
Field Name Data Type Description Attributes
Product Id Number Hold product Id Field size=50
Product Name Text Hold product name Field size=50
5) Stock Details
Field Name Data Type Description Attributes
Product Id Number Hold product Id Field size=50
Product Name Text Hold product name Field size=50
Product Quantity Number Hold product quantity Field size=50
Product Weight Number Hold product weight Field size=50
62
Supplier Name Text Hold supplier name Field size=50
Product Name Text Hold product name Field size=50
Product Quantity Number Hold product quantity Field size=50
Product Weight Number Hold product weight Field size=50
8) Employee Details
Field Name Data Type Description Attributes
Employee Id Number Hold employee Id Field size=50
Employee Name Text Hold employee name Field size=50
Deployment Diagram:
63
DB:Database
AAAAAAAAAAAAAAA
Application Server:
SysAdmin:Executable
CommonApps:
Executable
User1:Admin
Printer
Component Diagram
64
System Flow Chart
65
Maintain customer info
Add Customer
customer
Maintain customer
Put order Customer
custome order
r
jorder
66
order
Phase - 4
System Coding
Menu Tree
Customer
67
Supplier
Entry
Form
Employee
Product
Stock
Customer
Stationery Order
Management Order
System Vendor
Order
SaleBill
Notepad
Utility
Calculator
Report
Program descriptor with naming convention
1) class : login form
Login form is to hold all information about login.
Naming Description
68
Username This naming convention is used
to stored the username
Password This naming convention is used
to stored the password
Function:
1. Login: This function gives the access to program application
2. Exit: This function close the login form.
Naming Description
Customer Id This naming convention is
used to stored the customer id
Customer Name This naming convention is
used to stored the customer
name
Customer Address This naming convention is
used to stored the customer’s
address
Contact Number This naming convention is
used to stored the customer’s
contact number
Function:
1. Add: this function add the customer record
2. Update: this function update the customer record
3. Delete: this function delete the customer record
4. Search: this function search the customer record
69
Supplier Id This naming convention is
used to stored the supplier id
Supplier Name This naming convention is
used to stored the supplier
name
Supplier Address This naming convention is
used to stored the supplier
address
Contact Number This naming convention is
used to stored the Contact
Number
Function:
1) add: this function add the supplier record
2) update: this function update the supplier record
3) delete: this function delete the supplier record
4) search: this function search the supplier record
Naming Description
Pet Type This naming convention is
used to stored the Pet type
Pet Color This naming convention is
used to stored the Pet flavor
Function:
70
1) add: this function add the Pet record
2) update: this function update the Pet record
3) search: this function search the Pet record
Function:
1) add: this function add the product record
2) update: this function update the product record
3) search: this function search the product record
71
Product Weight This naming convention is
used to stored the product
weight
Function:
1) update: this function update the stock record
Function:
1) add: this function add the customer order record
2) update: this function update the customer order record
3) cancel: this function cancel the customer order record
4) search: this function search the customer order record
72
8) Class: Supplier Order form
Supplier Order form is hold all information about supplier order.
Naming Description
Order Id This naming convention is
used to stored the order id
Order Date This naming convention is
used to stored the order date
Supplier Name This naming convention is
used to stored the supplier
name
Product Name This naming convention is
used to stored the product
name
Product Quantity This naming convention is
used to stored the product
quantity
Product Weight This naming convention is
used to stored the product
weight
Function:
1) add: this function add the supplier order record
2) update: this function update the supplier order record
3) cancel: this function cancel the supplier order record
4) search: this function search the supplier order record
73
Employee Address This naming convention is
used to stored the employee
address
Employee Salary This naming convention is
used to stored the employee
salary
Contact Number This naming convention is
used to stored the Contact No.
Function:
1) add: this function add the employee record
2) update: this function update the employee record
3) delete: this function delete the employee record
4) search: this function search the employee record
Naming Description
Bill Id This naming convention is
used to stored the order id
Date This naming convention is
used to stored the date
Customer Name This naming convention is
used to stored the customer
name
Contact Number This naming convention is
used to stored the contact
number
Pet Type This naming convention is
used to stored the Pet type
Pet Color This naming convention is
used to stored the Pet color
74
Pet Weight This naming convention is
used to stored the Pet weight
Pet Quantity This naming convention is
used to stored the Pet quantity
Pet Price This naming convention is
used to stored the Pet price
Total This naming convention is
used to stored the total
Function:
1) add: this function add the customer bill record
2) update: this function update the customer bill record
3) search: this function search the customer bill record
75
“please enter message
number” “please enter
number”
C name= “45” Step:1] ,2],3] Display message Display Pass
“please enter message
character” ”please enter
character”
Contact no=”106” Step:1] ,2],3] Display message Display Pass
”at most 10 digit message “ at
are require” most 10 digit
are require”
C id=”1” Step:1] ,2],3] Display message Display Pass
C name=” “ “fill all details” message=”fill
Address=” “ all details”
Contact
no=”4567890234”
4 Pet Pet type=”text” Pet type=”veg” 1)open Pet Display message Display Pass
module Pet color=”text” Pet color=”white” form “record saved message
Pet weight=”num” Pet weight=”10” 2)fill all successfully” “record saved
Pet status=”num” Pet status=”available” details successfully”
Pet price=”num” Pet price=”3000” 3)click ok
Pet type=” 2“ Step:1] ,2],3] Display message Display Pass
“please enter message
character” “please enter
character”
Pet color= “45” Step:1] ,2],3] Display message Display Pass
“please enter message
character” ”please enter
character”
Pet weight=”abc” Step:1] ,2],3] Display message Display Pass
“please enter message
number” “please enter
number”
Pet status=”65” Step:1] ,2],3] Display message Display Pass
“please enter message
76
character” “please enter
number”
Pet price=”fghg” Step:1] ,2],3] Display message Display Pass
“please enter message
number” “please enter
number”
Pet type=”cvvv ” Step:1] ,2],3] Display message Display Pass
Pet color=”abc ” “fill all details” message=”fill
Pet weight=” ” all details”
Pet status=” ”
Pet price=” ”
5 Product p id=“number” p id=“1” 1)open Display message Display Pass
module p name=”text” p name=” abc” product form “record saved message
2)fill all successfully” “record saved
details successfully”
3)click ok
p id=” er“ Step:1] ,2],3] Display message Display Pass
“please enter message
number” “please enter
number”
P name= “45” Step:1] ,2],3] Display message Display Pass
“please enter message
character” ”please enter
character”
p id=”1” Step:1] ,2],3] Display message Display Pass
p name=” “ “fill all details” message=”fill
all details”
6 Stock P id=“number” p id=“1” 1)open stock Display message Display Pass
module P name=”text” p name=”avbc” form “record saved message
P status=”number” p status= “60” 2)fill all successfully” “record saved
P weight=”number” P weight=”10” details successfully”
3)click ok
P id=” er“ Step:1] ,2],3] Display message Display Pass
“please enter message
number” “please enter
number”
P name= “45” Step:1] ,2],3] Display message Display Pass
“please enter message
character” ”please enter
character”
P status=”a” Step:1] ,2],3] Display message Display Pass
”please enter message “
number” please enter
number”
P weight=”a” Step:1] ,2],3] Display message Display Pass
”please enter message “
number” please enter
number”
P id=”1” Step:1] ,2],3] Display message Display Pass
P name=” “ “fill all details” message=”fill
P status=”70 “ all details”
P weight=” ”
77
“please enter message
number” “please enter
number”
O date= “14/3/” Step:1], 2],3] Display message Display Pass
“please enter message
year” “please enter
year”
Cust name= “134” Step:1] ,2],3] Display message Display Pass
“please enter message
character” “please enter
character”
Pet type=”h67h” Step:1] ,2],3] Display message Display Pass
“please enter message
character” “please enter
character”
Pet status=”566” Step:1] ,2],3] Display message Display Pass
“please enter message
character” “please enter
number”
Pet color=” 143” Step:1] ,2],3] Display message Display Pass
“please enter message
character” “please enter
character”
Pet weight=”tyre” Step:1] ,2],3] Display message Display Pass
“please enter message
number” “please enter
number”
O id=”1” Step:1], 2],3] Display message Display Pass
O date=” ” “fill all message “fill all
Cust name=”pooja” information” information”
Pet type= “cat”
Pet status= “1”
Pet color=”black”
Pet weight=” ”
8 Supp O id=”number” O id=”1” 1]open order Display message Display Pass
Order O date=”date” O date=”14/11/2012 form “record saved message
module Supp name=”text” Supp name=”suraj” 2]fill all successfully” “record saved
Prod name= “text” Prod name= “dalada” information successfully”
Prod status= Prod status= “100” 3]click ok
“number” Prod weight=”5”
prod
weight=”number”
O id= “ret” Step:1] ,2],3] Display message Display Pass
“please enter message
number” “please enter
number”
O date= “14/3/” Step:1], 2],3] Display message Display Pass
“please enter message
year” “please enter
year”
Supp name= “134” Step:1] ,2],3] Display message Display Pass
“please enter message
character” “please enter
character”
Prod name=”h67h” Step:1] ,2],3] Display message Display Pass
“please enter message
character” “please enter
character”
Prod status=”lmn” Step:1] ,2],3] Display message Display Pass
“please enter message
number” “please enter
78
number”
Prod weight=”pnv” Step:1] ,2],3] Display message Display Pass
“please enter message
number” “please enter
number”
O id=”1” Step:1], 2],3] Display message Display Pass
O date=”14/11/2012 “fill all message “fill all
Supp name=” ” information” information”
Prod name= “dalada”
Prod status= “ ”
Prod weight=”5”
9 Employee E id= e id=“1” 1)open Display message Display Pass
module “number” e name=” rohan” employee “record saved message
E name=”text” E Address=”khed” form successfully” “record saved
E Address=”text” E salary=”5000” 2)fill all successfully”
E salary=”number” Contact details
contact no=” no=”5690348954” 3)click ok
number”
E id=” er“ Step:1] ,2],3] Display message Display Pass
“please enter message
number” “please enter
number”
E name= “45” Step:1] ,2],3] Display message Display Pass
“please enter message
character” ”please enter
character”
E salary=”tyg” Step:1] ,2],3] Display message Display Pass
”enter number” message” enter
number”
79
character” “please enter
character”
Pet type=”459” Step:1], 2],3] Display message Display Pass
“please enter message
character” “please enter
character”
Pet color=”n87” Step:1], 2],3] Display message Display Pass
“please enter message
character” “please enter
character”
Pet status=”jk” Step:1], 2],3] Display message Display Pass
”please enter message
number” ”please enter
number”
Pet weight=”ab” Step:1], 2],3] Display message Display Pass
”please enter message
number” ”please enter
number”
Pet price=”ahg” Step:1], 2],3] Display message Display Pass
”please enter message
number” ”please enter
number”
Total =”nhj890” Step:1], 2],3] Display message Display Pass
”please enter message
number” ”please enter
number”
Bill id=” 101” Step:1], 2],3] Display message Display Pass
Date=”15/5/1014” “please fill all message
Cust name=”nitish” information” “please fill all
Contact information”
no.=”8552992587”
Pet type=””
Pet color=” bhj”
Pet status=” ”
Pet weight=”5”
Pet price=”300”
Total=”1500”
80
Program descriptor with naming convention
Naming Description
Pet Type This naming convention is used
to stored the Pet type
Pet Color This naming convention is used
to stored the Pet color
Function:
1) add: this function add the product record
2) update: this function update the product record
3) search: this function search the product record
83
16) Class: Stock form
Stock form is hold all information about stock.
Naming Description
Product Id This naming convention is used
to stored the product id
Product Name This naming convention is used
to stored the product name
Function:
2) update: this function update the stock record
84
Pet Status This naming convention is used
to stored the Pet status
Function:
1) add: this function add the customer order record
2) update: this function update the customer order record
3) cancel: this function cancel the customer order record
4) search: this function search the customer order record
Naming Description
Bill Id This naming convention is used
to stored the order id
Date This naming convention is used
to stored the date
Customer Name This naming convention is used
to stored the customer name
Pet Type This naming convention is used
to stored the Pet type
Pet Color This naming convention is used
to stored the Pet flavour
86
Pet Weight This naming convention is used
to stored the Pet weight
Pet Status This naming convention is used
to stored the Pet status
Pet Price This naming convention is used
to stored the Pet price
Total This naming convention is used
to stored the total
Function:
1) add: this function add the customer bill record
2) update: this function update the customer bill record
3) search: this function search the customer bill record
87
Code :-
Login Form:-
Imports System.Data.SqlClient
Public Class Form1
Dim i As Integer
Dim con As New sqlconnection
Private Sub OK_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles OK.Click
If txtusernm.Text = "admin" And txtpasswrd.Text = "admin" Then
MsgBox("Log In Successful")
Loading.Show()
' MDIParent1.Show()
Me.Hide()
Else
MsgBox("Log In UnSuccessful")
txtusernm.Text = ""
txtpasswrd.Text = ""
i = i + 1
End If
If i = 3 Then
MsgBox("You Lost Your Log In! Please Try Later.")
End If
End Sub
88
'con.ConnectionString = "Data
Source=.\sqlexpress;AttachDbFilename=C:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\Data\mydatabase.mdf;Integrated Security=True"
' con.ConnectionString = "Data
Source=.\sqlexpress;AttachDbFilename=C:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\Data\mydatabase.mdf;Integrated Security=True"
con.ConnectionString = "Data
Source=.\sqlexpress;AttachDbFilename=C:\Program Files (x86)\Microsoft SQL
Server\MSSQL.1\MSSQL\Data\mydatabase.mdf;Integrated Security=True"
' con.ConnectionString = "Data Source=.\sqlexpress;Initial
Catalog=mydatabase;Integrated Security=True;User Instance=False"
End Sub
End Sub
Private Sub txtpasswrd_TextChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles txtpasswrd.TextChanged
Dim j = txtpasswrd.Text
If j.Length >= 5 Then
MsgBox("Minimum 5 characters")
End If
End Sub
End Class
MDI Form:-
Imports System.Windows.Forms
m_ChildFormNumber += 1
ChildForm.Text = "Window " & m_ChildFormNumber
ChildForm.Show()
End Sub
89
Dim FileName As String = OpenFileDialog.FileName
' TODO: Add code here to open the file.
End If
End Sub
If (SaveFileDialog.ShowDialog(Me) =
System.Windows.Forms.DialogResult.OK) Then
Dim FileName As String = SaveFileDialog.FileName
' TODO: Add code here to save the current contents of the form to
a file.
End If
End Sub
90
End Sub
91
End Sub
End Sub
End Sub
End Sub
End Sub
92
Customer Form:-
Imports System.Data.SqlClient
Function idgenerate()
txtcustaddrss.Text = ""
txtcustcont.Text = ""
'cbcustname.Text = ""
TextBox1.Text = ""
Try
con.Open()
cmd.CommandText = "select max(CustomerID) from customer"
cmd.Connection = con
dr = cmd.ExecuteReader
If dr.Read Then
id = dr(0) + 1
txtcustid.Text = id
End If
dr.Close()
Catch Excep As Exception
txtcustid.Text = "1"
End Try
con.Close()
Return 0
End Function
93
Private Sub Label3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Label3.Click
End Sub
End Try
End Sub
94
cmd.CommandText = "delete from customer where CustomerName='"
& cbcustname.Text & "'"
cmd.Connection = con
cmd.ExecuteNonQuery()
MessageBox.Show("RECORD DELETED")
con.Close()
txtcustid.Text = ""
txtcustaddrss.Text = ""
txtcustcont.Text = ""
cbcustname.Items.Remove(cbcustname.SelectedItem)
Catch ex As Exception
MessageBox.Show("No Such Record Found")
End Try
End If
End Sub
End Sub
End Sub
End Sub
End If
95
End Sub
End If
End Sub
End Sub
Try
con.Open()
cmd.CommandText = "select * from customer where
CustomerName='" & cbcustname.Text & "' "
cmd.Connection = con
dr = cmd.ExecuteReader
dr.Read()
txtcustid.Text = dr(0)
cbcustname.Text = dr(1)
txtcustaddrss.Text = dr(2)
txtcustcont.Text = dr(3)
96
con.Close()
Catch ex As Exception
End Try
End If
End Sub
End Sub
End Class
Bill :-
Imports System.Data.SqlClient
Public Class SaleBill
Dim con As New SqlConnection '(dbconnection.conStr)
Dim cmd As New SqlCommand
Dim dr As SqlDataReader
Dim da As SqlDataAdapter
Dim dt As DataTable
Dim pname As String
Dim total As Integer
Dim qty As Integer
Dim amount As Integer
Dim str As String
Dim id As Integer
Dim avail As Integer
Function idgenerate()
txtcustname.Text = ""
txtQuantity.Text = ""
txtAvailable.Text = ""
txttotal.Text = ""
cbProductnm.Text = ""
con.Open()
Try
cmd.CommandText = "select max(ID) from SaleBill"
cmd.Connection = con
dr = cmd.ExecuteReader
dr.Read()
Dim id As String
id = dr(0).ToString
id = id.Remove(0, 1)
97
Dim oid As Integer
oid = CInt(id)
oid = oid + 1
id = "b" & oid
txtBillNo.Text = id
dr.Close()
Catch ex As Exception
txtBillNo.Text = "b101"
End Try
con.Close()
Return 0
End Function
Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object,
ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles
DataGridView1.CellContentClick
End Sub
txtAmount.Visible = True
98
txtAvailable.Visible = True
txttotal.Visible = True
txtAmount.Enabled = True
txtAvailable.Enabled = True
txttotal.Enabled = True
idgenerate()
txtcustname.Text = ""
txtQuantity.Text = ""
txtAvailable.Text = ""
txttotal.Text = ""
cbProductnm.Text = ""
End If
End Sub
'frmBillGenerator.Show()
End Sub
99
cmd.CommandText = "select * from Product where ProductName='"
& cbProductnm.Text & "' "
cmd.Connection = con
dr = cmd.ExecuteReader
dr.Read()
txtAmount.Text = dr(2)
con.Close()
con.Open()
cmd.CommandText = "select * from Stock1 where ProductName='" &
cbProductnm.Text & "' "
cmd.Connection = con
dr = cmd.ExecuteReader
dr.Read()
txtAvailable.Text = dr(2)
con.Close()
Catch ex As Exception
End Try
End If
End Sub
100
DataGridView1.Rows.Item(rowNum).Cells(1).Value = txtAmount.Text
DataGridView1.Rows.Item(rowNum).Cells(2).Value = txtQuantity.Text
DataGridView1.Rows.Item(rowNum).Cells(3).Value = txttotal.Text
End Sub
Order :-
Imports System.Data.SqlClient
TextBox1.Text = ""
cbprdname.Text = ""
cbVendorname.Text = ""
con.Open()
Try
cmd.CommandText = "select max(ID) from POrder"
cmd.Connection = con
dr = cmd.ExecuteReader
dr.Read()
Dim id As String
id = dr(0).ToString
id = id.Remove(0, 1)
Dim oid As Integer
oid = CInt(id)
oid = oid + 1
id = "o" & oid
TextBox1.Text = id
dr.Close()
Catch ex As Exception
TextBox1.Text = "o101"
End Try
con.Close()
Return 0
End Function
Function ref()
'DataGridView1.Rows.Clear()
'con.Open()
'Try
101
' cmd.CommandText = "select ProductName,Quantity from POrder where
ID='" & cbID.SelectedItem & "'"
' cmd.Connection = con
' dr = cmd.ExecuteReader
' While dr.Read
' DataGridView1.Rows.Add(dr(0).ToString, dr(1).ToString,
dr(2).ToString, dr(3).ToString)
' End While
' dr.Close()
' con.Close()
'Catch ex As Exception
' MsgBox(ex.Message)
'End Try
'Return 0
DataGridView1.Rows.Clear()
con.Open()
Try
102
' con.ConnectionString = "Data
Source=.\sqlexpress;AttachDbFilename=C:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\Data\mydatabase.mdf;Integrated Security=True"
'con.ConnectionString = "Data Source=.\sqlexpress;Initial
Catalog=mydatabase;Integrated Security=True;User Instance=False"
rdneworder.Checked = True
con.Open()
idgenerate()
dr.Close()
con.Close()
End Sub
rdneworder.Checked = True
TextBox1.Enabled = False
TextBox1.Visible = True
cbID.Visible = False
cbprdname.Visible = True
'ComboBox2.Visible = False
txtprodname.Visible = False
txtvendname.Visible = False
cbVendorname.Enabled = True
103
idgenerate()
btnAdd.Enabled = True
btngenerate.Enabled = True
btngenerate.Visible = True
clear()
End If
End Sub
btngenerate.Visible = False
cbID.DropDownStyle = ComboBoxStyle.DropDownList
TextBox1.Visible = False
cbID.Items.Clear()
Try
con.Open()
cmd.CommandText = "select [ID], count([ID]) totalCount from POrder
group by [ID]"
cmd.Connection = con
dr = cmd.ExecuteReader
While dr.Read
cbID.Items.Add(dr(0).ToString)
End While
dr.Close()
con.Close()
clear()
Catch ex As Exception
MsgBox(ex.ToString)
End Try
'cbVendorname.Enabled = True
'cbID.Enabled = True
'TextBox1.Visible = False
'cbID.Visible = True
'btngenerate.Visible = False
'cbID.DropDownStyle = ComboBoxStyle.DropDownList
'TextBox1.Visible = False
'cbID.Items.Clear()
'Try
' con.Open()
' 'cmd.CommandText = "select [ID], count([ID]) totalCount from
[POrder] group by [ID]"
' cmd.CommandText = "select distinct [ID] from [POrder]"
104
' cmd.Connection = con
' dr = cmd.ExecuteReader
End Sub
'Catch ex As Exception
' MsgBox(ex.Message)
'End Try
cbID.Enabled = False
cbVendorname.Enabled = False
If rdneworder.Checked = True Then
Dim rowNum As Integer = DataGridView1.Rows.Add()
DataGridView1.Rows.Item(rowNum).Cells(0).Value = cbprdname.Text
DataGridView1.Rows.Item(rowNum).Cells(1).Value = txtquantity.Text
DataGridView1.Rows.Item(rowNum).Cells(2).Value = txtAvailable.Text
End If
End Sub
105
For x = 0 To DataGridView1.Rows.Count - 1
'pid = DataGridView1.Rows(x).Cells(0).Value
pname = DataGridView1.Rows(x).Cells(0).Value
qty = DataGridView1.Rows(x).Cells(1).Value
availb = DataGridView1.Rows(x).Cells(2).Value
Next
str = "insert into POrder values('" & TextBox1.Text & "','" &
cbVendorname.Text & "','" & cbprdname.Text & "','" & txtAvailable.Text & "','"
& txtquantity.Text & "') "
con.Open()
cmd.CommandText = str
cmd.Connection = con
cmd.ExecuteNonQuery()
cmd.Dispose()
con.Close()
' Next
MessageBox.Show("Record Inserted In System")
End Sub
'cbVendorname.Text = dr(1)
'txtproductidd.Text = dr(3)
'cbprdname.Text = dr(4)
con.Close()
106
Catch ex As Exception
End Try
End If
dr.Close()
con.Close()
End Sub
cbID.Items.Remove(cbID.SelectedItem)
Catch ex As Exception
MessageBox.Show("No Such Record Found")
End Try
End If
ref()
End Sub
End Sub
107
avail = availb + qty
cmd.CommandText = "update Stock1 set Quantity='" & avail &
"'where [ProductName]='" & pname & "' "
cmd.Connection = con
cmd.ExecuteNonQuery()
con.Close()
'MessageBox.Show("Order Received")
Next
MessageBox.Show("Order Received")
ref()
End If
'' 'Next
'' ref()
''End If
End Sub
108
Try
con.Open()
cmd.CommandText = "select * from POrder where [ID]='" &
cbID.Text & "' "
cmd.Connection = con
dr = cmd.ExecuteReader
dr.Read()
cbID.Text = dr(0)
cbVendorname.Text = dr(1).ToString()
'cbprdname.Text = dr(2).ToString()
'txtquantity.Text = dr(3)
'txtAvailable.Text = dr(4)
'txtcmp.Text = dr(3)
'dtp1.Text = dr(6)
dr.Close()
con.Close()
Catch ex As Exception
MessageBox.Show(ex.Message.ToString())
End Try
End If
DataGridView1.Rows.Clear()
con.Open()
Try
109
' dr.Close()
' con.Close()
' Catch ex As Exception
' MessageBox.Show(ex.Message)
' End Try
' con.Close()
' Try
' con.Open()
' cmd.CommandText = "select Quantity from Stock1 where
[ProductName]='" & cbprdname.Text.Trim() & "' "
' cmd.Connection = con
' dr = cmd.ExecuteReader
' dr.Read()
' txtAvailable.Text = dr(0)
' 'txtcmp.Text = dr(3)
' 'dtp1.Text = dr(6)
' dr.Close()
' con.Close()
' Catch ex As Exception
' MessageBox.Show(ex.Message)
' End Try
' con.Close()
'End If
'dr.Close()
'con.Close()
'DataGridView1.Rows.Clear()
End Sub
cmd.CommandText = "update Stock1 set Quantity=" & avail & " where
[ProductName]='" & pname & "' "
cmd.Connection = con
cmd.ExecuteNonQuery()
con.Close()
MessageBox.Show("Order Received")
Catch ex As Exception
MessageBox.Show(ex.Message)
con.Close()
End Try
End Sub
End Class
110
Report :-
Imports System.Data.SqlClient
Public Class Report
Dim con As New SqlConnection
Dim cmd As New SqlCommand
Dim da As New SqlDataAdapter
Dim ds As New mydatabaseDataSet7
Dim dr As SqlDataReader
Private Sub btnbill_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnbill.Click
con.Close()
Select Case ComboBox1.SelectedItem
Case "Stock"
Dim rpt As New RStock
con.Open()
Try
cmd.CommandText = "select * from Stock1"
cmd.Connection = con
cmd.CommandType = CommandType.Text
da.SelectCommand = cmd
da.Fill(ds, "Stock1")
rpt.SetDataSource(ds)
CrystalReportViewer1.ReportSource = rpt
con.Close()
Catch Excep As Exception
MessageBox.Show(Excep.Message, "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
Case "SaleBill"
'PrintBill.Show()
Dim rpt As New RSaleBill
con.Open()
Try
cmd.CommandText = "select * from SaleBill"
cmd.Connection = con
cmd.CommandType = CommandType.Text
da.SelectCommand = cmd
da.Fill(ds, "SaleBill")
rpt.SetDataSource(ds)
CrystalReportViewer1.ReportSource = rpt
con.Close()
Catch Excep As Exception
MessageBox.Show(Excep.Message, "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
Case "POrder"
'PrintBill.Show()
Dim rpt As New RPOrder
con.Open()
Try
cmd.CommandText = "select * from POrder"
cmd.Connection = con
111
cmd.CommandType = CommandType.Text
da.SelectCommand = cmd
da.Fill(ds, "POrder")
rpt.SetDataSource(ds)
CrystalReportViewer1.ReportSource = rpt
con.Close()
Catch Excep As Exception
MessageBox.Show(Excep.Message, "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
Case "Customer"
'PrintBill.Show()
Dim rpt As New RCustomer
con.Open()
Try
cmd.CommandText = "select * from Customer"
cmd.Connection = con
cmd.CommandType = CommandType.Text
da.SelectCommand = cmd
da.Fill(ds, "Customer")
rpt.SetDataSource(ds)
CrystalReportViewer1.ReportSource = rpt
con.Close()
Catch Excep As Exception
MessageBox.Show(Excep.Message, "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
Case "Vendor"
'PrintBill.Show()
Dim rpt As New RVendor
con.Open()
Try
cmd.CommandText = "select * from Vendor"
cmd.Connection = con
cmd.CommandType = CommandType.Text
da.SelectCommand = cmd
da.Fill(ds, "Vendor")
rpt.SetDataSource(ds)
CrystalReportViewer1.ReportSource = rpt
con.Close()
Catch Excep As Exception
MessageBox.Show(Excep.Message, "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
Case "Employee"
'PrintBill.Show()
Dim rpt As New REmployee
con.Open()
Try
cmd.CommandText = "select * from Employee"
cmd.Connection = con
cmd.CommandType = CommandType.Text
da.SelectCommand = cmd
da.Fill(ds, "Employee")
rpt.SetDataSource(ds)
CrystalReportViewer1.ReportSource = rpt
con.Close()
112
Catch Excep As Exception
MessageBox.Show(Excep.Message, "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
Case "Product"
'PrintBill.Show()
Dim rpt As New RProduct
con.Open()
Try
cmd.CommandText = "select * from Product"
cmd.Connection = con
cmd.CommandType = CommandType.Text
da.SelectCommand = cmd
da.Fill(ds, "Product")
rpt.SetDataSource(ds)
CrystalReportViewer1.ReportSource = rpt
con.Close()
Catch Excep As Exception
MessageBox.Show(Excep.Message, "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End Select
End Sub
SCREEN LAYOUT:-
Login Form:
113
MDI Form:
Customer Form:
114
Bill :-
Order:-
115
Report
Report of Pet Stock
116
Reference Bibliography
Referred Websites
https://www.thenewboston.com
http://www.msdn.microsoft.com
Hardware/Software Requirement
HARDWARE REQUIREMENT
RAM : 1 GB &Above.
117
MONITOR : Color
SOFTWARE REQUIRMENT
118