📄 mcthb.frm
字号:
VERSION 5.00
Begin VB.Form mcthb
Caption = "三部门"
ClientHeight = 9180
ClientLeft = 60
ClientTop = 450
ClientWidth = 11085
LinkTopic = "Form2"
ScaleHeight = 9180
ScaleWidth = 11085
StartUpPosition = 3 '窗口缺省
Begin VB.ComboBox Combo1
Height = 300
Left = 2280
TabIndex = 39
Text = "Combo1"
Top = 2400
Width = 1575
End
Begin VB.CommandButton Command10
Caption = "返回主菜单"
Height = 975
Left = 9600
TabIndex = 38
Top = 5880
Width = 1095
End
Begin VB.TextBox Text12
Height = 615
Left = 7440
TabIndex = 24
Text = "Text12"
Top = 4920
Width = 1575
End
Begin VB.TextBox Text11
Height = 615
Left = 7440
TabIndex = 23
Text = "Text11"
Top = 4080
Width = 1575
End
Begin VB.TextBox Text10
Height = 615
Left = 7440
TabIndex = 22
Text = "Text10"
Top = 3240
Width = 1575
End
Begin VB.TextBox Text9
Height = 615
Left = 7440
TabIndex = 21
Text = "Text9"
Top = 2400
Width = 1575
End
Begin VB.TextBox Text8
Height = 615
Left = 7440
TabIndex = 20
Text = "Text8"
Top = 1560
Width = 1575
End
Begin VB.TextBox Text7
Height = 615
Left = 7440
TabIndex = 19
Text = "Text7"
Top = 720
Width = 1575
End
Begin VB.TextBox Text6
Height = 615
Left = 2280
TabIndex = 18
Text = "Text6"
Top = 4920
Width = 1575
End
Begin VB.TextBox Text5
Height = 615
Left = 2280
TabIndex = 17
Text = "Text5"
Top = 4080
Width = 1575
End
Begin VB.TextBox Text4
Height = 615
Left = 2280
TabIndex = 16
Text = "Text4"
Top = 3240
Width = 1575
End
Begin VB.TextBox Text2
Height = 615
Left = 2280
TabIndex = 15
Text = "Text2"
Top = 1560
Width = 1575
End
Begin VB.TextBox Text1
Height = 615
Left = 2280
TabIndex = 14
Text = "Text1"
Top = 720
Width = 1575
End
Begin VB.Frame Frame2
Caption = "Frame2"
Height = 1095
Left = 1080
TabIndex = 13
Top = 7080
Width = 8295
Begin VB.CommandButton Command7
Caption = "最后一条"
Height = 495
Left = 6360
TabIndex = 32
Top = 360
Width = 1215
End
Begin VB.CommandButton Command6
Caption = "第一条"
Height = 495
Left = 4440
TabIndex = 31
Top = 360
Width = 1215
End
Begin VB.CommandButton Command9
Caption = "下一条"
Height = 495
Left = 2280
TabIndex = 30
Top = 360
Width = 1215
End
Begin VB.CommandButton Command8
Caption = "上一条"
Height = 495
Left = 360
TabIndex = 29
Top = 360
Width = 1215
End
End
Begin VB.Frame Frame1
Caption = "Frame1"
Height = 1095
Left = 1080
TabIndex = 12
Top = 5760
Width = 8295
Begin VB.CommandButton Command11
Caption = "初始化数据记录"
Height = 495
Left = 6960
TabIndex = 40
Top = 360
Width = 1095
End
Begin VB.CommandButton Command5
Caption = "确定"
Height = 495
Left = 360
TabIndex = 37
Top = 360
Width = 1215
End
Begin VB.CommandButton Command4
Caption = "放弃"
Height = 495
Left = 5520
TabIndex = 28
Top = 360
Width = 1215
End
Begin VB.CommandButton Command3
Caption = "修改"
Height = 495
Left = 3840
TabIndex = 27
Top = 360
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "删除"
Height = 495
Left = 2160
TabIndex = 26
Top = 360
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "添加"
Height = 495
Left = 360
TabIndex = 25
Top = 360
Width = 1215
End
End
Begin VB.Label Label16
Caption = "Label16"
Height = 255
Left = 6360
TabIndex = 36
Top = 240
Width = 255
End
Begin VB.Label Label15
Caption = "现为第 条"
Height = 375
Left = 5640
TabIndex = 35
Top = 240
Width = 2295
End
Begin VB.Label Label14
Caption = "Label14"
Height = 255
Left = 3120
TabIndex = 34
Top = 240
Width = 255
End
Begin VB.Label Label13
Caption = "共有 条"
Height = 375
Left = 2640
TabIndex = 33
Top = 240
Width = 1815
End
Begin VB.Label Label12
Caption = "备注:"
Height = 495
Left = 6000
TabIndex = 11
Top = 5040
Width = 1695
End
Begin VB.Label Label11
Caption = "电话:"
Height = 495
Left = 6000
TabIndex = 10
Top = 4320
Width = 1575
End
Begin VB.Label Label10
Caption = "住址:"
Height = 615
Left = 6000
TabIndex = 9
Top = 3240
Width = 1455
End
Begin VB.Label Label9
Caption = "政治面貌"
Height = 495
Left = 6000
TabIndex = 8
Top = 2400
Width = 1335
End
Begin VB.Label Label8
Caption = "职务:"
Height = 495
Left = 6000
TabIndex = 7
Top = 1560
Width = 1335
End
Begin VB.Label Label7
Caption = "职称:"
Height = 495
Left = 6120
TabIndex = 6
Top = 840
Width = 1095
End
Begin VB.Label Label6
Caption = "工龄:"
Height = 615
Left = 840
TabIndex = 5
Top = 5040
Width = 1215
End
Begin VB.Label Label5
Caption = "参加工作时间:"
Height = 615
Left = 840
TabIndex = 4
Top = 4320
Width = 1335
End
Begin VB.Label Label4
Caption = "年龄:"
Height = 615
Left = 840
TabIndex = 3
Top = 3480
Width = 1215
End
Begin VB.Label Label3
Caption = "性别:"
Height = 495
Left = 840
TabIndex = 2
Top = 2520
Width = 1215
End
Begin VB.Label Label2
Caption = "职员姓名:"
Height = 495
Left = 840
TabIndex = 1
Top = 1680
Width = 1095
End
Begin VB.Label Label1
Caption = "职员代码:"
Height = 495
Left = 840
TabIndex = 0
Top = 840
Width = 975
End
End
Attribute VB_Name = "mcthb"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Conn As ADODB.Connection
Private Rst As New ADODB.Recordset
Private Sub Command1_Click()
Command4.Enabled = True
Text1.Enabled = True
Text2.Enabled = True
Combo1.Enabled = True
Text4.Enabled = True
Text5.Enabled = True
Text6.Enabled = True
Text7.Enabled = True
Text8.Enabled = True
Text9.Enabled = True
Text10.Enabled = True
Text11.Enabled = True
Text12.Enabled = True
Text1.Text = ""
Text2.Text = ""
Combo1.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
Text12.Text = ""
Label16.Caption = ""
Label14.Caption = ""
Text1.SetFocus
Command1.Visible = False
Command5.Visible = True
Command2.Enabled = False
Command3.Enabled = False
Command8.Enabled = False
Command9.Enabled = False
Command6.Enabled = False
Command7.Enabled = False
End Sub
Private Sub Command11_Click()
If MsgBox("要初始化吗?", vbExclamation + vbYesNo) = vbYes Then
Do Until Rst.EOF
Rst.Delete
Rst.MoveNext
Loop
MsgBox "初始化成功!"
End If
Text1.Enabled = True
Text2.Enabled = True
Combo1.Enabled = True
Text4.Enabled = True
Text5.Enabled = True
Text6.Enabled = True
Text7.Enabled = True
Text8.Enabled = True
Text9.Enabled = True
Text10.Enabled = True
Text11.Enabled = True
Text12.Enabled = True
Text1.Text = ""
Text2.Text = ""
Combo1.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
Text12.Text = ""
Label16.Caption = ""
Label14.Caption = ""
End Sub
Private Sub Command2_Click()
Command1.Enabled = False
Command5.Enabled = False
Command3.Enabled = False
Command4.Enabled = True
Command8.Enabled = False
Command9.Enabled = False
Command6.Enabled = False
Command7.Enabled = False
'Rst.CursorLocation = adUseClient
If MsgBox("要删除吗?", vbExclamation + vbYesNo) = vbYes Then
Rst.Delete
MsgBox "删除成功!"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -