?? frmsalaryedit.vb
字號:
Class FrmSalaryEdit
Inherits System.Windows.Forms.Form
Public OriEmpId As Short
Public TmpSfgz As Single
Private Sub Cmd_Cancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cmd_Cancel.Click
Me.Close()
End Sub
Private Sub FrmSalaryEdit_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
TmpSfgz = TmpSfgz + Val(txtQtkk.Text) - Val(txtMdbx.Text) - Val(txtYearPrize.Text)
End Sub
Private Sub txtMdbx_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtMdbx.KeyPress
Dim KeyAscii As Short = Asc(e.KeyChar)
EnterTAB((KeyAscii))
If In_Single(KeyAscii) = False Then
KeyAscii = 0
End If
e.KeyChar = Chr(KeyAscii)
If KeyAscii = 0 Then
e.Handled = True
End If
End Sub
Private Sub txtQtkk_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtQtkk.KeyPress
Dim KeyAscii As Short = Asc(e.KeyChar)
EnterTAB((KeyAscii))
If In_Single(KeyAscii) = False Then
KeyAscii = 0
End If
e.KeyChar = Chr(KeyAscii)
If KeyAscii = 0 Then
e.Handled = True
End If
End Sub
Private Sub txtYearPrize_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtYearPrize.KeyPress
Dim KeyAscii As Short = Asc(e.KeyChar)
EnterTAB((KeyAscii))
If In_Single(KeyAscii) = False Then
KeyAscii = 0
End If
e.KeyChar = Chr(KeyAscii)
If KeyAscii = 0 Then
e.Handled = True
End If
End Sub
Private Sub BtnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnOK.Click
With MySal
.Qtkk = Val(txtQtkk.Text)
.Mdbx = Val(txtMdbx.Text)
.YearPrize = Val(txtYearPrize.Text)
'重新計算實發(fā)工資
.Sfgz = TmpSfgz - .Qtkk + .Mdbx + .YearPrize
.UpdateInput(lblMonth.Text, OriEmpId)
End With
Me.Close()
End Sub
End Class
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -