?? frmevaedit.frm
字號:
VERSION 5.00
Begin VB.Form FrmEvaEdit
BorderStyle = 1 'Fixed Single
Caption = "編輯考評信息"
ClientHeight = 4140
ClientLeft = 45
ClientTop = 345
ClientWidth = 7815
Icon = "FrmEvaEdit.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4140
ScaleWidth = 7815
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
Caption = "基本信息"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 855
Left = 240
TabIndex = 8
Top = 120
Width = 7335
Begin VB.ComboBox ComboName
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
ItemData = "FrmEvaEdit.frx":0CCA
Left = 3960
List = "FrmEvaEdit.frx":0CCC
TabIndex = 3
Text = "ComboName"
Top = 300
Width = 1335
End
Begin VB.Label Label1
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 = 360
Width = 1020
End
Begin VB.Label Label8
AutoSize = -1 'True
BackColor = &H00FFC0C0&
BackStyle = 0 'Transparent
Caption = "員工姓名"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 2640
TabIndex = 10
Top = 360
Width = 1020
End
Begin VB.Label lblMonth
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "2002-9"
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 180
Left = 1560
TabIndex = 9
Top = 360
Width = 540
End
End
Begin VB.Frame Frame2
Caption = "考評信息"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2295
Left = 240
TabIndex = 4
Top = 1080
Width = 7335
Begin VB.TextBox txtEva
Height = 615
Left = 1440
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 1
Top = 1080
Width = 5655
End
Begin VB.TextBox txtPerformance
Height = 615
Left = 1440
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 0
Top = 360
Width = 5655
End
Begin VB.ComboBox ComboFactor
Height = 315
ItemData = "FrmEvaEdit.frx":0CCE
Left = 1440
List = "FrmEvaEdit.frx":0CF3
TabIndex = 2
Text = "ComboFactor"
Top = 1800
Width = 855
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "%"
Height = 180
Left = 2400
TabIndex = 12
Top = 1860
Width = 90
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 = 7
Top = 360
Width = 1020
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 = 480
TabIndex = 6
Top = 1080
Width = 510
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 = 5
Top = 1860
Width = 1020
End
End
Begin VB.Image Image4
Height = 300
Left = 4320
Picture = "FrmEvaEdit.frx":0D23
Top = 3600
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 = 4920
MouseIcon = "FrmEvaEdit.frx":113F
MousePointer = 99 'Custom
TabIndex = 14
Top = 3600
Width = 855
End
Begin VB.Image Image3
Height = 300
Left = 2280
Picture = "FrmEvaEdit.frx":1449
Top = 3600
Width = 300
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 = 2880
MouseIcon = "FrmEvaEdit.frx":1865
MousePointer = 99 'Custom
TabIndex = 13
Top = 3600
Width = 735
End
End
Attribute VB_Name = "FrmEvaEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Modify As Boolean '插入=false,修改=true
Public OriEmpId As Long
Public TmpOk As Boolean
Public HrFlag As Boolean
Private Sub ComboName_GotFocus()
txtPerformance.SetFocus
'設置FrmEmpSel窗體的位置
FrmEmpSel.Left = Me.Left + ComboName.Left + 350 - FrmEmpSel.Width
FrmEmpSel.Top = Me.Top + ComboName.Top + ComboName.Height + 450
FrmEmpSel.Show 1
'將選擇的員工姓名顯示到ComboUpper控件中
ComboName.Text = UpperEmp.Emp_Name
End Sub
Private Sub LblCancel_Click()
TmpOk = False
Unload Me
End Sub
Private Sub LblOK_Click()
If UpperEmp.Emp_Id <= 0 Then
MsgBox "請選擇員工"
Exit Sub
End If
' '如果不是人事部門進行考評,則被考評對象必須是當前用戶的下屬
' If HrFlag = False And UpperEmp.UpperId <> CurUser.Emp_Id Then
' MsgBox "沒有對此員工進行考評的權限"
' Exit Sub
' End If
With MyEva
'判斷記錄是否存在
If Modify = False Or OriEmpId <> UpperEmp.Emp_Id Then
If .In_DB(lblMonth, UpperEmp.Emp_Id) = True Then
MsgBox "要添加的記錄已經存在,請修改已有的記錄"
Exit Sub
End If
End If
.EvaMonth = lblMonth
.Emp_Id = UpperEmp.Emp_Id
.Performance = MakeStr(txtPerformance)
If HrFlag = False Then '對下屬員工考評
.SupervisorEvaluation = MakeStr(txtEva)
.PrizeFactor1 = Val(ComboFactor.Text)
Else '人事部門考評
.HrEvaluation = MakeStr(txtEva)
.PrizeFactor2 = Val(ComboFactor.Text)
End If
If Modify = False Then
.Insert
Else
Call .Update(lblMonth, OriEmpId, HrFlag)
End If
End With
TmpOk = True
Unload Me
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -