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

📄 出勤管理.frm

📁 公司考勤管理系统设计与实施
💻 FRM
字号:
VERSION 5.00
Begin VB.Form 出勤管理 
   Caption         =   "出勤管理"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form3"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text9 
      Height          =   375
      Left            =   6840
      TabIndex        =   17
      Top             =   5160
      Width           =   1575
   End
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   "D:\大作业\企业考勤管理系统\公司考勤管理系统\自己动手\爵哥\爵哥\db1.mdb"
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   345
      Left            =   1560
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   "出勤管理"
      Top             =   7320
      Width           =   6015
   End
   Begin VB.Frame Frame2 
      Caption         =   "出勤信息"
      Height          =   2535
      Left            =   840
      TabIndex        =   8
      Top             =   4440
      Width           =   7935
      Begin VB.TextBox Text8 
         Height          =   375
         Left            =   1320
         TabIndex        =   16
         Text            =   "Text8"
         Top             =   2040
         Width           =   6255
      End
      Begin VB.TextBox Text7 
         Height          =   375
         Left            =   1320
         TabIndex        =   14
         Top             =   1560
         Width           =   1815
      End
      Begin VB.TextBox Text6 
         Height          =   375
         Left            =   1320
         TabIndex        =   12
         Top             =   960
         Width           =   1815
      End
      Begin VB.TextBox Text5 
         Height          =   375
         Left            =   1320
         TabIndex        =   10
         Top             =   360
         Width           =   1815
      End
      Begin VB.Label Label4 
         Caption         =   "是否为上午(true/false)"
         Height          =   375
         Left            =   3720
         TabIndex        =   18
         Top             =   720
         Width           =   2175
      End
      Begin VB.Label Label9 
         Caption         =   "备注"
         Height          =   255
         Left            =   480
         TabIndex        =   15
         Top             =   2160
         Width           =   615
      End
      Begin VB.Label Label8 
         Caption         =   "下班时间"
         Height          =   255
         Left            =   480
         TabIndex        =   13
         Top             =   1680
         Width           =   735
      End
      Begin VB.Label Label7 
         Caption         =   "上班时间"
         Height          =   255
         Left            =   480
         TabIndex        =   11
         Top             =   1080
         Width           =   735
      End
      Begin VB.Label Label6 
         Caption         =   "上班日期"
         Height          =   255
         Left            =   480
         TabIndex        =   9
         Top             =   480
         Width           =   735
      End
   End
   Begin VB.CommandButton Command2 
      Caption         =   "关闭窗体"
      Height          =   375
      Left            =   6960
      TabIndex        =   3
      Top             =   1560
      Width           =   1815
   End
   Begin VB.CommandButton Command1 
      Caption         =   "保存记录"
      Height          =   375
      Left            =   2040
      TabIndex        =   2
      Top             =   1560
      Width           =   2055
   End
   Begin VB.Frame Frame1 
      Height          =   2175
      Left            =   840
      TabIndex        =   1
      Top             =   2280
      Width           =   9495
      Begin VB.TextBox Text2 
         Height          =   375
         Left            =   5520
         TabIndex        =   7
         Top             =   960
         Width           =   1935
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Left            =   1680
         MaxLength       =   6
         TabIndex        =   5
         Top             =   960
         Width           =   1935
      End
      Begin VB.Label Label3 
         Caption         =   "部门ID"
         Height          =   255
         Left            =   4680
         TabIndex        =   6
         Top             =   1080
         Width           =   735
      End
      Begin VB.Label Label2 
         Caption         =   "职员ID"
         Height          =   255
         Left            =   600
         TabIndex        =   4
         Top             =   1080
         Width           =   735
      End
   End
   Begin VB.Label Label1 
      Caption         =   "                       出勤管理"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   21.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   975
      Left            =   3720
      TabIndex        =   0
      Top             =   120
      Width           =   4095
   End
End
Attribute VB_Name = "出勤管理"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim n As Integer
Command1.Enabled = True
Do While Len(Text1) <> 6
If Len(Text1) <> 6 Then
MsgBox ("职工号有误")
Text1 = InputBox("请再次输入职工号")
End If
Loop
Do While Len(Text5) <> 10
n = n + 1
If n > 3 Then
End
End If

If Len(Text5) <> 10 Then
MsgBox ("开始日期有误")
Text5 = InputBox("请再次输入开始日期")
End If
Loop

Data1.Recordset.AddNew
Data1.Recordset.Fields("职工ID") = Text1
Data1.Recordset.Fields("部门ID") = Text2
Data1.Recordset.Fields("上班日期") = Text5
Data1.Recordset.Fields("上班时间") = Text6
Data1.Recordset.Fields("下班时间") = Text7
Data1.Recordset.Fields("是否为上午") = Text9
Data1.Recordset.Fields("备注") = Text8

Data1.Recordset.Update
Data1.Refresh
Command1.Enabled = False
End Sub

Private Sub Command2_Click()
End
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -