📄 frmbusinessman.vb
字号:
Public Class frmBusinessman
Inherits System.Windows.Forms.Form
#Region " Windows 窗体设计器生成的代码 "
Public Sub New()
MyBase.New()
'该调用是 Windows 窗体设计器所必需的。
InitializeComponent()
'在 InitializeComponent() 调用之后添加任何初始化
End Sub
'窗体重写 dispose 以清理组件列表。
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
'Windows 窗体设计器所必需的
Private components As System.ComponentModel.IContainer
'注意: 以下过程是 Windows 窗体设计器所必需的
'可以使用 Windows 窗体设计器修改此过程。
'不要使用代码编辑器修改它。
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 Label6 As System.Windows.Forms.Label
Friend WithEvents Label7 As System.Windows.Forms.Label
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents TxtId As System.Windows.Forms.TextBox
Friend WithEvents txtName As System.Windows.Forms.TextBox
Friend WithEvents txtAddr As System.Windows.Forms.TextBox
Friend WithEvents txtPhone As System.Windows.Forms.TextBox
Friend WithEvents txtSalary As System.Windows.Forms.TextBox
Friend WithEvents txtWorkyear As System.Windows.Forms.TextBox
Friend WithEvents txtTrades As System.Windows.Forms.TextBox
Friend WithEvents bunAdd As System.Windows.Forms.Button
Friend WithEvents bunDelete As System.Windows.Forms.Button
Friend WithEvents bunSearch As System.Windows.Forms.Button
Friend WithEvents bunSave As System.Windows.Forms.Button
Friend WithEvents bunCancel As System.Windows.Forms.Button
Friend WithEvents bunNext As System.Windows.Forms.Button
Friend WithEvents bunUpdate As System.Windows.Forms.Button
Friend WithEvents bunPrevious As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
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.Label6 = New System.Windows.Forms.Label
Me.Label7 = New System.Windows.Forms.Label
Me.Label8 = New System.Windows.Forms.Label
Me.TxtId = New System.Windows.Forms.TextBox
Me.txtName = New System.Windows.Forms.TextBox
Me.txtAddr = New System.Windows.Forms.TextBox
Me.txtPhone = New System.Windows.Forms.TextBox
Me.txtSalary = New System.Windows.Forms.TextBox
Me.txtWorkyear = New System.Windows.Forms.TextBox
Me.txtTrades = New System.Windows.Forms.TextBox
Me.bunPrevious = New System.Windows.Forms.Button
Me.bunAdd = New System.Windows.Forms.Button
Me.bunDelete = New System.Windows.Forms.Button
Me.bunSearch = New System.Windows.Forms.Button
Me.bunSave = New System.Windows.Forms.Button
Me.bunCancel = New System.Windows.Forms.Button
Me.bunNext = New System.Windows.Forms.Button
Me.bunUpdate = New System.Windows.Forms.Button
Me.SuspendLayout()
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(8, 16)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(56, 24)
Me.Label1.TabIndex = 0
Me.Label1.Text = " 编号:"
'
'Label2
'
Me.Label2.ForeColor = System.Drawing.Color.Red
Me.Label2.Location = New System.Drawing.Point(224, 16)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(56, 24)
Me.Label2.TabIndex = 1
Me.Label2.Text = "※姓名:"
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(8, 48)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(56, 24)
Me.Label3.TabIndex = 2
Me.Label3.Text = " 地址:"
'
'Label4
'
Me.Label4.Location = New System.Drawing.Point(8, 80)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(56, 24)
Me.Label4.TabIndex = 3
Me.Label4.Text = " 电话:"
'
'Label5
'
Me.Label5.ForeColor = System.Drawing.Color.Red
Me.Label5.Location = New System.Drawing.Point(224, 80)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(56, 24)
Me.Label5.TabIndex = 4
Me.Label5.Text = "※底薪:"
'
'Label6
'
Me.Label6.ForeColor = System.Drawing.Color.Red
Me.Label6.Location = New System.Drawing.Point(8, 120)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(56, 24)
Me.Label6.TabIndex = 5
Me.Label6.Text = "※工龄:"
'
'Label7
'
Me.Label7.ForeColor = System.Drawing.Color.Red
Me.Label7.Location = New System.Drawing.Point(224, 120)
Me.Label7.Name = "Label7"
Me.Label7.Size = New System.Drawing.Size(56, 24)
Me.Label7.TabIndex = 6
Me.Label7.Text = "※业绩:"
'
'Label8
'
Me.Label8.ForeColor = System.Drawing.Color.Red
Me.Label8.Location = New System.Drawing.Point(16, 152)
Me.Label8.Name = "Label8"
Me.Label8.Size = New System.Drawing.Size(400, 24)
Me.Label8.TabIndex = 7
Me.Label8.Text = "前面带※的必须填写!"
'
'TxtId
'
Me.TxtId.BackColor = System.Drawing.SystemColors.Window
Me.TxtId.Enabled = False
Me.TxtId.ForeColor = System.Drawing.SystemColors.WindowText
Me.TxtId.Location = New System.Drawing.Point(72, 8)
Me.TxtId.Name = "TxtId"
Me.TxtId.Size = New System.Drawing.Size(136, 21)
Me.TxtId.TabIndex = 8
Me.TxtId.Text = ""
'
'txtName
'
Me.txtName.BackColor = System.Drawing.SystemColors.Window
Me.txtName.Location = New System.Drawing.Point(280, 8)
Me.txtName.Name = "txtName"
Me.txtName.Size = New System.Drawing.Size(136, 21)
Me.txtName.TabIndex = 9
Me.txtName.Text = ""
'
'txtAddr
'
Me.txtAddr.Location = New System.Drawing.Point(72, 40)
Me.txtAddr.Name = "txtAddr"
Me.txtAddr.Size = New System.Drawing.Size(344, 21)
Me.txtAddr.TabIndex = 10
Me.txtAddr.Text = ""
'
'txtPhone
'
Me.txtPhone.Location = New System.Drawing.Point(72, 72)
Me.txtPhone.Name = "txtPhone"
Me.txtPhone.Size = New System.Drawing.Size(136, 21)
Me.txtPhone.TabIndex = 11
Me.txtPhone.Text = ""
'
'txtSalary
'
Me.txtSalary.BackColor = System.Drawing.SystemColors.Window
Me.txtSalary.Location = New System.Drawing.Point(280, 72)
Me.txtSalary.Name = "txtSalary"
Me.txtSalary.Size = New System.Drawing.Size(136, 21)
Me.txtSalary.TabIndex = 12
Me.txtSalary.Text = ""
'
'txtWorkyear
'
Me.txtWorkyear.BackColor = System.Drawing.SystemColors.Window
Me.txtWorkyear.Location = New System.Drawing.Point(72, 112)
Me.txtWorkyear.Name = "txtWorkyear"
Me.txtWorkyear.Size = New System.Drawing.Size(136, 21)
Me.txtWorkyear.TabIndex = 13
Me.txtWorkyear.Text = ""
'
'txtTrades
'
Me.txtTrades.BackColor = System.Drawing.SystemColors.Window
Me.txtTrades.Location = New System.Drawing.Point(280, 109)
Me.txtTrades.Name = "txtTrades"
Me.txtTrades.Size = New System.Drawing.Size(136, 21)
Me.txtTrades.TabIndex = 14
Me.txtTrades.Text = ""
'
'bunPrevious
'
Me.bunPrevious.Location = New System.Drawing.Point(16, 176)
Me.bunPrevious.Name = "bunPrevious"
Me.bunPrevious.Size = New System.Drawing.Size(32, 24)
Me.bunPrevious.TabIndex = 15
Me.bunPrevious.Text = "<<"
'
'bunAdd
'
Me.bunAdd.Location = New System.Drawing.Point(56, 176)
Me.bunAdd.Name = "bunAdd"
Me.bunAdd.Size = New System.Drawing.Size(40, 24)
Me.bunAdd.TabIndex = 16
Me.bunAdd.Text = "添加"
'
'bunDelete
'
Me.bunDelete.Location = New System.Drawing.Point(104, 176)
Me.bunDelete.Name = "bunDelete"
Me.bunDelete.Size = New System.Drawing.Size(40, 24)
Me.bunDelete.TabIndex = 17
Me.bunDelete.Text = "删除"
'
'bunSearch
'
Me.bunSearch.Location = New System.Drawing.Point(152, 176)
Me.bunSearch.Name = "bunSearch"
Me.bunSearch.Size = New System.Drawing.Size(40, 24)
Me.bunSearch.TabIndex = 18
Me.bunSearch.Text = "搜索"
'
'bunSave
'
Me.bunSave.Location = New System.Drawing.Point(200, 176)
Me.bunSave.Name = "bunSave"
Me.bunSave.Size = New System.Drawing.Size(40, 24)
Me.bunSave.TabIndex = 19
Me.bunSave.Text = "保存"
'
'bunCancel
'
Me.bunCancel.Location = New System.Drawing.Point(248, 176)
Me.bunCancel.Name = "bunCancel"
Me.bunCancel.Size = New System.Drawing.Size(40, 24)
Me.bunCancel.TabIndex = 20
Me.bunCancel.Text = "取消"
'
'bunNext
'
Me.bunNext.Location = New System.Drawing.Point(296, 176)
Me.bunNext.Name = "bunNext"
Me.bunNext.Size = New System.Drawing.Size(32, 24)
Me.bunNext.TabIndex = 21
Me.bunNext.Text = ">>"
'
'bunUpdate
'
Me.bunUpdate.Location = New System.Drawing.Point(344, 176)
Me.bunUpdate.Name = "bunUpdate"
Me.bunUpdate.Size = New System.Drawing.Size(88, 24)
Me.bunUpdate.TabIndex = 22
Me.bunUpdate.Text = "更新到数据库"
'
'frmBusinessman
'
Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
Me.ClientSize = New System.Drawing.Size(440, 222)
Me.Controls.Add(Me.bunUpdate)
Me.Controls.Add(Me.bunNext)
Me.Controls.Add(Me.bunCancel)
Me.Controls.Add(Me.bunSave)
Me.Controls.Add(Me.bunSearch)
Me.Controls.Add(Me.bunDelete)
Me.Controls.Add(Me.bunAdd)
Me.Controls.Add(Me.bunPrevious)
Me.Controls.Add(Me.txtTrades)
Me.Controls.Add(Me.txtWorkyear)
Me.Controls.Add(Me.txtSalary)
Me.Controls.Add(Me.txtPhone)
Me.Controls.Add(Me.txtAddr)
Me.Controls.Add(Me.txtName)
Me.Controls.Add(Me.TxtId)
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.MaximizeBox = False
Me.MinimizeBox = False
Me.Name = "frmBusinessman"
Me.Text = "业务员数据表"
Me.ResumeLayout(False)
End Sub
#End Region
Private myDataAdapter As New SqlClient.SqlDataAdapter
Private myDataSet As DataSet = New DataSet("Bussinessman")
Private neworchange As Boolean
Private TableName As String
Private myIndex As Integer = 0
Private RowsMax As Integer
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -