SlideShare a Scribd company logo
1 of 101
A
PROJECT REPORT ON
Nokia Mobile Shop Management System
Submitted toSubmitted to
University of MumbaiUniversity of Mumbai
2011-20122011-2012
BY
Miss. AARTI DEEPAK SHINDE
1
INDEX
2
Sr.No. Title Page
No.
1 Preliminary Investigation 6
Organizational Overview 7
Description Of System 8
Limitations Of Present System 9
Proposed System & its Advantage 10
Feasibility Study 12
Stakeholders 15
Gantt Chart 16
2 System Analysis 17
Fact Findings 18
Event Table 19
Use Case Diagram 20
Entity Relationship Diagram 21
Activity Diagram 22
Class Diagram 23
Object Diagram 24
Sequence Diagram 25
Collaboration Diagram 26
State Diagram 27
3 System Design 28
Converting ERD to Tables 29
Relationship Diagram 30
Component Diagram 31
Package Diagram 32
Deployment Diagram 33
System Flow Chart 34
Structure Chart 35
4 System Coding 36
Menu Tree 37
List of Tables with Attributes & Constraints 38
Program Description with naming Conventions
Program Listing
Validations
Test Cases, Test Data, Test Results
Screen Layouts & Report Layouts
41
5 System Implementation & Uploading 114
6 Future Enhancement 116
7 References & Bibliography 120
Chapter 1
PRElImINARy INvESTIgATIoN
3
Organizational Overview
Organizational Chart
4
Mobile Store
Management
System
Supplier Customer
Employee
Description of System
In Nokia Mobile Store Management System use to maintain their sales
detail in files and folders. They use to keep the record of product sold,
Customers, Suppliers, etc in a register. A daily register is maintained to keep
track of complaints.
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.
5
Limitations Of Present System
 As mentioned above most of details are maintained
manually. Due to this the data retrieved is time
consuming. Due to human calculation errors occur.
 Even when the data is maintained on spreadsheet
inconsistency occurs as an order might be missed or
wrongly entered or twice.
 Data are stride an excel sheet which takes lot of time and
data may be corrupted.
 As storage and exchange of data is achieved only by use
of excel sheets which lack validation capabilities, there is
always risk of invalid, inaccurate or incomplete data
being fed in computer.
 Difficulty in managing multiple forms.
 Lack of security.
6
Proposed System
The proposed system is computerized and has been
developed using advance language therefore it gives more facilities
than present system. It provides quick access to any data. In this system
user have to enter the data only once and then it get linked with all files.
This reduces the workload of user and it is also a time saving process.
The information about any Subscriber can be easily
retrieved. The system maintains all records easy.
7
Advantages of Proposed System:
 All the information about sale, purchase will be maintain properly in
this system.
 All manual calculation of sale or all the money management will be
performed by the computer automatically.
 This system will provide timely report information.
 It will produce report for sale, bill information.
 The computer can hold amount of data in its storage device.
 The operation and speed of the computer is very high.
 We can calculate result and print any report within seconds.
 Any difficulties we can solve easily.
 A database application can be stored in computer effectively.
 It is very user friendly and easy to handle.
So the computerized system is more suitable than the manual system.
8
Feasibility Of Study
1. Software Specification:-
Software requirements for this system are as listed follows:
 FRONTEND : Microsoft Visual Basic 8.0
 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.
9
FRONTEND: - MICROSOFT VISUAL STUDIO
2008
1. First of all, VB.NET provides managed code execution that runs under
the Common Language Runtime (CLR), resulting in robust, stable and
secure applications. All features of the .NET framework are readily
available in VB.NET.
2. VB.NET is totally object oriented. This is a major addition that VB6 and
other earlier releases didn't have.
3. The .NET framework comes with ADO.NET, which follows the
disconnected paradigm, i.e. once the required records are fetched the
connection no longer exists. It also retrieves the records that are expected
to be accessed in the immediate future. This enhances Scalability of the
application to a great extent.
4. VB.NET uses XML to transfer data between the various layers in the
DNA Architecture i.e. data are passed as simple text strings.
5. Error handling has changed in VB.NET. A new Try-Catch-Finally block
has been introduced to handle errors and exceptions as a unit, allowing
appropriate action to be taken at the place the error occurred thus
discouraging the use of ON ERROR GOTO statement. This again credits
to the maintainability of the code.
6. Another great feature added to VB.NET is free threading against the VB
single-threaded apartment feature. In many situations developers need
spawning of a new thread to run as a background process and increase
the usability of the application. VB.NET allows developers to spawn
threads wherever they feel like, hence giving freedom and better control
on the application.
7. Security has become more robust in VB.NET. In addition to the role-
based security in VB6, VB.NET comes with a new security model, Code
Access security. This security controls on what the code can access. For
example you can set the security to a component such that the
component cannot access the database. This type of security is important
because it allows building components that can be trusted to various
degrees.
8. The CLR takes care of garbage collection i.e. the CLR releases resources
as soon as an object is no more in use. This relieves the developer from
thinking of ways to manage memory. CLR does this for them.
10
BACKEND: MS-ACCESS 2007
Microsoft Office Access, previously known as Microsoft Access, is a
database management system from Microsoft that combines the relational
Microsoft Jet Database Engine with a graphical user interface and software-
development tools.
MS Access stores data in its own format based on the Access Jet
Database Engine. It can also import or link directly to data stored in other
applications and databases
Microsoft Access applications can adopt split-database architecture. The
database can be divided into a front-end database that contains the application
objects (queries, forms, reports, macros, and modules), and is linked to tables
stored in a back-end shared database containing the data. The "back-end"
database can be stored in a location shared by many users, such as a file server.
The "front-end" database is distributed to each user's desktop and linked to the
shared database.
Access includes an Upsizing Wizard that allows users to upsize their
databases to Microsoft SQL Server, an ODBC client–server database. An
additional solution, the SQL Server Migration Assistant for Access (SSMA), is
also available for download from
11
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 project’s 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.
12
4. Project Testers
Project Testers are those who test the software.
13
Gantt Chart
14
Phase Start date Completi
on date
Preliminary
investigation
Project
Finalization 10/06/2011 17/06/2011
Investigation
of system
requirement
18/06/2011 25/06/2011
System
Analysis 27/06/2011 14/8/2011
System
Design 15/8/2011 28/9/2011
Coding
Interface
Coding 29/09/2011 15/10/2011
Database
Connectivity 16/10/2011 30/10/2011
Validation
Coding 31/10/2011 15/11/2011
Report
Coding 17/11/2011 31/12/2011
Implementat
ion
Developer
Testing 5/12/2011 12/12/2011
Client
Testing 13/12/2011 22/12/2011
User Testing
25/12/2011 29/12/2011
Project
Delivery 30/12/2011 05/1/2012
Project
Report
Submission
Project
Report Hard
Copy
Checking
8/1/2012 12/1/2012
Project
Submission 13/1/2012 18/1/2012
15
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
Chapter 2
SySTEm ANAlySIS
16
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.
17
Event Table
18
SR
NO EVENT TRIGGER SOURCE ACTIVITY RESPONSE DESTINATION
1 Enter new
customer
Add Admin Create new
record
New record
created
System
2 Customer
change in
personal
details
Update Customer Update
customer
details
Details
updated
Admin
3 Gives an
Order
New order Customer Create new
Order
New order
created
Employee
4 Enter new
supplier
Add
supplier
Admin Add new
supplier
record
New record
created
System
5 Supplier
change in
details
Update Supplier Update
supplier
details
Details
updated
Admin
6 Owner needs
supplier
details
Search Admin Search
supplier
details
Display
supplier
details
System
7 Enter new
employee
Add Admin Create new
employee
record
New record
created
System
8 Stock entry Add Admin Generating
receipt
Get receipt Customer
19
9 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
Use Case Diagram
Supplier:-
Supplier Admin
Product:-
Admin
20
Delete supplier
details
Display supplier
details
Search supplier
Update supplier
details
Create a new
supplier
Lookup for
supplier
Delete product
details
Display product
details
Update product
details
Create a new
product
Lookup for
product details
Stock:-
Admin
Customer:-
Customer Admin
21
Delete customer
details
Display
customer details
Search customer
Update
customer details
Create a new
customer details
Lookup for
customer
details
Delete stock
details
Display stock
details
Update stock
details
Create new
stock details
Lookup for
stock details
Order:-
Customer
Admin
Bill:-
Customer
Admin
22
Lookup for
order details
Update order
record
Delete order
record
Create a new
order
Places an
Order
Display Bill
Delete Bill
Create a new
Bill
Places new
Bill
Entity-Relationship Diagram
23
Nokia Mobile
Shop System
CustomerPurchas Order
Salary
Employee
Product Supplier
Bill
Bill
Activity Diagram
Customer
No
Yes
24
Nokia Mobile Shop System
Enter Customer information
Enter product information
Product
Supplier
Place purchase order
Check availability
Give payment
Add product
Request product for purchase
Create new order
Calculate total
Generate Bill
Enter order
Place Order
Initiate maintain customer
information
Display Customer information
Verify Customer information
Class Diagram
1..* 1..*
1..* 1..*
1 1..*
1
1..* 1..*
1 1..*
1..*
25
Customer
+Cust_id:Number
+Cust_name:Text
+Cust_add:Text
+Cust_ph:Number
+Cust_email:Text
+Insert ()
+Update ()
+Delete ()
+New ()
Employee
+Emp_id:Number
+Emp_name:Text
+Emp_add:Text
+Emp_ph:Number
+Insert ()
+Update ()
+Delete ()
+New ()
Order
+Order_no:Number
+Date:Date/Time
+Cust_name:Text
+Prod_name:Text
+Total:Number
+Insert ()
+Update ()
+Delete ()
+New ()
Product
+Prod_no:Number
+Prod_name:Text
+Prod_info:Text
+MRP:Number
+Insert ()
+Update ()
+Delete ()
+New ()
Bill
+Bill_no:Number
+Order_no:Number
+Cust_no:Number
+Prod_name:Text
+Total:Number
+Insert ()
+Update ()
+Delete ()
+New ()
Supplier
+Supp_no:Number
+Supp_name:Text
+Supp_add:Text
+Suppt_ph:Number
+Insert ()
+Update ()
+Delete ()
+New ()
Stock
+Prod_id:Number
+Prod_name:Text
+Prod_qty:Number
+Insert()
+Update()
+Delete()
+New()
Object Diagram
1..* 1..*
1..* 1..*
1 1..*
1
1..* 1..*
1 1..*
1..*
26
:Employee
+Emp_id:Number
+Emp_name:Text
+Emp_add:Text
+Emp_ph:Number
+Insert ()
+Update ()
+Delete ()
+New ()
:Order
+Order_no:Number
+Date:Date/Time
+Cust_name:Text
+Prod_name:Text
+Total:Number
+Insert ()
+Update ()
+Delete ()
+New ()
:Product
+Prod_no:Number
+Prod_name:Text
+Prod_info:Text
+MRP:Number
+Insert ()
+Update ()
+Delete ()
+New ()
:Bill
+Bill_no:Number
+Order_no:Number
+Cust_no:Number
+Prod_name:Text
+Total:Number
+Insert ()
+Update ()
+Delete ()
+New ()
:Stock
+Prod_id:Number
+Prod_name:Text
+Prod_qty:Number
+Insert()
+Update()
+Delete()
+New()
: Customer
+Cust_id:Number
+Cust_name:Text
+Cust_add:Text
+Cust_ph:Number
+Cust_email:Text
+Insert ()
+Update ()
+Delete ()
+New ()
: Employee
+Emp_id:Number
+Emp_name:Text
+Emp_add:Text
+Emp_ph:Number
+Insert ()
+Update ()
+Delete ()
+New ()
: Order
+Order_no:Number
+Date:Date/Time
+Cust_name:Text
+Prod_name:Text
+Total:Number
+Insert ()
+Update ()
+Delete ()
+New ()
: Product
+Prod_no:Number
+Prod_name:Text
+Prod_info:Text
+MRP:Number
+Insert ()
+Update ()
+Delete ()
+New ()
: Bill
+Bill_no:Number
+Order_no:Number
+Cust_no:Number
+Prod_name:Text
+Total:Number
+Insert ()
+Update ()
+Delete ()
+New ()
: Supplier
+Supp_no:Number
+Supp_name:Text
+Supp_add:Text
+Suppt_ph:Number
+Insert ()
+Update ()
+Delete ()
+New ()
: Stock
+Prod_id:Number
+Prod_name:Text
+Prod_qty:Number
+Insert()
+Update()
+Delete()
+New()
27
Sequence Diagram
Supplier:-
Create Supplier:
Create new supplier information
New supplier created
Admin
Update Supplier:
Display supplier details
Update supplier details
Supplier Admin
Delete Supplier:
Display supplier details
Delete supplier
Admin
28
System
System
System
Product:-
Create Product:
Create new product details
New product created
Admin
Update Product:
Display product details
Update product details
Admin
Delete Product:
Display product details
Delete selected product
Admin
29
System
System
System
Stock:-
Create Stock:
Create new stock information
New stock created
Admin
Update Stock:
Display stock details
Update stock details
Admin
Delete Stock:
Display stock details
Delete stock
Admin
30
System
System
System
Customer:-
Create Customer:
Create new Customer information
New Customer created
Customer Admin
Update Customer:
Display Customer details
Update Customer details
Customer Admin
Delete Customer:
Display Customer details
Delete Customer
Admin
31
System
System
System
Order:-
Create Order:
Create new Order information
New Order created
Customer Admin
Update Order:
Display Order details
Update Order details
Customer Admin
Delete Order:
Display Order details
Delete Order
Admin
32
System
System
System
Bill:-
Create Bill:
Create new Bill information
New Bill created
Admin
Delete Delete:
Display Bill details
Delete Bill
Admin
33
System
System
Employee:-
Create Employee:
Create new Employee information
New Employee created
Admin
Update Employee:
Display Employee details
Update Employee details
Employee Admin
Delete Employee:
Display Employee details
Delete Employee
Admin
34
System
System
System
Collaboration Diagram
1. Customer enquiry
2. Get information
5. Place order
6. Get order
8. Pay bill 7. Order fulfillment
9. Generate receipt
10. Check availability 3. Customer
Of mobile
Registration
14. Update records
4. Check details
11. Order
13. Payment 12. Placed order
35
Customer
Supplier
Employee
State Diagram
Login
Customer enter
Order for mobile
Mobile not available
Mobile available
Check details
Order fulfillment
Paying bill
Generating receipt
36
Customer enquiry
Check availability of
mobile
Order for mobile
End
Check mobile details
Mobile provide to customer
Pay bill
Generate receipt
Idle
Chapter 3
SyStem DeSign
37
38
Converting ERD to Tables
Sr.No TABLE NAME PURPOSE
1 Cust_info
This table is use to store, retrieve and information about the
customer.
the fields are c_no,cname,cadd,gender,contactno,email
2 Employee
This table is use to store ,retrieve and information about the
employee. The fields is :
e_id,e_fname,e_mname,e_lname,e_add,e_city,e_contact.
3 Supplier
This table is use to store ,retrieve and information about the
supplier.The field are o_no,s_name,o_model,o_qty,o_prize,
o_totprize,o_tax,o_tot.
4 Order
This table is use to purchase , store , retrieve
& the information like p_no,p_name.
The field in the table are c_no,c_name,cadd,email,contactno,
o_no,p_no,p_name,p_qty,p_mrp,p_tot.
5 Salary This table is use store ,retrieve and information about the
employee salary.
The field are e_id, e_fname,e_mname,e_lname, e_add,
e_contact, msalary, advance.
39
40
Component Diagram
41
Bill.vb
Nokia Mobile
Shop
System
Order.vb
Supplier.vb
Stock.vb
Emp.vb
Salary.vb
Customer.vb
Order.vb
Package Diagram
42
Nokia Mobile shop system
Supplier, Order,
Stock, Emp
Form
Availability
Cancel
Connection
Admin
Other Form
Emp form
Supplier form
Product form
Order form
Bill form
Cancel
Processing
And
Printing
Deployment Diagram
43
Order.vb
Database
Server
<<device>>
Printer
Cust.vb Mobdetails.vb
Transaction.vb
Emp.vb Bill.vb
Emp.vb
XP
PC <<device>>
44
Nokia
Mobile store
management
Price Mobile
Purchase order
Customer
Supplier
Mobile bill
Employee
Paid
Maintain
customer
details
Mobile details
Transaction of
mobile
Maintain
employee
details
Paid details
Generate
mobile bill
Purchase order
details
Customer
bill report
Supplier
bill report
System flow
45
Nokia Mobile Store System
Maintain
customer
details
Creation of
order
Bill
generation
Giving
purchase
order
Get
Customer
details
Save
customer
details
Checking of
product
Customer
details
Product
details
Get mobile
details
Report
generation
Order
fulfillment
Retrieve
mobile
details
Bill details
Structure chart
Chapter 4
SyStem CoDing
46
Menu Tree
47
MDI Form
Main
Customer information
Mobile Details
Customer Purchase order
Reports
Utility Calculator
About Us Help
Exit
Employee
Customer information
Mobile Details
Mobile Bill
Supplier Report
Transaction Transaction
Table List
1.Table name:-Cust_info
Sr.N
o.
Field Name Datatype Constraints Size Description
1 c_no Integer Primary key Stores the customer code
2 cname Varchar 10 Stores the customer name
3
4
cadd
gender
Varchar
Varchar
10
10
Stores the customer address
Store the customer gender
4 contactno Bigint Stores the customer contact.
5 email Varchar 25 Stores the customer email id
2.Table name:-Employee
Sr.
No.
Field Name Datatype Constraints Size Description
1 E_id Integer Primary key Stores the employee code
2
3
4
E_fname
E_mname
E_lname
Varchar
Varchar
varchar
15
15
15
Stores the employee name
Stores the employee middle
name
Stores the employee last name
5 E_add Varchar 20 Stores the employee address
6 Ph_no Bigint Stores the employee ph.no.
48
3.Table name:-Supplier
Sr.
No.
Field Name Datatype Constraints Size Description
1 o_no Integer Primary key Stores the company code
2 S_name Varchar 20 Stores the company name
3
4
o_model
o_qty
Varchar
Integer
20 Stores the mobile model name
Stores the mobile qty
5 o_color varchar 20 Stores the mobile color
6
7
8
9
o_prize
o_totprize
o_tax
o_tot
Bigint
Bigint
Bigint
bigint
Stores the mobile prize
Stores the total prize
Stores the tax value
Stores the total amount
included tax
4. Table name:-Order
Sr.
No.
Field Name Datatype Constraints Size Description
1 c_no Integer Foreign key Stores the customer code
2 c_name Varchar 15 Stores the customer name
3 c_add Varchar 15 Stores the customer address
4 contactno Bigint Stores the customer contact
no
5 email varchar 20 Stores the customer email
6 o_no Integer Stores the order no
7 p_no integer Stores the product no
8 P_name Varchar 15 Stores the product name
9 P_q ty Integer Stores the product quantity
10 P_mrp integer Stores the product prize
11 P_tot bigint Stores the product total prize
49
8. Table name:-Salary
Sr.
No.
Field Name Datatype Constraints Size Description
1 E_id Integer primary Stores the employee id
2
3
E_fname
e_mname
Varchar
varchar
15
15
Stores the employee name
Stores the employee middle
name
4 e_lname Varchar 15 Stores the employee last name
5 e_add varchar 20 Stores the employee address
6 e_contact Bigint Stores the employee contact no
7 msalary Bigint Stores the emp monthly salary
8 advance Bigint Stores the emp advance salary
50
Program List
NO FORM
NAME
PURPOSE
1 Loding.frm This form display the title of system name
of organization & copyright of the system
2 Loginform.frm This form is used for security with the help of
password
3 MdIForm.frm This is the multiple document interface for the all
of the form in the project
4 Cust_info.frm This form is use for store the customer information
5 Emp.frm This form is use for store the employee
information
6 Supplier.frm This form is use for store the Supplier information
7 Salary.frm This form use for store employee salary
51
Report List
NO. REPORT NAME PURPOSE
1 Crystalreport1.rpt This report is use for to
print and show the
customer bill
2 Crystalreport2.rpt
This report is use for to
print & show the
supplier bill
52
Program Description
Program Name: Loding.vb
Program Function: This is form is used to Load the
system.
Code:-
Public Class Loading
Dim i As Integer
Private Sub Timer1_Tick(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Timer1.Tick
ProgressBar1.PerformStep()
i = i + 1
Label2.Text = i
If ProgressBar1.Value = 100 Then
Me.Hide()
LoginForm1.Show()
Timer1.Enabled = False
End If
End Sub
53
Program Name: Login Form1.vb
Program Function: This is form is used to Login in the
system.
Code:-
Public Class LoginForm1
Private Sub OK_Click_1(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles OK.Click
If UsernameTextBox.Text = "arti" And
PasswordTextBox.Text = "123" Then
Me.Hide()
MDI.Show()
Else
MsgBox("error")
End If
End Sub
54
Program Name: MDI.vb
Program Function: This is form contains menus i.e. path
for other forms.
Code:-
Public Class MDI
Private Sub CustomerInfoToolStripMenuItem_Click(ByVal
sender As System.Object, ByVal e As System.EventArgs) Handles
CustomerInfoToolStripMenuItem.Click
Cust_info.Show()
End Sub
Private Sub MobileDetailsToolStripMenuItem_Click(ByVal
sender As System.Object, ByVal e As System.EventArgs) Handles
MobileDetailsToolStripMenuItem.Click
MobiAdd.Show()
End Sub
Private Sub MobileBillToolStripMenuItem_Click(ByVal sender
As System.Object, ByVal e As System.EventArgs)
Mobile_Bill.Show()
End Sub
Private Sub OrderToolStripMenuItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
PurchaseOrderToolStripMenuItem.Click
55
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:WINDOWSsystem32calc.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
56
Program Name: Cust_info.vb
Program Function: This is form is used to add new
customer and its details
Data entry form:
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)
57
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")
58
End If
End Sub
Private Sub firstbtn_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles firstbtn.Click
i = 0
Call add(i)
MsgBox("This is first Record")
End Sub
Private Sub previousbtn_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
previousbtn.Click
i = i - 1
If (i >= 0) Then
Call add(i)
Else
MsgBox("this is previous record")
End If
End Sub
Private Sub lastbtn_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles lastbtn.Click
i = ds.Tables(0).Rows.Count - 1
Call add(i)
MsgBox("This is last Record")
End Sub
Private Sub nextbtn_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles nextbtn.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 Button4_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button4.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
59
ComboBox1.SelectedIndex = -1
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)
60
cmd.ExecuteNonQuery()
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
61
Private Sub Button5_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button5.Click
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 & " ',E-
mail='" & TextBox6.Text & " 'where Cust_No=" & TextBox1.Text &
"", cn)
cmd.ExecuteNonQuery()
End If
MsgBox("Record Updated Successfully.")
End Sub
End Class
62
Program Name: emp.vb
Program Function: This is form is used to add new
employee and its details.
Test Data:-
Code:-
Imports System.Data.OleDb
Public Class emp
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 emp_Load(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the
'_Database1_mdbDataSet4.emp_details' table. You can move, or
remove it, as needed.
63
Me.Emp_detailsTableAdapter1.Fill(Me._Database1_mdbDataSet4.emp
_details)
cn = New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=|DataDirectory|Database1.mdb.accdb")
ad = New OleDbDataAdapter("select * from emp_details",
cn)
ds = New DataSet()
ad.Fill(ds)
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
ComboBox1.Text = ds.Tables(0).Rows(i).Item(5).ToString
TextBox6.Text = ds.Tables(0).Rows(i).Item(6).ToString
TextBox7.Text = ds.Tables(0).Rows(i).Item(7).ToString
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 TextBox3_KeyPress(ByVal sender As Object, ByVal e
As System.Windows.Forms.KeyPressEventArgs) Handles
TextBox3.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
64
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 = ""
End Sub
65
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
Private Sub Btn_e_First_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Btn_e_First.Click
66
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
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")
67
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
68
Program Name: Supplier.vb
Program Function: This is form is used to add new
supplier and its details.
Test Data:-
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)
69
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
70
Private Sub Txt_bo_Qty_TextChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Txt_bo_Qty.TextChanged
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 Txt_bo_Ono.Text = "" Then
ElseIf cmb_cm_sname.Text = "" Then
ElseIf cmb_cm_model.Text = "" Then
ElseIf Txt_bo_Qty.Text = "" Then
ElseIf cmb_cm_color.Text = "" Then
ElseIf Txt_bo_prize.Text = "" Then
ElseIf txt_bo_total.Text = "" Then
ElseIf Txt_bo_tax.Text = "" Then
ElseIf txt_bo_totalprize.Text = "" Then
MsgBox("Please Enter Record")
Else
a = MsgBox("Are you want to save new
Supplier?", vbYesNo + vbQuestion, "SAVE")
If a = vbYes Then
cmd = New OleDbCommand("insert into
Supplier values('" & Txt_bo_Ono.Text & "','" &
cmb_cm_sname.Text & "','" & cmb_cm_model.Text & "','" &
Txt_bo_Qty.Text & "','" & cmb_cm_color.Text & "','" &
Txt_bo_prize.Text & "','" & txt_bo_total.Text & "','" &
Txt_bo_tax.Text & "','" & txt_bo_totalprize.Text & "')", cn)
cmd.ExecuteNonQuery()
MsgBox("Record Save Successfully")
End If
End If
End If
End Sub
71
Private Sub cmb_cm_model_SelectedIndexChanged(ByVal sender
As System.Object, ByVal e As System.EventArgs) Handles
cmb_cm_model.SelectedIndexChanged
If cmb_cm_model.SelectedIndex = "0" Then
Txt_bo_prize.Text = 25000
ElseIf cmb_cm_model.SelectedIndex = "1" Then
Txt_bo_prize.Text = 30000
ElseIf cmb_cm_model.SelectedIndex = "2" Then
Txt_bo_prize.Text = 27000
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
Txt_bo_Ono.Text = ""
cmb_cm_sname.Text = ""
cmb_cm_model.Text = ""
Txt_bo_Qty.Text = ""
cmb_cm_color.Text = ""
Txt_bo_prize.Text = ""
txt_bo_total.Text = ""
Txt_bo_tax.Text = ""
txt_bo_totalprize.Text = ""
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 Txt_bo_Ono.Text = "" Then
MsgBox("Please Enter Order no")
ElseIf Txt_bo_Ono.Text = "" Then
Else
a = MsgBox("Are you want to Delete Supplier?",
vbYesNo + vbQuestion, "Delete")
If a = vbYes Then
cmd = New OleDbCommand("Delete From
Supplier where O_no=" & Txt_bo_Ono.Text & "", cn)
cmd.ExecuteNonQuery()
MsgBox("Record Deleted Successfully.")
72
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
73
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()
End If
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
74
Program Name: order.vb
Program Function: This is form is used to purchase
mobile.
Test Data:-
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)
75
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
76
MsgBox("Enter Valid Email Address.",
MsgBoxStyle.Exclamation, "Invalid Email Address")
TextBox4.Text = ""
End If
End Sub
Private Sub cmb_pr_id_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
cmb_pr_id.SelectedIndexChanged
If cmb_pr_id.SelectedIndex = 0 Then
txt_pr_name.Text = "N8"
txt_mrp.Text = 25000
ElseIf cmb_pr_id.SelectedIndex = 1 Then
txt_pr_name.Text = "N900"
txt_mrp.Text = 30000
ElseIf cmb_pr_id.SelectedIndex = 2 Then
txt_pr_name.Text = "nokia 5233"
txt_mrp.Text = 6500
ElseIf cmb_pr_id.SelectedIndex = 3 Then
txt_pr_name.Text = "nokia E5"
txt_mrp.Text = 10519
ElseIf cmb_pr_id.SelectedIndex = 4 Then
txt_pr_name.Text = "nokia X5-01"
txt_mrp.Text = 9153
ElseIf cmb_pr_id.SelectedIndex = 5 Then
txt_pr_name.Text = "nokia X6"
txt_mrp.Text = 13839
ElseIf cmb_pr_id.SelectedIndex = 6 Then
txt_pr_name.Text = "nokia N97"
txt_mrp.Text = 23863
ElseIf cmb_pr_id.SelectedIndex = 7 Then
txt_pr_name.Text = "nokia N79"
txt_mrp.Text = 13355
ElseIf cmb_pr_id.SelectedIndex = 8 Then
txt_pr_name.Text = "nokia C3"
txt_mrp.Text = 5800
77
ElseIf cmb_pr_id.SelectedIndex = 9 Then
txt_pr_name.Text = "nokia 5800"
txt_mrp.Text = 13518
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
Mobile_Bill.Show()
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
TextBox10.TextChanged
End Sub
Private Sub totalbtn_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles totalbtn.Click
TextBox7.Text = TextBox6.Text * txt_mrp.Text
End Sub
Private Sub savebtn_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles savebtn.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 cmb_pr_id.Text = "" Then
ElseIf txt_pr_name.Text = "" Then
ElseIf TextBox6.Text = "" Then
ElseIf txt_mrp.Text = "" Then
ElseIf TextBox7.Text = "" Then
Else
a = MsgBox("Are you want to save new Order?",
vbYesNo + vbQuestion, "SAVE")
If a = vbYes Then
cmd = New OleDbCommand("insert into Order
values('" & 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 &
"')", cn)
78
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()
79
MsgBox("Record Deleted Successfully.")
End If
End If
End If
End Sub
Private Sub firstbtn_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles firstbtn.Click
i = 0
Call add(i)
MsgBox("This is first Record")
End Sub
Private Sub previousbtn_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
previousbtn.Click
i = i - 1
If (i >= 0) Then
Call add(i)
Else
MsgBox("this is previous record")
End If
End Sub
Private Sub lastbtn_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles lastbtn.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 nextbtn_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles nextbtn.Click
i = ds.Tables(0).Rows.Count - 1
Call add(i)
MsgBox("This is last Record")
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()
80
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
81
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
82
'TODO: This line of code loads data into the
'_Database1_mdbDataSet13.Salary' table. You can move, or
remove it, as needed.
Me.SalaryTableAdapter.Fill(Me._Database1_mdbDataSet13.Salary)
cn = New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=|DataDirectory|Database1.mdb.accdb")
ad = New OleDbDataAdapter("select * from Salary", cn)
ds = New DataSet()
ad.Fill(ds)
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
TextBox6.Text = ds.Tables(0).Rows(i).Item(5).ToString
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
' dt = TextBox1.Text
' MsgBox(dt)
cmd = New OleDbCommand("insert into Salary
values('" & TextBox1.Text & "','" & TextBox2.Text & "' ,'" &
TextBox3.Text & "','" & TextBox4.Text & "','" & TextBox5.Text
& "','" & TextBox6.Text & "')", cn)
cmd.ExecuteNonQuery()
End If
MsgBox("Record Saved Successfully.")
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 = " "
83
TextBox4.Text = " "
TextBox5.Text = " "
TextBox6.Text = " "
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
' dt = TextBox1.Text
' MsgBox(dt)
cmd = New OleDbCommand("Delete From Salary where
Emp_ID=" & TextBox1.Text & "", cn)
cmd.ExecuteNonQuery()
End If
MsgBox("Record Deleted Successfully.")
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()
If (f = 0) Then
' dt = TextBox1.Text
' MsgBox(dt)
cmd = New OleDbCommand("Update Salary set Emp_ID=
' " & TextBox1.Text & " ',F_Name= ' " & TextBox2.Text & " '
,L_Name= ' " & TextBox3.Text & " ',D_o_sal= ' " &
TextBox4.Text & " ',Advance=' " & TextBox5.Text & " ',T_sal='"
& TextBox6.Text & " 'where Emp_ID=" & TextBox1.Text & "", cn)
cmd.ExecuteNonQuery()
End If
MsgBox("Record Updated Successfully.")
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
84
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()
85
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
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 TextBox3_KeyPress(ByVal sender As Object, ByVal
e As System.Windows.Forms.KeyPressEventArgs) Handles
TextBox3.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
End Class
86
Program Name: Mobile Details.vb
Program Function: This Form display the various
Mobile Details.
Test Result:
87
Program Name:-Help
Program Function: This is form is used to display
details about system.
Test Result:
88
Program Name:-Mobile Bill.vb
Program Function: This is form is used to display
receipt of individual customer.
Test Result:-
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")
Label2.Text = Order.TextBox1.Text
89
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
90
Program Name:-Supplier Bill.vb
Program Function: This is form is used to display
receipt of supplier bill.
Test Result:-
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
Lper_prize.Text = supplier.Txt_bo_prize.Text
91
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:-
92
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:ImppppppppArtiCrystalReport1.rpt")
CrystalReportViewer1.ReportSource = cryRpt
CrystalReportViewer1.Update()
End Sub
End Class
93
Report Name:- Supplier_bill.vb
Report function:- This form displays all customers bill.
Test Result:-
Code:-
Imports CrystalDecisions.CrystalReports.Engine
Public Class supplier_report
Private Sub supplier_report_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
Dim cryRpt As New ReportDocument
cryRpt.Load("F:ImppppppppArtiCrystalReport2.rpt")
CrystalReportViewer1.ReportSource = cryRpt
CrystalReportViewer1.Update()
End Sub
End Class
94
Chapter 5
SyStem ImplementatIon &
UploadIng
95
System Implementation
VARIABLE NAME DATA TYPE DESCRIPTION
Cn Connection To make the
connection between
application & database.
Cmd SqlCommand To execute sql query
on table
Reader SqlDataReader To read data retrieve
by sqlcommand.
CryRpt CrystalReport
To display crystal
report.
SYSTEM CONTROLS AND STANDARDS
1. Access control:-
System gives access by valid password.
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.
96
Chapter 6
FUtUre enhancement
97
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.
98
99
Chapter 7
reFerenceS & BIBlIography
100
References & Bibliography
Sr.No. Type Description
1.
Book name :
Author :
Publication :
Visual Basic 2008
Anne Boehm
Murach
2.
Book name :
Author :
Publication :
Mastering Visual Basic 2008
Evangelos Petroutsos
Wiley-India Edition
101

More Related Content

What's hot

College Management System
College Management SystemCollege Management System
College Management SystemAsfaque Khalid
 
online-shopping-documentation-srs for TYBSCIT sem 6
 online-shopping-documentation-srs for TYBSCIT sem 6 online-shopping-documentation-srs for TYBSCIT sem 6
online-shopping-documentation-srs for TYBSCIT sem 6YogeshDhamke2
 
Mini project report_on_online_shopping
Mini project report_on_online_shoppingMini project report_on_online_shopping
Mini project report_on_online_shoppingSandeep Bittu
 
Presentation on online shopping site using java
Presentation on online shopping site using javaPresentation on online shopping site using java
Presentation on online shopping site using javaHarmeet Walia
 
E-commerce (System Analysis and Design)
E-commerce (System Analysis and Design)E-commerce (System Analysis and Design)
E-commerce (System Analysis and Design)Nazmul Hyder
 
Online shopping system (E-commerce)
Online shopping system (E-commerce)Online shopping system (E-commerce)
Online shopping system (E-commerce)Sarp Infotech
 
Employee management system
Employee management systemEmployee management system
Employee management systemAnjaliSharma585
 
Onlineline shopping Yash Bazaar.com
Onlineline shopping Yash Bazaar.comOnlineline shopping Yash Bazaar.com
Onlineline shopping Yash Bazaar.comTmu
 
Hospital mangement system report file
Hospital mangement system report fileHospital mangement system report file
Hospital mangement system report fileNausheen Hasan
 
synopsis on stock management system in medical store in php
synopsis on stock management system in medical store in phpsynopsis on stock management system in medical store in php
synopsis on stock management system in medical store in phpsachin993
 
Ems final project mca 6th
Ems final project mca 6thEms final project mca 6th
Ems final project mca 6thNarender Anu
 
ONLINE GROCERY STORE MANAGEMENT SYSTEM PPT
ONLINE GROCERY STORE MANAGEMENT SYSTEM PPTONLINE GROCERY STORE MANAGEMENT SYSTEM PPT
ONLINE GROCERY STORE MANAGEMENT SYSTEM PPTChetanBhandari14
 
Web based online shopping system Presentation slide
Web based online shopping system Presentation  slideWeb based online shopping system Presentation  slide
Web based online shopping system Presentation slideRakibul Hasan Pranto
 
44478167 hospital-management-system
44478167 hospital-management-system44478167 hospital-management-system
44478167 hospital-management-systemAkshay Iliger
 
Library management system
Library management systemLibrary management system
Library management systemashu6
 
Online Medicine Store
Online Medicine StoreOnline Medicine Store
Online Medicine StoreRohit Mondal
 
Online Book Portal
Online Book PortalOnline Book Portal
Online Book Portallavish19
 

What's hot (20)

Mobile Store
Mobile StoreMobile Store
Mobile Store
 
College Management System
College Management SystemCollege Management System
College Management System
 
College Management System
College Management SystemCollege Management System
College Management System
 
online-shopping-documentation-srs for TYBSCIT sem 6
 online-shopping-documentation-srs for TYBSCIT sem 6 online-shopping-documentation-srs for TYBSCIT sem 6
online-shopping-documentation-srs for TYBSCIT sem 6
 
Mini project report_on_online_shopping
Mini project report_on_online_shoppingMini project report_on_online_shopping
Mini project report_on_online_shopping
 
Presentation on online shopping site using java
Presentation on online shopping site using javaPresentation on online shopping site using java
Presentation on online shopping site using java
 
E-commerce (System Analysis and Design)
E-commerce (System Analysis and Design)E-commerce (System Analysis and Design)
E-commerce (System Analysis and Design)
 
Online shopping system (E-commerce)
Online shopping system (E-commerce)Online shopping system (E-commerce)
Online shopping system (E-commerce)
 
Employee management system
Employee management systemEmployee management system
Employee management system
 
Onlineshopping
OnlineshoppingOnlineshopping
Onlineshopping
 
Onlineline shopping Yash Bazaar.com
Onlineline shopping Yash Bazaar.comOnlineline shopping Yash Bazaar.com
Onlineline shopping Yash Bazaar.com
 
Hospital mangement system report file
Hospital mangement system report fileHospital mangement system report file
Hospital mangement system report file
 
synopsis on stock management system in medical store in php
synopsis on stock management system in medical store in phpsynopsis on stock management system in medical store in php
synopsis on stock management system in medical store in php
 
Ems final project mca 6th
Ems final project mca 6thEms final project mca 6th
Ems final project mca 6th
 
ONLINE GROCERY STORE MANAGEMENT SYSTEM PPT
ONLINE GROCERY STORE MANAGEMENT SYSTEM PPTONLINE GROCERY STORE MANAGEMENT SYSTEM PPT
ONLINE GROCERY STORE MANAGEMENT SYSTEM PPT
 
Web based online shopping system Presentation slide
Web based online shopping system Presentation  slideWeb based online shopping system Presentation  slide
Web based online shopping system Presentation slide
 
44478167 hospital-management-system
44478167 hospital-management-system44478167 hospital-management-system
44478167 hospital-management-system
 
Library management system
Library management systemLibrary management system
Library management system
 
Online Medicine Store
Online Medicine StoreOnline Medicine Store
Online Medicine Store
 
Online Book Portal
Online Book PortalOnline Book Portal
Online Book Portal
 

Similar to 127801976 mobile-shop-management-system-documentation

Cyber bidding gateway report on ASP .net
Cyber bidding gateway report on ASP .netCyber bidding gateway report on ASP .net
Cyber bidding gateway report on ASP .netGeorgekutty Francis
 
SathishKumar Natarajan
SathishKumar NatarajanSathishKumar Natarajan
SathishKumar NatarajanSathish Kumar
 
04.project billing system
04.project billing system04.project billing system
04.project billing systemgirivaishali
 
Cake shop billing system
Cake shop billing systemCake shop billing system
Cake shop billing systemAkshita Pillai
 
Mingle box - Online Job seeking System
Mingle box - Online Job seeking SystemMingle box - Online Job seeking System
Mingle box - Online Job seeking SystemBharat Kalia
 
Employee Management System
Employee Management SystemEmployee Management System
Employee Management Systemvivek shah
 
Online Real Estate Management System
Online Real Estate Management SystemOnline Real Estate Management System
Online Real Estate Management Systemshahrukh Nawandish
 
departmental store
departmental storedepartmental store
departmental storeFreelancer
 
Research Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and ScienceResearch Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and Scienceinventy
 
Bt0081 software engineering
Bt0081 software engineeringBt0081 software engineering
Bt0081 software engineeringTechglyphs
 

Similar to 127801976 mobile-shop-management-system-documentation (20)

Cyber bidding gateway report on ASP .net
Cyber bidding gateway report on ASP .netCyber bidding gateway report on ASP .net
Cyber bidding gateway report on ASP .net
 
SathishKumar Natarajan
SathishKumar NatarajanSathishKumar Natarajan
SathishKumar Natarajan
 
Job portal
Job portalJob portal
Job portal
 
04.project billing system
04.project billing system04.project billing system
04.project billing system
 
Cake shop billing system
Cake shop billing systemCake shop billing system
Cake shop billing system
 
124157075 gb
124157075 gb124157075 gb
124157075 gb
 
Documentation
DocumentationDocumentation
Documentation
 
Mingle box - Online Job seeking System
Mingle box - Online Job seeking SystemMingle box - Online Job seeking System
Mingle box - Online Job seeking System
 
Print report
Print reportPrint report
Print report
 
Employee Management System
Employee Management SystemEmployee Management System
Employee Management System
 
Online Real Estate Management System
Online Real Estate Management SystemOnline Real Estate Management System
Online Real Estate Management System
 
Subbu_WM
Subbu_WMSubbu_WM
Subbu_WM
 
Onine exam 1
Onine exam 1Onine exam 1
Onine exam 1
 
Sample report
Sample reportSample report
Sample report
 
departmental store
departmental storedepartmental store
departmental store
 
ASSIGNMENT
ASSIGNMENT ASSIGNMENT
ASSIGNMENT
 
Research Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and ScienceResearch Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and Science
 
Bt0081 software engineering
Bt0081 software engineeringBt0081 software engineering
Bt0081 software engineering
 
Public voice
Public voicePublic voice
Public voice
 
Web engineering
Web engineeringWeb engineering
Web engineering
 

Recently uploaded

『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书rnrncn29
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Dana Luther
 
Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Excelmac1
 
Magic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMagic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMartaLoveguard
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)Christopher H Felton
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一Fs
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一z xss
 
Intellectual property rightsand its types.pptx
Intellectual property rightsand its types.pptxIntellectual property rightsand its types.pptx
Intellectual property rightsand its types.pptxBipin Adhikari
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一Fs
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一Fs
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书zdzoqco
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhimiss dipika
 
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书rnrncn29
 
Q4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxQ4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxeditsforyah
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Sonam Pathan
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationLinaWolf1
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predieusebiomeyer
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITMgdsc13
 

Recently uploaded (20)

『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
 
Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...
 
Magic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMagic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptx
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
 
Intellectual property rightsand its types.pptx
Intellectual property rightsand its types.pptxIntellectual property rightsand its types.pptx
Intellectual property rightsand its types.pptx
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhi
 
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
 
Q4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxQ4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptx
 
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 Documentation
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predi
 
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
 

127801976 mobile-shop-management-system-documentation

  • 1. A PROJECT REPORT ON Nokia Mobile Shop Management System Submitted toSubmitted to University of MumbaiUniversity of Mumbai 2011-20122011-2012 BY Miss. AARTI DEEPAK SHINDE 1
  • 2. INDEX 2 Sr.No. Title Page No. 1 Preliminary Investigation 6 Organizational Overview 7 Description Of System 8 Limitations Of Present System 9 Proposed System & its Advantage 10 Feasibility Study 12 Stakeholders 15 Gantt Chart 16 2 System Analysis 17 Fact Findings 18 Event Table 19 Use Case Diagram 20 Entity Relationship Diagram 21 Activity Diagram 22 Class Diagram 23 Object Diagram 24 Sequence Diagram 25 Collaboration Diagram 26 State Diagram 27 3 System Design 28 Converting ERD to Tables 29 Relationship Diagram 30 Component Diagram 31 Package Diagram 32 Deployment Diagram 33 System Flow Chart 34 Structure Chart 35 4 System Coding 36 Menu Tree 37 List of Tables with Attributes & Constraints 38 Program Description with naming Conventions Program Listing Validations Test Cases, Test Data, Test Results Screen Layouts & Report Layouts 41 5 System Implementation & Uploading 114 6 Future Enhancement 116 7 References & Bibliography 120
  • 4. Organizational Overview Organizational Chart 4 Mobile Store Management System Supplier Customer Employee
  • 5. Description of System In Nokia Mobile Store Management System use to maintain their sales detail in files and folders. They use to keep the record of product sold, Customers, Suppliers, etc in a register. A daily register is maintained to keep track of complaints. 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. 5
  • 6. Limitations Of Present System  As mentioned above most of details are maintained manually. Due to this the data retrieved is time consuming. Due to human calculation errors occur.  Even when the data is maintained on spreadsheet inconsistency occurs as an order might be missed or wrongly entered or twice.  Data are stride an excel sheet which takes lot of time and data may be corrupted.  As storage and exchange of data is achieved only by use of excel sheets which lack validation capabilities, there is always risk of invalid, inaccurate or incomplete data being fed in computer.  Difficulty in managing multiple forms.  Lack of security. 6
  • 7. Proposed System The proposed system is computerized and has been developed using advance language therefore it gives more facilities than present system. It provides quick access to any data. In this system user have to enter the data only once and then it get linked with all files. This reduces the workload of user and it is also a time saving process. The information about any Subscriber can be easily retrieved. The system maintains all records easy. 7
  • 8. Advantages of Proposed System:  All the information about sale, purchase will be maintain properly in this system.  All manual calculation of sale or all the money management will be performed by the computer automatically.  This system will provide timely report information.  It will produce report for sale, bill information.  The computer can hold amount of data in its storage device.  The operation and speed of the computer is very high.  We can calculate result and print any report within seconds.  Any difficulties we can solve easily.  A database application can be stored in computer effectively.  It is very user friendly and easy to handle. So the computerized system is more suitable than the manual system. 8
  • 9. Feasibility Of Study 1. Software Specification:- Software requirements for this system are as listed follows:  FRONTEND : Microsoft Visual Basic 8.0  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. 9
  • 10. FRONTEND: - MICROSOFT VISUAL STUDIO 2008 1. First of all, VB.NET provides managed code execution that runs under the Common Language Runtime (CLR), resulting in robust, stable and secure applications. All features of the .NET framework are readily available in VB.NET. 2. VB.NET is totally object oriented. This is a major addition that VB6 and other earlier releases didn't have. 3. The .NET framework comes with ADO.NET, which follows the disconnected paradigm, i.e. once the required records are fetched the connection no longer exists. It also retrieves the records that are expected to be accessed in the immediate future. This enhances Scalability of the application to a great extent. 4. VB.NET uses XML to transfer data between the various layers in the DNA Architecture i.e. data are passed as simple text strings. 5. Error handling has changed in VB.NET. A new Try-Catch-Finally block has been introduced to handle errors and exceptions as a unit, allowing appropriate action to be taken at the place the error occurred thus discouraging the use of ON ERROR GOTO statement. This again credits to the maintainability of the code. 6. Another great feature added to VB.NET is free threading against the VB single-threaded apartment feature. In many situations developers need spawning of a new thread to run as a background process and increase the usability of the application. VB.NET allows developers to spawn threads wherever they feel like, hence giving freedom and better control on the application. 7. Security has become more robust in VB.NET. In addition to the role- based security in VB6, VB.NET comes with a new security model, Code Access security. This security controls on what the code can access. For example you can set the security to a component such that the component cannot access the database. This type of security is important because it allows building components that can be trusted to various degrees. 8. The CLR takes care of garbage collection i.e. the CLR releases resources as soon as an object is no more in use. This relieves the developer from thinking of ways to manage memory. CLR does this for them. 10
  • 11. BACKEND: MS-ACCESS 2007 Microsoft Office Access, previously known as Microsoft Access, is a database management system from Microsoft that combines the relational Microsoft Jet Database Engine with a graphical user interface and software- development tools. MS Access stores data in its own format based on the Access Jet Database Engine. It can also import or link directly to data stored in other applications and databases Microsoft Access applications can adopt split-database architecture. The database can be divided into a front-end database that contains the application objects (queries, forms, reports, macros, and modules), and is linked to tables stored in a back-end shared database containing the data. The "back-end" database can be stored in a location shared by many users, such as a file server. The "front-end" database is distributed to each user's desktop and linked to the shared database. Access includes an Upsizing Wizard that allows users to upsize their databases to Microsoft SQL Server, an ODBC client–server database. An additional solution, the SQL Server Migration Assistant for Access (SSMA), is also available for download from 11
  • 12. 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 project’s 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. 12
  • 13. 4. Project Testers Project Testers are those who test the software. 13
  • 14. Gantt Chart 14 Phase Start date Completi on date Preliminary investigation Project Finalization 10/06/2011 17/06/2011 Investigation of system requirement 18/06/2011 25/06/2011 System Analysis 27/06/2011 14/8/2011 System Design 15/8/2011 28/9/2011 Coding Interface Coding 29/09/2011 15/10/2011 Database Connectivity 16/10/2011 30/10/2011 Validation Coding 31/10/2011 15/11/2011 Report Coding 17/11/2011 31/12/2011 Implementat ion Developer Testing 5/12/2011 12/12/2011 Client Testing 13/12/2011 22/12/2011 User Testing 25/12/2011 29/12/2011 Project Delivery 30/12/2011 05/1/2012 Project Report Submission Project Report Hard Copy Checking 8/1/2012 12/1/2012 Project Submission 13/1/2012 18/1/2012
  • 15. 15 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
  • 17. 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. 17
  • 18. Event Table 18 SR NO EVENT TRIGGER SOURCE ACTIVITY RESPONSE DESTINATION 1 Enter new customer Add Admin Create new record New record created System 2 Customer change in personal details Update Customer Update customer details Details updated Admin 3 Gives an Order New order Customer Create new Order New order created Employee 4 Enter new supplier Add supplier Admin Add new supplier record New record created System 5 Supplier change in details Update Supplier Update supplier details Details updated Admin 6 Owner needs supplier details Search Admin Search supplier details Display supplier details System 7 Enter new employee Add Admin Create new employee record New record created System 8 Stock entry Add Admin Generating receipt Get receipt Customer
  • 19. 19 9 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
  • 20. Use Case Diagram Supplier:- Supplier Admin Product:- Admin 20 Delete supplier details Display supplier details Search supplier Update supplier details Create a new supplier Lookup for supplier Delete product details Display product details Update product details Create a new product Lookup for product details
  • 21. Stock:- Admin Customer:- Customer Admin 21 Delete customer details Display customer details Search customer Update customer details Create a new customer details Lookup for customer details Delete stock details Display stock details Update stock details Create new stock details Lookup for stock details
  • 22. Order:- Customer Admin Bill:- Customer Admin 22 Lookup for order details Update order record Delete order record Create a new order Places an Order Display Bill Delete Bill Create a new Bill Places new Bill
  • 23. Entity-Relationship Diagram 23 Nokia Mobile Shop System CustomerPurchas Order Salary Employee Product Supplier Bill Bill
  • 24. Activity Diagram Customer No Yes 24 Nokia Mobile Shop System Enter Customer information Enter product information Product Supplier Place purchase order Check availability Give payment Add product Request product for purchase Create new order Calculate total Generate Bill Enter order Place Order Initiate maintain customer information Display Customer information Verify Customer information
  • 25. Class Diagram 1..* 1..* 1..* 1..* 1 1..* 1 1..* 1..* 1 1..* 1..* 25 Customer +Cust_id:Number +Cust_name:Text +Cust_add:Text +Cust_ph:Number +Cust_email:Text +Insert () +Update () +Delete () +New () Employee +Emp_id:Number +Emp_name:Text +Emp_add:Text +Emp_ph:Number +Insert () +Update () +Delete () +New () Order +Order_no:Number +Date:Date/Time +Cust_name:Text +Prod_name:Text +Total:Number +Insert () +Update () +Delete () +New () Product +Prod_no:Number +Prod_name:Text +Prod_info:Text +MRP:Number +Insert () +Update () +Delete () +New () Bill +Bill_no:Number +Order_no:Number +Cust_no:Number +Prod_name:Text +Total:Number +Insert () +Update () +Delete () +New () Supplier +Supp_no:Number +Supp_name:Text +Supp_add:Text +Suppt_ph:Number +Insert () +Update () +Delete () +New () Stock +Prod_id:Number +Prod_name:Text +Prod_qty:Number +Insert() +Update() +Delete() +New()
  • 26. Object Diagram 1..* 1..* 1..* 1..* 1 1..* 1 1..* 1..* 1 1..* 1..* 26 :Employee +Emp_id:Number +Emp_name:Text +Emp_add:Text +Emp_ph:Number +Insert () +Update () +Delete () +New () :Order +Order_no:Number +Date:Date/Time +Cust_name:Text +Prod_name:Text +Total:Number +Insert () +Update () +Delete () +New () :Product +Prod_no:Number +Prod_name:Text +Prod_info:Text +MRP:Number +Insert () +Update () +Delete () +New () :Bill +Bill_no:Number +Order_no:Number +Cust_no:Number +Prod_name:Text +Total:Number +Insert () +Update () +Delete () +New () :Stock +Prod_id:Number +Prod_name:Text +Prod_qty:Number +Insert() +Update() +Delete() +New() : Customer +Cust_id:Number +Cust_name:Text +Cust_add:Text +Cust_ph:Number +Cust_email:Text +Insert () +Update () +Delete () +New () : Employee +Emp_id:Number +Emp_name:Text +Emp_add:Text +Emp_ph:Number +Insert () +Update () +Delete () +New () : Order +Order_no:Number +Date:Date/Time +Cust_name:Text +Prod_name:Text +Total:Number +Insert () +Update () +Delete () +New () : Product +Prod_no:Number +Prod_name:Text +Prod_info:Text +MRP:Number +Insert () +Update () +Delete () +New () : Bill +Bill_no:Number +Order_no:Number +Cust_no:Number +Prod_name:Text +Total:Number +Insert () +Update () +Delete () +New () : Supplier +Supp_no:Number +Supp_name:Text +Supp_add:Text +Suppt_ph:Number +Insert () +Update () +Delete () +New () : Stock +Prod_id:Number +Prod_name:Text +Prod_qty:Number +Insert() +Update() +Delete() +New()
  • 27. 27
  • 28. Sequence Diagram Supplier:- Create Supplier: Create new supplier information New supplier created Admin Update Supplier: Display supplier details Update supplier details Supplier Admin Delete Supplier: Display supplier details Delete supplier Admin 28 System System System
  • 29. Product:- Create Product: Create new product details New product created Admin Update Product: Display product details Update product details Admin Delete Product: Display product details Delete selected product Admin 29 System System System
  • 30. Stock:- Create Stock: Create new stock information New stock created Admin Update Stock: Display stock details Update stock details Admin Delete Stock: Display stock details Delete stock Admin 30 System System System
  • 31. Customer:- Create Customer: Create new Customer information New Customer created Customer Admin Update Customer: Display Customer details Update Customer details Customer Admin Delete Customer: Display Customer details Delete Customer Admin 31 System System System
  • 32. Order:- Create Order: Create new Order information New Order created Customer Admin Update Order: Display Order details Update Order details Customer Admin Delete Order: Display Order details Delete Order Admin 32 System System System
  • 33. Bill:- Create Bill: Create new Bill information New Bill created Admin Delete Delete: Display Bill details Delete Bill Admin 33 System System
  • 34. Employee:- Create Employee: Create new Employee information New Employee created Admin Update Employee: Display Employee details Update Employee details Employee Admin Delete Employee: Display Employee details Delete Employee Admin 34 System System System
  • 35. Collaboration Diagram 1. Customer enquiry 2. Get information 5. Place order 6. Get order 8. Pay bill 7. Order fulfillment 9. Generate receipt 10. Check availability 3. Customer Of mobile Registration 14. Update records 4. Check details 11. Order 13. Payment 12. Placed order 35 Customer Supplier Employee
  • 36. State Diagram Login Customer enter Order for mobile Mobile not available Mobile available Check details Order fulfillment Paying bill Generating receipt 36 Customer enquiry Check availability of mobile Order for mobile End Check mobile details Mobile provide to customer Pay bill Generate receipt Idle
  • 38. 38
  • 39. Converting ERD to Tables Sr.No TABLE NAME PURPOSE 1 Cust_info This table is use to store, retrieve and information about the customer. the fields are c_no,cname,cadd,gender,contactno,email 2 Employee This table is use to store ,retrieve and information about the employee. The fields is : e_id,e_fname,e_mname,e_lname,e_add,e_city,e_contact. 3 Supplier This table is use to store ,retrieve and information about the supplier.The field are o_no,s_name,o_model,o_qty,o_prize, o_totprize,o_tax,o_tot. 4 Order This table is use to purchase , store , retrieve & the information like p_no,p_name. The field in the table are c_no,c_name,cadd,email,contactno, o_no,p_no,p_name,p_qty,p_mrp,p_tot. 5 Salary This table is use store ,retrieve and information about the employee salary. The field are e_id, e_fname,e_mname,e_lname, e_add, e_contact, msalary, advance. 39
  • 40. 40
  • 42. Package Diagram 42 Nokia Mobile shop system Supplier, Order, Stock, Emp Form Availability Cancel Connection Admin Other Form Emp form Supplier form Product form Order form Bill form Cancel Processing And Printing
  • 44. 44 Nokia Mobile store management Price Mobile Purchase order Customer Supplier Mobile bill Employee Paid Maintain customer details Mobile details Transaction of mobile Maintain employee details Paid details Generate mobile bill Purchase order details Customer bill report Supplier bill report System flow
  • 45. 45 Nokia Mobile Store System Maintain customer details Creation of order Bill generation Giving purchase order Get Customer details Save customer details Checking of product Customer details Product details Get mobile details Report generation Order fulfillment Retrieve mobile details Bill details Structure chart
  • 47. Menu Tree 47 MDI Form Main Customer information Mobile Details Customer Purchase order Reports Utility Calculator About Us Help Exit Employee Customer information Mobile Details Mobile Bill Supplier Report Transaction Transaction
  • 48. Table List 1.Table name:-Cust_info Sr.N o. Field Name Datatype Constraints Size Description 1 c_no Integer Primary key Stores the customer code 2 cname Varchar 10 Stores the customer name 3 4 cadd gender Varchar Varchar 10 10 Stores the customer address Store the customer gender 4 contactno Bigint Stores the customer contact. 5 email Varchar 25 Stores the customer email id 2.Table name:-Employee Sr. No. Field Name Datatype Constraints Size Description 1 E_id Integer Primary key Stores the employee code 2 3 4 E_fname E_mname E_lname Varchar Varchar varchar 15 15 15 Stores the employee name Stores the employee middle name Stores the employee last name 5 E_add Varchar 20 Stores the employee address 6 Ph_no Bigint Stores the employee ph.no. 48
  • 49. 3.Table name:-Supplier Sr. No. Field Name Datatype Constraints Size Description 1 o_no Integer Primary key Stores the company code 2 S_name Varchar 20 Stores the company name 3 4 o_model o_qty Varchar Integer 20 Stores the mobile model name Stores the mobile qty 5 o_color varchar 20 Stores the mobile color 6 7 8 9 o_prize o_totprize o_tax o_tot Bigint Bigint Bigint bigint Stores the mobile prize Stores the total prize Stores the tax value Stores the total amount included tax 4. Table name:-Order Sr. No. Field Name Datatype Constraints Size Description 1 c_no Integer Foreign key Stores the customer code 2 c_name Varchar 15 Stores the customer name 3 c_add Varchar 15 Stores the customer address 4 contactno Bigint Stores the customer contact no 5 email varchar 20 Stores the customer email 6 o_no Integer Stores the order no 7 p_no integer Stores the product no 8 P_name Varchar 15 Stores the product name 9 P_q ty Integer Stores the product quantity 10 P_mrp integer Stores the product prize 11 P_tot bigint Stores the product total prize 49
  • 50. 8. Table name:-Salary Sr. No. Field Name Datatype Constraints Size Description 1 E_id Integer primary Stores the employee id 2 3 E_fname e_mname Varchar varchar 15 15 Stores the employee name Stores the employee middle name 4 e_lname Varchar 15 Stores the employee last name 5 e_add varchar 20 Stores the employee address 6 e_contact Bigint Stores the employee contact no 7 msalary Bigint Stores the emp monthly salary 8 advance Bigint Stores the emp advance salary 50
  • 51. Program List NO FORM NAME PURPOSE 1 Loding.frm This form display the title of system name of organization & copyright of the system 2 Loginform.frm This form is used for security with the help of password 3 MdIForm.frm This is the multiple document interface for the all of the form in the project 4 Cust_info.frm This form is use for store the customer information 5 Emp.frm This form is use for store the employee information 6 Supplier.frm This form is use for store the Supplier information 7 Salary.frm This form use for store employee salary 51
  • 52. Report List NO. REPORT NAME PURPOSE 1 Crystalreport1.rpt This report is use for to print and show the customer bill 2 Crystalreport2.rpt This report is use for to print & show the supplier bill 52
  • 53. Program Description Program Name: Loding.vb Program Function: This is form is used to Load the system. Code:- Public Class Loading Dim i As Integer Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick ProgressBar1.PerformStep() i = i + 1 Label2.Text = i If ProgressBar1.Value = 100 Then Me.Hide() LoginForm1.Show() Timer1.Enabled = False End If End Sub 53
  • 54. Program Name: Login Form1.vb Program Function: This is form is used to Login in the system. Code:- Public Class LoginForm1 Private Sub OK_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click If UsernameTextBox.Text = "arti" And PasswordTextBox.Text = "123" Then Me.Hide() MDI.Show() Else MsgBox("error") End If End Sub 54
  • 55. Program Name: MDI.vb Program Function: This is form contains menus i.e. path for other forms. Code:- Public Class MDI Private Sub CustomerInfoToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CustomerInfoToolStripMenuItem.Click Cust_info.Show() End Sub Private Sub MobileDetailsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MobileDetailsToolStripMenuItem.Click MobiAdd.Show() End Sub Private Sub MobileBillToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Mobile_Bill.Show() End Sub Private Sub OrderToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PurchaseOrderToolStripMenuItem.Click 55
  • 56. 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:WINDOWSsystem32calc.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 56
  • 57. Program Name: Cust_info.vb Program Function: This is form is used to add new customer and its details Data entry form: 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) 57
  • 58. 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") 58
  • 59. End If End Sub Private Sub firstbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles firstbtn.Click i = 0 Call add(i) MsgBox("This is first Record") End Sub Private Sub previousbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles previousbtn.Click i = i - 1 If (i >= 0) Then Call add(i) Else MsgBox("this is previous record") End If End Sub Private Sub lastbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lastbtn.Click i = ds.Tables(0).Rows.Count - 1 Call add(i) MsgBox("This is last Record") End Sub Private Sub nextbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles nextbtn.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 Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" 59
  • 60. ComboBox1.SelectedIndex = -1 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) 60
  • 61. cmd.ExecuteNonQuery() 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 61
  • 62. Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click 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 & " ',E- mail='" & TextBox6.Text & " 'where Cust_No=" & TextBox1.Text & "", cn) cmd.ExecuteNonQuery() End If MsgBox("Record Updated Successfully.") End Sub End Class 62
  • 63. Program Name: emp.vb Program Function: This is form is used to add new employee and its details. Test Data:- Code:- Imports System.Data.OleDb Public Class emp 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 emp_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the '_Database1_mdbDataSet4.emp_details' table. You can move, or remove it, as needed. 63
  • 64. Me.Emp_detailsTableAdapter1.Fill(Me._Database1_mdbDataSet4.emp _details) cn = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|Database1.mdb.accdb") ad = New OleDbDataAdapter("select * from emp_details", cn) ds = New DataSet() ad.Fill(ds) 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 ComboBox1.Text = ds.Tables(0).Rows(i).Item(5).ToString TextBox6.Text = ds.Tables(0).Rows(i).Item(6).ToString TextBox7.Text = ds.Tables(0).Rows(i).Item(7).ToString 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 TextBox3_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox3.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 64
  • 65. 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 = "" End Sub 65
  • 66. 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 Private Sub Btn_e_First_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btn_e_First.Click 66
  • 67. 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 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") 67
  • 68. 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 68
  • 69. Program Name: Supplier.vb Program Function: This is form is used to add new supplier and its details. Test Data:- 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) 69
  • 70. 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 70
  • 71. Private Sub Txt_bo_Qty_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Txt_bo_Qty.TextChanged 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 Txt_bo_Ono.Text = "" Then ElseIf cmb_cm_sname.Text = "" Then ElseIf cmb_cm_model.Text = "" Then ElseIf Txt_bo_Qty.Text = "" Then ElseIf cmb_cm_color.Text = "" Then ElseIf Txt_bo_prize.Text = "" Then ElseIf txt_bo_total.Text = "" Then ElseIf Txt_bo_tax.Text = "" Then ElseIf txt_bo_totalprize.Text = "" Then MsgBox("Please Enter Record") Else a = MsgBox("Are you want to save new Supplier?", vbYesNo + vbQuestion, "SAVE") If a = vbYes Then cmd = New OleDbCommand("insert into Supplier values('" & Txt_bo_Ono.Text & "','" & cmb_cm_sname.Text & "','" & cmb_cm_model.Text & "','" & Txt_bo_Qty.Text & "','" & cmb_cm_color.Text & "','" & Txt_bo_prize.Text & "','" & txt_bo_total.Text & "','" & Txt_bo_tax.Text & "','" & txt_bo_totalprize.Text & "')", cn) cmd.ExecuteNonQuery() MsgBox("Record Save Successfully") End If End If End If End Sub 71
  • 72. Private Sub cmb_cm_model_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmb_cm_model.SelectedIndexChanged If cmb_cm_model.SelectedIndex = "0" Then Txt_bo_prize.Text = 25000 ElseIf cmb_cm_model.SelectedIndex = "1" Then Txt_bo_prize.Text = 30000 ElseIf cmb_cm_model.SelectedIndex = "2" Then Txt_bo_prize.Text = 27000 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 Txt_bo_Ono.Text = "" cmb_cm_sname.Text = "" cmb_cm_model.Text = "" Txt_bo_Qty.Text = "" cmb_cm_color.Text = "" Txt_bo_prize.Text = "" txt_bo_total.Text = "" Txt_bo_tax.Text = "" txt_bo_totalprize.Text = "" 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 Txt_bo_Ono.Text = "" Then MsgBox("Please Enter Order no") ElseIf Txt_bo_Ono.Text = "" Then Else a = MsgBox("Are you want to Delete Supplier?", vbYesNo + vbQuestion, "Delete") If a = vbYes Then cmd = New OleDbCommand("Delete From Supplier where O_no=" & Txt_bo_Ono.Text & "", cn) cmd.ExecuteNonQuery() MsgBox("Record Deleted Successfully.") 72
  • 73. 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 73
  • 74. 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() End If 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 74
  • 75. Program Name: order.vb Program Function: This is form is used to purchase mobile. Test Data:- 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) 75
  • 76. 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 76
  • 77. MsgBox("Enter Valid Email Address.", MsgBoxStyle.Exclamation, "Invalid Email Address") TextBox4.Text = "" End If End Sub Private Sub cmb_pr_id_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmb_pr_id.SelectedIndexChanged If cmb_pr_id.SelectedIndex = 0 Then txt_pr_name.Text = "N8" txt_mrp.Text = 25000 ElseIf cmb_pr_id.SelectedIndex = 1 Then txt_pr_name.Text = "N900" txt_mrp.Text = 30000 ElseIf cmb_pr_id.SelectedIndex = 2 Then txt_pr_name.Text = "nokia 5233" txt_mrp.Text = 6500 ElseIf cmb_pr_id.SelectedIndex = 3 Then txt_pr_name.Text = "nokia E5" txt_mrp.Text = 10519 ElseIf cmb_pr_id.SelectedIndex = 4 Then txt_pr_name.Text = "nokia X5-01" txt_mrp.Text = 9153 ElseIf cmb_pr_id.SelectedIndex = 5 Then txt_pr_name.Text = "nokia X6" txt_mrp.Text = 13839 ElseIf cmb_pr_id.SelectedIndex = 6 Then txt_pr_name.Text = "nokia N97" txt_mrp.Text = 23863 ElseIf cmb_pr_id.SelectedIndex = 7 Then txt_pr_name.Text = "nokia N79" txt_mrp.Text = 13355 ElseIf cmb_pr_id.SelectedIndex = 8 Then txt_pr_name.Text = "nokia C3" txt_mrp.Text = 5800 77
  • 78. ElseIf cmb_pr_id.SelectedIndex = 9 Then txt_pr_name.Text = "nokia 5800" txt_mrp.Text = 13518 End If End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Mobile_Bill.Show() End Sub Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox10.TextChanged End Sub Private Sub totalbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles totalbtn.Click TextBox7.Text = TextBox6.Text * txt_mrp.Text End Sub Private Sub savebtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles savebtn.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 cmb_pr_id.Text = "" Then ElseIf txt_pr_name.Text = "" Then ElseIf TextBox6.Text = "" Then ElseIf txt_mrp.Text = "" Then ElseIf TextBox7.Text = "" Then Else a = MsgBox("Are you want to save new Order?", vbYesNo + vbQuestion, "SAVE") If a = vbYes Then cmd = New OleDbCommand("insert into Order values('" & 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 & "')", cn) 78
  • 79. 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() 79
  • 80. MsgBox("Record Deleted Successfully.") End If End If End If End Sub Private Sub firstbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles firstbtn.Click i = 0 Call add(i) MsgBox("This is first Record") End Sub Private Sub previousbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles previousbtn.Click i = i - 1 If (i >= 0) Then Call add(i) Else MsgBox("this is previous record") End If End Sub Private Sub lastbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lastbtn.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 nextbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles nextbtn.Click i = ds.Tables(0).Rows.Count - 1 Call add(i) MsgBox("This is last Record") 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() 80
  • 81. 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 81
  • 82. 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 82
  • 83. 'TODO: This line of code loads data into the '_Database1_mdbDataSet13.Salary' table. You can move, or remove it, as needed. Me.SalaryTableAdapter.Fill(Me._Database1_mdbDataSet13.Salary) cn = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|Database1.mdb.accdb") ad = New OleDbDataAdapter("select * from Salary", cn) ds = New DataSet() ad.Fill(ds) 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 TextBox6.Text = ds.Tables(0).Rows(i).Item(5).ToString 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 ' dt = TextBox1.Text ' MsgBox(dt) cmd = New OleDbCommand("insert into Salary values('" & TextBox1.Text & "','" & TextBox2.Text & "' ,'" & TextBox3.Text & "','" & TextBox4.Text & "','" & TextBox5.Text & "','" & TextBox6.Text & "')", cn) cmd.ExecuteNonQuery() End If MsgBox("Record Saved Successfully.") 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 = " " 83
  • 84. TextBox4.Text = " " TextBox5.Text = " " TextBox6.Text = " " 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 ' dt = TextBox1.Text ' MsgBox(dt) cmd = New OleDbCommand("Delete From Salary where Emp_ID=" & TextBox1.Text & "", cn) cmd.ExecuteNonQuery() End If MsgBox("Record Deleted Successfully.") 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() If (f = 0) Then ' dt = TextBox1.Text ' MsgBox(dt) cmd = New OleDbCommand("Update Salary set Emp_ID= ' " & TextBox1.Text & " ',F_Name= ' " & TextBox2.Text & " ' ,L_Name= ' " & TextBox3.Text & " ',D_o_sal= ' " & TextBox4.Text & " ',Advance=' " & TextBox5.Text & " ',T_sal='" & TextBox6.Text & " 'where Emp_ID=" & TextBox1.Text & "", cn) cmd.ExecuteNonQuery() End If MsgBox("Record Updated Successfully.") 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 84
  • 85. 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() 85
  • 86. 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 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 TextBox3_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox3.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 End Class 86
  • 87. Program Name: Mobile Details.vb Program Function: This Form display the various Mobile Details. Test Result: 87
  • 88. Program Name:-Help Program Function: This is form is used to display details about system. Test Result: 88
  • 89. Program Name:-Mobile Bill.vb Program Function: This is form is used to display receipt of individual customer. Test Result:- 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") Label2.Text = Order.TextBox1.Text 89
  • 90. 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 90
  • 91. Program Name:-Supplier Bill.vb Program Function: This is form is used to display receipt of supplier bill. Test Result:- 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 Lper_prize.Text = supplier.Txt_bo_prize.Text 91
  • 92. 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:- 92
  • 93. 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:ImppppppppArtiCrystalReport1.rpt") CrystalReportViewer1.ReportSource = cryRpt CrystalReportViewer1.Update() End Sub End Class 93
  • 94. Report Name:- Supplier_bill.vb Report function:- This form displays all customers bill. Test Result:- Code:- Imports CrystalDecisions.CrystalReports.Engine Public Class supplier_report Private Sub supplier_report_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim cryRpt As New ReportDocument cryRpt.Load("F:ImppppppppArtiCrystalReport2.rpt") CrystalReportViewer1.ReportSource = cryRpt CrystalReportViewer1.Update() End Sub End Class 94
  • 96. System Implementation VARIABLE NAME DATA TYPE DESCRIPTION Cn Connection To make the connection between application & database. Cmd SqlCommand To execute sql query on table Reader SqlDataReader To read data retrieve by sqlcommand. CryRpt CrystalReport To display crystal report. SYSTEM CONTROLS AND STANDARDS 1. Access control:- System gives access by valid password. 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. 96
  • 98. 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. 98
  • 99. 99
  • 100. Chapter 7 reFerenceS & BIBlIography 100
  • 101. References & Bibliography Sr.No. Type Description 1. Book name : Author : Publication : Visual Basic 2008 Anne Boehm Murach 2. Book name : Author : Publication : Mastering Visual Basic 2008 Evangelos Petroutsos Wiley-India Edition 101