📄 frmsalaryrule.frm
字号:
VERSION 5.00
Begin VB.Form FrmSalaryRule
BorderStyle = 1 'Fixed Single
Caption = "工资制度管理"
ClientHeight = 4380
ClientLeft = 45
ClientTop = 330
ClientWidth = 4710
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4380
ScaleWidth = 4710
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Cmd_Cancel
BackColor = &H80000000&
Cancel = -1 'True
Caption = "取 消"
Height = 400
Left = 2605
MouseIcon = "FrmSalaryRule.frx":0000
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 7
Top = 3720
Width = 1300
End
Begin VB.CommandButton Cmd_Ok
BackColor = &H80000000&
Caption = "确 定"
Default = -1 'True
Height = 400
Left = 805
MouseIcon = "FrmSalaryRule.frx":030A
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 6
Top = 3720
Width = 1300
End
Begin VB.Frame Frame2
Height = 3255
Left = 240
TabIndex = 8
Top = 240
Width = 4215
Begin VB.TextBox Text6
Alignment = 1 'Right Justify
Height = 270
Left = 2640
MaxLength = 5
TabIndex = 5
Top = 2715
Width = 1335
End
Begin VB.TextBox Text5
Alignment = 1 'Right Justify
Height = 270
Left = 2640
MaxLength = 5
TabIndex = 4
Top = 2235
Width = 1335
End
Begin VB.TextBox Text4
Alignment = 1 'Right Justify
Height = 270
Left = 2640
MaxLength = 5
TabIndex = 3
Top = 1755
Width = 1335
End
Begin VB.TextBox Text3
Alignment = 1 'Right Justify
Height = 270
Left = 2640
MaxLength = 5
TabIndex = 2
Top = 1275
Width = 1335
End
Begin VB.TextBox Text2
Alignment = 1 'Right Justify
Height = 270
Left = 2640
MaxLength = 5
TabIndex = 1
Top = 795
Width = 1335
End
Begin VB.TextBox Text1
Alignment = 1 'Right Justify
Height = 270
Left = 2640
MaxLength = 5
TabIndex = 0
Top = 315
Width = 1335
End
Begin VB.Label Label5
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "迟到扣款(元/次)"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 180
Left = 240
TabIndex = 14
Top = 360
Width = 1530
End
Begin VB.Label Label7
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "差旅补助(元/天)"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 180
Left = 240
TabIndex = 13
Top = 840
Width = 1530
End
Begin VB.Label Label9
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "住房公积金代扣系数(%)"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 180
Left = 240
TabIndex = 12
Top = 2760
Width = 2070
End
Begin VB.Label Label11
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "养老代扣系数(%)"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 180
Left = 240
TabIndex = 11
Top = 1320
Width = 1530
End
Begin VB.Label Label14
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "基本医疗代扣系数(%)"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 180
Left = 240
TabIndex = 10
Top = 1800
Width = 1890
End
Begin VB.Label Label15
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "失业保险代扣系数(%)"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 180
Left = 240
TabIndex = 9
Top = 2280
Width = 1890
End
End
End
Attribute VB_Name = "FrmSalaryRule"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmd_Cancel_Click()
Unload Me
End Sub
Private Sub Cmd_OK_Click()
With MyRule
'迟到扣款
.RuleType = 1
.RuleAmount = Val(Text1)
If .In_DB(1) = False Then
.Insert
Else
.Update (.RuleType)
End If
'差旅补助
.RuleType = 2
.RuleAmount = Val(Text2)
If .In_DB(2) = False Then
.Insert
Else
.Update (.RuleType)
End If
'养老代扣系数
.RuleType = 3
.RuleAmount = Val(Text3)
If .In_DB(3) = False Then
.Insert
Else
.Update (.RuleType)
End If
'基本医疗代扣系数
.RuleType = 4
.RuleAmount = Val(Text4)
If .In_DB(4) = False Then
.Insert
Else
.Update (.RuleType)
End If
'失业保险代扣系数
.RuleType = 5
.RuleAmount = Val(Text5)
If .In_DB(5) = False Then
.Insert
Else
.Update (.RuleType)
End If
'住房公积金代扣系数
.RuleType = 6
.RuleAmount = Val(Text6)
If .In_DB(6) = False Then
.Insert
Else
.Update (.RuleType)
End If
End With
Unload Me
End Sub
Private Sub Form_Load()
With MyRule
'迟到扣款
Text1 = .GetAmount(1)
'差旅补助
Text2 = .GetAmount(2)
'养老代扣系数
Text3 = .GetAmount(3)
'基本医疗代扣系数
Text4 = .GetAmount(4)
'失业保险代扣系数
Text5 = .GetAmount(5)
'住房公积金代扣系数
Text6 = .GetAmount(6)
End With
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
EnterTAB (KeyAscii)
If In_Single(KeyAscii) = False Then
KeyAscii = 0
End If
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
EnterTAB (KeyAscii)
If In_Single(KeyAscii) = False Then
KeyAscii = 0
End If
End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
EnterTAB (KeyAscii)
If In_Single(KeyAscii) = False Then
KeyAscii = 0
End If
End Sub
Private Sub Text4_KeyPress(KeyAscii As Integer)
EnterTAB (KeyAscii)
If In_Single(KeyAscii) = False Then
KeyAscii = 0
End If
End Sub
Private Sub Text5_KeyPress(KeyAscii As Integer)
EnterTAB (KeyAscii)
If In_Single(KeyAscii) = False Then
KeyAscii = 0
End If
End Sub
Private Sub Text6_KeyPress(KeyAscii As Integer)
EnterTAB (KeyAscii)
If In_Single(KeyAscii) = False Then
KeyAscii = 0
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -