Sie sind auf Seite 1von 64

MAKHANLAL CHATURVEDI RASHTRIYA

PATRAKARITVISHWAVIDYALYA ,BHOPAL

PROJECT REPORT ON PHARMA MANAGEMENT

Submitted in partial fulfillment of the requirements


SUBMITED FOR

BACHELOR OF COMPUTER APPLICATION


[BCA] 2008-2009

Guided By: Submitted By:


Mr. Mangal Pandey Madhur Nigam

STUDY CENTRE
Tata Institute of Technology Sidhi
(ISO 9001:2000, Institute)
CERTIFICATE

This is certified that this project entitled ‘BIO-FUEL’ submitted in

partial fulfillment of the XIth“B” to the Vidyasagar School, Bicholi

Mardana (INDORE), done by Akash Nigam is an authentic work

carried out by him under my guidance. The matter embodied in this

project work has not been submitted earlier for award of any degree or

diploma to the best of my knowledge and belief.

Principal’s Signature Teacher’s Signature


SELF CERTIFICATE

This is to certify that the dissertation /project report entitled

“PHARMA MANAGEMENT” is done by us is an authentic work

carried out for the partial fulfillment of the requirements for the award

of the degree of BCA sixth sem. in information technology under the

guidance of Mr. Mangal pandey The matter embodied in this project

work has not been submitted earlier for award of any degree or

diploma to the best of my knowledge and belief.

Project Guide Signature of the student


Mr. Mangal Pandey Madhur Nigam
Acknowledgement

I Express my deep sense of gratitude and whole hearted thanked

to our Chairman Mr. Rameshwar Patel for his invaluable all round

guidance and encouragement which has played a major role in the

completion of this project.

I am thankful to Mrs. Chanchal Chauhan for his timely and

wholehearted co-operation.

I express my deep sense of honor and gratitude to our beloved

Principal Mr. S.K. Joshi who has been a constant of inspiration to us.

I thank to all those who have directly or indirectly helped me in

completion of this project.

Examiner’s Certificate
This is to certify that this student Madhur Nigam BACHELOR OF
COMPUTER APPLICATION IN INFORMATION TECHNOLOGY [BCA(VI)]
2008-09.

I’ve examined in the work entitled “PHARMA MANAGEMENT At


Tata Institute Of Technology Sidhi.

Signature Signature
(Internal Examiner) (External Examiner)
Date- Date-

Objective And Scope Of The Project


Project planning objective: - the objective of software project planning is to

provide a framework that enables the manager to make reasonable estimates of resources

cost and schedule. These estimate are made within a limited time frame at the beginning

of a software project and should be updated regularly as the progresses.

In our project I can include PERT chart, cast and benefit analysis, which determine the

cost, resources and people are used in this project.

Software scope: -

The first activity in software project planning is the determination of software

scope. Software scope describes the data and control to be processed, function,

performance constant interfaces and reliability. Function described in the statement of

the scope are evaluated and in the same cases refined to provide more detail prior to the

beginning of estimation. Because both cost schedule estimates are functionally oriented,

some degree of decomposition is often useful. Performance consideration encompasses

processing and response time requirement constant identifies limits placed on the

software by external hardware’s available memory on other existing system.

In future I planed it developed this project in client server model or Ib based model so he

in real use.

Now I one confidence record project analysis & coding.

Introduction Of Computer System


Internet has today become a buzzword. It spaced every where and I can not miss

hearing are seeing it in newspaper, on television and related media. And man I even have

hi-take special effects movies featuring real life teleconferencing, many a hyped up

hacker trying to break in into systems and the like all based on the net.

The Internet As I must have read are heard of some where is network of

networks. If I get to know that the computer is on the net, then I can be sure that it is in

some way are the other connected to all other computers on the net. Amongst

themselves, these computer can exchange information in the form of Ib pages are via E-

mail .are live chat sessions. The www, a part of a Internet is made up of millions of

pages each of each is called Ib page .the details of creating a Ib page and formatting it

there on are discussed in due course in the book.

Informational sites: -sites that is dedicated to providing information on a particular

topic is common on the Ib.

Organizational sites:-organizational Ib sites are concerned with presenting information

about –you guessed it –a particular organization. The reason I distinguish these from

pure informational sites is their narrow focus. Their sole function is to describe the work

of a particular organization its structure, its personal, and history.

Political sites: -sites that has a political agenda to push isn’t limited to dealing with
particular candidates for certain offices in election years. Politics isn’t all about
election .in our definition; such sites also include those with any social agenda that
would be furthered by the passing of appropriate legislation.
Commercial sites: - this is the one simple unambiguous area in the taxonomy –if the

sites are created strictly out of a profit motive, then it’s a commercial site.

Data Flow Diagram


The data flow diagram shows the flow of data, the processes and the areas where they are

stored .it is a commonly used structured tool for displaying the logical aspects of the

system under study. Decision tables are used as a supplement when complex decision

logic can’t be represented clearly in a DFD.

DATA FLOW DIAGRAM-:

DFD is a graphical representation of a system that shows data flow to from and

being system processing function that changed the data in some manner, and

storage of this data.

A data flow diagram is nothing more than a network of related system function that

indicates from where information is received and to where it is sent.

Introduction toVb .NET


VB.NET is only one component of a revolution in windows- the .NET
framework. This framework provides the new support for s/w development and
OS support in window, and it’s more extensive then any thing I’ve seen in
window before. The .NET framework wraps the OS with its own code, and your
VB.NET programs actually deal with .NET code instead of dealing with the OS
itself. And it is specially designed to
make working with the Internet easy.
At the base of the .NET framework is the common language
Runtime (CLR). The CLR is the module that actually runs your VB.NET
applications. When you create VB.nET application, What really happens is that
your code is compiled into the CLR intermediate language, much like bite code in
Java when you run application the IL code is translated into the binary code your
computer can understand by some especial compiler built into CLR. Compiler
translates your code into something that your machine h/w or other s/w can deal
with directly. In this way, Microsoft can one day create a CLR for creating system
other then windows, and your VB.NET application, compiled into IL, will run on
then.
The .NET Framework class library is the second major part of the
.NET framework .The class library holds an immense amount of prewritten code
that all the applications you create with visual basic ,Visual C++ ,C# and there
visual studio languages are build on .The class library gives your program the
support it needs for example, your program may create several forms and as there
is a class for form in the class libraries, your program doesn’t have to perform all
the detail of creating those forms from scratch. All your code has to do is declare
a new form, end the CLR compilers can get the actual code that supports forms
from the .NET framework class libraries. in this way, your programs can be very
small compared to earlier windows application because you can rely on the
millions of lines of code already written in the class libraries, not everything has
to be in your application executable files.
All this assumes that you’re working on a machine that has the .NET
frameworks , and therefore the CLR and the .
NET framework class libraries , installed. The code for all elements I use in a
VB.NET applications-
forms, buttons, menus and all the rest-all comes from the class libraries.
And other visual studio applications use the same class libraries, making it easy to
mix languages in your programming, even in the same application. Also,
distributing applications is easier, because all the support you need is already on
the machine you’re installing your application to. As mentioned ,the .NET
framework organized its classes into namespaces . for example, the .NET
frameworks includes the namespaces Microsoft. visual basic, Microsoft. script,
Microsoft. sharp and mirosoft.Win32. in fact , these namespaces contain relatively
few classes ; the real way I’ll entrant with the
.NET frmework class libraries in this book are through the system name
space.

Flow chart:-
flow chart is a graphicle representation of program. A graphic picture of the

logical steps and sequence involved in a procedure or a program.

start

login form open

if psw is
correct

main form open

1.master book
2.transaction
3. reports
4. windows color
5. help

if
DrugEntry

Show Drug Entry

if A
exit
A

If
selected item Drug Detail

Show Drug Detail form

Manipulation of record

if Exit

If
selected item Bill of Sell

Show Bill Of Sell form show


B

Manipulation of record

if Exit
A

If
selected item Bill Of Purchase

Show Bill Of Purchase form

Manipulation of record

if Exit

If
selected item Search Form

Show Search form

Manipulation of record

if Exit
A

If
selected item data report Show

Show Data Report

Manipulation of record

Exit

End
Public Class LoginForm
Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

Public Sub New()


MyBase.New()

'This call is required by the Windows Form


Designer.
InitializeComponent()

'Add any initialization after the


InitializeComponent() call

End Sub

'Form overrides dispose to clean up


the component list.
Protected Overloads Overrides Sub
Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub

'Required by the Windows Form Designer


Private components As
System.ComponentModel.IContainer

'NOTE: The following procedure is required by


the Windows Form Designer
'It can be modified using the Windows Form
Designer.
'Do not modify it using the code editor.
Friend WithEvents Label4 As
System.Windows.Forms.Label
Friend WithEvents Label3 As
System.Windows.Forms.Label
Friend WithEvents Button2 As
System.Windows.Forms.Button
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents TextBox2 As
System.Windows.Forms.TextBox
Friend WithEvents TextBox1 As
System.Windows.Forms.TextBox
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label1 As System.Windows.Forms.Label
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
Dim resources As System.Resources.ResourceManager =
New System.Resources.ResourceManager(GetType(LoginForm))
Me.Label4 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.Button2 = New System.Windows.Forms.Button
Me.Button1 = New System.Windows.Forms.Button
Me.TextBox2 = New System.Windows.Forms.TextBox
Me.TextBox1 = New System.Windows.Forms.TextBox
Me.Label2 = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.SuspendLayout()
'
'Label4
'
Me.Label4.BackColor =
System.Drawing.SystemColors.ActiveCaption
Me.Label4.Image =
CType(resources.GetObject("Label4.Image"),
System.Drawing.Image)
Me.Label4.Location = New System.Drawing.Point(24, 0)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(72, 48)
Me.Label4.TabIndex = 14
'
'Label3
'
Me.Label3.Font = New System.Drawing.Font("Microsoft
Sans Serif", 9.75!, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label3.ForeColor = System.Drawing.Color.Red
Me.Label3.Location = New System.Drawing.Point(96, 16)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(328, 24)
Me.Label3.TabIndex = 13
Me.Label3.Text = "PLESE ENTER USER NAME AND PASSWORD"
'
'Button2
'
Me.Button2.DialogResult =
System.Windows.Forms.DialogResult.Cancel
Me.Button2.Location = New System.Drawing.Point(320,
144)
Me.Button2.Name = "Button2"
Me.Button2.Size = New System.Drawing.Size(88, 32)
Me.Button2.TabIndex = 12
Me.Button2.Text = " CLOSE"
'
'Button1
'
Me.Button1.DialogResult =
System.Windows.Forms.DialogResult.Cancel
Me.Button1.Location = New System.Drawing.Point(208,
144)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(88, 32)
Me.Button1.TabIndex = 11
Me.Button1.Text = " OK"
'
'TextBox2
'
Me.TextBox2.Location = New System.Drawing.Point(240,
104)
Me.TextBox2.Name = "TextBox2"
Me.TextBox2.PasswordChar =
Microsoft.VisualBasic.ChrW(42)
Me.TextBox2.Size = New System.Drawing.Size(168, 20)
Me.TextBox2.TabIndex = 10
Me.TextBox2.Text = ""
'
'TextBox1
'
Me.TextBox1.Location = New System.Drawing.Point(240,
56)
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.Size = New System.Drawing.Size(168, 20)
Me.TextBox1.TabIndex = 9
Me.TextBox1.Text = ""
'
'Label2
'
Me.Label2.Font = New System.Drawing.Font("Microsoft
Sans Serif", 14.25!, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label2.ForeColor =
System.Drawing.Color.FromArgb(CType(0, Byte), CType(0, Byte), CType(192,
Byte))
Me.Label2.Location = New System.Drawing.Point(96, 96)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(136, 40)
Me.Label2.TabIndex = 8
Me.Label2.Text = " PASSWORD"
Me.Label2.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label1
'
Me.Label1.Font = New System.Drawing.Font("Microsoft
Sans Serif", 14.25!, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label1.ForeColor =
System.Drawing.Color.FromArgb(CType(0, Byte), CType(0, Byte), CType(192,
Byte))
Me.Label1.Location = New System.Drawing.Point(104, 48)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(128, 40)
Me.Label1.TabIndex = 7
Me.Label1.Text = " USER NAME "
Me.Label1.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'LoginForm
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.BackColor = System.Drawing.Color.DarkGray
Me.ClientSize = New System.Drawing.Size(416, 182)
Me.ControlBox = False
Me.Controls.Add(Me.Label4)
Me.Controls.Add(Me.Label3)
Me.Controls.Add(Me.Button2)
Me.Controls.Add(Me.Button1)
Me.Controls.Add(Me.TextBox2)
Me.Controls.Add(Me.TextBox1)
Me.Controls.Add(Me.Label2)
Me.Controls.Add(Me.Label1)
Me.Name = "LoginForm"
Me.Text = "LOG ON TO PHARMA"
Me.ResumeLayout(False)

End Sub

#End Region

Private Sub Button1_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button1.Click
Dim A As New PHARMAMANAGEMENT
If TextBox1.Text = "VIJAY" And TextBox2.Text = "GUPTA
" Then
A.Show()
Hide()
Else
MsgBox("PLEASE ENTER CORRECT PASSWORD")
TextBox1.Text = " "
TextBox2.Text = " "
End If
End Sub

Private Sub TextBox1_KeyPress(ByVal sender As


System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs)
Handles TextBox1.KeyPress
If e.KeyChar = Chr(13) Then
TextBox2.Focus()
End If
End Sub
Private Sub TextBox2_KeyPress(ByVal sender As
System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs)
Handles TextBox2.KeyPress
If e.KeyChar = Chr(13) Then
Button1.Focus()
End If
End Sub
Private Sub Button1_MouseMove(ByVal sender As
System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles
Button1.MouseMove
BackColor = Color.Aqua
End Sub

Private Sub Button2_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button2.Click
Close()
End Sub

Private Sub Button2_MouseMove(ByVal sender As


System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles
Button2.MouseMove
Button2.BackColor = Color.RosyBrown
End Sub
End Class
/*----------customer master details----------------*/
Public Class CUSTOMER_MASTER_DETAILS
Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

Public Sub New()


MyBase.New()

'This call is required by the Windows Form Designer.


InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

'Form overrides dispose to clean up the component list.


Protected Overloads Overrides Sub Dispose(ByVal disposing As
Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub

'Required by the Windows Form Designer


Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form


Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents OleDbSelectCommand1 As
System.Data.OleDb.OleDbCommand
Friend WithEvents OleDbInsertCommand1 As
System.Data.OleDb.OleDbCommand
Friend WithEvents OleDbConnection1 As
System.Data.OleDb.OleDbConnection
Friend WithEvents OleDbDataAdapter1 As
System.Data.OleDb.OleDbDataAdapter
Friend WithEvents objCMD As pharma1.CMD
Friend WithEvents editADDRESS As System.Windows.Forms.TextBox
Friend WithEvents editCONTACTPERSON As
System.Windows.Forms.TextBox
Friend WithEvents editCR_DAYS As System.Windows.Forms.TextBox
Friend WithEvents editDISTICT As System.Windows.Forms.TextBox
Friend WithEvents editDL_NO As System.Windows.Forms.TextBox
Friend WithEvents editDR_CR As System.Windows.Forms.TextBox
Friend WithEvents editEMAIL_ADDERESS As
System.Windows.Forms.TextBox
Friend WithEvents editLIMIT As System.Windows.Forms.TextBox
Friend WithEvents editMOBILENO As System.Windows.Forms.TextBox
Friend WithEvents editNAME As System.Windows.Forms.TextBox
Friend WithEvents editOPENNING_BALANCE As
System.Windows.Forms.TextBox
Friend WithEvents editPHONE As System.Windows.Forms.TextBox
Friend WithEvents editPINCODE As System.Windows.Forms.TextBox
Friend WithEvents editPLACE As System.Windows.Forms.TextBox
Friend WithEvents editREMARK As System.Windows.Forms.TextBox
Friend WithEvents editSTATE As System.Windows.Forms.TextBox
Friend WithEvents editTIN_NO As System.Windows.Forms.TextBox
Friend WithEvents Label18 As System.Windows.Forms.Label
Friend WithEvents Label9 As System.Windows.Forms.Label
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents Label7 As System.Windows.Forms.Label
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label10 As System.Windows.Forms.Label
Friend WithEvents Label15 As System.Windows.Forms.Label
Friend WithEvents Label14 As System.Windows.Forms.Label
Friend WithEvents Label13 As System.Windows.Forms.Label
Friend WithEvents Label12 As System.Windows.Forms.Label
Friend WithEvents Label11 As System.Windows.Forms.Label
Friend WithEvents Label16 As System.Windows.Forms.Label
Friend WithEvents Label17 As System.Windows.Forms.Label
Friend WithEvents PD As System.Windows.Forms.PrintDialog
Friend WithEvents Panel1 As System.Windows.Forms.Panel
Friend WithEvents butoon1 As System.Windows.Forms.Button
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents btnLoad As System.Windows.Forms.Button
Friend WithEvents btnUpdate As System.Windows.Forms.Button
Friend WithEvents btnCancelAll As System.Windows.Forms.Button
Friend WithEvents btnNavFirst As System.Windows.Forms.Button
Friend WithEvents btnNavPrev As System.Windows.Forms.Button
Friend WithEvents lblNavLocation As System.Windows.Forms.Label
Friend WithEvents btnNavNext As System.Windows.Forms.Button
Friend WithEvents btnLast As System.Windows.Forms.Button
Friend WithEvents btnAdd As System.Windows.Forms.Button
Friend WithEvents btnDelete As System.Windows.Forms.Button
Friend WithEvents btnCancel As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
Me.OleDbSelectCommand1 = New System.Data.OleDb.OleDbCommand
Me.OleDbConnection1 = New System.Data.OleDb.OleDbConnection
Me.OleDbInsertCommand1 = New System.Data.OleDb.OleDbCommand
Me.OleDbDataAdapter1 = New System.Data.OleDb.OleDbDataAdapter
Me.objCMD = New pharma1.CMD
Me.editADDRESS = New System.Windows.Forms.TextBox
Me.editCONTACTPERSON = New System.Windows.Forms.TextBox
Me.editCR_DAYS = New System.Windows.Forms.TextBox
Me.editDISTICT = New System.Windows.Forms.TextBox
Me.editDL_NO = New System.Windows.Forms.TextBox
Me.editDR_CR = New System.Windows.Forms.TextBox
Me.editEMAIL_ADDERESS = New System.Windows.Forms.TextBox
Me.editLIMIT = New System.Windows.Forms.TextBox
Me.editMOBILENO = New System.Windows.Forms.TextBox
Me.editNAME = New System.Windows.Forms.TextBox
Me.editOPENNING_BALANCE = New System.Windows.Forms.TextBox
Me.editPHONE = New System.Windows.Forms.TextBox
Me.editPINCODE = New System.Windows.Forms.TextBox
Me.editPLACE = New System.Windows.Forms.TextBox
Me.editREMARK = New System.Windows.Forms.TextBox
Me.editSTATE = New System.Windows.Forms.TextBox
Me.editTIN_NO = New System.Windows.Forms.TextBox
Me.Label18 = New System.Windows.Forms.Label
Me.Label9 = New System.Windows.Forms.Label
Me.Label8 = New System.Windows.Forms.Label
Me.Label7 = New System.Windows.Forms.Label
Me.Label6 = New System.Windows.Forms.Label
Me.Label5 = New System.Windows.Forms.Label
Me.Label4 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.Label10 = New System.Windows.Forms.Label
Me.Label15 = New System.Windows.Forms.Label
Me.Label14 = New System.Windows.Forms.Label
Me.Label13 = New System.Windows.Forms.Label
Me.Label12 = New System.Windows.Forms.Label
Me.Label11 = New System.Windows.Forms.Label
Me.Label16 = New System.Windows.Forms.Label
Me.Label17 = New System.Windows.Forms.Label
Me.PD = New System.Windows.Forms.PrintDialog
Me.Panel1 = New System.Windows.Forms.Panel
Me.butoon1 = New System.Windows.Forms.Button
Me.Button1 = New System.Windows.Forms.Button
Me.btnLoad = New System.Windows.Forms.Button
Me.btnUpdate = New System.Windows.Forms.Button
Me.btnCancelAll = New System.Windows.Forms.Button
Me.btnNavFirst = New System.Windows.Forms.Button
Me.btnNavPrev = New System.Windows.Forms.Button
Me.lblNavLocation = New System.Windows.Forms.Label
Me.btnNavNext = New System.Windows.Forms.Button
Me.btnLast = New System.Windows.Forms.Button
Me.btnAdd = New System.Windows.Forms.Button
Me.btnDelete = New System.Windows.Forms.Button
Me.btnCancel = New System.Windows.Forms.Button
CType(Me.objCMD,
System.ComponentModel.ISupportInitialize).BeginInit()
Me.Panel1.SuspendLayout()
Me.SuspendLayout()
'
'OleDbSelectCommand1
'
Me.OleDbSelectCommand1.CommandText = "SELECT ADDRESS,
CONTACTPERSON, [CR DAYS], DISTICT, [DL NO], [DR CR], [EMAIL ADDER" &
_
"ESS], LIMIT, MOBILENO, NAME, [OPENNING BALANCE], PHONE,
PINCODE, PLACE, REMARK, " & _
"STATE, [TIN NO] FROM DETAILS"
Me.OleDbSelectCommand1.Connection = Me.OleDbConnection1
'
'OleDbConnection1
'
Me.OleDbConnection1.ConnectionString = "Jet OLEDB:Global
Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet OLEDB:Database L" & _
"ocking Mode=1;Data
Source=""C:\ANJANI\database\CUSTOMER.mdb"";Jet OLEDB:Engine Typ" & _
"e=5;Jet OLEDB:Global Bulk
Transactions=1;Provider=""Microsoft.Jet.OLEDB.4.0"";Jet " & _
"OLEDB:System database=;Jet OLEDB:SFP=False;persist security
info=False;Extended " & _
"Properties=;Mode=Share Deny None;Jet OLEDB:Create System
Database=False;Jet OLED" & _
"B:Don't Copy Locale on Compact=False;Jet OLEDB:Compact
Without Replica Repair=Fa" & _
"lse;User ID=Admin;Jet OLEDB:Encrypt Database=False"
'
'OleDbInsertCommand1
'
Me.OleDbInsertCommand1.CommandText = "INSERT INTO
DETAILS(ADDRESS, CONTACTPERSON, [CR DAYS], DISTICT, [DL NO], [DR
CR]," & _
" [EMAIL ADDERESS], LIMIT, MOBILENO, NAME, [OPENNING BALANCE],
PHONE, PINCODE, PL" & _
"ACE, REMARK, STATE, [TIN NO]) VALUES (?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, " & _
"?, ?, ?)"
Me.OleDbInsertCommand1.Connection = Me.OleDbConnection1
Me.OleDbInsertCommand1.Parameters.Add(New
System.Data.OleDb.OleDbParameter("ADDRESS",
System.Data.OleDb.OleDbType.VarWChar, 50, "ADDRESS"))
Me.OleDbInsertCommand1.Parameters.Add(New
System.Data.OleDb.OleDbParameter("CONTACTPERSON",
System.Data.OleDb.OleDbType.VarWChar, 50, "CONTACTPERSON"))
Me.OleDbInsertCommand1.Parameters.Add(New
System.Data.OleDb.OleDbParameter("CR_DAYS",
System.Data.OleDb.OleDbType.VarWChar, 50, "CR DAYS"))
Me.OleDbInsertCommand1.Parameters.Add(New
System.Data.OleDb.OleDbParameter("DISTICT",
System.Data.OleDb.OleDbType.VarWChar, 50, "DISTICT"))
Me.OleDbInsertCommand1.Parameters.Add(New
System.Data.OleDb.OleDbParameter("DL_NO",
System.Data.OleDb.OleDbType.Integer, 0, "DL NO"))
Me.OleDbInsertCommand1.Parameters.Add(New
System.Data.OleDb.OleDbParameter("DR_CR",
System.Data.OleDb.OleDbType.VarWChar, 50, "DR CR"))
Me.OleDbInsertCommand1.Parameters.Add(New
System.Data.OleDb.OleDbParameter("EMAIL_ADDERESS",
System.Data.OleDb.OleDbType.VarWChar, 50, "EMAIL ADDERESS"))
Me.OleDbInsertCommand1.Parameters.Add(New
System.Data.OleDb.OleDbParameter("LIMIT",
System.Data.OleDb.OleDbType.Integer, 0, "LIMIT"))
Me.OleDbInsertCommand1.Parameters.Add(New
System.Data.OleDb.OleDbParameter("MOBILENO",
System.Data.OleDb.OleDbType.Decimal, 0,
System.Data.ParameterDirection.Input, False, CType(18, Byte),
CType(0, Byte), "MOBILENO", System.Data.DataRowVersion.Current,
Nothing))
Me.OleDbInsertCommand1.Parameters.Add(New
System.Data.OleDb.OleDbParameter("NAME",
System.Data.OleDb.OleDbType.VarWChar, 50, "NAME"))
Me.OleDbInsertCommand1.Parameters.Add(New
System.Data.OleDb.OleDbParameter("OPENNING_BALANCE",
System.Data.OleDb.OleDbType.Integer, 0, "OPENNING BALANCE"))
Me.OleDbInsertCommand1.Parameters.Add(New
System.Data.OleDb.OleDbParameter("PHONE",
System.Data.OleDb.OleDbType.Decimal, 0,
System.Data.ParameterDirection.Input, False, CType(18, Byte),
CType(0, Byte), "PHONE", System.Data.DataRowVersion.Current,
Nothing))
Me.OleDbInsertCommand1.Parameters.Add(New
System.Data.OleDb.OleDbParameter("PINCODE",
System.Data.OleDb.OleDbType.Integer, 0, "PINCODE"))
Me.OleDbInsertCommand1.Parameters.Add(New
System.Data.OleDb.OleDbParameter("PLACE",
System.Data.OleDb.OleDbType.VarWChar, 50, "PLACE"))
Me.OleDbInsertCommand1.Parameters.Add(New
System.Data.OleDb.OleDbParameter("REMARK",
System.Data.OleDb.OleDbType.VarWChar, 50, "REMARK"))
Me.OleDbInsertCommand1.Parameters.Add(New
System.Data.OleDb.OleDbParameter("STATE",
System.Data.OleDb.OleDbType.VarWChar, 50, "STATE"))
Me.OleDbInsertCommand1.Parameters.Add(New
System.Data.OleDb.OleDbParameter("TIN_NO",
System.Data.OleDb.OleDbType.Integer, 0, "TIN NO"))
'
'OleDbDataAdapter1
'
Me.OleDbDataAdapter1.InsertCommand =
Me.OleDbInsertCommand1
Me.OleDbDataAdapter1.SelectCommand =
Me.OleDbSelectCommand1
Me.OleDbDataAdapter1.TableMappings.AddRange(New
System.Data.Common.DataTableMapping() {New
System.Data.Common.DataTableMapping("Table", "DETAILS", New
System.Data.Common.DataColumnMapping() {New
System.Data.Common.DataColumnMapping("ADDRESS", "ADDRESS"), New
System.Data.Common.DataColumnMapping("CONTACTPERSON",
"CONTACTPERSON"), New System.Data.Common.DataColumnMapping("CR DAYS",
"CR DAYS"), New System.Data.Common.DataColumnMapping("DISTICT",
"DISTICT"), New System.Data.Common.DataColumnMapping("DL NO", "DL
NO"), New System.Data.Common.DataColumnMapping("DR CR", "DR CR"), New
System.Data.Common.DataColumnMapping("EMAIL ADDERESS", "EMAIL
ADDERESS"), New System.Data.Common.DataColumnMapping("LIMIT",
"LIMIT"), New System.Data.Common.DataColumnMapping("MOBILENO",
"MOBILENO"), New System.Data.Common.DataColumnMapping("NAME",
"NAME"), New System.Data.Common.DataColumnMapping("OPENNING BALANCE",
"OPENNING BALANCE"), New
System.Data.Common.DataColumnMapping("PHONE", "PHONE"), New
System.Data.Common.DataColumnMapping("PINCODE", "PINCODE"), New
System.Data.Common.DataColumnMapping("PLACE", "PLACE"), New
System.Data.Common.DataColumnMapping("REMARK", "REMARK"), New
System.Data.Common.DataColumnMapping("STATE", "STATE"), New
System.Data.Common.DataColumnMapping("TIN NO", "TIN NO")})})
'
'objCMD
'
Me.objCMD.DataSetName = "CMD"
Me.objCMD.Locale = New
System.Globalization.CultureInfo("en-GB")
'
'editADDRESS
'
Me.editADDRESS.DataBindings.Add(New
System.Windows.Forms.Binding("Text", Me.objCMD, "DETAILS.ADDRESS"))
Me.editADDRESS.Location = New
System.Drawing.Point(184, 176)
Me.editADDRESS.Name = "editADDRESS"
Me.editADDRESS.Size = New System.Drawing.Size(160,
20)
Me.editADDRESS.TabIndex = 12
Me.editADDRESS.Text = ""
'
'editCONTACTPERSON
'
Me.editCONTACTPERSON.DataBindings.Add(New
System.Windows.Forms.Binding("Text", Me.objCMD,
"DETAILS.CONTACTPERSON"))
Me.editCONTACTPERSON.Location = New
System.Drawing.Point(184, 128)
Me.editCONTACTPERSON.Name = "editCONTACTPERSON"
Me.editCONTACTPERSON.Size = New
System.Drawing.Size(160, 20)
Me.editCONTACTPERSON.TabIndex = 13
Me.editCONTACTPERSON.Text = ""
'
'editCR_DAYS
'
Me.editCR_DAYS.DataBindings.Add(New
System.Windows.Forms.Binding("Text", Me.objCMD,
"DETAILS.CR DAYS"))
Me.editCR_DAYS.Location = New System.Drawing.Point(568, 296)
Me.editCR_DAYS.Name = "editCR_DAYS"
Me.editCR_DAYS.Size = New System.Drawing.Size(136, 20)
Me.editCR_DAYS.TabIndex = 14
Me.editCR_DAYS.Text = ""
'
'editDISTICT
'
Me.editDISTICT.DataBindings.Add(New
System.Windows.Forms.Binding("Text", Me.objCMD, "DETAILS.DISTICT"))
Me.editDISTICT.Location = New System.Drawing.Point(568, 120)
Me.editDISTICT.Name = "editDISTICT"
Me.editDISTICT.Size = New System.Drawing.Size(136, 20)
Me.editDISTICT.TabIndex = 15
Me.editDISTICT.Text = ""
'
'editDL_NO
'
Me.editDL_NO.DataBindings.Add(New
System.Windows.Forms.Binding("Text", Me.objCMD, "DETAILS.DL NO"))
Me.editDL_NO.Location = New System.Drawing.Point(568, 416)
Me.editDL_NO.Name = "editDL_NO"
Me.editDL_NO.Size = New System.Drawing.Size(136, 20)
Me.editDL_NO.TabIndex = 16
Me.editDL_NO.Text = ""
'
'editDR_CR
'
Me.editDR_CR.DataBindings.Add(New
System.Windows.Forms.Binding("Text", Me.objCMD, "DETAILS.DR CR"))
Me.editDR_CR.Location = New System.Drawing.Point(568, 352)
Me.editDR_CR.Name = "editDR_CR"
Me.editDR_CR.Size = New System.Drawing.Size(136, 20)
Me.editDR_CR.TabIndex = 17
Me.editDR_CR.Text = ""
'
'editEMAIL_ADDERESS
'
Me.editEMAIL_ADDERESS.DataBindings.Add(New
System.Windows.Forms.Binding("Text", Me.objCMD, "DETAILS.EMAIL
ADDERESS"))
Me.editEMAIL_ADDERESS.Location = New System.Drawing.Point(184,
464)
Me.editEMAIL_ADDERESS.Name = "editEMAIL_ADDERESS"
Me.editEMAIL_ADDERESS.Size = New
System.Drawing.Size(160, 20)
Me.editEMAIL_ADDERESS.TabIndex = 18
Me.editEMAIL_ADDERESS.Text = ""
'
'editLIMIT
'
Me.editLIMIT.DataBindings.Add(New
System.Windows.Forms.Binding("Text", Me.objCMD, "DETAILS.LIMIT"))
Me.editLIMIT.Location = New
System.Drawing.Point(568, 472)
Me.editLIMIT.Name = "editLIMIT"
Me.editLIMIT.Size = New System.Drawing.Size(136,
20)
Me.editLIMIT.TabIndex = 19
Me.editLIMIT.Text = ""
'
'editMOBILENO
'
Me.editMOBILENO.DataBindings.Add(New
System.Windows.Forms.Binding("Text", Me.objCMD, "DETAILS.MOBILENO"))
Me.editMOBILENO.Location = New
System.Drawing.Point(184, 408)
Me.editMOBILENO.Name = "editMOBILENO"
Me.editMOBILENO.Size = New System.Drawing.Size(160,
20)
Me.editMOBILENO.TabIndex = 20
Me.editMOBILENO.Text = ""
'
'editNAME
'
Me.editNAME.DataBindings.Add(New
System.Windows.Forms.Binding("Text", Me.objCMD, "DETAILS.NAME"))
Me.editNAME.Location = New
System.Drawing.Point(184, 72)
Me.editNAME.Name = "editNAME"
Me.editNAME.Size = New System.Drawing.Size(160, 20)
Me.editNAME.TabIndex = 29
Me.editNAME.Text = ""
'
'editOPENNING_BALANCE
'
Me.editOPENNING_BALANCE.DataBindings.Add(New
System.Windows.Forms.Binding("Text", Me.objCMD, "DETAILS.OPENNING
BALANCE"))
Me.editOPENNING_BALANCE.Location = New
System.Drawing.Point(568, 72)
Me.editOPENNING_BALANCE.Name =
"editOPENNING_BALANCE"
Me.editOPENNING_BALANCE.Size = New
System.Drawing.Size(136, 20)
Me.editOPENNING_BALANCE.TabIndex = 30
Me.editOPENNING_BALANCE.Text = ""
'
'editPHONE
'
Me.editPHONE.DataBindings.Add(New
System.Windows.Forms.Binding("Text", Me.objCMD, "DETAILS.PHONE"))
Me.editPHONE.Location = New System.Drawing.Point(184, 360)
Me.editPHONE.Name = "editPHONE"
Me.editPHONE.Size = New System.Drawing.Size(160, 20)
Me.editPHONE.TabIndex = 31
Me.editPHONE.Text = ""
'
'editPINCODE
'
Me.editPINCODE.DataBindings.Add(New
System.Windows.Forms.Binding("Text", Me.objCMD, "DETAILS.PINCODE"))
Me.editPINCODE.Location = New System.Drawing.Point(568, 184)
Me.editPINCODE.Name = "editPINCODE"
Me.editPINCODE.Size = New System.Drawing.Size(136, 20)
Me.editPINCODE.TabIndex = 32
Me.editPINCODE.Text = ""
'
'editPLACE
'
Me.editPLACE.DataBindings.Add(New
System.Windows.Forms.Binding("Text", Me.objCMD, "DETAILS.PLACE"))
Me.editPLACE.Location = New System.Drawing.Point(184, 240)
Me.editPLACE.Name = "editPLACE"
Me.editPLACE.Size = New System.Drawing.Size(160, 20)
Me.editPLACE.TabIndex = 33
Me.editPLACE.Text = ""
'
'editREMARK
'
Me.editREMARK.DataBindings.Add(New
System.Windows.Forms.Binding("Text", Me.objCMD, "DETAILS.REMARK"))
Me.editREMARK.Location = New System.Drawing.Point(168, 520)
Me.editREMARK.Name = "editREMARK"
Me.editREMARK.Size = New System.Drawing.Size(520, 20)
Me.editREMARK.TabIndex = 34
Me.editREMARK.Text = ""
'
'editSTATE
'
Me.editSTATE.DataBindings.Add(New
System.Windows.Forms.Binding("Text", Me.objCMD, "DETAILS.STATE"))
Me.editSTATE.Location = New System.Drawing.Point(184, 296)
Me.editSTATE.Name = "editSTATE"
Me.editSTATE.Size = New System.Drawing.Size(160, 20)
Me.editSTATE.TabIndex = 35
Me.editSTATE.Text = ""
'
'editTIN_NO
'
Me.editTIN_NO.DataBindings.Add(New
System.Windows.Forms.Binding("Text", Me.objCMD, "DETAILS.TIN NO"))
Me.editTIN_NO.Location = New System.Drawing.Point(568, 240)
Me.editTIN_NO.Name = "editTIN_NO"
Me.editTIN_NO.Size = New System.Drawing.Size(136, 20)
Me.editTIN_NO.TabIndex = 36
Me.editTIN_NO.Text = ""
'
'Label18
'
Me.Label18.BackColor = System.Drawing.SystemColors.Info
Me.Label18.Font = New System.Drawing.Font("Times New Roman",
15.75!, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label18.ForeColor = System.Drawing.Color.Red
Me.Label18.Location = New System.Drawing.Point(112, 0)
Me.Label18.Name = "Label18"
Me.Label18.Size = New System.Drawing.Size(624, 33)
Me.Label18.TabIndex = 90
Me.Label18.Text = "CUSTOMER MASTER DETAILS"
Me.Label18.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label9
'
Me.Label9.Font = New System.Drawing.Font("Arial", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Label9.ForeColor = System.Drawing.Color.Red
Me.Label9.Location = New System.Drawing.Point(16, 456)
Me.Label9.Name = "Label9"
Me.Label9.Size = New System.Drawing.Size(168, 48)
Me.Label9.TabIndex = 99
Me.Label9.Text = " E-MAIL ADDRESS :"
Me.Label9.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label8
'
Me.Label8.Font = New System.Drawing.Font("Arial", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Label8.ForeColor = System.Drawing.Color.Red
Me.Label8.Location = New System.Drawing.Point(0, 512)
Me.Label8.Name = "Label8"
Me.Label8.Size = New System.Drawing.Size(168, 48)
Me.Label8.TabIndex = 98
Me.Label8.Text = " REMARKS :"
Me.Label8.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label7
'
Me.Label7.Font = New System.Drawing.Font("Arial", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Label7.ForeColor = System.Drawing.Color.Red
Me.Label7.Location = New System.Drawing.Point(16, 400)
Me.Label7.Name = "Label7"
Me.Label7.Size = New System.Drawing.Size(168, 48)
Me.Label7.TabIndex = 97
Me.Label7.Text = " MOBILE NO. :"
Me.Label7.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label6
'
Me.Label6.Font = New System.Drawing.Font("Microsoft Sans Serif",
12.0!, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label6.ForeColor = System.Drawing.Color.Red
Me.Label6.Location = New System.Drawing.Point(16, 344)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(168, 48)
Me.Label6.TabIndex = 96
Me.Label6.Text = "PHONE NO. :"
Me.Label6.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label5
'
Me.Label5.Font = New System.Drawing.Font("Arial", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Label5.ForeColor = System.Drawing.Color.Red
Me.Label5.Location = New System.Drawing.Point(16, 280)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(168, 48)
Me.Label5.TabIndex = 95
Me.Label5.Text = " STATE :"
Me.Label5.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label4
'
Me.Label4.Font = New System.Drawing.Font("Arial",
12.0!, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label4.ForeColor = System.Drawing.Color.Red
Me.Label4.Location = New System.Drawing.Point(16, 224)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(168, 48)
Me.Label4.TabIndex = 94
Me.Label4.Text = "PLACE :"
Me.Label4.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label3
'
Me.Label3.Font = New System.Drawing.Font("Arial",
12.0!, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label3.ForeColor = System.Drawing.Color.Red
Me.Label3.Location = New System.Drawing.Point(16, 160)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(168, 48)
Me.Label3.TabIndex = 93
Me.Label3.Text = " ADDRESS :"
Me.Label3.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label2
'
Me.Label2.Font = New System.Drawing.Font("Arial",
12.0!, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label2.ForeColor = System.Drawing.Color.Red
Me.Label2.Location = New System.Drawing.Point(16, 104)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(168, 48)
Me.Label2.TabIndex = 92
Me.Label2.Text = "CONTACT PERSON:"
Me.Label2.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label1
'
Me.Label1.Font = New System.Drawing.Font("Arial",
12.0!, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label1.ForeColor = System.Drawing.Color.Red
Me.Label1.ImageAlign =
System.Drawing.ContentAlignment.MiddleRight
Me.Label1.Location = New System.Drawing.Point(16, 56)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(168, 49)
Me.Label1.TabIndex = 91
Me.Label1.Text = " NAME :"
Me.Label1.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label10
'
Me.Label10.Font = New System.Drawing.Font("Arial",
12.0!, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label10.ForeColor = System.Drawing.Color.Red
Me.Label10.ImageAlign =
System.Drawing.ContentAlignment.MiddleRight
Me.Label10.Location = New System.Drawing.Point(392,
400)
Me.Label10.Name = "Label10"
Me.Label10.Size = New System.Drawing.Size(168, 49)
Me.Label10.TabIndex = 100
Me.Label10.Text = " DL NO. :"
Me.Label10.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label15
'
Me.Label15.Font = New System.Drawing.Font("Arial",
12.0!, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label15.ForeColor = System.Drawing.Color.Red
Me.Label15.Location = New System.Drawing.Point(384,
280)
Me.Label15.Name = "Label15"
Me.Label15.Size = New System.Drawing.Size(176, 48)
Me.Label15.TabIndex = 106
Me.Label15.Text = " CR.DAYS"
Me.Label15.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label14
'
Me.Label14.Font = New System.Drawing.Font("Arial", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Label14.ForeColor = System.Drawing.Color.Red
Me.Label14.Location = New System.Drawing.Point(392, 344)
Me.Label14.Name = "Label14"
Me.Label14.Size = New System.Drawing.Size(176, 48)
Me.Label14.TabIndex = 105
Me.Label14.Text = " DR./ CR."
Me.Label14.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label13
'
Me.Label13.Font = New System.Drawing.Font("Arial", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Label13.ForeColor = System.Drawing.Color.Red
Me.Label13.Location = New System.Drawing.Point(384, 224)
Me.Label13.Name = "Label13"
Me.Label13.Size = New System.Drawing.Size(176, 48)
Me.Label13.TabIndex = 104
Me.Label13.Text = " TIN NO. :"
Me.Label13.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label12
'
Me.Label12.Font = New System.Drawing.Font("Arial", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Label12.ForeColor = System.Drawing.Color.Red
Me.Label12.Location = New System.Drawing.Point(384, 168)
Me.Label12.Name = "Label12"
Me.Label12.Size = New System.Drawing.Size(176, 48)
Me.Label12.TabIndex = 103
Me.Label12.Text = " PIN CODE :"
Me.Label12.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label11
'
Me.Label11.Font = New System.Drawing.Font("Arial", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Label11.ForeColor = System.Drawing.Color.Red
Me.Label11.Location = New System.Drawing.Point(392, 464)
Me.Label11.Name = "Label11"
Me.Label11.Size = New System.Drawing.Size(176, 48)
Me.Label11.TabIndex = 102
Me.Label11.Text = " LIMIT :"
Me.Label11.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label16
'
Me.Label16.Font = New System.Drawing.Font("Arial", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Label16.ForeColor = System.Drawing.Color.Red
Me.Label16.Location = New System.Drawing.Point(384, 56)
Me.Label16.Name = "Label16"
Me.Label16.Size = New System.Drawing.Size(184, 48)
Me.Label16.TabIndex = 101
Me.Label16.Text = " OPENING BALANCE :"
Me.Label16.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label17
'
Me.Label17.Font = New System.Drawing.Font("Arial", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Label17.ForeColor = System.Drawing.Color.Red
Me.Label17.Location = New System.Drawing.Point(384, 112)
Me.Label17.Name = "Label17"
Me.Label17.Size = New System.Drawing.Size(176, 48)
Me.Label17.TabIndex = 107
Me.Label17.Text = " DISTICT :"
Me.Label17.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Panel1
'
Me.Panel1.BackColor = System.Drawing.Color.FromArgb(CType(224,
Byte), CType(224, Byte), CType(224, Byte))
Me.Panel1.Controls.Add(Me.butoon1)
Me.Panel1.Controls.Add(Me.Button1)
Me.Panel1.Controls.Add(Me.btnLoad)
Me.Panel1.Controls.Add(Me.btnUpdate)
Me.Panel1.Controls.Add(Me.btnCancelAll)
Me.Panel1.Controls.Add(Me.btnNavFirst)
Me.Panel1.Controls.Add(Me.btnNavPrev)
Me.Panel1.Controls.Add(Me.lblNavLocation)
Me.Panel1.Controls.Add(Me.btnNavNext)
Me.Panel1.Controls.Add(Me.btnLast)
Me.Panel1.Controls.Add(Me.btnAdd)
Me.Panel1.Controls.Add(Me.btnDelete)
Me.Panel1.Controls.Add(Me.btnCancel)
Me.Panel1.Location = New System.Drawing.Point(88,
560)
Me.Panel1.Name = "Panel1"
Me.Panel1.Size = New System.Drawing.Size(712, 104)
Me.Panel1.TabIndex = 108
'
'butoon1
'
Me.butoon1.BackColor = System.Drawing.Color.Gray
Me.butoon1.Location = New System.Drawing.Point(520,
16)
Me.butoon1.Name = "butoon1"
Me.butoon1.Size = New System.Drawing.Size(80, 32)
Me.butoon1.TabIndex = 122
Me.butoon1.Text = " &Print"
'
'Button1
'
Me.Button1.BackColor = System.Drawing.Color.Gray
Me.Button1.Location = New System.Drawing.Point(520,
56)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(80, 32)
Me.Button1.TabIndex = 121
Me.Button1.Text = " C&lose"
'
'btnLoad
'
Me.btnLoad.BackColor = System.Drawing.Color.Gray
Me.btnLoad.Location = New System.Drawing.Point(104,
16)
Me.btnLoad.Name = "btnLoad"
Me.btnLoad.Size = New System.Drawing.Size(80, 32)
Me.btnLoad.TabIndex = 110
Me.btnLoad.Text = "&Load"
'
'btnUpdate
'
Me.btnUpdate.BackColor = System.Drawing.Color.Gray
Me.btnUpdate.Location = New System.Drawing.Point(360, 56)
Me.btnUpdate.Name = "btnUpdate"
Me.btnUpdate.Size = New System.Drawing.Size(72, 32)
Me.btnUpdate.TabIndex = 111
Me.btnUpdate.Text = "&save"
'
'btnCancelAll
'
Me.btnCancelAll.BackColor = System.Drawing.Color.Gray
Me.btnCancelAll.Location = New System.Drawing.Point(440, 56)
Me.btnCancelAll.Name = "btnCancelAll"
Me.btnCancelAll.Size = New System.Drawing.Size(72, 32)
Me.btnCancelAll.TabIndex = 112
Me.btnCancelAll.Text = "Ca&ncel All"
'
'btnNavFirst
'
Me.btnNavFirst.BackColor = System.Drawing.Color.Gray
Me.btnNavFirst.Location = New System.Drawing.Point(192, 16)
Me.btnNavFirst.Name = "btnNavFirst"
Me.btnNavFirst.Size = New System.Drawing.Size(48, 32)
Me.btnNavFirst.TabIndex = 113
Me.btnNavFirst.Text = "<<"
'
'btnNavPrev
'
Me.btnNavPrev.BackColor = System.Drawing.Color.Gray
Me.btnNavPrev.Location = New System.Drawing.Point(248, 16)
Me.btnNavPrev.Name = "btnNavPrev"
Me.btnNavPrev.Size = New System.Drawing.Size(48, 32)
Me.btnNavPrev.TabIndex = 114
Me.btnNavPrev.Text = "<"
'
'lblNavLocation
'
Me.lblNavLocation.BackColor = System.Drawing.Color.White
Me.lblNavLocation.Location = New System.Drawing.Point(304, 16)
Me.lblNavLocation.Name = "lblNavLocation"
Me.lblNavLocation.Size = New System.Drawing.Size(95, 32)
Me.lblNavLocation.TabIndex = 115
Me.lblNavLocation.Text = "No Records"
Me.lblNavLocation.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'btnNavNext
'
Me.btnNavNext.BackColor = System.Drawing.Color.Gray
Me.btnNavNext.Location = New
System.Drawing.Point(408, 16)
Me.btnNavNext.Name = "btnNavNext"
Me.btnNavNext.Size = New System.Drawing.Size(48, 32)
Me.btnNavNext.TabIndex = 116
Me.btnNavNext.Text = ">"
'
'btnLast
'
Me.btnLast.BackColor = System.Drawing.Color.Gray
Me.btnLast.Location = New System.Drawing.Point(464,
16)
Me.btnLast.Name = "btnLast"
Me.btnLast.Size = New System.Drawing.Size(48, 32)
Me.btnLast.TabIndex = 117
Me.btnLast.Text = ">>"
'
'btnAdd
'
Me.btnAdd.BackColor = System.Drawing.Color.Gray
Me.btnAdd.Location = New System.Drawing.Point(104,
56)
Me.btnAdd.Name = "btnAdd"
Me.btnAdd.Size = New System.Drawing.Size(80, 32)
Me.btnAdd.TabIndex = 118
Me.btnAdd.Text = "&Add"
'
'btnDelete
'
Me.btnDelete.BackColor = System.Drawing.Color.Gray
Me.btnDelete.Location = New System.Drawing.Point(192,
56)
Me.btnDelete.Name = "btnDelete"
Me.btnDelete.Size = New System.Drawing.Size(80, 32)
Me.btnDelete.TabIndex = 119
Me.btnDelete.Text = "&Delete"
'
'btnCancel
'
Me.btnCancel.BackColor = System.Drawing.Color.Gray
Me.btnCancel.Location = New System.Drawing.Point(280,
56)
Me.btnCancel.Name = "btnCancel"
Me.btnCancel.Size = New System.Drawing.Size(72, 32)
Me.btnCancel.TabIndex = 120
Me.btnCancel.Text = "&Cancel"
'
'CUSTOMER_MASTER_DETAILS
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(912, 749)
Me.Controls.Add(Me.Panel1)
Me.Controls.Add(Me.Label17)
Me.Controls.Add(Me.Label15)
Me.Controls.Add(Me.Label14)
Me.Controls.Add(Me.Label13)
Me.Controls.Add(Me.Label12)
Me.Controls.Add(Me.Label11)
Me.Controls.Add(Me.Label16)
Me.Controls.Add(Me.Label10)
Me.Controls.Add(Me.Label9)
Me.Controls.Add(Me.Label8)
Me.Controls.Add(Me.Label7)
Me.Controls.Add(Me.Label6)
Me.Controls.Add(Me.Label5)
Me.Controls.Add(Me.Label4)
Me.Controls.Add(Me.Label3)
Me.Controls.Add(Me.Label2)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.Label18)
Me.Controls.Add(Me.editADDRESS)
Me.Controls.Add(Me.editCONTACTPERSON)
Me.Controls.Add(Me.editCR_DAYS)
Me.Controls.Add(Me.editDISTICT)
Me.Controls.Add(Me.editDL_NO)
Me.Controls.Add(Me.editDR_CR)
Me.Controls.Add(Me.editEMAIL_ADDERESS)
Me.Controls.Add(Me.editLIMIT)
Me.Controls.Add(Me.editMOBILENO)
Me.Controls.Add(Me.editNAME)
Me.Controls.Add(Me.editOPENNING_BALANCE)
Me.Controls.Add(Me.editPHONE)
Me.Controls.Add(Me.editPINCODE)
Me.Controls.Add(Me.editPLACE)
Me.Controls.Add(Me.editREMARK)
Me.Controls.Add(Me.editSTATE)
Me.Controls.Add(Me.editTIN_NO)
Me.Name = "CUSTOMER_MASTER_DETAILS"
Me.Text = "CUSTOMER_MASTER_DETAILS"
Me.WindowState =
System.Windows.Forms.FormWindowState.Maximized
CType(Me.objCMD,
System.ComponentModel.ISupportInitialize).EndInit()
Me.Panel1.ResumeLayout(False)
Me.ResumeLayout(False)

End Sub

#End Region

Private Sub btnCancel_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
btnCancel.Click
Me.BindingContext(objCMD, "DETAILS").CancelCurrentEdit()
Me.objCMD_PositionChanged()

End Sub
Private Sub btnDelete_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles btnDelete.Click
If (Me.BindingContext(objCMD, "DETAILS").Count > 0) Then
Me.BindingContext(objCMD,
"DETAILS").RemoveAt(Me.BindingContext(objCMD, "DETAILS").Position)
Me.objCMD_PositionChanged()
End If

End Sub
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnAdd.Click
Try
'Clear out the current edits
Me.BindingContext(objCMD, "DETAILS").EndCurrentEdit()
Me.BindingContext(objCMD, "DETAILS").AddNew()
Catch eEndEdit As System.Exception
System.Windows.Forms.MessageBox.Show(eEndEdit.Message)
End Try
Me.objCMD_PositionChanged()

End Sub
Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles btnUpdate.Click
Try
'Attempt to update the datasource.
Me.UpdateDataSet()
Catch eUpdate As System.Exception
'Add your error handling code here.
'Display error message, if any.
System.Windows.Forms.MessageBox.Show(eUpdate.Message)
End Try
Me.objCMD_PositionChanged()

End Sub
Private Sub btnLoad_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles btnLoad.Click
Try
'Attempt to load the dataset.
Me.LoadDataSet()
Catch eLoad As System.Exception
'Add your error handling code here.
'Display error message, if any.
System.Windows.Forms.MessageBox.Show(eLoad.Message)
End Try
Me.objCMD_PositionChanged()

End Sub
Private Sub btnNavFirst_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles btnNavFirst.Click
Me.BindingContext(objCMD, "DETAILS").Position = 0
Me.objCMD_PositionChanged()

End Sub
Private Sub btnLast_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles btnLast.Click
Me.BindingContext(objCMD, "DETAILS").Position =
(Me.objCMD.Tables("DETAILS").Rows.Count - 1)
Me.objCMD_PositionChanged()

End Sub
Private Sub btnNavPrev_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles btnNavPrev.Click
Me.BindingContext(objCMD, "DETAILS").Position =
(Me.BindingContext(objCMD, "DETAILS").Position - 1)
Me.objCMD_PositionChanged()

End Sub
Private Sub btnNavNext_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles btnNavNext.Click
Me.BindingContext(objCMD, "DETAILS").Position =
(Me.BindingContext(objCMD, "DETAILS").Position + 1)
Me.objCMD_PositionChanged()

End Sub
Private Sub objCMD_PositionChanged()
Me.lblNavLocation.Text = ("RECORD:" +
(Me.BindingContext(objCMD, "DETAILS").Position + 1).ToString)
End Sub
Private Sub btnCancelAll_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles btnCancelAll.Click
Me.objCMD.RejectChanges()

End Sub
Public Sub UpdateDataSet()
'Create a new dataset to hold the changes that have been made
to the main dataset.
Dim objDataSetChanges As pharma1.CMD = New pharma1.CMD
'Stop any current edits.
Me.BindingContext(objCMD, "DETAILS").EndCurrentEdit()
'Get the changes that have been made to the main dataset.
objDataSetChanges = CType(objCMD.GetChanges, pharma1.CMD)
'Check to see if any changes have been made.
If (Not (objDataSetChanges) Is Nothing) Then
Try
'There are changes that need to be made, so attempt to
update the datasource by
'calling the update method and
passing the dataset and any parameters.
Me.UpdateDataSource(objDataSetChanges)
objCMD.Merge(objDataSetChanges)
objCMD.AcceptChanges()
Catch eUpdate As System.Exception
'Add your error handling code here.
Throw eUpdate
End Try
'Add your code to check the returned dataset for any
errors that may have been
'pushed into the row object's error.
End If

End Sub
Public Sub LoadDataSet()
'Create a new dataset to hold the records returned from the
call to FillDataSet.
'A temporary dataset is used because filling the existing
dataset would
'require the databindings to be rebound.
Dim objDataSetTemp As pharma1.CMD
objDataSetTemp = New pharma1.CMD
Try
'Attempt to fill the temporary dataset.
Me.FillDataSet(objDataSetTemp)
Catch eFillDataSet As System.Exception
'Add your error handling code here.
Throw eFillDataSet
End Try
Try
'Empty the old records from the dataset.
objCMD.Clear()
'Merge the records into the main dataset.
objCMD.Merge(objDataSetTemp)
Catch eLoadMerge As System.Exception
'Add your error handling code here.
Throw eLoadMerge
End Try

End Sub
Public Sub UpdateDataSource(ByVal ChangedRows As pharma1.CMD)
Try
'The data source only needs to be updated if there are
changes pending.
If (Not (ChangedRows) Is Nothing) Then
'Open the connection.
Me.OleDbConnection1.Open()
'Attempt to update the data source.
OleDbDataAdapter1.Update(ChangedRows)
End If
Catch updateException As System.Exception
'Add your error handling code here.
Throw updateException
Finally
'Close the connection whether or not the exception was
thrown.
Me.OleDbConnection1.Close()
End Try

End Sub
Public Sub FillDataSet(ByVal dataSet As pharma1.CMD)
'Turn off constraint checking before the dataset is
filled.
'This allows the adapters to fill the dataset
without concern
'for dependencies betIen the tables.
dataSet.EnforceConstraints = False
Try
'Open the connection.
Me.OleDbConnection1.Open()
'Attempt to fill the dataset through the
OleDbDataAdapter1.
Me.OleDbDataAdapter1.Fill(dataSet)
Catch fillException As System.Exception
'Add your error handling code here.
Throw fillException
Finally
'Turn constraint checking back on.
dataSet.EnforceConstraints = True
'Close the connection whether or not the
exception was thrown.
Me.OleDbConnection1.Close()
End Try

End Sub

Private Sub editNAME_KeyPress(ByVal sender As


System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs)
Handles editNAME.KeyPress
If e.KeyChar = Chr(13) Then
editCONTACTPERSON.Focus()
End If
End Sub
Private Sub editADDRESS_KeyPress(ByVal sender As
System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs)
Handles editADDRESS.KeyPress
If e.KeyChar = Chr(13) Then
editPLACE.Focus()
End If
End Sub
Private Sub editPLACE_KeyPress(ByVal sender As
System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs)
Handles editPLACE.KeyPress
If e.KeyChar = Chr(13) Then
editSTATE.Focus()
End If

End Sub
Private Sub editPHONENO_KEYPRESS(ByVal sender As System.Object,
ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles
editPHONE.KeyPress
If e.KeyChar = Chr(13) Then
editMOBILENO.Focus()
End If
End Sub
Private Sub editMOBILENO_KEYPRESS(ByVal sender As System.Object,
ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles
editMOBILENO.KeyPress
If e.KeyChar = Chr(13) Then
editEMAIL_ADDERESS.Focus()
End If
End Sub
Private Sub editEMAILADDRESS_KeyPress(ByVal sender As
System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs)
Handles editEMAIL_ADDERESS.KeyPress
If e.KeyChar = Chr(13) Then
editREMARK.Focus()
End If
End Sub
Private Sub editSTATE_KeyPress(ByVal sender As System.Object,
ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles
editSTATE.KeyPress
If e.KeyChar = Chr(13) Then
editPHONE.Focus()
End If
End Sub
Private Sub editREMARK_KeyPress(ByVal sender As System.Object,
ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles
editREMARK.KeyPress
If e.KeyChar = Chr(13) Then
editOPENNING_BALANCE.Focus()
End If
End Sub
Private Sub editOPENINGBALANCE_KeyPress(ByVal sender As
System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs)
Handles editOPENNING_BALANCE.KeyPress
If e.KeyChar = Chr(13) Then
editDISTICT.Focus()
End If
End Sub
Private Sub editDISTICT_KeyPress(ByVal sender As System.Object,
ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles
editDISTICT.KeyPress
If e.KeyChar = Chr(13) Then
editPINCODE.Focus()

End If
End Sub

Private Sub editPINCODE_KeyPress(ByVal sender As System.Object,


ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles
editPINCODE.KeyPress
If e.KeyChar = Chr(13) Then
editTIN_NO.Focus()

End If
End Sub
Private Sub editTINNO_KeyPress(ByVal sender As System.Object,
ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles
editTIN_NO.KeyPress
If e.KeyChar = Chr(13) Then
editCR_DAYS.Focus()

End If
End Sub

Private Sub editCONTACTPERSON_KeyPress(ByVal sender As Object,


ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles
editCONTACTPERSON.KeyPress
If e.KeyChar = Chr(13) Then
editADDRESS.Focus()
End If
End Sub
Private Sub editCREDITDAY_KeyPress(ByVal sender As Object, ByVal e
As System.Windows.Forms.KeyPressEventArgs) Handles
editCR_DAYS.KeyPress
If e.KeyChar = Chr(13) Then
editDR_CR.Focus()

End If
End Sub
Private Sub editDRCR_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles editDR_CR.KeyPress
If e.KeyChar = Chr(13) Then
editDL_NO.Focus()
End If
End Sub

Private Sub CUSTOMER_MASTER_DETAILS_Load(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.objCMD.Clear()
Me.OleDbDataAdapter1.Fill(objCMD)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs)
Close()

End Sub
Private Sub editDL_NO_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles editDL_NO.KeyPress
If e.KeyChar = Chr(13) Then
editLIMIT.Focus()
End If
End Sub
Private Sub editLIMIT_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles editLIMIT.KeyPress
If e.KeyChar = Chr(13) Then
btnUpdate.Focus()

End If
End Sub
private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
PD.PrinterSettings = New Printing.PrinterSettings
PD.Document = New Printing.PrintDocument
PD.Document.DocumentName = "c:\anjani\databse\customer.mdb"
PD.AllowPrintToFile = True
PD.AllowPrintToFile = True
PD.AllowSelection = True
PD.AllowSomePages = True
PD.ShowDialog()
PD.Document.Print()
End Sub

Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e


As System.EventArgs) Handles Button1.Click
Close()
End Sub
End Class
/* ---------------Company details--------------*/
Public Class CompanyDetails
Inherits System.Windows.Forms.Form
Private CONN As Odbc.OdbcConnection
Private COMM As Odbc.OdbcCommand
Private DATAREADER As Odbc.OdbcDataReader

#Region " Windows Form Designer generated code "

Public Sub New()


MyBase.New()

'This call is required by the Windows Form Designer.


InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

'Form overrides dispose to clean up the component list.


Protected Overloads Overrides Sub Dispose(ByVal disposing As
Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub

'Required by the Windows Form Designer


Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form


Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents Label18 As System.Windows.Forms.Label
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents Button4 As System.Windows.Forms.Button
Friend WithEvents ListBox1 As System.Windows.Forms.ListBox
Friend WithEvents Button5 As System.Windows.Forms.Button
Friend WithEvents Button6 As System.Windows.Forms.Button
Friend WithEvents Button7 As System.Windows.Forms.Button
Friend WithEvents TXTREPRESENTATIVE As
System.Windows.Forms.TextBox
Friend WithEvents TXTSALESMAN As System.Windows.Forms.TextBox
Friend WithEvents TXTHEAD As System.Windows.Forms.TextBox
Friend WithEvents TXTREMARK As System.Windows.Forms.TextBox
Friend WithEvents cmdadd As System.Windows.Forms.Button
Friend WithEvents TXTCOMPANYNAME As System.Windows.Forms.TextBox
Friend WithEvents TXTREGISTERDNO As System.Windows.Forms.TextBox
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents CMDFIND As System.Windows.Forms.Button
Friend WithEvents CMDUPDATE As System.Windows.Forms.Button
Friend WithEvents CMDDELETE As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
Me.Label18 = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.Label4 = New System.Windows.Forms.Label
Me.Label5 = New System.Windows.Forms.Label
Me.cmdadd = New System.Windows.Forms.Button
Me.CMDUPDATE = New System.Windows.Forms.Button
Me.CMDDELETE = New System.Windows.Forms.Button
Me.Button4 = New System.Windows.Forms.Button
Me.ListBox1 = New System.Windows.Forms.ListBox
Me.Button5 = New System.Windows.Forms.Button
Me.Button6 = New System.Windows.Forms.Button
Me.TXTCOMPANYNAME = New
System.Windows.Forms.TextBox
Me.TXTREPRESENTATIVE = New
System.Windows.Forms.TextBox
Me.TXTSALESMAN = New System.Windows.Forms.TextBox
Me.TXTHEAD = New System.Windows.Forms.TextBox
Me.TXTREMARK = New System.Windows.Forms.TextBox
Me.Button7 = New System.Windows.Forms.Button
Me.TXTREGISTERDNO = New System.Windows.Forms.TextBox
Me.Label6 = New System.Windows.Forms.Label
Me.CMDFIND = New System.Windows.Forms.Button
Me.SuspendLayout()
'
'Label18
'
Me.Label18.BackColor = System.Drawing.SystemColors.Info
Me.Label18.Font = New System.Drawing.Font("Times New Roman",
15.75!, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label18.ForeColor = System.Drawing.SystemColors.WindowText
Me.Label18.Location = New System.Drawing.Point(56, 32)
Me.Label18.Name = "Label18"
Me.Label18.Size = New System.Drawing.Size(624, 32)
Me.Label18.TabIndex = 88
Me.Label18.Text = " COMPANY DETAILS"
Me.Label18.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label1
'
Me.Label1.Font = New System.Drawing.Font("Arial", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Label1.ForeColor = System.Drawing.Color.Blue
Me.Label1.ImageAlign =
System.Drawing.ContentAlignment.MiddleRight
Me.Label1.Location = New System.Drawing.Point(8, 160)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(168, 48)
Me.Label1.TabIndex = 89
Me.Label1.Text = " COMPANY NAME :"
Me.Label1.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label2
'
Me.Label2.Font = New System.Drawing.Font("Arial", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Label2.ForeColor =
System.Drawing.Color.Blue
Me.Label2.ImageAlign =
System.Drawing.ContentAlignment.MiddleRight
Me.Label2.Location = New
System.Drawing.Point(8, 216)
Me.Label2.Name = "Label2"
Me.Label2.Size = New
System.Drawing.Size(168, 48)
Me.Label2.TabIndex = 90
Me.Label2.Text = "REPRESENTATIVE :"
Me.Label2.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label3
'
Me.Label3.Font = New System.Drawing.Font("Arial", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Label3.ForeColor = System.Drawing.Color.Blue
Me.Label3.ImageAlign =
System.Drawing.ContentAlignment.MiddleRight
Me.Label3.Location = New System.Drawing.Point(8, 272)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(168, 48)
Me.Label3.TabIndex = 91
Me.Label3.Text = "SALES MAN :"
Me.Label3.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label4
'
Me.Label4.Font = New System.Drawing.Font("Arial", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Label4.ForeColor = System.Drawing.Color.Blue
Me.Label4.ImageAlign =
System.Drawing.ContentAlignment.MiddleRight
Me.Label4.Location = New System.Drawing.Point(8, 328)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(168, 48)
Me.Label4.TabIndex = 92
Me.Label4.Text = " HEAD :"
Me.Label4.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'Label5
'
Me.Label5.Font = New System.Drawing.Font("Arial", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Me.Label5.ForeColor = System.Drawing.Color.Blue
Me.Label5.ImageAlign =
System.Drawing.ContentAlignment.MiddleRight
Me.Label5.Location = New System.Drawing.Point(8, 384)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(168, 48)
Me.Label5.TabIndex = 93
Me.Label5.Text = "REMARK :"
Me.Label5.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'cmdadd
'
Me.cmdadd.Location = New System.Drawing.Point(8, 456)
Me.cmdadd.Name = "cmdadd"
Me.cmdadd.Size = New System.Drawing.Size(72, 32)
Me.cmdadd.TabIndex = 94
Me.cmdadd.Tag = ""
Me.cmdadd.Text = "ADD"
'
'CMDUPDATE
'
Me.CMDUPDATE.Location = New
System.Drawing.Point(184, 456)
Me.CMDUPDATE.Name = "CMDUPDATE"
Me.CMDUPDATE.Size = New System.Drawing.Size(72, 32)
Me.CMDUPDATE.TabIndex = 95
Me.CMDUPDATE.Text = "UPDATE"
'
'CMDDELETE
'
Me.CMDDELETE.Location = New
System.Drawing.Point(352, 456)
Me.CMDDELETE.Name = "CMDDELETE"
Me.CMDDELETE.Size = New System.Drawing.Size(72, 32)
Me.CMDDELETE.TabIndex = 96
Me.CMDDELETE.Text = " DELETE "
'
'Button4
'
Me.Button4.Location = New System.Drawing.Point(432,
456)
Me.Button4.Name = "Button4"
Me.Button4.Size = New System.Drawing.Size(72, 32)
Me.Button4.TabIndex = 97
Me.Button4.Text = " CLOSE"
'
'ListBox1
'
Me.ListBox1.Items.AddRange(New Object() {"A", "" &
Microsoft.VisualBasic.ChrW(9) & Microsoft.VisualBasic.ChrW(9) &
Microsoft.VisualBasic.ChrW(9) & Microsoft.VisualBasic.ChrW(9) &
Microsoft.VisualBasic.ChrW(9)})
Me.ListBox1.Location = New
System.Drawing.Point(528, 80)
Me.ListBox1.Name = "ListBox1"
Me.ListBox1.Size = New System.Drawing.Size(216,
290)
Me.ListBox1.TabIndex = 98
'
'Button5
'
Me.Button5.Location = New System.Drawing.Point(528,
392)
Me.Button5.Name = "Button5"
Me.Button5.Size = New System.Drawing.Size(192, 48)
Me.Button5.TabIndex = 99
Me.Button5.Text = " CHANGE COMPANY"
'
'Button6
'
Me.Button6.Location = New
System.Drawing.Point(528, 448)
Me.Button6.Name = "Button6"
Me.Button6.Size = New System.Drawing.Size(192, 48)
Me.Button6.TabIndex = 100
Me.Button6.Text = " ADVANCE ....."
'
'TXTCOMPANYNAME
'
Me.TXTCOMPANYNAME.Location = New
System.Drawing.Point(184, 168)
Me.TXTCOMPANYNAME.Name = "TXTCOMPANYNAME"
Me.TXTCOMPANYNAME.Size = New
System.Drawing.Size(240, 20)
Me.TXTCOMPANYNAME.TabIndex = 101
Me.TXTCOMPANYNAME.Text = ""
'
'TXTREPRESENTATIVE
'
Me.TXTREPRESENTATIVE.Location = New
System.Drawing.Point(184, 224)
Me.TXTREPRESENTATIVE.Name = "TXTREPRESENTATIVE"
Me.TXTREPRESENTATIVE.Size = New
System.Drawing.Size(240, 20)
Me.TXTREPRESENTATIVE.TabIndex = 102
Me.TXTREPRESENTATIVE.Text = ""
'
'TXTSALESMAN
'
Me.TXTSALESMAN.Location = New
System.Drawing.Point(184, 280)
Me.TXTSALESMAN.Name = "TXTSALESMAN"
Me.TXTSALESMAN.Size = New System.Drawing.Size(240,
20)
Me.TXTSALESMAN.TabIndex = 103
Me.TXTSALESMAN.Text = ""
'
'TXTHEAD
'
Me.TXTHEAD.Location = New System.Drawing.Point(184,
336)
Me.TXTHEAD.Name = "TXTHEAD"
Me.TXTHEAD.Size = New System.Drawing.Size(240, 20)
Me.TXTHEAD.TabIndex = 104
Me.TXTHEAD.Text = ""
'
'TXTREMARK
'
Me.TXTREMARK.Location = New
System.Drawing.Point(184, 392)
Me.TXTREMARK.Name = "TXTREMARK"
Me.TXTREMARK.Size = New System.Drawing.Size(240,
20)
Me.TXTREMARK.TabIndex = 105
Me.TXTREMARK.Text = ""
'
'Button7
'
Me.Button7.Location = New System.Drawing.Point(96,
456)
Me.Button7.Name = "Button7"
Me.Button7.Size = New System.Drawing.Size(72, 32)
Me.Button7.TabIndex = 106
Me.Button7.Tag = ""
Me.Button7.Text = "SAVE"
'
'TXTREGISTERDNO
'
Me.TXTREGISTERDNO.Location = New
System.Drawing.Point(184, 104)
Me.TXTREGISTERDNO.Name = "TXTREGISTERDNO"
Me.TXTREGISTERDNO.Size = New System.Drawing.Size(240,
20)
Me.TXTREGISTERDNO.TabIndex = 108
Me.TXTREGISTERDNO.Text = ""
'
'Label6
'
Me.Label6.Font = New System.Drawing.Font("Arial",
12.0!, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label6.ForeColor = System.Drawing.Color.Blue
Me.Label6.ImageAlign =
System.Drawing.ContentAlignment.MiddleRight
Me.Label6.Location = New System.Drawing.Point(8, 96)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(168, 48)
Me.Label6.TabIndex = 107
Me.Label6.Text = "REGISTERDNO"
Me.Label6.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter
'
'CMDFIND
'
Me.CMDFIND.Location = New System.Drawing.Point(272,
456)
Me.CMDFIND.Name = "CMDFIND"
Me.CMDFIND.Size = New System.Drawing.Size(72, 32)
Me.CMDFIND.TabIndex = 109
Me.CMDFIND.Text = "FIND"
'
'CompanyDetails
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(804, 526)
Me.Controls.Add(Me.CMDFIND)
Me.Controls.Add(Me.TXTREGISTERDNO)
Me.Controls.Add(Me.Label6)
Me.Controls.Add(Me.Button7)
Me.Controls.Add(Me.TXTREMARK)
Me.Controls.Add(Me.TXTHEAD)
Me.Controls.Add(Me.TXTSALESMAN)
Me.Controls.Add(Me.TXTREPRESENTATIVE)
Me.Controls.Add(Me.TXTCOMPANYNAME)
Me.Controls.Add(Me.Button6)
Me.Controls.Add(Me.Button5)
Me.Controls.Add(Me.ListBox1)
Me.Controls.Add(Me.Button4)
Me.Controls.Add(Me.CMDDELETE)
Me.Controls.Add(Me.CMDUPDATE)
Me.Controls.Add(Me.cmdadd)
Me.Controls.Add(Me.Label5)
Me.Controls.Add(Me.Label4)
Me.Controls.Add(Me.Label3)
Me.Controls.Add(Me.Label2)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.Label18)
Me.Name = "CompanyDetails"
Me.Text = "Form5"
Me.WindowState =
System.Windows.Forms.FormWindowState.Maximized
Me.ResumeLayout(False)

End Sub

#End Region

Private Sub Form5_Load(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles MyBase.Load
CONN = New Odbc.OdbcConnection
'("Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data
Source=C:\CUS_DETAILS.mdb;")
CONN.ConnectionString = "DSN=CUST"
CONN.Open()
End Sub

Private Sub Button4_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button4.Click
Close()

End Sub
Private Sub TextBox1_KeyPress(ByVal sender As
System.Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles
TXTCOMPANYNAME.KeyPress
If e.KeyChar = Chr(13) Then
TXTREPRESENTATIVE.Focus()

End If
End Sub
Private Sub TextBox2_KeyPress(ByVal sender As
System.Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles
TXTREPRESENTATIVE.KeyPress
If e.KeyChar = Chr(13) Then
TXTSALESMAN.Focus()

End If
End Sub
Private Sub TextBox3_KeyPress(ByVal sender As
System.Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles
TXTSALESMAN.KeyPress
If e.KeyChar = Chr(13) Then
TXTHEAD.Focus()

End If
End Sub
Private Sub TextBox4_KeyPress(ByVal sender As
System.Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles
TXTHEAD.KeyPress
If e.KeyChar = Chr(13) Then
TXTREMARK.Focus()

End If
End Sub

Private Sub TextBox5_KeyPress(ByVal sender As


System.Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles
TXTREMARK.KeyPress
If e.KeyChar = Chr(13) Then
Button7.Focus()

End If
End Sub

Private Sub cmdadd_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles cmdadd.Click
Dim QUERY As String

QUERY = "INSERT INTO


CUST(REGISTERDNO,COMPANYNAME,REPRESENTATIVE,SALESMAN,HEAD,REM
ARK)VALUES('" & TXTREGISTERDNO.Text & "','" &
TXTCOMPANYNAME.Text & "','" & TXTREPRESENTATIVE.Text & "',' "
& TXTSALESMAN.Text & "',' " & TXTHEAD.Text & "','" &
TXTREMARK.Text & "')"
COMM = New Odbc.OdbcCommand(QUERY, CONN)
COMM.ExecuteNonQuery()
MsgBox("THIS RECORD IS ADD")
TXTREGISTERDNO.Text = ""
TXTCOMPANYNAME.Text = ""
TXTREPRESENTATIVE.Text = ""
TXTSALESMAN.Text = ""
TXTHEAD.Text = ""
TXTREMARK.Text = ""
TXTCOMPANYNAME.Focus()
COMM.Dispose()

End Sub

Private Sub Button1_KeyPress(ByVal sender As


System.Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles
cmdadd.KeyPress
If e.KeyChar = Chr(13) Then
TXTCOMPANYNAME.Focus()
End If
End Sub

Private Sub CMDFIND_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles CMDFIND.Click
Dim REGISTERDNO As Integer
REGISTERDNO = InputBox("ENTER REGISTERD NO")
Dim query As String
query = "select * from CUST where REGISTERDNO=" &
REGISTERDNO
' MsgBox("please insert correct stid")

COMM = New Odbc.OdbcCommand(query, CONN)


DATAREADER = COMM.ExecuteReader()
DATAREADER.Read()
TXTREGISTERDNO.Text = DATAREADER("REGISTERDNO")
TXTCOMPANYNAME.Text = DATAREADER("COMPANYNAME")
TXTREPRESENTATIVE.Text = DATAREADER("REPRESENTATIVE")
TXTSALESMAN.Text = DATAREADER("SALESMAN")
TXTHEAD.Text = DATAREADER("HEAD")
TXTREMARK.Text = DATAREADER("REMARK")
COMM.Dispose()
DATAREADER.Close()
'If REGISTERDNO = "NULL" Then
' MsgBox("THERE IS NO RECORD")
'End If

End Sub

Private Sub CMDUPDATE_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
CMDUPDATE.Click
Dim RGNO As Integer
Dim query As String
RGNO = Val(InputBox("Enter REGISTERDNO"))
query = "UPDATE CUST SET REGISTERDNO='" &
TXTREGISTERDNO.Text & "',COMPANYNAME='" & TXTCOMPANYNAME.Text
& "',REPRESENTATIVE='" & TXTREPRESENTATIVE.Text &
"',SALESMAN='" & TXTSALESMAN.Text & "',HEAD='" & TXTHEAD.Text
& "',REMARK='" & TXTREMARK.Text & "' WHERE REGISTERDNO=" &
RGNO
COMM = New Odbc.OdbcCommand(query, CONN)
COMM.ExecuteNonQuery()
MsgBox("this record is updated")
TXTREGISTERDNO.Text = ""
TXTCOMPANYNAME.Text = ""
TXTREPRESENTATIVE.Text = ("")
TXTSALESMAN.Text = ""
TXTHEAD.Text = ""
TXTREMARK.Text = ""
TXTREGISTERDNO.Focus()
COMM.Dispose()
End Sub

Private Sub CMDDELETE_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
CMDDELETE.Click
Dim QUERY As String
Dim RGNO As Integer
RGNO = Val(InputBox("Enter REGISTERDNO"))
QUERY = "DELETE FROM CUST SET WHERE REGISTERDNO=" &
RGNO
COMM = New Odbc.OdbcCommand(QUERY, CONN)
COMM.ExecuteNonQuery()
MsgBox("THIS RECORD IS DELETED")
TXTREGISTERDNO.Text = ""
TXTCOMPANYNAME.Text = ""
TXTREPRESENTATIVE.Text = ""
TXTSALESMAN.Text = ""
TXTHEAD.Text = ""
TXTREMARK.Text = ""
TXTCOMPANYNAME.Focus()
COMM.Dispose()
End Sub
End Class

END CODD

Das könnte Ihnen auch gefallen