📄 formemployee.vb
字号:
Imports CommonDB
Imports CommonSystem
Public Class FormEmployee
Inherits System.Windows.Forms.Form
Private oEmployee As Employee
#Region " Windows 窗体设计器生成的代码 "
Public Sub New()
MyBase.New()
'该调用是 Windows 窗体设计器所必需的。
InitializeComponent()
'在 InitializeComponent() 调用之后添加任何初始化
oEmployee = New Employee
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 Panel1 As System.Windows.Forms.Panel
Friend WithEvents Splitter1 As System.Windows.Forms.Splitter
Friend WithEvents Panel2 As System.Windows.Forms.Panel
Friend WithEvents tvEmployee As System.Windows.Forms.TreeView
Friend WithEvents ImageList1 As System.Windows.Forms.ImageList
Friend WithEvents gbxPersonInfo As System.Windows.Forms.GroupBox
Friend WithEvents Panel3 As System.Windows.Forms.Panel
Friend WithEvents btnExit As System.Windows.Forms.Button
Friend WithEvents btnCancel As System.Windows.Forms.Button
Friend WithEvents btnReset As System.Windows.Forms.Button
Friend WithEvents btnUpdate As System.Windows.Forms.Button
Friend WithEvents gbxEmployeeInfo As System.Windows.Forms.GroupBox
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 Label9 As System.Windows.Forms.Label
Friend WithEvents Label10 As System.Windows.Forms.Label
Friend WithEvents Label11 As System.Windows.Forms.Label
Friend WithEvents Label12 As System.Windows.Forms.Label
Friend WithEvents Label13 As System.Windows.Forms.Label
Friend WithEvents Label14 As System.Windows.Forms.Label
Friend WithEvents Label15 As System.Windows.Forms.Label
Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
Friend WithEvents Label16 As System.Windows.Forms.Label
Friend WithEvents Label17 As System.Windows.Forms.Label
Friend WithEvents Label18 As System.Windows.Forms.Label
Friend WithEvents Label19 As System.Windows.Forms.Label
Friend WithEvents Label20 As System.Windows.Forms.Label
Friend WithEvents Label21 As System.Windows.Forms.Label
Friend WithEvents Label22 As System.Windows.Forms.Label
Friend WithEvents Label23 As System.Windows.Forms.Label
Friend WithEvents Label24 As System.Windows.Forms.Label
Friend WithEvents Label26 As System.Windows.Forms.Label
Friend WithEvents Label27 As System.Windows.Forms.Label
Friend WithEvents cmbNation As System.Windows.Forms.ComboBox
Friend WithEvents txtIntro As System.Windows.Forms.TextBox
Friend WithEvents txtName As System.Windows.Forms.TextBox
Friend WithEvents txtAddress As System.Windows.Forms.TextBox
Friend WithEvents txtPostalcode As System.Windows.Forms.TextBox
Friend WithEvents txtPersonalEmail As System.Windows.Forms.TextBox
Friend WithEvents cmbEducation As System.Windows.Forms.ComboBox
Friend WithEvents txtHomePhone As System.Windows.Forms.TextBox
Friend WithEvents txtIdcard As System.Windows.Forms.TextBox
Friend WithEvents txtMobile As System.Windows.Forms.TextBox
Friend WithEvents cmbBussiness As System.Windows.Forms.ComboBox
Friend WithEvents txtNumber As System.Windows.Forms.TextBox
Friend WithEvents cmbDepartment As System.Windows.Forms.ComboBox
Friend WithEvents txtWorkEmail As System.Windows.Forms.TextBox
Friend WithEvents txtWorkAge As System.Windows.Forms.TextBox
Friend WithEvents txtBankAccount As System.Windows.Forms.TextBox
Friend WithEvents txtWorkPhone As System.Windows.Forms.TextBox
Friend WithEvents cmbEmployeeLevel As System.Windows.Forms.ComboBox
Friend WithEvents cmbPostTitle As System.Windows.Forms.ComboBox
Friend WithEvents pmEmployee As System.Windows.Forms.ContextMenu
Friend WithEvents miAdd As System.Windows.Forms.MenuItem
Friend WithEvents miEdit As System.Windows.Forms.MenuItem
Friend WithEvents miDel As System.Windows.Forms.MenuItem
Friend WithEvents miTransfer As System.Windows.Forms.MenuItem
Friend WithEvents miClear As System.Windows.Forms.MenuItem
Friend WithEvents miSplitter As System.Windows.Forms.MenuItem
Friend WithEvents miRetire As System.Windows.Forms.MenuItem
Friend WithEvents uctlNativePlace As CommonSystem.NativePlace
Friend WithEvents txtSex As System.Windows.Forms.ComboBox
Friend WithEvents txtMarry As System.Windows.Forms.ComboBox
Friend WithEvents txtBirthday As System.Windows.Forms.DateTimePicker
Friend WithEvents txtHireDate As System.Windows.Forms.DateTimePicker
Friend WithEvents txtFireDate As System.Windows.Forms.DateTimePicker
Friend WithEvents txtStatus As System.Windows.Forms.ComboBox
Friend WithEvents miSplitter2 As System.Windows.Forms.MenuItem
Friend WithEvents miShowAll As System.Windows.Forms.MenuItem
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(FormEmployee))
Me.Panel1 = New System.Windows.Forms.Panel
Me.tvEmployee = New System.Windows.Forms.TreeView
Me.pmEmployee = New System.Windows.Forms.ContextMenu
Me.miAdd = New System.Windows.Forms.MenuItem
Me.miEdit = New System.Windows.Forms.MenuItem
Me.miDel = New System.Windows.Forms.MenuItem
Me.miClear = New System.Windows.Forms.MenuItem
Me.miSplitter = New System.Windows.Forms.MenuItem
Me.miTransfer = New System.Windows.Forms.MenuItem
Me.miRetire = New System.Windows.Forms.MenuItem
Me.miSplitter2 = New System.Windows.Forms.MenuItem
Me.miShowAll = New System.Windows.Forms.MenuItem
Me.ImageList1 = New System.Windows.Forms.ImageList(Me.components)
Me.Splitter1 = New System.Windows.Forms.Splitter
Me.Panel2 = New System.Windows.Forms.Panel
Me.Panel3 = New System.Windows.Forms.Panel
Me.btnExit = New System.Windows.Forms.Button
Me.btnCancel = New System.Windows.Forms.Button
Me.btnReset = New System.Windows.Forms.Button
Me.btnUpdate = New System.Windows.Forms.Button
Me.gbxEmployeeInfo = New System.Windows.Forms.GroupBox
Me.txtHireDate = New System.Windows.Forms.DateTimePicker
Me.cmbBussiness = New System.Windows.Forms.ComboBox
Me.txtNumber = New System.Windows.Forms.TextBox
Me.Label16 = New System.Windows.Forms.Label
Me.Label17 = New System.Windows.Forms.Label
Me.Label18 = New System.Windows.Forms.Label
Me.Label19 = New System.Windows.Forms.Label
Me.Label20 = New System.Windows.Forms.Label
Me.Label21 = New System.Windows.Forms.Label
Me.Label22 = New System.Windows.Forms.Label
Me.Label23 = New System.Windows.Forms.Label
Me.Label24 = New System.Windows.Forms.Label
Me.Label26 = New System.Windows.Forms.Label
Me.Label27 = New System.Windows.Forms.Label
Me.txtWorkEmail = New System.Windows.Forms.TextBox
Me.txtWorkAge = New System.Windows.Forms.TextBox
Me.txtBankAccount = New System.Windows.Forms.TextBox
Me.txtWorkPhone = New System.Windows.Forms.TextBox
Me.cmbEmployeeLevel = New System.Windows.Forms.ComboBox
Me.cmbDepartment = New System.Windows.Forms.ComboBox
Me.txtFireDate = New System.Windows.Forms.DateTimePicker
Me.txtStatus = New System.Windows.Forms.ComboBox
Me.gbxPersonInfo = New System.Windows.Forms.GroupBox
Me.txtBirthday = New System.Windows.Forms.DateTimePicker
Me.uctlNativePlace = New CommonSystem.NativePlace
Me.cmbNation = New System.Windows.Forms.ComboBox
Me.txtIntro = New System.Windows.Forms.TextBox
Me.txtName = New System.Windows.Forms.TextBox
Me.PictureBox1 = New System.Windows.Forms.PictureBox
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.Label10 = 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.txtAddress = New System.Windows.Forms.TextBox
Me.txtPostalcode = New System.Windows.Forms.TextBox
Me.txtPersonalEmail = New System.Windows.Forms.TextBox
Me.txtHomePhone = New System.Windows.Forms.TextBox
Me.txtIdcard = New System.Windows.Forms.TextBox
Me.txtMobile = New System.Windows.Forms.TextBox
Me.cmbEducation = New System.Windows.Forms.ComboBox
Me.cmbPostTitle = New System.Windows.Forms.ComboBox
Me.txtSex = New System.Windows.Forms.ComboBox
Me.txtMarry = New System.Windows.Forms.ComboBox
Me.Panel1.SuspendLayout()
Me.Panel2.SuspendLayout()
Me.Panel3.SuspendLayout()
Me.gbxEmployeeInfo.SuspendLayout()
Me.gbxPersonInfo.SuspendLayout()
CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'Panel1
'
Me.Panel1.Controls.Add(Me.tvEmployee)
Me.Panel1.Dock = System.Windows.Forms.DockStyle.Left
Me.Panel1.Location = New System.Drawing.Point(0, 0)
Me.Panel1.Name = "Panel1"
Me.Panel1.Size = New System.Drawing.Size(200, 448)
Me.Panel1.TabIndex = 0
'
'tvEmployee
'
Me.tvEmployee.ContextMenu = Me.pmEmployee
Me.tvEmployee.Dock = System.Windows.Forms.DockStyle.Fill
Me.tvEmployee.ImageIndex = 0
Me.tvEmployee.ImageList = Me.ImageList1
Me.tvEmployee.Location = New System.Drawing.Point(0, 0)
Me.tvEmployee.Name = "tvEmployee"
Me.tvEmployee.SelectedImageIndex = 0
Me.tvEmployee.Size = New System.Drawing.Size(200, 448)
Me.tvEmployee.TabIndex = 0
'
'pmEmployee
'
Me.pmEmployee.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.miAdd, Me.miEdit, Me.miDel, Me.miClear, Me.miSplitter, Me.miTransfer, Me.miRetire, Me.miSplitter2, Me.miShowAll})
'
'miAdd
'
Me.miAdd.Index = 0
Me.miAdd.Text = "增加员工"
'
'miEdit
'
Me.miEdit.Index = 1
Me.miEdit.Text = "修改员工"
'
'miDel
'
Me.miDel.Index = 2
Me.miDel.Text = "解聘员工"
'
'miClear
'
Me.miClear.Index = 3
Me.miClear.Text = "清空员工"
'
'miSplitter
'
Me.miSplitter.Index = 4
Me.miSplitter.Text = "-"
'
'miTransfer
'
Me.miTransfer.Index = 5
Me.miTransfer.Text = "员工调动"
'
'miRetire
'
Me.miRetire.Index = 6
Me.miRetire.Text = "员工退休"
'
'miSplitter2
'
Me.miSplitter2.Index = 7
Me.miSplitter2.Text = "-"
'
'miShowAll
'
Me.miShowAll.Index = 8
Me.miShowAll.Text = "显示所有员工"
'
'ImageList1
'
Me.ImageList1.ImageStream = CType(resources.GetObject("ImageList1.ImageStream"), System.Windows.Forms.ImageListStreamer)
Me.ImageList1.TransparentColor = System.Drawing.Color.Transparent
Me.ImageList1.Images.SetKeyName(0, "")
Me.ImageList1.Images.SetKeyName(1, "")
Me.ImageList1.Images.SetKeyName(2, "")
'
'Splitter1
'
Me.Splitter1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.Splitter1.Location = New System.Drawing.Point(200, 0)
Me.Splitter1.Name = "Splitter1"
Me.Splitter1.Size = New System.Drawing.Size(3, 448)
Me.Splitter1.TabIndex = 1
Me.Splitter1.TabStop = False
'
'Panel2
'
Me.Panel2.Controls.Add(Me.Panel3)
Me.Panel2.Controls.Add(Me.gbxEmployeeInfo)
Me.Panel2.Controls.Add(Me.gbxPersonInfo)
Me.Panel2.Dock = System.Windows.Forms.DockStyle.Fill
Me.Panel2.Location = New System.Drawing.Point(203, 0)
Me.Panel2.Name = "Panel2"
Me.Panel2.Size = New System.Drawing.Size(485, 448)
Me.Panel2.TabIndex = 2
'
'Panel3
'
Me.Panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.Panel3.Controls.Add(Me.btnExit)
Me.Panel3.Controls.Add(Me.btnCancel)
Me.Panel3.Controls.Add(Me.btnReset)
Me.Panel3.Controls.Add(Me.btnUpdate)
Me.Panel3.Location = New System.Drawing.Point(12, 398)
Me.Panel3.Name = "Panel3"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -