form1.vb
来自「是一个工资的管理系统 利用的是VB.NET和sql2000来完成的」· VB 代码 · 共 708 行 · 第 1/3 页
VB
708 行
Public Class Form1
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 Label9 As System.Windows.Forms.Label
Friend WithEvents Label10 As System.Windows.Forms.Label
Friend WithEvents DataGrid1 As System.Windows.Forms.DataGrid
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
Friend WithEvents TextBox3 As System.Windows.Forms.TextBox
Friend WithEvents TextBox4 As System.Windows.Forms.TextBox
Friend WithEvents TextBox5 As System.Windows.Forms.TextBox
Friend WithEvents TextBox6 As System.Windows.Forms.TextBox
Friend WithEvents TextBox7 As System.Windows.Forms.TextBox
Friend WithEvents TextBox8 As System.Windows.Forms.TextBox
Friend WithEvents TextBox9 As System.Windows.Forms.TextBox
Friend WithEvents Txtfind As System.Windows.Forms.TextBox
Friend WithEvents Txtlocation As System.Windows.Forms.TextBox
Friend WithEvents BtTop As System.Windows.Forms.Button
Friend WithEvents Btprev As System.Windows.Forms.Button
Friend WithEvents Btnext As System.Windows.Forms.Button
Friend WithEvents BtView As System.Windows.Forms.Button
Friend WithEvents Btdelete As System.Windows.Forms.Button
Friend WithEvents Btadd As System.Windows.Forms.Button
Friend WithEvents Btcanel As System.Windows.Forms.Button
Friend WithEvents BtExit As System.Windows.Forms.Button
Friend WithEvents BtUpdate As System.Windows.Forms.Button
Friend WithEvents SqlDataAdapter1 As System.Data.SqlClient.SqlDataAdapter
Friend WithEvents SqlSelectCommand1 As System.Data.SqlClient.SqlCommand
Friend WithEvents SqlInsertCommand1 As System.Data.SqlClient.SqlCommand
Friend WithEvents SqlUpdateCommand1 As System.Data.SqlClient.SqlCommand
Friend WithEvents SqlDeleteCommand1 As System.Data.SqlClient.SqlCommand
Friend WithEvents SqlConnection1 As System.Data.SqlClient.SqlConnection
Friend WithEvents Ds1 As 工资管理系统.DS
Friend WithEvents Btlast As System.Windows.Forms.Button
Friend WithEvents Btfind As System.Windows.Forms.Button
Friend WithEvents Panel1 As System.Windows.Forms.Panel
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
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.Label9 = New System.Windows.Forms.Label
Me.Label10 = New System.Windows.Forms.Label
Me.DataGrid1 = New System.Windows.Forms.DataGrid
Me.Ds1 = New 工资管理系统.DS
Me.TextBox1 = New System.Windows.Forms.TextBox
Me.TextBox2 = New System.Windows.Forms.TextBox
Me.TextBox3 = New System.Windows.Forms.TextBox
Me.TextBox4 = New System.Windows.Forms.TextBox
Me.TextBox5 = New System.Windows.Forms.TextBox
Me.TextBox6 = New System.Windows.Forms.TextBox
Me.TextBox7 = New System.Windows.Forms.TextBox
Me.TextBox8 = New System.Windows.Forms.TextBox
Me.TextBox9 = New System.Windows.Forms.TextBox
Me.Txtfind = New System.Windows.Forms.TextBox
Me.Txtlocation = New System.Windows.Forms.TextBox
Me.BtTop = New System.Windows.Forms.Button
Me.Btprev = New System.Windows.Forms.Button
Me.Btnext = New System.Windows.Forms.Button
Me.Btlast = New System.Windows.Forms.Button
Me.BtView = New System.Windows.Forms.Button
Me.Btdelete = New System.Windows.Forms.Button
Me.Btadd = New System.Windows.Forms.Button
Me.Btcanel = New System.Windows.Forms.Button
Me.BtExit = New System.Windows.Forms.Button
Me.Btfind = New System.Windows.Forms.Button
Me.BtUpdate = New System.Windows.Forms.Button
Me.SqlDataAdapter1 = New System.Data.SqlClient.SqlDataAdapter
Me.SqlDeleteCommand1 = New System.Data.SqlClient.SqlCommand
Me.SqlConnection1 = New System.Data.SqlClient.SqlConnection
Me.SqlInsertCommand1 = New System.Data.SqlClient.SqlCommand
Me.SqlSelectCommand1 = New System.Data.SqlClient.SqlCommand
Me.SqlUpdateCommand1 = New System.Data.SqlClient.SqlCommand
Me.Panel1 = New System.Windows.Forms.Panel
CType(Me.DataGrid1, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.Ds1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.Panel1.SuspendLayout()
Me.SuspendLayout()
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(8, 24)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(48, 16)
Me.Label1.TabIndex = 0
Me.Label1.Text = "共号:"
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(8, 64)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(48, 16)
Me.Label2.TabIndex = 1
Me.Label2.Text = "姓名:"
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(8, 104)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(48, 16)
Me.Label3.TabIndex = 2
Me.Label3.Text = "性别:"
'
'Label4
'
Me.Label4.Location = New System.Drawing.Point(0, 144)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(72, 16)
Me.Label4.TabIndex = 3
Me.Label4.Text = "基本工资:"
'
'Label5
'
Me.Label5.Location = New System.Drawing.Point(192, 24)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(56, 16)
Me.Label5.TabIndex = 4
Me.Label5.Text = "加班费:"
'
'Label6
'
Me.Label6.Location = New System.Drawing.Point(192, 64)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(48, 16)
Me.Label6.TabIndex = 5
Me.Label6.Text = "奖金:"
'
'Label7
'
Me.Label7.Location = New System.Drawing.Point(192, 104)
Me.Label7.Name = "Label7"
Me.Label7.Size = New System.Drawing.Size(64, 24)
Me.Label7.TabIndex = 6
Me.Label7.Text = "津贴:"
'
'Label8
'
Me.Label8.Location = New System.Drawing.Point(192, 152)
Me.Label8.Name = "Label8"
Me.Label8.Size = New System.Drawing.Size(56, 16)
Me.Label8.TabIndex = 7
Me.Label8.Text = "总额:"
'
'Label9
'
Me.Label9.Location = New System.Drawing.Point(0, 184)
Me.Label9.Name = "Label9"
Me.Label9.Size = New System.Drawing.Size(56, 23)
Me.Label9.TabIndex = 8
Me.Label9.Text = "备注:"
'
'Label10
'
Me.Label10.Location = New System.Drawing.Point(360, 88)
Me.Label10.Name = "Label10"
Me.Label10.Size = New System.Drawing.Size(104, 16)
Me.Label10.TabIndex = 9
Me.Label10.Text = "请输入员工工号:"
'
'DataGrid1
'
Me.DataGrid1.Anchor = System.Windows.Forms.AnchorStyles.None
Me.DataGrid1.DataMember = "工资表"
Me.DataGrid1.DataSource = Me.Ds1
Me.DataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.DataGrid1.Location = New System.Drawing.Point(0, 0)
Me.DataGrid1.Name = "DataGrid1"
Me.DataGrid1.Size = New System.Drawing.Size(720, 224)
Me.DataGrid1.TabIndex = 10
'
'Ds1
'
Me.Ds1.DataSetName = "DS"
Me.Ds1.Locale = New System.Globalization.CultureInfo("zh-CN")
'
'TextBox1
'
Me.TextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.TextBox1.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.Ds1, "工资表.共号"))
Me.TextBox1.Location = New System.Drawing.Point(72, 24)
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.TabIndex = 11
Me.TextBox1.Text = ""
Me.TextBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
'
'TextBox2
'
Me.TextBox2.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.Ds1, "工资表.姓名"))
Me.TextBox2.Location = New System.Drawing.Point(72, 64)
Me.TextBox2.Name = "TextBox2"
Me.TextBox2.TabIndex = 12
Me.TextBox2.Text = ""
'
'TextBox3
'
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?