📄 frmemployee.vb
字号:
Imports System
Imports System.Data
Imports System.Drawing
Imports System.Collections
Imports System.Data.SqlClient
Namespace HZC.DinningService
Public Class frmEmployee
Inherits System.Windows.Forms.Form
#Region " Windows 窗体设计器生成的代码 "
Public Sub New()
MyBase.New()
'该调用是 Windows 窗体设计器所必需的。
InitializeComponent()
'在 InitializeComponent() 调用之后添加任何初始化
End Sub
'窗体重写处置以清理组件列表。
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 GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents GroupBox2 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 btnHire As System.Windows.Forms.Button
Friend WithEvents btnFire As System.Windows.Forms.Button
Friend WithEvents btnOK As System.Windows.Forms.Button
Friend WithEvents EmployeesTree As System.Windows.Forms.TreeView
Friend WithEvents txtSalary As System.Windows.Forms.TextBox
Friend WithEvents EmployeeDate As System.Windows.Forms.DateTimePicker
Friend WithEvents txtDuty As System.Windows.Forms.TextBox
Friend WithEvents txtPartment As System.Windows.Forms.TextBox
Friend WithEvents txtAddress As System.Windows.Forms.TextBox
Friend WithEvents txtTelephone As System.Windows.Forms.TextBox
Friend WithEvents cmbMarriedInfo As System.Windows.Forms.ComboBox
Friend WithEvents txtTrueName As System.Windows.Forms.TextBox
Friend WithEvents txtEmployeeID As System.Windows.Forms.TextBox
Friend WithEvents cmbGender As System.Windows.Forms.ComboBox
Friend WithEvents EmployeePhoto As System.Windows.Forms.PictureBox
Friend WithEvents btnBrowse As System.Windows.Forms.Button
Friend WithEvents gpDetails As System.Windows.Forms.GroupBox
Friend WithEvents btnClear As System.Windows.Forms.Button
Friend WithEvents btnUpdate As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmEmployee))
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.gpDetails = New System.Windows.Forms.GroupBox
Me.btnBrowse = New System.Windows.Forms.Button
Me.EmployeePhoto = New System.Windows.Forms.PictureBox
Me.txtSalary = New System.Windows.Forms.TextBox
Me.EmployeeDate = New System.Windows.Forms.DateTimePicker
Me.Label10 = New System.Windows.Forms.Label
Me.Label9 = New System.Windows.Forms.Label
Me.txtDuty = New System.Windows.Forms.TextBox
Me.Label8 = New System.Windows.Forms.Label
Me.txtPartment = New System.Windows.Forms.TextBox
Me.Label7 = New System.Windows.Forms.Label
Me.txtAddress = New System.Windows.Forms.TextBox
Me.Label6 = New System.Windows.Forms.Label
Me.txtTelephone = New System.Windows.Forms.TextBox
Me.Label5 = New System.Windows.Forms.Label
Me.cmbMarriedInfo = New System.Windows.Forms.ComboBox
Me.Label4 = New System.Windows.Forms.Label
Me.txtTrueName = New System.Windows.Forms.TextBox
Me.txtEmployeeID = New System.Windows.Forms.TextBox
Me.cmbGender = New System.Windows.Forms.ComboBox
Me.Label3 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.GroupBox2 = New System.Windows.Forms.GroupBox
Me.EmployeesTree = New System.Windows.Forms.TreeView
Me.btnHire = New System.Windows.Forms.Button
Me.btnFire = New System.Windows.Forms.Button
Me.btnOK = New System.Windows.Forms.Button
Me.btnClear = New System.Windows.Forms.Button
Me.btnUpdate = New System.Windows.Forms.Button
Me.GroupBox1.SuspendLayout()
Me.gpDetails.SuspendLayout()
Me.GroupBox2.SuspendLayout()
Me.SuspendLayout()
'
'GroupBox1
'
Me.GroupBox1.Controls.Add(Me.gpDetails)
Me.GroupBox1.Controls.Add(Me.GroupBox2)
Me.GroupBox1.Location = New System.Drawing.Point(8, 8)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(576, 400)
Me.GroupBox1.TabIndex = 0
Me.GroupBox1.TabStop = False
Me.GroupBox1.Text = "员工信息"
'
'gpDetails
'
Me.gpDetails.Controls.Add(Me.btnBrowse)
Me.gpDetails.Controls.Add(Me.EmployeePhoto)
Me.gpDetails.Controls.Add(Me.txtSalary)
Me.gpDetails.Controls.Add(Me.EmployeeDate)
Me.gpDetails.Controls.Add(Me.Label10)
Me.gpDetails.Controls.Add(Me.Label9)
Me.gpDetails.Controls.Add(Me.txtDuty)
Me.gpDetails.Controls.Add(Me.Label8)
Me.gpDetails.Controls.Add(Me.txtPartment)
Me.gpDetails.Controls.Add(Me.Label7)
Me.gpDetails.Controls.Add(Me.txtAddress)
Me.gpDetails.Controls.Add(Me.Label6)
Me.gpDetails.Controls.Add(Me.txtTelephone)
Me.gpDetails.Controls.Add(Me.Label5)
Me.gpDetails.Controls.Add(Me.cmbMarriedInfo)
Me.gpDetails.Controls.Add(Me.Label4)
Me.gpDetails.Controls.Add(Me.txtTrueName)
Me.gpDetails.Controls.Add(Me.txtEmployeeID)
Me.gpDetails.Controls.Add(Me.cmbGender)
Me.gpDetails.Controls.Add(Me.Label3)
Me.gpDetails.Controls.Add(Me.Label2)
Me.gpDetails.Controls.Add(Me.Label1)
Me.gpDetails.Location = New System.Drawing.Point(240, 16)
Me.gpDetails.Name = "gpDetails"
Me.gpDetails.Size = New System.Drawing.Size(328, 376)
Me.gpDetails.TabIndex = 1
Me.gpDetails.TabStop = False
Me.gpDetails.Text = "详细信息"
'
'btnBrowse
'
Me.btnBrowse.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.btnBrowse.ForeColor = System.Drawing.Color.Navy
Me.btnBrowse.Location = New System.Drawing.Point(264, 168)
Me.btnBrowse.Name = "btnBrowse"
Me.btnBrowse.Size = New System.Drawing.Size(56, 24)
Me.btnBrowse.TabIndex = 19
Me.btnBrowse.Text = "浏览"
'
'EmployeePhoto
'
Me.EmployeePhoto.BackColor = System.Drawing.Color.DarkGray
Me.EmployeePhoto.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.EmployeePhoto.Location = New System.Drawing.Point(232, 56)
Me.EmployeePhoto.Name = "EmployeePhoto"
Me.EmployeePhoto.Size = New System.Drawing.Size(88, 104)
Me.EmployeePhoto.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
Me.EmployeePhoto.TabIndex = 18
Me.EmployeePhoto.TabStop = False
'
'txtSalary
'
Me.txtSalary.BackColor = System.Drawing.SystemColors.Info
Me.txtSalary.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtSalary.Location = New System.Drawing.Point(80, 248)
Me.txtSalary.MaxLength = 8
Me.txtSalary.Name = "txtSalary"
Me.txtSalary.Size = New System.Drawing.Size(144, 21)
Me.txtSalary.TabIndex = 8
Me.txtSalary.Text = ""
'
'EmployeeDate
'
Me.EmployeeDate.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right
Me.EmployeeDate.Location = New System.Drawing.Point(80, 280)
Me.EmployeeDate.Name = "EmployeeDate"
Me.EmployeeDate.Size = New System.Drawing.Size(144, 21)
Me.EmployeeDate.TabIndex = 9
'
'Label10
'
Me.Label10.ForeColor = System.Drawing.Color.Navy
Me.Label10.Location = New System.Drawing.Point(8, 280)
Me.Label10.Name = "Label10"
Me.Label10.Size = New System.Drawing.Size(64, 21)
Me.Label10.TabIndex = 17
Me.Label10.Text = "聘用日期"
Me.Label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight
'
'Label9
'
Me.Label9.ForeColor = System.Drawing.Color.Navy
Me.Label9.Location = New System.Drawing.Point(8, 248)
Me.Label9.Name = "Label9"
Me.Label9.Size = New System.Drawing.Size(64, 21)
Me.Label9.TabIndex = 16
Me.Label9.Text = "薪 金*"
Me.Label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight
'
'txtDuty
'
Me.txtDuty.BackColor = System.Drawing.SystemColors.Info
Me.txtDuty.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtDuty.Location = New System.Drawing.Point(80, 216)
Me.txtDuty.MaxLength = 20
Me.txtDuty.Name = "txtDuty"
Me.txtDuty.Size = New System.Drawing.Size(144, 21)
Me.txtDuty.TabIndex = 7
Me.txtDuty.Text = ""
'
'Label8
'
Me.Label8.ForeColor = System.Drawing.Color.Navy
Me.Label8.Location = New System.Drawing.Point(8, 216)
Me.Label8.Name = "Label8"
Me.Label8.Size = New System.Drawing.Size(64, 21)
Me.Label8.TabIndex = 14
Me.Label8.Text = "职 别*"
Me.Label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight
'
'txtPartment
'
Me.txtPartment.BackColor = System.Drawing.SystemColors.Info
Me.txtPartment.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtPartment.Location = New System.Drawing.Point(80, 184)
Me.txtPartment.MaxLength = 50
Me.txtPartment.Name = "txtPartment"
Me.txtPartment.Size = New System.Drawing.Size(144, 21)
Me.txtPartment.TabIndex = 6
Me.txtPartment.Text = ""
'
'Label7
'
Me.Label7.ForeColor = System.Drawing.Color.Navy
Me.Label7.Location = New System.Drawing.Point(8, 184)
Me.Label7.Name = "Label7"
Me.Label7.Size = New System.Drawing.Size(64, 21)
Me.Label7.TabIndex = 12
Me.Label7.Text = "所属部门*"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -