Академический Документы
Профессиональный Документы
Культура Документы
Sr.No.
1
5
6
7
Title
Preliminary Investigation
Organizational Overview
Description Of System
Limitations Of Present System
Proposed System & its Advantage
Feasibility Study
Stakeholders
Gantt Chart
System Analysis
Fact Findings
Event Table
Use Case Diagram
Entity Relationship Diagram
Activity Diagram
Class Diagram
Object Diagram
Sequence Diagram
Collaboration Diagram
State Diagram
System Design
Converting ERD to Tables
Relationship Diagram
Component Diagram
Package Diagram
Deployment Diagram
System Flow Chart
Structure Chart
System Coding
Menu Tree
List of Tables with Attributes & Constraints
Program Description with naming Conventions
Program Listing
Validations
Test Cases, Test Data, Test Results
Screen Layouts & Report Layouts
System Implementation & Uploading
Future Enhancement
References & Bibliography
Page
No.
6
7
8
9
10
12
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
41
114
116
120
Chapter 1
Preliminary Investigation
Organizational Overview
Organizational Chart
Mobile Store
Management
System
Employee
Supplier
Customer
Description of System
Preparing report is very time consuming and tedious task. For searching
of single record, whole register is to be searched which is very time consuming
task.
Proposed System
Feasibility Of Study
1. Software Specification:Software requirements for this system are as listed follows:
FRONTEND
BACKEND
MS Access-2007
OPERATING SYSTEM
Windows XP
FOR DOCUMENTATION :
Microsoft Office
2. Hardware Specifications
Minimum hardware requirements for this System are listed below:
Processor
Pentium-4
RAM
256MB.
HARD DISK
80GB.
CD-Rom Driver
Any.
10
Stakeholders
Stakeholders are anyone who has an interest in the project. Project
stakeholders are individuals and organizations that are actively involved in the
project, or whose interests may be affected as a result of project execution or
project completion. They may also exert influence over the projects objectives
and outcomes. The project management team must identify the stakeholders,
determine their requirements and expectations, and, to the extent possible,
manage their influence in relation to the requirements to ensure a successful
project.
The following are examples of project stakeholders:
1. Project Developers :Project Developers is one who develops software for customer. In
my project I am the first stakeholder i.e. Project Developer.
2. Project customer :Project Customer is one who pays for the developed software.
3. Project user Group :Project User group are those people who use the
software on daily basis for the Project Customer.
4. Project Testers
Project Testers are those who test the software.
11
Gantt Chart
Phase
Prelimina
ry
investiga
tion
Project
Finalizati
on
Investiga
tion of
system
requirem
ent
System
Analysis
System
Design
Start
date
Compl
etion
date
10/06/2
011
17/06/20
11
18/06/2
011
25/06/20
11
27/06/2
011
14/8/201
1
15/8/20
11
28/9/201
1
29/09/2
011
15/10/20
11
16/10/2
011
30/10/20
11
31/10/2
011
15/11/20
11
17/11/2
011
31/12/20
11
5/12/20
11
12/12/20
11
13/12/2
011
22/12/20
11
25/12/2
011
29/12/20
11
30/12/2
011
05/1/201
2
8/1/201
2
12/1/201
2
Coding
Interface
Coding
Database
Connecti
vity
Validatio
n Coding
Report
Coding
Impleme
ntation
Develope
r Testing
Client
Testing
User
Testing
Project
Delivery
Project
Report
Submissi
on
Project
Report
Hard
Copy
Checking
Project
Submissi
on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
WEEK
12
13/1/20
12
18/1/201
2
Chapter 2
System Analysis
13
Fact Findings
Introduction
The Current System is the manual one, hence is not speedy, accurate,
efficient as well as time consuming. An essential part of the system analysis,
which enables the developer to understand & the system correctly. It is
undertaken to obtain details of the system. To understand the physical flow of
the information through the current system. Collect various information through
various fact finding techniques. Identify the procedural difficulties experienced
by the user. Study the bottlenecks find out the redundant work being performed
in the system.
Fact Finding Techniques Employed
1. Interviews
Information was obtained from the employees at the organization by
interviewing them at the location and time convention both.
2. Document Searching
An extensive study of existing document an official correspondence
was done to understand the present working status of organization.
14
15
SR
NO
EVENT
TRIGGER
SOURCE
ACTIVITY
RESPONSE
DESTINATION
Enter new
customer
Add
Admin
Create new
record
New record
created
System
Customer
change in
personal
details
Update
Customer
Update
customer
details
Details
updated
Admin
Gives an
Order
New order
Customer
Create new
Order
New order
created
Employee
Enter new
supplier
Add
supplier
Admin
Add new
supplier
record
New record
created
System
Supplier
change in
details
Update
Supplier
Update
supplier
details
Details
updated
Admin
Owner needs
supplier
details
Search
Admin
Search
supplier
details
Display
supplier
details
System
Enter new
employee
Add
Admin
Create new
employee
record
New record
created
System
Stock entry
Add
Admin
Generating
receipt
Get receipt
Customer
Event Table
16
17
Paying Bill
Order
fulfillment
Customer
Paying bill
Get payment
Admin
10
Generating
reports
New report
Admin
Generating
receipt
Get receipt
System
11
Updating
records
Check
previous
records
Admin
Updating
records
Record is
update
System
12
Delete record
Delete
admin
Check
records
Delete
record
System
18
Supplier:Create a new
supplier
Update supplier
details
Delete supplier
details
Supplier
Admin
Lookup for
supplier
Display supplier
details
Search supplier
Product:Create a new
product
Update product
details
Lookup for
product details
Delete product
details
Admin
Display product
details
19
Stock:-
Create new
stock details
Update stock
details
Lookup for
stock details
Delete stock
details
Admin
Display stock
details
Customer:-
Create a new
customer details
Update
customer details
Delete customer
details
Customer
Admin
Display
customer details
Search customer
20
Lookup for
customer
details
Order:-
Places an
Order
Create a new
order
Lookup for
order details
Update order
record
Customer
Delete order
record
Admin
Bill:-
Places new
Bill
Create a new
Bill
Display Bill
Customer
Delete Bill
21
Admin
Entity-Relationship Diagram
Purchas Order
Customer
Bill
Nokia Mobile
Shop System
Bill
Employee
Product
Salary
22
Supplier
Activity Diagram
Customer
Check availability
No
Place purchase order
Yes
Enter product information
Supplier
Product
Add product
Enter order
Give payment
Calculate total
Generate Bill
23
Class Diagram
Customer
Supplier
+Cust_id:Number
+Cust_name:Text
+Cust_add:Text
+Cust_ph:Number
+Cust_email:Text
+Supp_no:Number
+Supp_name:Text
+Supp_add:Text
+Suppt_ph:Number
+Insert ()
+Update ()
+Delete ()
+New ()
+Insert ()
+Update ()
+Delete ()
+New ()
1..*
1..*
1..*
1..*
Employee
Bill
+Emp_id:Number
+Emp_name:Text
+Emp_add:Text
+Emp_ph:Number
+Bill_no:Number
+Order_no:Number
+Cust_no:Number
+Prod_name:Text
+Total:Number
+Insert ()
+Update ()
+Delete ()
+New ()
+Insert ()
+Update ()
+Delete ()
+New ()
1..*
1..*
1..*
Stock
+Prod_id:Number
+Prod_name:Text
+Prod_qty:Number
1
Order
+Order_no:Number
+Date:Date/Time
+Cust_name:Text
+Prod_name:Text
+Total:Number
+Insert ()
+Update ()
+Delete ()
+New ()
+Insert()
+Update()
+Delete()
+New()
Product
+Prod_no:Number
+Prod_name:Text
+Prod_info:Text
1..*
+MRP:Number
+Insert ()
+Update ()
+Delete ()
+New ()
24
1..*
Object Diagram
: Customer
: Supplier
+Cust_id:Number
+Cust_name:Text
+Cust_add:Text
+Cust_ph:Number
+Cust_email:Text
+Supp_no:Number
+Supp_name:Text
+Supp_add:Text
+Suppt_ph:Number
+Insert ()
+Update ()
+Delete ()
+New ()
+Insert ()
+Update ()
+Delete ()
+New ()
1..*
1..*
1..*
1..*
: Employee
: Bill
+Emp_id:Number
+Emp_name:Text
+Emp_add:Text
+Emp_ph:Number
+Bill_no:Number
+Order_no:Number
+Cust_no:Number
+Prod_name:Text
+Total:Number
+Insert ()
+Update ()
+Delete ()
+New ()
+Insert ()
+Update ()
+Delete ()
+New ()
1..*
1..*
1..*
: Stock
+Prod_id:Number
+Prod_name:Text
+Prod_qty:Number
1
: Order
+Order_no:Number
+Date:Date/Time
+Cust_name:Text
:Employee
:Order
+Prod_name:Text
+Order_no:Number
+Total:Number
+Emp_id:Number
+Date:Date/Time
+Emp_name:Text
+Cust_name:Text
+Insert
()
+Emp_add:Text
+Prod_name:Text
+Update
()
+Emp_ph:Number
+Total:Number
+Delete ()
+New ()
+Insert ()
+Update ()
+Delete ()
+New ()
+Insert()
+Update()
+Delete()
+New()
: Product
+Prod_no:Number
+Prod_name:Text
+Prod_info:Text
1..* :Product
:Bill
+MRP:Number
+Bill_no:Number
+Prod_no:Number
+Order_no:Number
+Prod_name:Text
+Cust_no:Number
+Insert
()
+Prod_info:Text
+Prod_name:Text
+Update
()
+MRP:Number
+Total:Number
+Delete ()
+New ()
+Insert
25()
+Update ()
+Delete ()
+New ()
1..*
:Stock
+Prod_id:Number
+Prod_name:Text
+Prod_qty:Number
+Insert()
+Update()
+Delete()
+New()
26
Sequence Diagram
Supplier:-
Create Supplier:
System
New supplier created
Admin
Update Supplier:
Supplier
System
Admin
Delete Supplier:
System
Delete supplier
Admin
27
Product:-
Create Product:
System
New product created
Admin
Update Product:
System
Admin
Delete Product:
Admin
28
System
Stock:-
Create Stock:
System
New stock created
Admin
Update Stock:
System
Admin
Delete Stock:
System
Delete stock
Admin
29
Customer:-
Create Customer:
Create new Customer information
System
New Customer created
Customer
Admin
Update Customer:
Customer
System
Admin
Delete Customer:
System
Delete Customer
Admin
30
Order:-
Create Order:
Create new Order information
System
New Order created
Customer
Admin
Update Order:
Customer
System
Admin
Delete Order:
System
Delete Order
Admin
31
Bill:-
Create Bill:
System
New Bill created
Admin
Delete Delete:
System
Delete Bill
Admin
32
Employee:-
Create Employee:
System
New Employee created
Admin
Update Employee:
System
Employee Admin
Delete Employee:
System
Delete Employee
Admin
33
Collaboration Diagram
Customer
1. Customer enquiry
2. Get information
5.
Place order
6. Get order
8.
Pay bill
7. Order fulfillment
9. Generate receipt
3. Customer
Employee
Registration
14. Update records
4. Check details
11. Order
13. Payment
Supplier
34
State Diagram
Login
Idle
Customer enter
Customer enquiry
Order for mobile
Mobile not available
Check availability of
mobile
Mobile available
End
Check mobile details
Check details
Pay bill
Paying bill
Generate receipt
Generating receipt
35
Chapter 3
System Design
36
Sr.No
TABLE NAME
PURPOSE
Cust_info
Employee
Supplier
Order
Salary
37
Supplier.vb
Stock.vb
Order.vb
Nokia Mobile
Shop
System
Bill.vb
Emp.vb
Customer.vb
Order.vb
Salary.vb
Component Diagram
38
39
Package Diagram
Form
Availability
Other Form
Cancel
Emp form
Supplier form
Product form
Order form
Bill form
Processing
And
Printing
40
Deployment Diagram
PC <<device>>
XP
Database
Server
<<device>>
Cust.vb
Mobdetails.vb
Order.vb
Transaction.vb
Bill.vb
Emp.vb
Emp.vb
Printer
41
System flow
Customer
Price Mobile
Maintain
customer
details
Mobile details
Purchase order
Purchase order
details
Mobile bill
Generate
mobile bill
Customer
bill report
Nokia
Mobile store
management
Paid
Employee
Supplier
42
Paid details
Maintain
employee
details
Transaction of
mobile
Supplier
bill report
Structure chart
Maintain
customer
details
Get
Customer
details
Creation of
order
Product
details
Save
customer
details
Checking of
product
Retrieve
mobile
details
Customer
details
Giving
purchase
order
Order
fulfillment
Get mobile
details
Bill
generation
Report
generation
43
Bill details
Chapter 4
System Coding
44
Menu Tree
Customer information
Main
Mobile Details
Customer
Purchase order
Customer information
MDI Form
Employee
Mobile Details
Transaction
Transaction
Mobile Bill
Reports
Supplier Report
Utility
Calculator
About Us
Help
Exit
45
Table List
1.Table name:-Cust_info
Sr.N
o.1
Field Name
Datatype
Constraints
Size
Integer
Varchar
Varchar
Primary key
2
3
c_no
cname
cadd
4
4
gender
contactno
Varchar
Bigint
10
Varchar
25
10
10
Description
Stores the customer code
Stores the customer name
Stores the customer address
2.Table name:-Employee
Sr.
No.
1
2
Field Name
Datatype Constraints
E_id
E_fname
Integer
Varchar
Size
Primary key
15
Description
Stores the employee code
Stores the employee name
E_mname
Varchar
15
E_lname
varchar
15
E_add
Varchar
20
Ph_no
Bigint
46
3.Table name:-Supplier
Sr.
No.
1
Field Name
Datatype Constraints
Size
o_no
Integer
2
3
S_name
o_model
Varchar
Varchar
4
5
o_qty
o_color
Integer
varchar
o_prize
Bigint
o_totprize
Bigint
o_tax
Bigint
o_tot
bigint
Primary key
Description
Stores the company code
20
20
20
4. Table name:-Order
Sr.
No.
1
2
3
Field Name
c_no
c_name
c_add
Datatype Constraints
Integer Foreign key
Varchar
Varchar
Size
15
15
Description
Stores the customer code
Stores the customer name
Stores the customer address
contactno
Bigint
20
varchar
o_no
Integer
p_no
integer
P_name
Varchar
P_q ty
Integer
10
P_mrp
integer
11
P_tot
bigint
15
47
8. Table name:-Salary
Sr.
No.
1
2
Field Name
Datatype Constraints
Size
E_id
E_fname
Integer
Varchar
e_mname
varchar
15
e_lname
Varchar
15
e_add
varchar
20
e_contact
Bigint
msalary
Bigint
advance
Bigint
primary
15
48
Description
Stores the employee id
Stores the employee name
Program List
NO
FORM
NAME
PURPOSE
Loding.frm
Loginform.frm
MdIForm.frm
Cust_info.frm
Emp.frm
Supplier.frm
Salary.frm
49
Report List
NO.
REPORT NAME
PURPOSE
Crystalreport1.rpt
Crystalreport2.rpt
50
Program Description
51
52
Order.Show()
End Sub
Private Sub AboutToolStripMenuItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
AboutToolStripMenuItem.Click
about.Show()
End Sub
Private Sub EmployeeDetailsToolStripMenuItem_Click(ByVal
sender As System.Object, ByVal e As System.EventArgs) Handles
EmployeeDetailsToolStripMenuItem.Click
emp.Show()
End Sub
Private Sub ExitToolStripMenuItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
ExitToolStripMenuItem.Click
Me.Close()
End Sub
Private Sub MobileBillToolStripMenuItem1_Click(ByVal
sender As System.Object, ByVal e As System.EventArgs) Handles
MobileBillToolStripMenuItem1.Click
Report_bill.Show()
End Sub
Private Sub CalculatorToolStripMenuItem_Click(ByVal sender
As System.Object, ByVal e As System.EventArgs) Handles
CalculatorToolStripMenuItem.Click
Process.Start("C:\WINDOWS\system32\calc.exe")
End Sub
Private Sub SalaryToolStripMenuItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
SalaryToolStripMenuItem.Click
salary.Show()
End Sub
Private Sub ReceivedMobileToolStripMenuItem_Click(ByVal
sender As System.Object, ByVal e As System.EventArgs) Handles
ReceivedMobileToolStripMenuItem.Click
supplier.Show()
End Sub
Private Sub ToolStripMenuItem1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
ToolStripMenuItem1.Click
supplier_report.Show() End Sub
54
Code:Imports System.Data.OleDb
Public Class Cust_Info
Dim cmd As OleDbCommand
Dim cn As New OleDbConnection
Dim ad As New OleDbDataAdapter
Dim SlotAdapter As New OleDb.OleDbDataAdapter
Dim ds As New DataSet
Dim dr As String
Dim dt As String
Dim i, f, a As Integer
Private Sub Cust_Info_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the
'_Database1_mdbDataSet14.Cust_info' table. You can move, or
remove it, as needed.
Me.Cust_infoTableAdapter1.Fill(Me._Database1_mdbDataSet14.Cust
_info)
55
cn = New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=|DataDirectory|\Database1.mdb.accdb")
ad = New OleDbDataAdapter("select * from Cust_info",
cn)
ds = New DataSet()
ad.Fill(ds)
End Sub
Private Sub exitbtn_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles exitbtn.Click
Dim a As Integer
Dim OleDbYesNo As Integer
Dim OleDbQuestion As Integer
Dim OleDbYes As Integer
If a = OleDbYes Then
a = MsgBox(" you want to exit the Form?",
OleDbYesNo + OleDbQuestion, "confirm exit")
Me.Close()
End If
End Sub
Private Sub TextBox5_LostFocus(ByVal sender As Object, ByVal e
As System.EventArgs) Handles TextBox5.LostFocus
Dim bool As Boolean
Dim email As String = TextBox5.Text.Trim
bool = ((email.Contains("@") And email.Contains("."))
And (email.IndexOf("@") < email.IndexOf(".")) _
And (email.IndexOf("@") <> email.IndexOf(".")
- 1))
If bool = False Then
MsgBox("Enter Valid Email Address.",
MsgBoxStyle.Exclamation, "Invalid Email Address")
TextBox5.Text = ""
End If
End Sub
Private Sub TextBox2_KeyPress(ByVal sender As Object, ByVal e
As System.Windows.Forms.KeyPressEventArgs) Handles
TextBox2.KeyPress
Dim c As Char
c = e.KeyChar
If Not (Char.IsLetter(c) Or Char.IsControl(c)) Then
e.Handled = True
MsgBox("enter only character")
End If
56
End Sub
TextBox4.Text = ""
TextBox5.Text = ""
End Sub
Private Sub Button3_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button3.Click
cn.Close()
cn.Open()
ds.Clear()
If TextBox1.Text = "" Then
MsgBox("Please Enter Cust_No")
ElseIf TextBox1.Text = "" Then
Else
ad = New OleDbDataAdapter("select * from Cust_info
where Cust_No=" & TextBox1.Text & "", cn)
ad.Fill(ds)
DataGridView1.DataSource = ds.Tables(0)
cn.Close()
End If
Dim cmd1 As New OleDbCommand
cn.Close()
cn.Open()
cmd1.Connection = cn
cmd1.CommandText = "select count(*) from Cust_info"
Dim m As Integer
m = cmd1.ExecuteScalar
a = Val(TextBox1.Text)
If a > m Then
MsgBox("No Record")
End If
End Sub
Private Sub Button2_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button2.Click
cn.Close()
cn.Open()
If (f = 0) Then
' dt = TextBox1.Text
' MsgBox(dt)
cmd = New OleDbCommand("Delete From Cust_info
where Cust_No=" & TextBox1.Text & "", cn)
cmd.ExecuteNonQuery()
58
End If
MsgBox("Record Deleted Successfully.")
End Sub
Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
cn.Close()
cn.Open()
If (f = 0) Then
If TextBox1.Text = "" Then
ElseIf TextBox2.Text = "" Then
ElseIf TextBox3.Text = "" Then
ElseIf ComboBox1.Text = "" Then
ElseIf TextBox4.Text = "" Then
ElseIf TextBox5.Text = "" Then
MsgBox("Please Enter Record")
Else
a = MsgBox("Are you want to save new
Customer?", vbYesNo + vbQuestion, "SAVE")
If a = vbYes Then
cmd = New OleDbCommand("insert into
Cust_info values('" & TextBox1.Text & "','" & TextBox2.Text &
"','" & TextBox3.Text & "','" & ComboBox1.Text & "','" &
TextBox4.Text & "','" & TextBox5.Text & "')", cn)
cmd.ExecuteNonQuery()
MsgBox("Record Save Successfully")
End If
End If
End If
End Sub
Sub add(ByVal i As Integer)
TextBox1.Text = ds.Tables(0).Rows(i).Item(0).ToString
TextBox2.Text = ds.Tables(0).Rows(i).Item(1).ToString
TextBox3.Text = ds.Tables(0).Rows(i).Item(2).ToString
ComboBox1.Text = ds.Tables(0).Rows(i).Item(3).ToString
TextBox4.Text = ds.Tables(0).Rows(i).Item(4).ToString
TextBox5.Text = ds.Tables(0).Rows(i).Item(5).ToString
End Sub
Private Sub Button5_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button5.Click
59
cn.Close()
cn.Open()
If (f = 0) Then
' dt = TextBox1.Text
' MsgBox(dt)
cmd = New OleDbCommand("Update Cust_info set Cust
No= ' " & TextBox1.Text & " ',Name= ' " & TextBox2.Text & "
' ,Address= ' " & TextBox3.Text & " ',Gender= ' " &
ComboBox1.Text & " ',Contact No=' " & TextBox5.Text & " ',Email='" & TextBox6.Text & " 'where Cust_No=" & TextBox1.Text &
"", cn)
cmd.ExecuteNonQuery()
End If
MsgBox("Record Updated Successfully.")
End Sub
End Class
60
Code:Imports System.Data.OleDb
Public Class emp
Dim
Dim
Dim
Dim
Dim
Dim
Dim
cmd As OleDbCommand
cn As New OleDbConnection
ad As New OleDbDataAdapter
ds As New DataSet
dr As String
dt As String
i, f, a As Integer
61
End Sub
Private Sub Btn_e_Save_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Btn_e_Save.Click
cn.Close()
cn.Open()
If (f = 0) Then
If TextBox1.Text = "" Then
ElseIf TextBox2.Text = "" Then
ElseIf TextBox3.Text = "" Then
ElseIf TextBox4.Text = "" Then
ElseIf TextBox5.Text = "" Then
ElseIf ComboBox1.Text = "" Then
ElseIf TextBox6.Text = "" Then
ElseIf TextBox7.Text = "" Then
MsgBox("Please Enter Record")
Else
a = MsgBox("Are you want to save new
Employee?", vbYesNo + vbQuestion, "SAVE")
If a = vbYes Then
cmd = New OleDbCommand("insert into
emp_details values('" & TextBox1.Text & "','" & TextBox2.Text
& "','" & TextBox3.Text & "','" & TextBox4.Text & "','" &
TextBox5.Text & "','" & ComboBox1.Text & "','" & TextBox6.Text
& "','" & TextBox7.Text & "' )", cn)
cmd.ExecuteNonQuery()
MsgBox("Record Save Successfully")
End If
End If
End If
End Sub
Private Sub Btn_e_Add_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Btn_e_Add.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
ComboBox1.SelectedIndex = -1
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
63
End Sub
Private Sub Btn_e_Delete_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Btn_e_Delete.Click
cn.Close()
cn.Open()
If (f = 0) Then
If TextBox1.Text = "" Then
MsgBox("Please Enter Cust_No")
ElseIf TextBox1.Text = "" Then
Else
a = MsgBox("Are you want to Delete Employee?",
vbYesNo + vbQuestion, "Delete")
If a = vbYes Then
cmd = New OleDbCommand("Delete From
emp_details where Emp_ID=" & TextBox1.Text & "", cn)
cmd.ExecuteNonQuery()
MsgBox("Record Deleted Successfully.")
End If
End If
End If
End Sub
Private Sub Btn_e_Update_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Btn_e_Update.Click
cn.Close()
cn.Open()
a = "select * from emp_details where emp_ID = '" &
TextBox1.Text & "'"
cmd = New OleDbCommand("Update emp_details set Name= '
" & TextBox2.Text & " ',Address= ' " & TextBox3.Text & "
',Contact_No= ' " & TextBox4.Text & " ',Age=' " &
TextBox5.Text & " ', Gender= ' " & ComboBox1.Text & " '
,J_Date= ' " & TextBox6.Text & " ' ,Total_Sal= ' " &
TextBox7.Text & "' where emp_ID='" & TextBox1.Text & "')", cn)
cmd.ExecuteNonQuery()
MsgBox("Record Updated Successfully.")
End Sub
64
If a = OleDbYes Then
a = MsgBox(" you want to exit the Form?",
OleDbYesNo + OleDbQuestion, "confirm exit")
Me.Close()
End If
End Sub
Private Sub Btn_e_Search_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Btn_e_Search.Click
cn.Close()
cn.Open()
ds.Clear()
If TextBox1.Text = "" Then
MsgBox("Please Enter emp_details")
ElseIf TextBox1.Text = "" Then
Else
ad = New OleDbDataAdapter("select * from
emp_details where emp_ID=" & TextBox1.Text & "", cn)
ad.Fill(ds)
DataGridView1.DataSource = ds.Tables(0)
cn.Close()
End If
Dim cmd1 As New OleDbCommand
cn.Close()
cn.Open()
cmd1.Connection = cn
cmd1.CommandText = "select count(*) from emp_details"
Dim m As Integer
m = cmd1.ExecuteScalar
a = Val(TextBox1.Text)
If a > m Then
MsgBox("No Record")
End If
End Sub
End Class
66
Code:Imports System.Data.OleDb
Public Class supplier
Dim cmd As OleDbCommand
Dim cn As New OleDbConnection
Dim ad As New OleDbDataAdapter
Dim SlotAdapter As New OleDb.OleDbDataAdapter
Dim ds As New DataSet
Dim dr As String
Dim dt As String
Dim i, f, a As Integer
Private Sub supplier_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the
'_Database1_mdbDataSet12.supplier' table. You can move, or
remove it, as needed.
Me.SupplierTableAdapter1.Fill(Me._Database1_mdbDataSet12.suppl
ier)
67
cn = New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=|DataDirectory|\Database1.mdb.accdb")
ad = New OleDbDataAdapter("select * from Supplier",
cn)
ds = New DataSet()
ad.Fill(ds)
End Sub
Sub add(ByVal i As Integer)
Txt_bo_Ono.Text =
ds.Tables(0).Rows(i).Item(0).ToString
cmb_cm_sname.Text =
ds.Tables(0).Rows(i).Item(1).ToString
cmb_cm_model.Text =
ds.Tables(0).Rows(i).Item(2).ToString
Txt_bo_Qty.Text =
ds.Tables(0).Rows(i).Item(3).ToString
cmb_cm_color.Text =
ds.Tables(0).Rows(i).Item(4).ToString
Txt_bo_prize.Text =
ds.Tables(0).Rows(i).Item(5).ToString
txt_bo_total.Text =
ds.Tables(0).Rows(i).Item(6).ToString
Txt_bo_tax.Text =
ds.Tables(0).Rows(i).Item(7).ToString
txt_bo_totalprize.Text =
ds.Tables(0).Rows(i).Item(8).ToString
End Sub
Private Sub cal_btn_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles cal_btn.Click
txt_bo_total.Text = Txt_bo_prize.Text *
Txt_bo_Qty.Text
Txt_bo_tax.Text = txt_bo_total.Text / 100
txt_bo_totalprize.Text = Val(txt_bo_total.Text) +
Val(Txt_bo_tax.Text)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
supplier_bill.Show()
End Sub
68
69
End If
End If
End If
End Sub
Private Sub Btn_e_Update_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Btn_e_Update.Click
End Sub
Private Sub Btn_e_First_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Btn_e_First.Click
i = 0
Call add(i)
MsgBox("This is first Record")
End Sub
Private Sub Btn_e_Pre_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Btn_e_Pre.Click
i = i - 1
If (i >= 0) Then
Call add(i)
Else
MsgBox("this is previous record")
End If
End Sub
Private Sub Btn_e_Last_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Btn_e_Last.Click
i = ds.Tables(0).Rows.Count - 1
Call add(i)
MsgBox("This is last Record")
End Sub
Private Sub Btn_e_Next_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Btn_e_Next.Click
i = i + 1
If (i < ds.Tables(0).Rows.Count) Then
Call add(i)
Else
71
72
Code:Imports System.Data.OleDb
Public Class Order
Dim cmd As OleDbCommand
Dim cn As New OleDbConnection
Dim ad As New OleDbDataAdapter
Dim ds As New DataSet
Dim dr As String
Dim dt As String
Dim i, f, a As Integer
Private Sub purchase_order_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
'TODO: This line of code loads data into the
'_Database1_mdbDataSet15.Order' table. You can move, or remove
it, as needed.
Me.OrderTableAdapter.Fill(Me._Database1_mdbDataSet15.Order)
cn = New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=|DataDirectory|\Database1.mdb.accdb")
ad = New OleDbDataAdapter("select * from Order", cn)
73
ds = New DataSet()
End Sub
Sub add(ByVal i As Integer)
TextBox1.Text = ds.Tables(0).Rows(i).Item(0).ToString
TextBox2.Text = ds.Tables(0).Rows(i).Item(1).ToString
TextBox3.Text = ds.Tables(0).Rows(i).Item(2).ToString
TextBox4.Text = ds.Tables(0).Rows(i).Item(3).ToString
TextBox5.Text = ds.Tables(0).Rows(i).Item(4).ToString
cmb_pr_id.Text = ds.Tables(0).Rows(i).Item(6).ToString
txt_pr_name.Text =
ds.Tables(0).Rows(i).Item(7).ToString
TextBox6.Text = ds.Tables(0).Rows(i).Item(8).ToString
txt_mrp.Text = ds.Tables(0).Rows(i).Item(9).ToString
TextBox7.Text = ds.Tables(0).Rows(i).Item(10).ToString
End Sub
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal
e As System.Windows.Forms.KeyPressEventArgs) Handles
TextBox1.KeyPress
Dim c As Char
c = e.KeyChar
If Not (Char.IsLetter(c) Or Char.IsControl(c)) Then
e.Handled = True
MsgBox("enter only character")
End If
End Sub
Private Sub TextBox2_KeyPress(ByVal sender As Object, ByVal
e As System.Windows.Forms.KeyPressEventArgs) Handles
TextBox2.KeyPress
Dim c As Char
c = e.KeyChar
If Not (Char.IsLetter(c) Or Char.IsControl(c)) Then
e.Handled = True
MsgBox("enter only character")
End If
End Sub
Private Sub TextBox4_LostFocus(ByVal sender As Object, ByVal e
As System.EventArgs) Handles TextBox4.LostFocus
Dim bool As Boolean
Dim email As String = TextBox4.Text.Trim
bool = ((email.Contains("@") And email.Contains("."))
And (email.IndexOf("@") < email.IndexOf(".")) _
And (email.IndexOf("@") <> email.IndexOf(".")
- 1))
If bool = False Then
74
cmd.ExecuteNonQuery()
MsgBox("Record Saved Successfully.")
End If
End If
End If
End Sub
Private Sub TextBox2_TextChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
TextBox2.TextChanged
End Sub
Private Sub newbtn_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles newbtn.Click
TextBox1.Text = " "
TextBox2.Text = " "
TextBox3.Text = " "
TextBox4.Text = " "
TextBox5.Text = " "
cmb_pr_id.Text = " "
txt_pr_name.Text = " "
TextBox6.Text = " "
txt_mrp.Text = ""
TextBox7.Text = " "
End Sub
Private Sub TextBox5_TextChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
TextBox5.TextChanged
End Sub
Private Sub deletebtn_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles deletebtn.Click
cn.Close()
cn.Open()
If (f = 0) Then
If TextBox1.Text = "" Then
MsgBox("Please Enter Customer name",
vbInformation, "Enter")
ElseIf TextBox1.Text = "" Then
Else
a = MsgBox("Are you want to Order Bill?",
vbYesNo + vbQuestion, "Delete")
If a = vbYes Then
cmd = New OleDbCommand("Delete From Order
where Order_no=" & TextBox5.Text & "", cn)
cmd.ExecuteNonQuery()
77
End If
End Sub
Private Sub TextBox7_TextChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
TextBox7.TextChanged
End Sub
Private Sub Panel2_Paint(ByVal sender As System.Object,
ByVal e As System.Windows.Forms.PaintEventArgs) Handles
Panel2.Paint
End Sub
Private Sub DataGridView1_CellContentClick(ByVal sender As
System.Object, ByVal e As
System.Windows.Forms.DataGridViewCellEventArgs) Handles
DataGridView1.CellContentClick
End Sub
End Class
79
Program Name:-Salary.vb
Program Function: This is form is used to generate
salary of employee.
Test Data:-
Code:Imports System.Data.OleDb
Public Class salary
Dim cmd As OleDbCommand
Dim cn As New OleDbConnection
Dim ad As New OleDbDataAdapter
Dim ds As New DataSet
Dim dt As String
Dim a, i, f As Integer
Private Sub DataGridView1_CellContentClick(ByVal sender As
System.Object, ByVal e As
System.Windows.Forms.DataGridViewCellEventArgs)
End Sub
Private Sub emp_Load(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles MyBase.Load
80
Call add(i)
MsgBox("This is first Record")
End Sub
Private Sub Btn_e_Pre_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Btn_e_Pre.Click
i = i - 1
If (i >= 0) Then
Call add(i)
Else
MsgBox("this is previous record")
End If
End Sub
Private Sub Btn_e_Last_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Btn_e_Last.Click
i = ds.Tables(0).Rows.Count - 1
Call add(i)
MsgBox("This is last Record")
End Sub
Private Sub Btn_e_Next_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Btn_e_Next.Click
i = i + 1
If (i < ds.Tables(0).Rows.Count) Then
Call add(i)
Else
MsgBox("this is next record")
End If
End Sub
Private Sub Btn_e_Exit_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Btn_e_Exit.Click
Dim a As Integer
Dim OleDbYesNo As Integer
Dim OleDbQuestion As Integer
Dim OleDbYes As Integer
If a = OleDbYes Then
a = MsgBox(" you want to exit the Form?",
OleDbYesNo + OleDbQuestion, "confirm exit")
Me.Close()
83
End If
End Sub
Private Sub Btn_e_Search_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Btn_e_Search.Click
End Sub
Private Sub FillByToolStripButton_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Try
Me.EmpTableAdapter1.FillBy(Me._Database1_mdbDataSet2.emp)
Catch ex As System.Exception
System.Windows.Forms.MessageBox.Show(ex.Message)
End Try
End Sub
84
85
Program Name:-Help
Program Function: This is form is used to display details
about system.
Test Result:
86
Code:Imports System.Data.OleDb
Public Class Mobile_Bill
Dim cn As New OleDbConnection
Private Sub Mobile_Bill_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
cn = New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=|DataDirectory|\Database1.mdb.accdb")
87
Label2.Text = Order.TextBox1.Text
Lno.Text = Order.TextBox5.Text
Lname.Text = Order.txt_pr_name.Text
Lqty.Text = Order.TextBox6.Text
Lper_prize.Text = Order.txt_mrp.Text
Lammount.Text = Order.TextBox7.Text
End Sub
Private Sub btn_print_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles btn_print.Click
PrintForm1.Print(Me,
PowerPacks.Printing.PrintForm.PrintOption.CompatibleModeFullWi
ndow)
End Sub
End Class
88
Code:Imports System.Data.OleDb
Public Class supplier_bill
Dim cn As New OleDbConnection
Private Sub supplier_bill_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
cn = New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=|DataDirectory|\Database1.mdb.accdb")
Label2.Text = supplier.cmb_cm_sname.SelectedItem
Lno.Text = supplier.Txt_bo_Ono.Text
Lname.Text = supplier.cmb_cm_model.Text
Lqty.Text = supplier.Txt_bo_Qty.Text
89
Lper_prize.Text = supplier.Txt_bo_prize.Text
Lammount.Text = supplier.txt_bo_total.Text
End Sub
Private Sub btn_print_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles btn_print.Click
PrintForm1.Print(Me,
PowerPacks.Printing.PrintForm.PrintOption.CompatibleModeFullWi
ndow)
End Sub
End Class
Report Layouts
Report Name:- Report Bill.vb
Report function:- This form displays purchase order
Report of the supplier.
Test Result:-
90
Code:Imports CrystalDecisions.CrystalReports.Engine
Public Class Report_bill
Private Sub Report_bill_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
Dim cryRpt As New ReportDocument
cryRpt.Load("F:\Impppppppp\Arti\CrystalReport1.rpt")
CrystalReportViewer1.ReportSource = cryRpt
CrystalReportViewer1.Update()
End Sub
End Class
91
92
Chapter 5
93
System Implementation
VARIABLE NAME
DATA TYPE
DESCRIPTION
Cn
Connection
To
make
the
connection
between
application & database.
Cmd
SqlCommand
Reader
SqlDataReader
CryRpt
CrystalReport
To display
report.
crystal
2. Input control:System validates every textbox. It allows textual values for fields like customer name.
It also validates some numeric data only for fields like phone no.
3. System Generated control:In Order details it automatically calculates total price of the product. Similarly in
Receipt details it automatically deducts the amount from the actual amount.
4. Range control:In Order Transaction the system checks whether quantity given by the user is not
more than the available product.
94
Chapter 6
Future Enhancement
95
Future Enhancement
Being a computer system, the system has good scope to be
improved further.
Future Enhancements are as listed below
Maintain daily employee attendance.
Administrator can be given more rights so that he will be able to
change order details.
Conclusion
System helps to store all the data about the customer order in computer
and there is no need to do paper work.
Data is going to be preserved carefully for longer period hence proper
backup is required otherwise there is chance of losing entries or data.
96
97
Chapter 7
98
Type
Description
Book name :
Author
Anne Boehm
Publication :
Book name :
2.
Author
Murach
Mastering Visual Basic 2008
Evangelos Petroutsos
Publication :
Wiley-India Edition
99