You are on page 1of 98

A PROJECT REPORT ON

Nokia Mobile Shop Management System
Submitted to

University of Mumbai 2011-2012
BY Miss. AARTI DEEPAK SHINDE

1

INDEX
Sr.No. 1 Title Preliminary Investigation Organizational Overview Description Of System Limitations Of Present System Proposed System & its Advantage Feasibility Study Stakeholders Gantt Chart System Analysis Fact Findings Event Table Use Case Diagram Entity Relationship Diagram Activity Diagram Class Diagram Object Diagram Sequence Diagram Collaboration Diagram State Diagram System Design Converting ERD to Tables Relationship Diagram Component Diagram Package Diagram Deployment Diagram System Flow Chart Structure Chart System Coding Menu Tree List of Tables with Attributes & Constraints Program Description with naming Conventions Program Listing Validations Test Cases, Test Data, Test Results Screen Layouts & Report Layouts System Implementation & Uploading Future Enhancement References & Bibliography Page No. 6 7 8 9 10 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 41

2

3

4

5 6 7

114 116 120

2

Chapter 1

Preliminary Investigation

3

Organizational Overview Organizational Chart Mobile Store Management System Employee Supplier Customer 4 .

Suppliers. etc in a register. For searching of single record. Preparing report is very time consuming and tedious task. Customers. A daily register is maintained to keep track of complaints. 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. whole register is to be searched which is very time consuming task.

 Even when the data is maintained on spreadsheet inconsistency occurs as an order might be missed or wrongly entered or twice.  Lack of security. 6 .  As storage and exchange of data is achieved only by use of excel sheets which lack validation capabilities. inaccurate or incomplete data being fed in computer.  Difficulty in managing multiple forms. Due to this the data retrieved is time consuming.  Data are stride an excel sheet which takes lot of time and data may be corrupted. Due to human calculation errors occur.Limitations Of Present System  As mentioned above most of details are maintained manually. there is always risk of invalid.

In this system user have to enter the data only once and then it get linked with all files.Proposed System The proposed system is computerized and has been developed using advance language therefore it gives more facilities than present system. The system maintains all records easy. The information about any Subscriber can be easily retrieved. This reduces the workload of user and it is also a time saving process. It provides quick access to any data. 7 .

bill information.  It will produce report for sale.  We can calculate result and print any report within seconds. purchase will be maintain properly in this system. So the computerized system is more suitable than the manual system. 8 .Advantages of Proposed System:  All the information about sale.  The computer can hold amount of data in its storage device.  The operation and speed of the computer is very high.  Any difficulties we can solve easily.  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 is very user friendly and easy to handle.  A database application can be stored in computer effectively.

 RAM  HARD DISK  CD-Rom Driver 9 . Hardware Specifications Minimum hardware requirements for this System are listed below:  Processor : : : : Pentium-4 256MB.0 MS Access-2007 Windows XP Microsoft Office  FOR DOCUMENTATION : 2. Any. 80GB.Feasibility Of Study 1. Software Specification:Software requirements for this system are as listed follows:  FRONTEND  BACKEND  OPERATING SYSTEM : : : Microsoft Visual Basic 8.

7. allowing appropriate action to be taken at the place the error occurred thus discouraging the use of ON ERROR GOTO statement.NET is free threading against the VB single-threaded apartment feature.NET comes with a new security model.e. Code Access security.NET framework comes with ADO. This relieves the developer from thinking of ways to manage memory.NET is totally object oriented. Error handling has changed in VB.e. This security controls on what the code can access.NET framework are readily available in VB. data are passed as simple text strings. stable and secure applications. CLR does this for them. 5.NET provides managed code execution that runs under the Common Language Runtime (CLR). 6. This enhances Scalability of the application to a great extent. The CLR takes care of garbage collection i.NET allows developers to spawn threads wherever they feel like. For example you can set the security to a component such that the component cannot access the database. VB. VB.NET. First of all. In many situations developers need spawning of a new thread to run as a background process and increase the usability of the application. This type of security is important because it allows building components that can be trusted to various degrees. This again credits to the maintainability of the code. 8.e. It also retrieves the records that are expected to be accessed in the immediate future. hence giving freedom and better control on the application. VB. The . i. resulting in robust.FRONTEND: .MICROSOFT VISUAL STUDIO 2008 1. which follows the disconnected paradigm. 2. Security has become more robust in VB. This is a major addition that VB6 and other earlier releases didn't have. All features of the . Another great feature added to VB.NET uses XML to transfer data between the various layers in the DNA Architecture i. 3. VB. 4. VB.NET.NET.NET. A new Try-Catch-Finally block has been introduced to handle errors and exceptions as a unit. once the required records are fetched the connection no longer exists. 10 . the CLR releases resources as soon as an object is no more in use. In addition to the rolebased security in VB6.

Access includes an Upsizing Wizard that allows users to upsize their databases to Microsoft SQL Server. MS Access stores data in its own format based on the Access Jet Database Engine. is also available for download from 11 . An additional solution. The "front-end" database is distributed to each user's desktop and linked to the shared database. previously known as Microsoft Access. reports. an ODBC client–server database. It can also import or link directly to data stored in other applications and databases Microsoft Access applications can adopt split-database architecture. The "back-end" database can be stored in a location shared by many users. and modules). the SQL Server Migration Assistant for Access (SSMA).BACKEND: MS-ACCESS 2007 Microsoft Office Access. is a database management system from Microsoft that combines the relational Microsoft Jet Database Engine with a graphical user interface and softwaredevelopment tools. such as a file server. and is linked to tables stored in a back-end shared database containing the data. macros. forms. The database can be divided into a front-end database that contains the application objects (queries.

2. They may also exert influence over the project’s objectives and outcomes. The following are examples of project stakeholders: 1. 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. manage their influence in relation to the requirements to ensure a successful project. 3. to the extent possible. Project customer :Project Customer is one who pays for the developed software. determine their requirements and expectations. Project Developers :Project Developers is one who develops software for customer.e. The project management team must identify the stakeholders. 12 . Project Developer.Stakeholders Stakeholders are anyone who has an interest in the project. and. In my project I am the first stakeholder i. Project user Group :Project User group are those people who use the software on daily basis for the Project Customer.

Project Testers Project Testers are those who test the software. 13 .4.

Gantt Chart Phase Prelimina ry investiga tion Project Finalizati on Investiga tion of system requirem ent System Analysis System Design Coding Interface Coding Database Connecti vity Validatio n Coding Report Coding Impleme ntation Develope r Testing Client Testing User Testing Project Delivery Project Report Submissi on Project Report Hard Copy Checking Project Submissi on Start date Compl etion date 10/06/2 011 18/06/2 011 17/06/20 11 25/06/20 11 27/06/2 011 15/8/20 11 14/8/201 1 28/9/201 1 29/09/2 011 16/10/2 011 31/10/2 011 17/11/2 011 15/10/20 11 30/10/20 11 15/11/20 11 31/12/20 11 5/12/20 11 13/12/2 011 25/12/2 011 30/12/2 011 12/12/20 11 22/12/20 11 29/12/20 11 05/1/201 2 8/1/201 2 12/1/201 2 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 14 13/1/20 12 18/1/201 2 .

Chapter 2 System Analysis 15 .

Fact Finding Techniques Employed 1. 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. Study the bottlenecks find out the redundant work being performed in the system. Document Searching An extensive study of existing document an official correspondence was done to understand the present working status of organization. Collect various information through various fact finding techniques. efficient as well as time consuming. hence is not speedy. Identify the procedural difficulties experienced by the user.Fact Findings Introduction The Current System is the manual one. accurate. 2. 16 . Interviews Information was obtained from the employees at the organization by interviewing them at the location and time convention both. To understand the physical flow of the information through the current system.

Event Table SR NO 1 EVENT Enter new customer Customer change in personal details Gives an Order Enter new supplier TRIGGER Add SOURCE Admin ACTIVITY Create new record Update customer details RESPONSE New record created Details updated DESTINATION System 2 Update Customer Admin 3 New order Customer Create new Order Add new supplier record Update supplier details Search supplier details Create new employee record Generating receipt New order created New record created Employee 4 Add supplier Admin System 5 Supplier change in details Owner needs supplier details Enter new employee Update Supplier Details updated Admin 6 Search Admin Display supplier details New record created System 7 Add Admin System 8 Stock entry Add Admin Get receipt Customer 17 .

9 Paying Bill Order fulfillment Customer Paying bill Get payment Admin 10 Generating reports Updating records Delete record New report Admin Generating receipt Updating records Check records Get receipt System 11 Check previous records Delete Admin Record is update Delete record System 12 admin System 18 .

Use Case Diagram Supplier:Create a new supplier Update supplier details Delete supplier details Display supplier details Lookup for supplier Supplier Admin Search supplier Product:Create a new product Update product details Lookup for product details Delete product details Admin Display product details 19 .

Stock:Create new stock details Update stock details Lookup for stock details Delete stock details Admin Display stock details Customer:- Create a new customer details Update customer details Delete customer details Display customer details Lookup for customer details Customer Admin Search customer 20 .

Order:- Places an Order Create a new order Lookup for order details Update order record Customer Delete order record Admin Bill:- Places new Bill Create a new Bill Display Bill Customer Admin Delete Bill 21 .

Entity-Relationship Diagram Purchas Order Customer Bill Nokia Mobile Shop System Bill Employee Product Supplier Salary 22 .

Activity Diagram Customer Nokia Mobile Shop System Enter Customer information Display Customer information Verify Customer information Initiate maintain customer information Place Order Create new order Request product for purchase Check availability No Place purchase order Yes Enter product information Supplier Product Add product Enter order Give payment Calculate total Generate Bill 23 .

..* 1.....* +Insert () +Update () +Delete () +New () 24 ..* 1..* 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 1.* Employee +Emp_id:Number +Emp_name:Text +Emp_add:Text +Emp_ph: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 1 1 1..* 1.* 1.* 1.* +MRP:Number +Insert() +Update() +Delete() +New() 1 1.Class Diagram Customer +Cust_id:Number +Cust_name:Text +Cust_add:Text +Cust_ph:Number +Cust_email:Text +Insert () +Update () +Delete () +New () Supplier +Supp_no:Number +Supp_name:Text +Supp_add:Text +Suppt_ph:Number +Insert () +Update () +Delete () +New () 1.

..* :Product :Bill +MRP:Number +Bill_no:Number +Prod_no:Number +Order_no:Number +Prod_name:Text +Cust_no:Number +Insert () +Prod_info:Text +Prod_name:Text +Update () +MRP:Number +Total:Number +Delete () +New () +Insert () 25 +Update () +Delete () +New () +Insert() +Update() +Delete() +New() 1 1.* 1..* 1..* : Order +Order_no:Number +Date:Date/Time +Cust_name:Text :Order :Employee +Prod_name:Text +Order_no:Number +Total:Number +Date:Date/Time +Emp_id:Number +Cust_name:Text +Emp_name:Text +Insert () +Prod_name:Text +Emp_add:Text +Update () +Total:Number +Emp_ph:Number +Delete () +New () +Insert () +Update () +Delete () +New () : Product +Prod_no:Number +Prod_name:Text +Prod_info:Text 1.* :Stock +Prod_id:Number +Prod_name:Text +Prod_qty:Number +Insert() +Update() +Delete() +New() .* : Employee +Emp_id:Number +Emp_name:Text +Emp_add:Text +Emp_ph: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 1 1 1.* 1.Object Diagram : Customer +Cust_id:Number +Cust_name:Text +Cust_add:Text +Cust_ph:Number +Cust_email:Text +Insert () +Update () +Delete () +New () : Supplier +Supp_no:Number +Supp_name:Text +Supp_add:Text +Suppt_ph:Number +Insert () +Update () +Delete () +New () 1.* 1....* 1...

26 .

Sequence Diagram Supplier:- Create Supplier: Create new supplier information System New supplier created Admin Update Supplier: Display supplier details Update supplier details System Supplier Admin Delete Supplier: Display supplier details Delete supplier System Admin 27 .

Product:- Create Product: Create new product details System New product created Admin Update Product: Display product details Update product details System Admin Delete Product: Display product details Delete selected product System Admin 28 .

Stock:- Create Stock: Create new stock information System New stock created Admin Update Stock: Display stock details Update stock details System Admin Delete Stock: Display stock details Delete stock System Admin 29 .

Customer:- Create Customer: Create new Customer information System New Customer created Customer Admin Update Customer: Display Customer details Update Customer details System Customer Admin Delete Customer: Display Customer details Delete Customer System Admin 30 .

Order:- Create Order: Create new Order information System New Order created Customer Admin Update Order: Display Order details Update Order details System Customer Admin Delete Order: Display Order details Delete Order System Admin 31 .

Bill:- Create Bill: Create new Bill information System New Bill created Admin Delete Delete: Display Bill details Delete Bill System Admin 32 .

Employee:- Create Employee: Create new Employee information System New Employee created Admin Update Employee: Display Employee details Update Employee details System Employee Admin Delete Employee: Display Employee details Delete Employee System Admin 33 .

8. Generate receipt 10. Update records Employee 3.Collaboration Diagram Customer 1. Check availability Of mobile 14. Order fulfillment 9. Place order 6. Customer enquiry 2. Check details 11. Customer Registration 4. Order 13. Get information 5. Placed order Supplier 34 . Payment 12. Get order Pay bill 7.

State Diagram Login Idle Customer enter Customer enquiry Order for mobile Mobile not available Check availability of mobile Mobile available Order for mobile End Check mobile details Check details Mobile provide to customer Order fulfillment Pay bill Paying bill Generate receipt Generating receipt 35 .

Chapter 3 System Design 36 .

The field are o_no.No TABLE NAME PURPOSE This table is use to store.e_add.retrieve and information about the supplier.e_mname.o_tot.p_tot.retrieve and information about the employee salary.Converting ERD to Tables Sr. retrieve & the information like p_no. advance.p_no. msalary. e_fname.p_name.e_mname. e_contact. o_no.o_model.email This table is use to store . the fields are c_no. o_totprize.o_tax. This table is use to store .p_mrp. e_add.e_lname.s_name. 1 Cust_info 2 3 Employee Supplier 4 Order 5 Salary 37 .e_fname. This table is use to purchase . The field in the table are c_no.o_prize. This table is use store .e_contact.o_qty.gender.e_city.c_name.p_name.contactno.cname.cadd.e_lname. The field are e_id.p_qty.email.retrieve and information about the employee. retrieve and information about the customer.contactno.cadd. The fields is : e_id. store .

vb Emp.vb Bill.Component Diagram Supplier.vb Order.vb Order.vb Salary.vb 38 .vb Nokia Mobile Shop System Customer.vb Stock.

Emp Form Availability Connection Admin Other Form Emp form Supplier form Product form Order form Bill form Cancel Processing And Printing 39 . Stock.Package Diagram Nokia Mobile shop system Cancel Supplier. Order.

vb Mobdetails.vb Database Server <<device>> Order.vb Transaction.Deployment Diagram PC <<device>> XP Cust.vb Emp.vb Printer 40 .vb Emp.vb Bill.

System flow Maintain customer details Customer Price Mobile Mobile details Purchase order Purchase order details Nokia Mobile store management Mobile bill Generate mobile bill Customer bill report Paid Paid details Employee Maintain employee details Supplier Transaction of mobile Supplier bill report 41 .

Structure chart Nokia Mobile Store System Maintain customer details Creation of order Bill generation Get Customer details Save customer details Product details Customer details Checking of product Giving purchase order Order fulfillment Bill details Get mobile details Retrieve mobile details Report generation 42 .

Chapter 4 System Coding 43 .

Menu Tree Customer information Main Mobile Details Customer Purchase order MDI Form Employee Customer information Mobile Details Transaction Transaction Mobile Bill Reports Supplier Report Utility Calculator About Us Exit Help 44 .

Table List 1.N o.Table name:-Employee Sr.1 2 3 4 4 5 Field Name c_no cname cadd gender contactno email Datatype Integer Varchar Varchar Varchar Bigint Varchar Constraints Primary key 10 10 10 25 Size Description Stores the customer code Stores the customer name Stores the customer address Store the customer gender Stores the customer contact. Stores the customer email id 2. 45 .no.Table name:-Cust_info Sr. No. 1 2 3 4 5 6 Field Name E_id E_fname E_mname E_lname E_add Ph_no Datatype Constraints Integer Varchar Varchar varchar Varchar Bigint Primary key 15 15 15 20 Size Description Stores the employee code Stores the employee name Stores the employee middle name Stores the employee last name Stores the employee address Stores the employee ph.

3.Table name:-Supplier
Sr. No. 1 2 3 4 5 6 7 8 9 Field Name o_no S_name o_model o_qty o_color o_prize o_totprize o_tax o_tot Datatype Constraints Integer Varchar Varchar Integer varchar Bigint Bigint Bigint bigint Primary key 20 20 Size Description Stores the company code Stores the company name Stores the mobile model name Stores the mobile qty Stores the mobile color Stores the mobile prize Stores the total prize Stores the tax value Stores the total amount included tax

20

4. Table name:-Order
Sr. No. 1 2 3 4 5 6 7 8 9 10 11 Field Name c_no c_name c_add contactno email o_no p_no P_name P_q ty P_mrp P_tot Datatype Constraints Integer Foreign key Varchar Varchar Bigint varchar Integer integer Varchar Integer integer bigint
46

Size 15 15

Description Stores the customer code Stores the customer name Stores the customer address Stores the customer contact no Stores the customer email Stores the order no Stores the product no

20

15

Stores the product name Stores the product quantity Stores the product prize Stores the product total prize

8. Table name:-Salary
Sr. No. 1 2 3 4 5 6 7 8 Field Name E_id E_fname e_mname e_lname e_add e_contact msalary advance Datatype Constraints Integer Varchar varchar Varchar varchar Bigint Bigint Bigint primary 15 15 15 20 Size Description Stores the employee id Stores the employee name Stores the employee middle name Stores the employee last name Stores the employee address Stores the employee contact no Stores the emp monthly salary Stores the emp advance salary

47

Program List

NO
1 2 3 4 5 6 7

FORM NAME
Loding.frm Loginform.frm MdIForm.frm Cust_info.frm Emp.frm Supplier.frm Salary.frm

PURPOSE
This form display the title of system name of organization & copyright of the system This form is used for security with the help of password This is the multiple document interface for the all of the form in the project This form is use for store the customer information This form is use for store the employee information This form is use for store the Supplier information This form use for store employee salary

48

Report List NO.rpt 49 .rpt PURPOSE This report is use for to print and show the customer bill This report is use for to print & show the supplier bill 2 Crystalreport2. 1 REPORT NAME Crystalreport1.

Text = i If ProgressBar1.Hide() LoginForm1. Code:Public Class Loading Dim i As Integer Private Sub Timer1_Tick(ByVal sender As System.Tick ProgressBar1.Show() Timer1.Enabled = False End If End Sub 50 .EventArgs) Handles Timer1.Program Description Program Name: Loding.Object.vb Program Function: This is form is used to Load the system.PerformStep() i = i + 1 Label2.Value = 100 Then Me. ByVal e As System.

vb Program Function: This is form is used to Login in the system.Text = "123" Then Me. Code:Public Class LoginForm1 Private Sub OK_Click_1(ByVal sender As System.Object.Show() Else MsgBox("error") End If End Sub 51 .EventArgs) Handles OK.Program Name: Login Form1.Hide() MDI.Click If UsernameTextBox. ByVal e As System.Text = "arti" And PasswordTextBox.

Program Name: MDI.EventArgs) Handles CustomerInfoToolStripMenuItem. path for other forms.Object.Click Order.EventArgs) Handles MobileDetailsToolStripMenuItem.e. Code:Public Class MDI Private Sub CustomerInfoToolStripMenuItem_Click(ByVal sender As System. ByVal e As System.Show() End Sub Private Sub OrderToolStripMenuItem_Click(ByVal sender As System. ByVal e As System.Show() End Sub Private Sub MobileDetailsToolStripMenuItem_Click(ByVal sender As System.EventArgs) Mobile_Bill.Object.Show() End Sub Private Sub MobileBillToolStripMenuItem_Click(ByVal sender As System.EventArgs) Handles PurchaseOrderToolStripMenuItem.Show() 52 .vb Program Function: This is form contains menus i.Click Cust_info. ByVal e As System.Object.Object. ByVal e As System.Click MobiAdd.

Object.Show() End Sub 53 .EventArgs) Handles SalaryToolStripMenuItem.Object. ByVal e As System.Click about.Click supplier.Object. ByVal e As System.Click Process.Object.Show() End Sub Private Sub ToolStripMenuItem1_Click(ByVal sender As System.Click emp.Start("C:\WINDOWS\system32\calc.Click Me.Show() End Sub Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.EventArgs) Handles CalculatorToolStripMenuItem. ByVal e As System.Object.Object. ByVal e As System.EventArgs) Handles ReceivedMobileToolStripMenuItem.Show() End Sub Private Sub EmployeeDetailsToolStripMenuItem_Click(ByVal sender As System.EventArgs) Handles ExitToolStripMenuItem. ByVal e As System. ByVal e As System.Click salary.EventArgs) Handles ToolStripMenuItem1. ByVal e As System.End Sub Private Sub AboutToolStripMenuItem_Click(ByVal sender As System.Show() End Sub Private Sub ReceivedMobileToolStripMenuItem_Click(ByVal sender As System.Click supplier_report.Object.Object.EventArgs) Handles AboutToolStripMenuItem.exe") End Sub Private Sub SalaryToolStripMenuItem_Click(ByVal sender As System.EventArgs) Handles MobileBillToolStripMenuItem1.Show() End Sub Private Sub CalculatorToolStripMenuItem_Click(ByVal sender As System.Close() End Sub Private Sub MobileBillToolStripMenuItem1_Click(ByVal sender As System. ByVal e As System.Click Report_bill.EventArgs) Handles EmployeeDetailsToolStripMenuItem.

Cust_infoTableAdapter1.Program Name: Cust_info.Cust_info) cn = New OleDbConnection("Provider=Microsoft.mdb._Database1_mdbDataSe t14.12. or remove it.accdb") 54 .Fill(Me.0.Cust_info' table.OleDbDataAdapter Dim ds As New DataSet Dim dr As String Dim dt As String Dim i.Data Source=|DataDirectory|\Database1. f. a As Integer Private Sub Cust_Info_Load(ByVal sender As System. as needed.Data.Load 'TODO: This line of code loads data into the '_Database1_mdbDataSet14.EventArgs) Handles MyBase.OleDb Public Class Cust_Info Dim cmd As OleDbCommand Dim cn As New OleDbConnection Dim ad As New OleDbDataAdapter Dim SlotAdapter As New OleDb.Object. Me.OLEDB.vb Program Function: This is form is used to add new customer and its details Data entry form: Code:Imports System.ACE. You can move. ByVal e As System.

"confirm exit") Me. ByVal e As System. ByVal e As System. cn) ds = New DataSet() ad.IndexOf(".1)) If bool = False Then MsgBox("Enter Valid Email Address. MsgBoxStyle.Exclamation.IndexOf("@") < email. "Invalid Email Address") TextBox5.IsLetter(c) Or Char.EventArgs) Handles exitbtn.EventArgs) Handles TextBox5.")) _ And (email.Trim bool = ((email.Windows.ad = New OleDbDataAdapter("select * from Cust_info".IndexOf(".Text.IndexOf("@") <> email.KeyPressEventArgs) Handles TextBox2. OleDbYesNo + OleDbQuestion.Close() End If End Sub Private Sub TextBox5_LostFocus(ByVal sender As Object.Object.Handled = True MsgBox("enter only character") End If End Sub 55 .LostFocus Dim bool As Boolean Dim email As String = TextBox5.".IsControl(c)) Then e.Fill(ds) End Sub Private Sub exitbtn_Click(ByVal sender As System.Forms.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?".KeyChar If Not (Char.KeyPress Dim c As Char c = e. ByVal e As System.Contains(".Contains("@") And email.") .Text = "" End If End Sub Private Sub TextBox2_KeyPress(ByVal sender As Object.")) And (email.

Click TextBox1.Object.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.EventArgs) Handles Button4.EventArgs) Handles previousbtn.Object.Text = "" TextBox2.Click i = 0 Call add(i) MsgBox("This is first Record") End Sub Private Sub previousbtn_Click(ByVal sender As System.Click i = i .Private Sub firstbtn_Click(ByVal sender As System. ByVal e As System.Rows.Count .Object.Object.Tables(0).1 Call add(i) MsgBox("This is last Record") End Sub Private Sub nextbtn_Click(ByVal sender As System.Click i = ds.SelectedIndex = -1 TextBox4.Count) Then Call add(i) Else MsgBox("this is next record") End If End Sub Private Sub Button4_Click(ByVal sender As System.Text = "" ComboBox1.Text = "" End Sub 56 .Click i = i + 1 If (i < ds.Rows. ByVal e As System.Object. ByVal e As System. ByVal e As System. ByVal e As System.EventArgs) Handles nextbtn.Tables(0).Text = "" TextBox3.EventArgs) Handles lastbtn.EventArgs) Handles firstbtn.Text = "" TextBox5.

cn) cmd.EventArgs) Handles Button3.Text = "" Then MsgBox("Please Enter Cust_No") ElseIf TextBox1.EventArgs) Handles Button2.Fill(ds) DataGridView1.Close() cn.Open() cmd1.DataSource = ds.ExecuteScalar a = Val(TextBox1.Close() cn.Text & "".Close() cn.ExecuteNonQuery() End If MsgBox("Record Deleted Successfully.Open() ds.Close() End If Dim cmd1 As New OleDbCommand cn.Connection = cn cmd1.Object.Clear() If TextBox1.Text = "" Then Else ad = New OleDbDataAdapter("select * from Cust_info where Cust_No=" & TextBox1. ByVal e As System. cn) ad. ByVal e As System.Private Sub Button3_Click(ByVal sender As System.") 57 .CommandText = "select count(*) from Cust_info" Dim m As Integer m = cmd1.Open() If (f = 0) Then ' dt = TextBox1.Text) If a > m Then MsgBox("No Record") End If End Sub Private Sub Button2_Click(ByVal sender As System.Click cn.Click cn.Object.Tables(0) cn.Text ' MsgBox(dt) cmd = New OleDbCommand("Delete From Cust_info where Cust_No=" & TextBox1.Text & "".

Object.Item(5).Text = "" Then ElseIf TextBox2.'" & TextBox2.Close() cn.Text = "" Then ElseIf TextBox4.Text & "'.ToString End Sub Private Sub Button5_Click(ByVal sender As System.Rows(i).Close() cn.Click cn.ToString TextBox5.'" & TextBox3.Tables(0).Tables(0).Open() If (f = 0) Then If TextBox1.Text = ds.Text = "" Then ElseIf ComboBox1.ToString ComboBox1.Tables(0).Open() If (f = 0) Then 58 .'" & ComboBox1.Text = ds.Rows(i). ByVal e As System.Rows(i).Item(0).Tables(0).ToString TextBox3. cn) cmd.Click cn.ToString TextBox4.Text = ds.Text & "'.Text = "" Then ElseIf TextBox3.Text = ds.Text = ds.'" & TextBox4.'" & TextBox5.Item(2). ByVal e As System.Tables(0). vbYesNo + vbQuestion.Text & "'.Rows(i).Item(1).Rows(i).Object.Item(3).Text & "')".Item(4).ToString TextBox2.Text = ds.End Sub Private Sub Button1_Click(ByVal sender As System.Text & "'. "SAVE") If a = vbYes Then cmd = New OleDbCommand("insert into Cust_info values('" & TextBox1.Text & "'.Tables(0).ExecuteNonQuery() MsgBox("Record Save Successfully") End If End If End If End Sub Sub add(ByVal i As Integer) TextBox1.EventArgs) Handles Button1.Text = "" Then ElseIf TextBox5.Rows(i).Text = "" Then MsgBox("Please Enter Record") Else a = MsgBox("Are you want to save new Customer?".EventArgs) Handles Button5.

Text & " '.Text & " 'where Cust_No=" & TextBox1.Text & " ' .Text & " '.' dt = TextBox1.Text & " '.") End Sub End Class 59 .Email='" & TextBox6.Name= ' " & TextBox2.Text ' MsgBox(dt) cmd = New OleDbCommand("Update Cust_info set Cust No= ' " & TextBox1.Gender= ' " & ComboBox1.Address= ' " & TextBox3.Text & "".Text & " '.Contact No=' " & TextBox5.ExecuteNonQuery() End If MsgBox("Record Updated Successfully. cn) cmd.

f.emp_details' table. 60 . a As Integer Private Sub emp_Load(ByVal sender As System. You can move.Object. ByVal e As System.Program Name: emp. as needed.vb Program Function: This is form is used to add new employee and its details.Data. Test Data:- Code:Imports System.Load 'TODO: This line of code loads data into the '_Database1_mdbDataSet4.EventArgs) Handles MyBase.OleDb Public Class emp Dim Dim Dim Dim Dim Dim Dim cmd As OleDbCommand cn As New OleDbConnection ad As New OleDbDataAdapter ds As New DataSet dr As String dt As String i. or remove it.

Emp_detailsTableAdapter1.Rows(i).accdb") ad = New OleDbDataAdapter("select * from emp_details"._Database1_mdbData Set4.Tables(0).Text = ds.Rows(i).Item(4). cn) ds = New DataSet() ad.mdb.ToString TextBox3.Text = ds.Text = ds.Tables(0).Windows.Tables(0).ToString TextBox2. ByVal e As System.Item(1). ByVal e As System.Tables(0).12.Text = ds.KeyPress Dim c As Char c = e.Text = ds.Item(6).Fill(ds) End Sub Sub add(ByVal i As Integer) TextBox1.IsLetter(c) Or Char.0.KeyChar If Not (Char.Tables(0).ToString ComboBox1.Item(0).ToString TextBox6.Rows(i).IsControl(c)) Then e.Handled = True MsgBox("enter only character") End If End Sub 61 .Data Source=|DataDirectory|\Database1.Tables(0).ToString TextBox4.Me.KeyPress Dim c As Char c = e.Windows.Rows(i).Rows(i).IsControl(c)) Then e.Tables(0).Rows(i).Text = ds.Rows(i).Text = ds.OLEDB.Forms.KeyPressEventArgs) Handles TextBox2.Forms.ToString End Sub Private Sub TextBox2_KeyPress(ByVal sender As Object.ToString TextBox5.IsLetter(c) Or Char.Item(5).KeyChar If Not (Char.Rows(i).Fill(Me.Handled = True MsgBox("enter only character") End If End Sub Private Sub TextBox3_KeyPress(ByVal sender As Object.ToString TextBox7.ACE.Item(3).emp_details) cn = New OleDbConnection("Provider=Microsoft.Item(2).Text = ds.KeyPressEventArgs) Handles TextBox3.Item(7).Tables(0).

Open() If (f = 0) Then If TextBox1.'" & TextBox2.Text = "" End Sub 62 .Text = "" Then ElseIf TextBox5.Text & "'.Text = "" ComboBox1.'" & TextBox6.Text & "' )".'" & TextBox3.Text = "" Then ElseIf TextBox2.Text = "" TextBox4.Text & "'.Text = "" Then ElseIf ComboBox1.Text & "'.Text & "'.'" & TextBox4.Text = "" Then ElseIf TextBox3.Text = "" Then ElseIf TextBox4.'" & TextBox7.SelectedIndex = -1 TextBox5.Text = "" TextBox7.Click TextBox1. ByVal e As System.'" & TextBox5.Object.Text = "" Then ElseIf TextBox6.EventArgs) Handles Btn_e_Add.'" & ComboBox1.Object.Text = "" TextBox6. vbYesNo + vbQuestion.Text = "" Then ElseIf TextBox7.Text & "'.Click cn.Text = "" TextBox3.Private Sub Btn_e_Save_Click(ByVal sender As System. "SAVE") If a = vbYes Then cmd = New OleDbCommand("insert into emp_details values('" & TextBox1.Text = "" TextBox2.ExecuteNonQuery() MsgBox("Record Save Successfully") End If End If End If End Sub Private Sub Btn_e_Add_Click(ByVal sender As System.Text = "" Then MsgBox("Please Enter Record") Else a = MsgBox("Are you want to save new Employee?". ByVal e As System.Text & "'.Close() cn.EventArgs) Handles Btn_e_Save. cn) cmd.Text & "'.

Gender= ' " & ComboBox1.Text = "" Then MsgBox("Please Enter Cust_No") ElseIf TextBox1. ByVal e As System.Close() cn. ByVal e As System. vbYesNo + vbQuestion.Address= ' " & TextBox3.Text & " '.") End Sub Private Sub Btn_e_First_Click(ByVal sender As System.") End If End If End If End Sub Private Sub Btn_e_Update_Click(ByVal sender As System.Age=' " & TextBox5.Text & "')".Text & " ' .Text & "' where emp_ID='" & TextBox1. cn) cmd. ByVal e As System. "Delete") If a = vbYes Then cmd = New OleDbCommand("Delete From emp_details where Emp_ID=" & TextBox1.Object.Click 63 .Text & " '.Object.Object.Close() cn.Open() If (f = 0) Then If TextBox1.Open() a = "select * from emp_details where emp_ID = '" & TextBox1. cn) cmd.Private Sub Btn_e_Delete_Click(ByVal sender As System.EventArgs) Handles Btn_e_Delete.Text & " ' .Click cn.Text & " '.Text & "'" cmd = New OleDbCommand("Update emp_details set Name= ' " & TextBox2.J_Date= ' " & TextBox6.ExecuteNonQuery() MsgBox("Record Updated Successfully.EventArgs) Handles Btn_e_First.Text & "".Contact_No= ' " & TextBox4.EventArgs) Handles Btn_e_Update.Click cn.Total_Sal= ' " & TextBox7.Text = "" Then Else a = MsgBox("Are you want to Delete Employee?".ExecuteNonQuery() MsgBox("Record Deleted Successfully.Text & " '.

"confirm exit") 64 .Click i = i .Object.Rows.Object.1 Call add(i) MsgBox("This is last Record") End Sub Private Sub Btn_e_Next_Click(ByVal sender As System.EventArgs) Handles Btn_e_Last.i = 0 Call add(i) MsgBox("This is first Record") End Sub Private Sub Btn_e_Pre_Click(ByVal sender As System.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?". ByVal e As System.Tables(0).Object.EventArgs) Handles Btn_e_Next.Rows.EventArgs) Handles Btn_e_Exit.Count .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.EventArgs) Handles Btn_e_Pre. ByVal e As System. OleDbYesNo + OleDbQuestion.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. ByVal e As System.Click i = i + 1 If (i < ds.Click i = ds. ByVal e As System.Tables(0).

Close() cn.Close() End If End Sub Private Sub Btn_e_Search_Click(ByVal sender As System.Text = "" Then MsgBox("Please Enter emp_details") ElseIf TextBox1. ByVal e As System.Object. cn) ad.Open() ds.Text = "" Then Else ad = New OleDbDataAdapter("select * from emp_details where emp_ID=" & TextBox1.Open() cmd1.Text & "".Tables(0) cn.Close() cn.Connection = cn cmd1.Close() End If Dim cmd1 As New OleDbCommand cn.Text) If a > m Then MsgBox("No Record") End If End Sub End Class 65 .Fill(ds) DataGridView1.EventArgs) Handles Btn_e_Search.DataSource = ds.ExecuteScalar a = Val(TextBox1.Clear() If TextBox1.Me.Click cn.CommandText = "select count(*) from emp_details" Dim m As Integer m = cmd1.

as needed.vb Program Function: This is form is used to add new supplier and its details.Program Name: Supplier.Fill(Me.OleDbDataAdapter Dim ds As New DataSet Dim dr As String Dim dt As String Dim i. a As Integer Private Sub supplier_Load(ByVal sender As System. ByVal e As System.Load 'TODO: This line of code loads data into the '_Database1_mdbDataSet12. Me. Test Data:- Code:Imports System.Object.SupplierTableAdapter1._Database1_mdbDataSet 12.Data. or remove it. f.supplier) 66 .OleDb Public Class supplier Dim cmd As OleDbCommand Dim cn As New OleDbConnection Dim ad As New OleDbDataAdapter Dim SlotAdapter As New OleDb.supplier' table. You can move.EventArgs) Handles MyBase.

Item(2).Tables(0).ToString cmb_cm_color.12.Tables(0).EventArgs) Handles cal_btn.ToString cmb_cm_sname.Rows(i).Text = txt_bo_total.Text = ds.Item(4).cn = New OleDbConnection("Provider=Microsoft.Object.Text / 100 txt_bo_totalprize.Text = ds. ByVal e As System.Tables(0).Item(1).ToString End Sub Private Sub cal_btn_Click(ByVal sender As System.0.Rows(i).ToString cmb_cm_model.Text = ds.ToString txt_bo_total.Fill(ds) End Sub Sub add(ByVal i As Integer) Txt_bo_Ono.Rows(i).Click txt_bo_total.Tables(0).Rows(i).Item(7).Text = ds.Text = ds.Tables(0).ACE.Text = Val(txt_bo_total.Text = Txt_bo_prize.Object.Text) End Sub Private Sub Button1_Click(ByVal sender As System.Item(8).OLEDB.Rows(i).Click supplier_bill.Text) + Val(Txt_bo_tax.EventArgs) Handles Button1.Show() End Sub 67 .mdb.Tables(0).Data Source=|DataDirectory|\Database1.ToString Txt_bo_prize.Rows(i). cn) ds = New DataSet() ad.Item(5).Rows(i).Text = ds.accdb") ad = New OleDbDataAdapter("select * from Supplier". ByVal e As System.Tables(0).Text = ds.Tables(0).ToString txt_bo_totalprize.Rows(i).ToString Txt_bo_tax.Text Txt_bo_tax.Text = ds.ToString Txt_bo_Qty.Tables(0).Rows(i).Text * Txt_bo_Qty.Text = ds.Item(3).Item(6).Item(0).

Text = "" Then ElseIf cmb_cm_model.EventArgs) Handles Btn_e_Save.Text & "'.Open() If (f = 0) Then If Txt_bo_Ono.Text & "')".Text = "" Then ElseIf txt_bo_total.Text & "'.'" & txt_bo_totalprize.Text = "" Then ElseIf cmb_cm_sname.Text & "'.Text = "" Then ElseIf txt_bo_totalprize.Text & "'. cn) cmd. "SAVE") If a = vbYes Then cmd = New OleDbCommand("insert into Supplier values('" & Txt_bo_Ono.TextChanged End Sub Private Sub Btn_e_Save_Click(ByVal sender As System.Text & "'.Click cn.Text & "'.Text = "" Then MsgBox("Please Enter Record") Else a = MsgBox("Are you want to save new Supplier?". vbYesNo + vbQuestion.'" & Txt_bo_tax.Object.'" & txt_bo_total.'" & cmb_cm_color.'" & Txt_bo_prize.Close() cn.Text & "'. ByVal e As System. ByVal e As System.Text = "" Then ElseIf cmb_cm_color.EventArgs) Handles Txt_bo_Qty.Private Sub Txt_bo_Qty_TextChanged(ByVal sender As System.Text = "" Then ElseIf Txt_bo_Qty.'" & cmb_cm_sname.Text = "" Then ElseIf Txt_bo_prize.Object.'" & Txt_bo_Qty.'" & cmb_cm_model.Text = "" Then ElseIf Txt_bo_tax.Text & "'.ExecuteNonQuery() MsgBox("Record Save Successfully") End If End If End If End Sub 68 .

ExecuteNonQuery() MsgBox("Record Deleted Successfully.Text = "" End Sub Private Sub Btn_e_Delete_Click(ByVal sender As System.Text = "" Txt_bo_tax.SelectedIndex = "2" Then Txt_bo_prize.SelectedIndex = "1" Then Txt_bo_prize.") 69 .Click cn.Text = 25000 ElseIf cmb_cm_model.Open() If (f = 0) Then If Txt_bo_Ono.Text = 27000 End If End Sub Private Sub Btn_e_Add_Click(ByVal sender As System.SelectedIndex = "0" Then Txt_bo_prize.Text = "" txt_bo_total.Text = "" Then MsgBox("Please Enter Order no") ElseIf Txt_bo_Ono.Text = "" cmb_cm_model.EventArgs) Handles cmb_cm_model. ByVal e As System.SelectedIndexChanged If cmb_cm_model.Text = "" Txt_bo_prize. cn) cmd.Click Txt_bo_Ono.Text = "" txt_bo_totalprize.Text = 30000 ElseIf cmb_cm_model. "Delete") If a = vbYes Then cmd = New OleDbCommand("Delete From Supplier where O_no=" & Txt_bo_Ono.EventArgs) Handles Btn_e_Add.Object. ByVal e As System.Text = "" cmb_cm_sname.Object. vbYesNo + vbQuestion.Close() cn.Text = "" Then Else a = MsgBox("Are you want to Delete Supplier?".Object.Text & "".EventArgs) Handles Btn_e_Delete.Text = "" cmb_cm_color.Private Sub cmb_cm_model_SelectedIndexChanged(ByVal sender As System. ByVal e As System.Text = "" Txt_bo_Qty.

Click i = ds.Rows. ByVal e As System. ByVal e As System.Rows.Count .Object. ByVal e As System.Click i = i + 1 If (i < ds.Object.1 Call add(i) MsgBox("This is last Record") End Sub Private Sub Btn_e_Next_Click(ByVal sender As System.End If End If End If End Sub Private Sub Btn_e_Update_Click(ByVal sender As System. ByVal e As System.Click End Sub Private Sub Btn_e_First_Click(ByVal sender As System.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.Click i = i .EventArgs) Handles Btn_e_First.EventArgs) Handles Btn_e_Next.EventArgs) Handles Btn_e_Last.Object.EventArgs) Handles Btn_e_Update.Tables(0). ByVal e As System.EventArgs) Handles Btn_e_Pre.Click i = 0 Call add(i) MsgBox("This is first Record") End Sub Private Sub Btn_e_Pre_Click(ByVal sender As System.Tables(0).Count) Then Call add(i) Else 70 .Object.

DataGridViewCellEventArgs) Handles DataGridView1.Close() End If End Sub Private Sub DataGridView1_CellContentClick(ByVal sender As System. ByVal e As System.Forms. ByVal e As System.Windows. "confirm exit") Me.Object.Object.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.CellContentClick End Sub End Class 71 .EventArgs) Handles Btn_e_Exit.MsgBox("this is next record") End If End Sub Private Sub Btn_e_Exit_Click(ByVal sender As System.

ByVal e As System.accdb") ad = New OleDbDataAdapter("select * from Order".Load 'TODO: This line of code loads data into the '_Database1_mdbDataSet15.EventArgs) Handles MyBase.Fill(Me.0.12.OLEDB.Data.mdb.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.Object._Database1_mdbDataSet15. cn) ds = New DataSet() 72 .vb Program Function: This is form is used to purchase mobile.Order' table.OrderTableAdapter. Me.Data Source=|DataDirectory|\Database1. a As Integer Private Sub purchase_order_Load(ByVal sender As System. or remove it. f. Test Data:- Code:Imports System.Program Name: order. You can move. as needed.ACE.O rder) cn = New OleDbConnection("Provider=Microsoft.

IsControl(c)) Then e.Rows(i).Forms.Item(4).IndexOf("@") <> email.Contains("@") And email.EventArgs) Handles TextBox4.Tables(0).Tables(0).Rows(i).IsLetter(c) Or Char.Tables(0).Windows.Handled = True MsgBox("enter only character") End If End Sub Private Sub TextBox2_KeyPress(ByVal sender As Object.") . ByVal e As System.Rows(i).Tables(0).Rows(i).Text = ds.Text.Tables(0).Item(3).IsLetter(c) Or Char.IsControl(c)) Then e.ToString TextBox6.Text = ds.Text = ds.Item(8).ToString txt_mrp.ToString TextBox4.")) _ And (email.Item(10).Rows(i).Tables(0).Text = ds.Rows(i).KeyPress Dim c As Char c = e.Tables(0).Text = ds.Text = ds.ToString End Sub Private Sub TextBox1_KeyPress(ByVal sender As Object.IndexOf(".Rows(i).LostFocus Dim bool As Boolean Dim email As String = TextBox4.IndexOf(".Contains(".Windows. ByVal e As System.Tables(0).Trim bool = ((email.ToString cmb_pr_id.Item(9).KeyPress Dim c As Char c = e.Forms.Item(2).Rows(i).ToString TextBox2.Text = ds.Text = ds.KeyPressEventArgs) Handles TextBox2. ByVal e As System.Item(1).Item(6).IndexOf("@") < email.ToString TextBox5.Handled = True MsgBox("enter only character") End If End Sub Private Sub TextBox4_LostFocus(ByVal sender As Object.Tables(0).Rows(i).ToString TextBox3.")) And (email.Text = ds.End Sub Sub add(ByVal i As Integer) TextBox1.1)) If bool = False Then 73 .KeyChar If Not (Char.Text = ds.Rows(i).KeyPressEventArgs) Handles TextBox1.Tables(0).Item(0).ToString txt_pr_name.ToString TextBox7.KeyChar If Not (Char.Item(7).

Text = 10519 ElseIf cmb_pr_id.SelectedIndex = 1 Then txt_pr_name.Text = "N8" txt_mrp.Text = "nokia C3" txt_mrp.Text = "nokia 5233" txt_mrp.Text = "N900" txt_mrp.". MsgBoxStyle.Object.SelectedIndex = 8 Then txt_pr_name.Text = "" End If End Sub Private Sub cmb_pr_id_SelectedIndexChanged(ByVal sender As System.Text = 5800 74 .SelectedIndex = 5 Then txt_pr_name.Exclamation.SelectedIndex = 0 Then txt_pr_name.Text = 30000 ElseIf cmb_pr_id.Text = 23863 ElseIf cmb_pr_id.EventArgs) Handles cmb_pr_id.SelectedIndex = 3 Then txt_pr_name.Text = "nokia N97" txt_mrp.Text = 13839 ElseIf cmb_pr_id.Text = 25000 ElseIf cmb_pr_id.Text = 13355 ElseIf cmb_pr_id.SelectedIndex = 6 Then txt_pr_name.Text = "nokia E5" txt_mrp.SelectedIndex = 4 Then txt_pr_name.Text = "nokia X5-01" txt_mrp.SelectedIndex = 2 Then txt_pr_name. ByVal e As System.SelectedIndexChanged If cmb_pr_id.SelectedIndex = 7 Then txt_pr_name.Text = 9153 ElseIf cmb_pr_id.Text = "nokia X6" txt_mrp.Text = 6500 ElseIf cmb_pr_id.Text = "nokia N79" txt_mrp. "Invalid Email Address") TextBox4.MsgBox("Enter Valid Email Address.

Text End Sub Private Sub savebtn_Click(ByVal sender As System.Click Mobile_Bill.EventArgs) Handles savebtn.'" & TextBox5.'" & TextBox4.Click cn.'" & TextBox3.Open() If (f = 0) Then If TextBox1.Text * txt_mrp.TextChanged End Sub Private Sub totalbtn_Click(ByVal sender As System.Text & "'.Text = "" Then ElseIf txt_pr_name.Text & "'.Text = "" Then ElseIf TextBox6.Text = "" Then ElseIf txt_mrp. ByVal e As System.Text = "" Then ElseIf cmb_pr_id.Object.Text = "" Then ElseIf TextBox5. "SAVE") If a = vbYes Then cmd = New OleDbCommand("insert into Order values('" & TextBox1.Object.'" & cmb_pr_id. ByVal e As System.Close() cn.Object.Text = "" Then ElseIf TextBox3.Text & "' .Object.EventArgs) Handles Button1.Text & "'.Text = "" Then ElseIf TextBox7.Text & "'.Text = "" Then Else a = MsgBox("Are you want to save new Order?". ByVal e As System.'" & TextBox6. vbYesNo + vbQuestion.SelectedIndex = 9 Then txt_pr_name.'" & TextBox7.'" & txt_mrp.Click TextBox7.Text & "'.'" & txt_pr_name.Text & "'.Text & "'.Text = 13518 End If End Sub Private Sub Button1_Click(ByVal sender As System.Text = "" Then ElseIf TextBox2.Text & "'.Text = "" Then ElseIf TextBox4.Show() End Sub Private Sub TextBox1_TextChanged(ByVal sender As System.Text = "nokia 5800" txt_mrp.EventArgs) Handles totalbtn. ByVal e As System.'" & TextBox2.Text & "')". cn) 75 .Text = TextBox6.ElseIf cmb_pr_id.EventArgs) Handles TextBox10.

Object.Text = " " TextBox2.") End If End If End If End Sub Private Sub TextBox2_TextChanged(ByVal sender As System.EventArgs) Handles deletebtn.Object.TextChanged End Sub Private Sub newbtn_Click(ByVal sender As System.Text = " " txt_mrp.EventArgs) Handles TextBox5.Click TextBox1.Text = "" Then Else a = MsgBox("Are you want to Order Bill?".Object. ByVal e As System.EventArgs) Handles TextBox2.Click cn.Text = " " cmb_pr_id. "Delete") If a = vbYes Then cmd = New OleDbCommand("Delete From Order where Order_no=" & TextBox5.Text = " " TextBox5. ByVal e As System.ExecuteNonQuery() MsgBox("Record Saved Successfully.TextChanged End Sub Private Sub deletebtn_Click(ByVal sender As System.Open() If (f = 0) Then If TextBox1.Text = " " End Sub Private Sub TextBox5_TextChanged(ByVal sender As System.ExecuteNonQuery() 76 .Text = " " TextBox3. ByVal e As System.cmd. "Enter") ElseIf TextBox1. ByVal e As System.Close() cn.Text = " " txt_pr_name. vbInformation.Text = "" Then MsgBox("Please Enter Customer name".Text = " " TextBox6.EventArgs) Handles newbtn.Object.Text = "" TextBox7. vbYesNo + vbQuestion.Text = " " TextBox4. cn) cmd.Text & "".

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.Click i = i .EventArgs) Handles exitbtn.EventArgs) Handles previousbtn.Tables(0).Click i = 0 Call add(i) MsgBox("This is first Record") End Sub Private Sub previousbtn_Click(ByVal sender As System.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?".Object.Object.EventArgs) Handles nextbtn.") End If End If End If End Sub Private Sub firstbtn_Click(ByVal sender As System.Click i = ds.Tables(0).EventArgs) Handles firstbtn. ByVal e As System.EventArgs) Handles lastbtn.Object.Click i = i + 1 If (i < ds.Object. "confirm exit") Me.Count) Then Call add(i) Else MsgBox("this is next record") End If End Sub Private Sub nextbtn_Click(ByVal sender As System.MsgBox("Record Deleted Successfully.Rows.1 Call add(i) MsgBox("This is last Record") End Sub Private Sub exitbtn_Click(ByVal sender As System.Rows.Close() 77 . OleDbYesNo + OleDbQuestion. ByVal e As System.Count . ByVal e As System. ByVal e As System.Object. ByVal e As System.

Object. ByVal e As System.Forms.DataGridViewCellEventArgs) Handles DataGridView1.Windows.Paint End Sub Private Sub DataGridView1_CellContentClick(ByVal sender As System. ByVal e As System.Object.Windows.Forms.EventArgs) Handles TextBox7.PaintEventArgs) Handles Panel2.Object.CellContentClick End Sub End Class 78 . ByVal e As System.TextChanged End Sub Private Sub Panel2_Paint(ByVal sender As System.End If End Sub Private Sub TextBox7_TextChanged(ByVal sender As System.

Windows.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.DataGridViewCellEventArgs) End Sub Private Sub emp_Load(ByVal sender As System.Program Name:-Salary.vb Program Function: This is form is used to generate salary of employee.Forms.EventArgs) Handles MyBase.Object.Load 79 . ByVal e As System. f As Integer Private Sub DataGridView1_CellContentClick(ByVal sender As System. ByVal e As System.Object.Data. i. Test Data:- Code:Imports System.

mdb.ToString TextBox4. cn) ds = New DataSet() ad.'" & TextBox4.Item(2).") End Sub Private Sub Btn_e_Add_Click(ByVal sender As System.Item(3).0. You can move.Data Source=|DataDirectory|\Database1.Text & "'.ToString TextBox2.Click TextBox1.Text = " " TextBox2.SalaryTableAdapter.Salary' table. or remove it.Tables(0). cn) cmd.Item(5).Text & "')". ByVal e As System.Text & "' .EventArgs) Handles Btn_e_Add.Fill(Me.Rows(i).Text = " " 80 .Rows(i).Fill(ds) End Sub Sub add(ByVal i As Integer) TextBox1.Tables(0).Text & "'.OLEDB.Rows(i).Item(4).Tables(0). as needed. ByVal e As System.Tables(0).Text & "'.Tables(0).Rows(i).Text = ds.Text = ds.Object.ACE.ToString End Sub Private Sub Btn_e_Save_Click(ByVal sender As System.12.Rows(i).ToString TextBox6.Rows(i).Item(0).Open() If (f = 0) Then ' dt = TextBox1. Salary) cn = New OleDbConnection("Provider=Microsoft.Text = ds.'TODO: This line of code loads data into the '_Database1_mdbDataSet13.Text = ds.ExecuteNonQuery() End If MsgBox("Record Saved Successfully.Text ' MsgBox(dt) cmd = New OleDbCommand("insert into Salary values('" & TextBox1.Text = ds.'" & TextBox3.EventArgs) Handles Btn_e_Save.Text = ds.Item(1).ToString TextBox5.Object.'" & TextBox5._Database1_mdbDataSet13.accdb") ad = New OleDbDataAdapter("select * from Salary".Close() cn. Me.Click cn.Tables(0).ToString TextBox3.'" & TextBox6.'" & TextBox2.Text & "'.Text = " " TextBox3.

Text & " '.Open() If (f = 0) Then ' dt = TextBox1.Text & " '.Text = " " TextBox5.Text & "".Text & " ' .Text = " " End Sub Private Sub Btn_e_Delete_Click(ByVal sender As System.Close() cn.ExecuteNonQuery() End If MsgBox("Record Updated Successfully.EventArgs) Handles Btn_e_Update.Text & " '.D_o_sal= ' " & TextBox4.Text & "".T_sal='" & TextBox6.Text ' MsgBox(dt) cmd = New OleDbCommand("Delete From Salary where Emp_ID=" & TextBox1.Open() If (f = 0) Then ' dt = TextBox1.ExecuteNonQuery() End If MsgBox("Record Deleted Successfully.Text & " '.EventArgs) Handles Btn_e_Delete.") End Sub Private Sub Btn_e_First_Click(ByVal sender As System.Click cn. cn) cmd.Text & " 'where Emp_ID=" & TextBox1.Text ' MsgBox(dt) cmd = New OleDbCommand("Update Salary set Emp_ID= ' " & TextBox1. ByVal e As System. cn) cmd. ByVal e As System.Click cn.Text = " " TextBox6.TextBox4.Click i = 0 81 .Close() cn.Object.F_Name= ' " & TextBox2.Object.") End Sub Private Sub Btn_e_Update_Click(ByVal sender As System.Object.Advance=' " & TextBox5. ByVal e As System.L_Name= ' " & TextBox3.EventArgs) Handles Btn_e_First.

Object.EventArgs) Handles Btn_e_Last.Click i = i + 1 If (i < ds.Object. OleDbYesNo + OleDbQuestion.Rows. ByVal e As System.Close() 82 .Tables(0). ByVal e As System.Count .EventArgs) Handles Btn_e_Exit.Object.Call add(i) MsgBox("This is first Record") End Sub Private Sub Btn_e_Pre_Click(ByVal sender As System.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?".Tables(0).1 Call add(i) MsgBox("This is last Record") End Sub Private Sub Btn_e_Next_Click(ByVal sender As System.Click i = i . "confirm exit") Me.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.EventArgs) Handles Btn_e_Next.Click i = ds.Rows. ByVal e As System.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. ByVal e As System.Object.EventArgs) Handles Btn_e_Pre.

Object.Show(ex.IsControl(c)) Then e.IsLetter(c) Or Char.Windows.KeyPress Dim c As Char c = e.EmpTableAdapter1._Database1_mdbDataSe t2.FillBy(Me. ByVal e As System.IsControl(c)) Then e.Click End Sub Private Sub FillByToolStripButton_Click(ByVal sender As System. ByVal e As System.IsLetter(c) Or Char.Handled = True MsgBox("enter only character") End If End Sub End Class 83 .Exception System.KeyChar If Not (Char.Forms.emp) Catch ex As System. ByVal e As System.Object.KeyPressEventArgs) Handles TextBox2.MessageBox.KeyPress Dim c As Char c = e. ByVal e As System.KeyChar If Not (Char.EventArgs) Try Me.KeyPressEventArgs) Handles TextBox3.EventArgs) Handles Btn_e_Search.Forms.Windows.Forms.Windows.End If End Sub Private Sub Btn_e_Search_Click(ByVal sender As System.Handled = True MsgBox("enter only character") End If End Sub Private Sub TextBox3_KeyPress(ByVal sender As Object.Message) End Try End Sub Private Sub TextBox2_KeyPress(ByVal sender As Object.

vb Program Function: This Form display the various Mobile Details. Test Result: 84 .Program Name: Mobile Details.

Program Name:-Help Program Function: This is form is used to display details about system. Test Result: 85 .

Load cn = New OleDbConnection("Provider=Microsoft.Text = Order.OLEDB.Text = Order.accdb") Label2.Text Lno.Program Name:-Mobile Bill.Text 86 .0.Data.TextBox1.mdb.vb Program Function: This is form is used to display receipt of individual customer.EventArgs) Handles MyBase.ACE.12. ByVal e As System.OleDb Public Class Mobile_Bill Dim cn As New OleDbConnection Private Sub Mobile_Bill_Load(ByVal sender As System.Object. Test Result:- Code:Imports System.Data Source=|DataDirectory|\Database1.TextBox5.

Lname.Text = Order.Text Lper_prize.Printing.Text Lammount.EventArgs) Handles btn_print.txt_mrp.txt_pr_name.Print(Me.TextBox7.Click PrintForm1.TextBox6.Text = Order. ByVal e As System.PrintForm. PowerPacks.PrintOption.CompatibleModeFullWi ndow) End Sub End Class 87 .Text = Order.Text = Order.Text End Sub Private Sub btn_print_Click(ByVal sender As System.Object.Text Lqty.

OleDb Public Class supplier_bill Dim cn As New OleDbConnection Private Sub supplier_bill_Load(ByVal sender As System.Text Lper_prize. ByVal e As System.Text 88 .Text = supplier.cmb_cm_model.Txt_bo_prize.Txt_bo_Ono.Text Lname.Text Lqty.Text = supplier.Load cn = New OleDbConnection("Provider=Microsoft.vb Program Function: This is form is used to display receipt of supplier bill.0.Txt_bo_Qty.Data.accdb") Label2.Object.mdb.EventArgs) Handles MyBase.Text = supplier.Text = supplier.Data Source=|DataDirectory|\Database1.Text = supplier.12.cmb_cm_sname.ACE.Program Name:-Supplier Bill. Test Result:- Code:Imports System.OLEDB.SelectedItem Lno.

Lammount.This form displays purchase order Report of the supplier.Object.Click PrintForm1. PowerPacks. Test Result:- 89 .vb Report function:.CompatibleModeFullWi ndow) End Sub End Class Report Layouts Report Name:.PrintForm.txt_bo_total.PrintOption.EventArgs) Handles btn_print. ByVal e As System.Report Bill.Text = supplier.Printing.Print(Me.Text End Sub Private Sub btn_print_Click(ByVal sender As System.

Load("F:\Impppppppp\Arti\CrystalReport1.Object. ByVal e As System.CrystalReports.EventArgs) Handles MyBase.ReportSource = cryRpt CrystalReportViewer1.Code:Imports CrystalDecisions.Update() End Sub End Class 90 .Load Dim cryRpt As New ReportDocument cryRpt.Engine Public Class Report_bill Private Sub Report_bill_Load(ByVal sender As System.rpt") CrystalReportViewer1.

Test Result:Code:Imports CrystalDecisions.This form displays all customers bill.Load Dim cryRpt As New ReportDocument cryRpt. ByVal e As System.Update() End Sub End Class 91 .Supplier_bill.EventArgs) Handles MyBase.Object.ReportSource = cryRpt CrystalReportViewer1.Load("F:\Impppppppp\Arti\CrystalReport2.CrystalReports.Engine Public Class supplier_report Private Sub supplier_report_Load(ByVal sender As System.rpt") CrystalReportViewer1.vb Report function:.Report Name:.

Chapter 5 System Implementation & Uploading 92 .

4. System Generated control:In Order details it automatically calculates total price of the product. 93 . 2. It allows textual values for fields like customer name. To execute sql query on table To read data retrieve by sqlcommand. 3. To display report.System Implementation VARIABLE NAME Cn DATA TYPE Connection DESCRIPTION To make the connection between application & database. crystal Cmd SqlCommand Reader SqlDataReader CryRpt CrystalReport SYSTEM CONTROLS AND STANDARDS 1. Input control:System validates every textbox. Range control:In Order Transaction the system checks whether quantity given by the user is not more than the available product. It also validates some numeric data only for fields like phone no. Access control:System gives access by valid password. Similarly in Receipt details it automatically deducts the amount from the actual amount.

Chapter 6

Future Enhancement

94

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.

95

96

Chapter 7 References & Bibliography 97 .

References & Bibliography Sr. Author : Publication : 98 . Type Book name : Author : Description Visual Basic 2008 Anne Boehm Murach Mastering Visual Basic 2008 Evangelos Petroutsos Wiley-India Edition Publication : Book name : 2.No. 1.