⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form2.frm

📁 财务管理系统的基本功能的实现
💻 FRM
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frmxgkq 
   Caption         =   "修改考勤记录"
   ClientHeight    =   3840
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   5055
   LinkTopic       =   "Form2"
   ScaleHeight     =   3840
   ScaleWidth      =   5055
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Cancel          =   -1  'True
      Caption         =   "放弃"
      Height          =   495
      Left            =   3480
      TabIndex        =   9
      Top             =   3120
      Width           =   1335
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确  定"
      Default         =   -1  'True
      Height          =   495
      Left            =   480
      TabIndex        =   8
      Top             =   3120
      Width           =   1335
   End
   Begin VB.ComboBox TypeCombo 
      Height          =   300
      Left            =   1800
      TabIndex        =   7
      Top             =   2280
      Width           =   3015
   End
   Begin VB.TextBox EvtTime 
      Appearance      =   0  'Flat
      Height          =   270
      Left            =   1800
      TabIndex        =   3
      Top             =   960
      Width           =   3015
   End
   Begin VB.TextBox User 
      Appearance      =   0  'Flat
      Enabled         =   0   'False
      Height          =   270
      Left            =   1800
      TabIndex        =   1
      Top             =   360
      Width           =   3015
   End
   Begin MSComCtl2.DTPicker DTPicker1 
      Height          =   375
      Left            =   1800
      TabIndex        =   5
      Top             =   1560
      Width           =   3015
      _ExtentX        =   5318
      _ExtentY        =   661
      _Version        =   393216
      Enabled         =   0   'False
      Format          =   21364737
      CurrentDate     =   39520
   End
   Begin VB.Label Label4 
      BackStyle       =   0  'Transparent
      Caption         =   "考勤类别"
      Height          =   255
      Left            =   360
      TabIndex        =   6
      Top             =   2400
      Width           =   1455
   End
   Begin VB.Label Label3 
      BackStyle       =   0  'Transparent
      Caption         =   "考勤记录时间"
      Height          =   255
      Left            =   360
      TabIndex        =   4
      Top             =   1560
      Width           =   1215
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "考勤时间"
      Height          =   180
      Left            =   360
      TabIndex        =   2
      Top             =   960
      Width           =   720
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "员工ID号"
      Height          =   180
      Left            =   360
      TabIndex        =   0
      Top             =   360
      Width           =   720
   End
End
Attribute VB_Name = "frmxgkq"
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 + -