?? frmsalaryrule.frm
字號:
VERSION 5.00
Begin VB.Form FrmSalaryRule
BorderStyle = 1 'Fixed Single
Caption = "工資制度管理"
ClientHeight = 9465
ClientLeft = 45
ClientTop = 330
ClientWidth = 15270
Icon = "FrmSalaryRule.frx":0000
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 9465
ScaleWidth = 15270
WindowState = 2 'Maximized
Begin VB.Frame Frame2
Height = 3255
Left = 5040
TabIndex = 6
Top = 3240
Width = 5295
Begin VB.TextBox Text6
Alignment = 1 'Right Justify
Height = 270
Left = 3480
MaxLength = 5
TabIndex = 5
Top = 2715
Width = 1335
End
Begin VB.TextBox Text5
Alignment = 1 'Right Justify
Height = 270
Left = 3480
MaxLength = 5
TabIndex = 4
Top = 2235
Width = 1335
End
Begin VB.TextBox Text4
Alignment = 1 'Right Justify
Height = 270
Left = 3480
MaxLength = 5
TabIndex = 3
Top = 1755
Width = 1335
End
Begin VB.TextBox Text3
Alignment = 1 'Right Justify
Height = 270
Left = 3480
MaxLength = 5
TabIndex = 2
Top = 1275
Width = 1335
End
Begin VB.TextBox Text2
Alignment = 1 'Right Justify
Height = 270
Left = 3480
MaxLength = 5
TabIndex = 1
Top = 795
Width = 1335
End
Begin VB.TextBox Text1
Alignment = 1 'Right Justify
Height = 270
Left = 3480
MaxLength = 5
TabIndex = 0
Top = 315
Width = 1335
End
Begin VB.Label Label5
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "遲到扣款(元/次)"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 240
Left = 240
TabIndex = 12
Top = 360
Width = 2175
End
Begin VB.Label Label7
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "差旅補助(元/天)"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 240
Left = 240
TabIndex = 11
Top = 840
Width = 2175
End
Begin VB.Label Label9
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "住房公積金代扣系數(%)"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 240
Left = 240
TabIndex = 10
Top = 2760
Width = 2940
End
Begin VB.Label Label11
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "養老代扣系數(%)"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 240
Left = 240
TabIndex = 9
Top = 1320
Width = 2175
End
Begin VB.Label Label14
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "基本醫療代扣系數(%)"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 240
Left = 240
TabIndex = 8
Top = 1800
Width = 2685
End
Begin VB.Label Label15
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "失業保險代扣系數(%)"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 240
Left = 240
TabIndex = 7
Top = 2280
Width = 2685
End
End
Begin VB.Label LblOK
BackStyle = 0 'Transparent
Caption = "確 定"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 6600
MouseIcon = "FrmSalaryRule.frx":0CCA
MousePointer = 99 'Custom
TabIndex = 14
Top = 6960
Width = 735
End
Begin VB.Image Image3
Height = 300
Left = 6000
Picture = "FrmSalaryRule.frx":0FD4
Top = 6960
Width = 300
End
Begin VB.Label LblCancel
BackStyle = 0 'Transparent
Caption = "取 消"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 8640
MouseIcon = "FrmSalaryRule.frx":13F0
MousePointer = 99 'Custom
TabIndex = 13
Top = 6960
Width = 855
End
Begin VB.Image Image4
Height = 300
Left = 8040
Picture = "FrmSalaryRule.frx":16FA
Top = 6960
Width = 300
End
End
Attribute VB_Name = "FrmSalaryRule"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
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 LblCancel_Click()
Unload Me
End Sub
Private Sub LblOK_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 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 + -