⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form5.frm

📁 人事系统源码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form5 
   Caption         =   "企业工作岗位信息"
   ClientHeight    =   4515
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   8115
   LinkTopic       =   "Form5"
   ScaleHeight     =   4515
   ScaleWidth      =   8115
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text3 
      Height          =   495
      Left            =   3000
      TabIndex        =   12
      Top             =   2160
      Width           =   2415
   End
   Begin VB.TextBox Text2 
      Height          =   495
      Left            =   3000
      TabIndex        =   11
      Top             =   1200
      Width           =   2415
   End
   Begin VB.TextBox Text1 
      Height          =   495
      Left            =   3000
      TabIndex        =   10
      Top             =   240
      Width           =   2415
   End
   Begin VB.CommandButton Command4 
      Caption         =   "|<"
      Height          =   495
      Left            =   3000
      TabIndex        =   6
      Top             =   3000
      Width           =   615
   End
   Begin VB.CommandButton Command5 
      Caption         =   "<"
      Height          =   495
      Left            =   3600
      TabIndex        =   5
      Top             =   3000
      Width           =   615
   End
   Begin VB.CommandButton Command6 
      Caption         =   ">"
      Height          =   495
      Left            =   4230
      TabIndex        =   4
      Top             =   3000
      Width           =   615
   End
   Begin VB.CommandButton Command7 
      Caption         =   ">|"
      Height          =   495
      Left            =   4845
      Style           =   1  'Graphical
      TabIndex        =   3
      Top             =   3000
      Width           =   615
   End
   Begin VB.CommandButton Command3 
      Caption         =   "退出"
      Height          =   495
      Left            =   5520
      TabIndex        =   2
      Top             =   3840
      Width           =   1215
   End
   Begin VB.CommandButton Command2 
      Caption         =   "更新"
      Height          =   495
      Left            =   3360
      TabIndex        =   1
      Top             =   3840
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "添加"
      Height          =   495
      Left            =   1320
      TabIndex        =   0
      Top             =   3840
      Width           =   1215
   End
   Begin VB.Label Label3 
      Caption         =   "部门编号"
      Height          =   495
      Left            =   1080
      TabIndex        =   9
      Top             =   2160
      Width           =   2055
   End
   Begin VB.Label Label2 
      Caption         =   "岗位名称"
      Height          =   495
      Left            =   1080
      TabIndex        =   8
      Top             =   1200
      Width           =   1935
   End
   Begin VB.Label Label1 
      Caption         =   "岗位编号"
      Height          =   495
      Left            =   1080
      TabIndex        =   7
      Top             =   240
      Width           =   1935
   End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text <> "" And Text3.Text <> "" Then
  Form1.Adodc1.Recordset.AddNew
Else
  a = MsgBox("请输入岗位编号或部门编号信息", , "警告")
End If
End Sub

Private Sub Command4_Click()
Form1.Adodc1.Refresh
Form1.Adodc1.Recordset.MoveFirst

End Sub

Private Sub Command5_Click()
If Not Form1.Adodc1.Recordset.BOF Then
   Form1.Adodc1.Recordset.MovePrevious
   End If
End Sub

Private Sub Command6_Click()
If Not Form1.Adodc1.Recordset.EOF Then
   Form1.Adodc1.Recordset.MoveNext
End If
End Sub
Private Sub Command7_Click()
Form1.Adodc1.Refresh
Form1.Adodc1.Recordset.MoveLast
End Sub

Private Sub Form_Activate()
Form1.Adodc1.RecordSource = "企业工作岗位信息表"
Form1.Adodc1.Refresh
Set Text1.DataSource = Form1.Adodc1
Text1.DataField = "岗位编号"
Set Text2.DataSource = Form1.Adodc1
Text2.DataField = "岗位名称"
Set Text3.DataSource = Form1.Adodc1
Text3.DataField = "部门编号"
End Sub



Private Sub Command2_Click()
If Text1.Text = "" Then
  MsgBox ("请选择数据")
Else
  a = MsgBox("确认要更新!", 1, "警告")
End If
If a = 1 Then Form1.Adodc1.Recordset.Update
End Sub

Private Sub Command3_Click()
  Unload Me
End Sub


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -