📄 frmevaedit.frm
字号:
VERSION 5.00
Begin VB.Form FrmEvaEdit
BorderStyle = 1 'Fixed Single
Caption = "编辑考评信息"
ClientHeight = 4230
ClientLeft = 45
ClientTop = 345
ClientWidth = 7815
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4230
ScaleWidth = 7815
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
Caption = "基本信息"
Height = 855
Left = 240
TabIndex = 10
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":0000
Left = 3960
List = "FrmEvaEdit.frx":0002
TabIndex = 5
Text = "ComboName"
Top = 300
Width = 1335
End
Begin VB.Label Label1
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 = 360
Width = 720
End
Begin VB.Label Label8
AutoSize = -1 'True
BackColor = &H00FFC0C0&
BackStyle = 0 'Transparent
Caption = "员工姓名"
Height = 180
Left = 2640
TabIndex = 12
Top = 360
Width = 720
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 = 11
Top = 360
Width = 540
End
End
Begin VB.CommandButton Cmd_Cancel
Cancel = -1 'True
Caption = "取 消"
Height = 400
Left = 4442
MouseIcon = "FrmEvaEdit.frx":0004
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 4
Top = 3600
Width = 1300
End
Begin VB.CommandButton Cmd_OK
Caption = "确 定"
Default = -1 'True
Height = 400
Left = 2072
MouseIcon = "FrmEvaEdit.frx":030E
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 3
Top = 3600
Width = 1300
End
Begin VB.Frame Frame2
Caption = "考评信息"
Height = 2295
Left = 240
TabIndex = 6
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 = 300
ItemData = "FrmEvaEdit.frx":0618
Left = 1440
List = "FrmEvaEdit.frx":063D
TabIndex = 2
Text = "ComboFactor"
Top = 1800
Width = 855
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "%"
Height = 180
Left = 2400
TabIndex = 14
Top = 1860
Width = 90
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 = 9
Top = 360
Width = 720
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 = 8
Top = 1080
Width = 720
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 = 7
Top = 1860
Width = 720
End
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 Cmd_Cancel_Click()
TmpOk = False
Unload Me
End Sub
Private Sub Cmd_OK_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
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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -