📄 frmcheckedit.frm
字号:
Width = 735
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 = 24
Top = 360
Width = 720
End
Begin VB.Label Label2
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 = 2640
TabIndex = 23
Top = 360
Width = 720
End
Begin VB.Label Label3
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 = 5040
TabIndex = 22
Top = 360
Width = 720
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 = 21
Top = 840
Width = 1080
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 = 2640
TabIndex = 20
Top = 840
Width = 900
End
Begin VB.Label Label10
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 = 5040
TabIndex = 19
Top = 840
Width = 900
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 = 18
Top = 1320
Width = 720
End
Begin VB.Label Label12
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 = 2640
TabIndex = 17
Top = 1320
Width = 720
End
Begin VB.Label Label13
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 = 5040
TabIndex = 16
Top = 1320
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 = 15
Top = 1800
Width = 1080
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 = 2640
TabIndex = 14
Top = 1800
Width = 1080
End
Begin VB.Label Label16
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 = 5040
TabIndex = 13
Top = 1800
Width = 1080
End
End
End
Attribute VB_Name = "FrmCheckEdit"
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
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
With MyCheck
'判断记录是否存在
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
.CheckinMonth = lblMonth
.Emp_Id = UpperEmp.Emp_Id
.DaysOfMonth = Val(lblDays)
.qqDays = Val(ComboQq.Text)
.bjDays = Val(ComboBj.Text)
.sjDays = Val(ComboSj.Text)
.kgDays = Val(ComboKg.Text)
.fdxjDays = Val(ComboFdxj.Text)
.nxjDays = Val(ComboNxj.Text)
.dxjDays = Val(ComboDxj.Text)
.cxDays = Val(ComboCx.Text)
.cdDays = Val(ComboCd.Text)
.ztDays = Val(ComboZt.Text)
.ot1Days = Val(ComboOt1.Text)
.ot2Days = Val(ComboOt2.Text)
.ot3Days = Val(ComboOt3.Text)
If Modify = False Then
.Insert
Else
Call .Update(lblMonth, OriEmpId)
End If
End With
TmpOk = True
Unload Me
End Sub
Private Sub ComboName_GotFocus()
ComboQq.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 + -