📄 frmbsalary.frm
字号:
End
Begin VB.Label Label1
Caption = "备注:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 11
Left = 6840
TabIndex = 12
Top = 1800
Width = 735
End
Begin VB.Label Label1
Caption = "病假扣款/天:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 10
Left = 6000
TabIndex = 11
Top = 1320
Width = 1575
End
Begin VB.Label Label1
Caption = "事假扣款/天:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 9
Left = 6000
TabIndex = 10
Top = 840
Width = 1815
End
Begin VB.Label Label1
Caption = "迟到扣款/天:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 8
Left = 6000
TabIndex = 9
Top = 360
Width = 1575
End
Begin VB.Label Label1
Caption = "加班工资/天:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 7
Left = 3000
TabIndex = 8
Top = 1800
Width = 1575
End
Begin VB.Label Label1
Caption = "工龄津贴/年:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 6
Left = 3000
TabIndex = 7
Top = 1320
Width = 1575
End
Begin VB.Label Label1
Caption = "职务津贴:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 5
Left = 3360
TabIndex = 6
Top = 840
Width = 1215
End
Begin VB.Label Label1
Caption = "职务:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 4
Left = 840
TabIndex = 5
Top = 1800
Width = 735
End
Begin VB.Label Label1
Caption = "基本工资:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 3
Left = 3360
TabIndex = 4
Top = 360
Width = 1215
End
Begin VB.Label Label1
Caption = "所属部门:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 2
Left = 360
TabIndex = 3
Top = 1320
Width = 1215
End
Begin VB.Label Label1
Caption = "员工姓名:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 1
Left = 360
TabIndex = 2
Top = 840
Width = 1215
End
Begin VB.Label Label1
Caption = "员工编号:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 0
Left = 360
TabIndex = 1
Top = 360
Width = 1215
End
End
End
Attribute VB_Name = "frmBSalary"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Adodc1.Recordset.AddNew
Text1(0).SetFocus
Command1.Enabled = False
Command2.Enabled = False
Command3.Enabled = False
Command4.Enabled = True
'Command5.Enabled = True
End Sub
Private Sub Command10_Click()
Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF = True Then
Adodc1.Recordset.MoveNext
MsgBox "已到达第一条记录!", vbOKOnly + vbExclamation, "警告"
End If
Command8.Enabled = True
Command9.Enabled = True
End Sub
Private Sub Command2_Click()
If MsgBox("确定删除当前资料吗?", vbInformation + vbYesNo, "删除资料?") = vbYes Then
Adodc1.Recordset.Delete
Adodc1.Recordset.MovePrevious
End If
End Sub
Private Sub Command3_Click()
Command1.Enabled = False
Command2.Enabled = False
Command3.Enabled = False
Command4.Enabled = True
'Command5.Enabled = True
End Sub
Private Sub Command4_Click()
For i = 0 To 11
If Text1(i) = "" Then
MsgBox "输入不完整!", vbOKOnly + vbExclamation, "警告"
Text1(i).SetFocus
Exit Sub
End If
Next i
If MsgBox("确定保存当前资料吗?", vbInformation + vbYesNo, "保存资料?") = vbYes Then
Adodc1.Recordset.Update
Adodc1.Recordset.MovePrevious
End If
Command1.Enabled = True
Command2.Enabled = True
Command3.Enabled = True
Command4.Enabled = False
'Command5.Enabled = True
Command7.Enabled = True
End Sub
'Private Sub Command5_Click()
'If MsgBox(" 放弃当前的操作吗?", vbInformation + vbYesNo, "放弃?") = vbYes Then
' Adodc1.Recordset.CancelBatch adAffectAllChapters
' End If
' Adodc1.Recordset.MoveFirst
' Command1.Enabled = True
' Command2.Enabled = True
' Command3.Enabled = True
' Command4.Enabled = False
' Command5.Enabled = True
' Command7.Enabled = True
'End Sub
Private Sub Command6_Click()
Adodc1.Recordset.MoveFirst
Command1.Enabled = True
Command2.Enabled = True
Command3.Enabled = True
Command4.Enabled = True
'Command5.Enabled = True
Command7.Enabled = True
Command6.Enabled = False
Command8.Enabled = True
Command9.Enabled = True
Command10.Enabled = False
End Sub
Private Sub Command7_Click()
Me.Hide
Unload Me
Exit Sub
End Sub
Private Sub Command8_Click()
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF = True Then
Adodc1.Recordset.MovePrevious
MsgBox "已到达最后一条记录!", vbOKOnly + vbExclamation, "警告"
Exit Sub
End If
Command6.Enabled = True
Command10.Enabled = True
End Sub
Private Sub Command9_Click()
Adodc1.Recordset.MoveLast
Command1.Enabled = True
Command2.Enabled = True
Command3.Enabled = True
Command4.Enabled = True
'Command5.Enabled = True
Command6.Enabled = True
Command7.Enabled = True
Command8.Enabled = False
Command9.Enabled = False
Command10.Enabled = True
End Sub
Private Sub Form_Load()
Adodc1.Recordset.MoveFirst
Command1.Enabled = True
Command2.Enabled = True
Command3.Enabled = True
Command4.Enabled = True
'Command5.Enabled = False
Command7.Enabled = True
Command6.Enabled = True
Command8.Enabled = True
Command9.Enabled = True
Command10.Enabled = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -