📄 changeevent2.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form ChangeEvent2
Caption = "修改考勤记录"
ClientHeight = 5430
ClientLeft = 60
ClientTop = 450
ClientWidth = 3765
LinkTopic = "Form1"
ScaleHeight = 5430
ScaleWidth = 3765
StartUpPosition = 3 'Windows Default
Begin VB.Frame Frame1
Caption = "修改考勤记录"
Height = 5175
Left = 120
TabIndex = 0
Top = 120
Width = 3495
Begin VB.CommandButton Command2
Cancel = -1 'True
Caption = "放弃修改"
Height = 495
Left = 240
TabIndex = 9
Top = 4440
Width = 3015
End
Begin VB.CommandButton Command1
Caption = "提交修改"
Default = -1 'True
Height = 495
Left = 240
TabIndex = 8
Top = 3720
Width = 3015
End
Begin VB.ComboBox TypeCombo
Height = 300
Left = 240
TabIndex = 7
Top = 3000
Width = 3015
End
Begin MSComCtl2.DTPicker DTPicker1
Height = 375
Left = 240
TabIndex = 5
Top = 2160
Width = 3015
_ExtentX = 5318
_ExtentY = 661
_Version = 393216
Enabled = 0 'False
Format = 662831105
CurrentDate = 38011
End
Begin VB.TextBox EvtTime
Appearance = 0 'Flat
Height = 270
Left = 240
TabIndex = 4
Top = 1320
Width = 3015
End
Begin VB.TextBox User
Appearance = 0 'Flat
Enabled = 0 'False
Height = 270
Left = 240
TabIndex = 1
Top = 600
Width = 3015
End
Begin VB.Label Label4
Caption = "考勤类别"
Height = 255
Left = 240
TabIndex = 10
Top = 2760
Width = 1455
End
Begin VB.Label Label3
Caption = "考勤记录时间"
Height = 255
Left = 240
TabIndex = 6
Top = 1920
Width = 1575
End
Begin VB.Label Label2
Caption = "考勤时间(【分仲】【天】)"
Height = 255
Left = 240
TabIndex = 3
Top = 1080
Width = 2655
End
Begin VB.Label Label1
Caption = "员工ID号"
Height = 255
Left = 240
TabIndex = 2
Top = 360
Width = 1455
End
End
End
Attribute VB_Name = "ChangeEvent2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public Cancel As Boolean '窗体是否取消退出的判断变量
Private Sub Command1_Click()
If TypeCombo.ListIndex = -1 Then '检查输入有效性
MsgBox "考勤类别不能为空!", vbCritical
TypeCombo.SetFocus
Exit Sub
End If
If EvtTime.Text = "" Then
MsgBox "考勤时间长度不能为空!", vbCritical
EvtTime.SetFocus
Exit Sub
End If
If Not IsNumeric(EvtTime.Text) Then
MsgBox "考勤时间必须是数字!", vbCritical
EvtTime.SetFocus
Exit Sub
End If
Me.Hide '输入数据无误则返回
End Sub
Private Sub Command2_Click()
Cancel = False '设置窗体时取消退出的状态
Me.Hide '返回
End Sub
Private Sub Form_Load()
Me.Left = (Screen.Width - Me.ScaleWidth) / 2 '窗体居中显示
Me.Top = (Screen.Height - Me.ScaleHeight) / 2
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -