📄 sanbc.frm
字号:
VERSION 5.00
Begin VB.Form cbsan
Caption = "三部门"
ClientHeight = 8280
ClientLeft = 60
ClientTop = 450
ClientWidth = 10140
LinkTopic = "Form2"
ScaleHeight = 8280
ScaleWidth = 10140
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command10
Caption = "返回主菜单"
Height = 975
Left = 8640
TabIndex = 31
Top = 5760
Width = 1095
End
Begin VB.Frame Frame2
Caption = "Frame2"
Height = 975
Left = 1080
TabIndex = 22
Top = 6960
Width = 7455
Begin VB.CommandButton Command8
Caption = "上一条"
Height = 495
Left = 480
TabIndex = 26
Top = 240
Width = 975
End
Begin VB.CommandButton Command9
Caption = "下一条"
Height = 495
Left = 2160
TabIndex = 25
Top = 240
Width = 975
End
Begin VB.CommandButton Command6
Caption = "第一条"
Height = 495
Left = 3960
TabIndex = 24
Top = 240
Width = 975
End
Begin VB.CommandButton Command7
Caption = "最后一条"
Height = 495
Left = 5640
TabIndex = 23
Top = 240
Width = 1095
End
End
Begin VB.Frame Frame1
Caption = "Frame1"
Height = 1095
Left = 1080
TabIndex = 16
Top = 5640
Width = 7455
Begin VB.CommandButton Command11
Caption = "初始化数据记录"
Height = 495
Left = 6000
TabIndex = 32
Top = 360
Width = 975
End
Begin VB.CommandButton Command1
Caption = "添加"
Height = 495
Left = 480
TabIndex = 21
Top = 360
Width = 975
End
Begin VB.CommandButton Command2
Caption = "删除"
Height = 495
Left = 1800
TabIndex = 20
Top = 360
Width = 975
End
Begin VB.CommandButton Command3
Caption = "修改"
Height = 495
Left = 3120
TabIndex = 19
Top = 360
Width = 1095
End
Begin VB.CommandButton Command4
Caption = "放弃"
Height = 495
Left = 4560
TabIndex = 18
Top = 360
Width = 1095
End
Begin VB.CommandButton Command5
Caption = "确定"
Height = 495
Left = 480
TabIndex = 17
Top = 360
Width = 975
End
End
Begin VB.TextBox Text8
Height = 735
Left = 6720
TabIndex = 15
Text = "Text8"
Top = 4560
Width = 1575
End
Begin VB.TextBox Text7
Height = 735
Left = 6720
TabIndex = 14
Text = "Text7"
Top = 3600
Width = 1575
End
Begin VB.TextBox Text6
Height = 735
Left = 6720
TabIndex = 13
Text = "Text6"
Top = 2640
Width = 1575
End
Begin VB.TextBox Text5
Height = 735
Left = 6720
TabIndex = 12
Text = "Text5"
Top = 1680
Width = 1575
End
Begin VB.TextBox Text4
Height = 735
Left = 2640
TabIndex = 11
Text = "Text4"
Top = 4560
Width = 1575
End
Begin VB.TextBox Text3
Height = 735
Left = 2640
TabIndex = 10
Text = "Text3"
Top = 3600
Width = 1575
End
Begin VB.TextBox Text2
Height = 735
Left = 2640
TabIndex = 9
Text = "Text2"
Top = 2640
Width = 1575
End
Begin VB.TextBox Text1
Height = 735
Left = 2640
TabIndex = 8
Text = "Text1"
Top = 1680
Width = 1575
End
Begin VB.Label Label12
Caption = "Label12"
Height = 255
Left = 6480
TabIndex = 30
Top = 960
Width = 255
End
Begin VB.Label Label11
Caption = "现为第 条"
Height = 375
Left = 5760
TabIndex = 29
Top = 960
Width = 1695
End
Begin VB.Label Label10
Caption = "Label10"
Height = 255
Left = 3240
TabIndex = 28
Top = 960
Width = 255
End
Begin VB.Label Label9
Caption = "共有 条"
Height = 375
Left = 2760
TabIndex = 27
Top = 960
Width = 1815
End
Begin VB.Label Label8
Caption = "备注:"
Height = 495
Left = 5520
TabIndex = 7
Top = 4680
Width = 1335
End
Begin VB.Label Label7
Caption = "实发工资:"
Height = 495
Left = 5520
TabIndex = 6
Top = 3840
Width = 1215
End
Begin VB.Label Label6
Caption = "扣款:"
Height = 615
Left = 5520
TabIndex = 5
Top = 2880
Width = 1335
End
Begin VB.Label Label5
Caption = "应发工资:"
Height = 375
Left = 5520
TabIndex = 4
Top = 1920
Width = 1095
End
Begin VB.Label Label4
Caption = "基本工资:"
Height = 495
Left = 1320
TabIndex = 3
Top = 4800
Width = 1215
End
Begin VB.Label Label3
Caption = "代发银行卡号:"
Height = 615
Left = 1320
TabIndex = 2
Top = 3960
Width = 1335
End
Begin VB.Label Label2
Caption = "职员姓名:"
Height = 495
Left = 1320
TabIndex = 1
Top = 2880
Width = 1095
End
Begin VB.Label label1
Caption = "职员代码:"
Height = 495
Left = 1320
TabIndex = 0
Top = 1920
Width = 975
End
End
Attribute VB_Name = "cbsan"
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
Text3.Enabled = True
Text4.Enabled = True
Text5.Enabled = True
Text6.Enabled = True
Text7.Enabled = True
Text8.Enabled = True
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Label12.Caption = ""
Label10.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
Text3.Enabled = True
Text4.Enabled = True
Text5.Enabled = True
Text6.Enabled = True
Text7.Enabled = True
Text8.Enabled = True
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Label12.Caption = ""
Label10.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 "删除成功!"
Else
End If
Rst.MoveNext
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -