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

📄 员工资料表.frm

📁 公司考勤管理系统设计与实施
💻 FRM
字号:
VERSION 5.00
Begin VB.Form 员工个人资料 
   Caption         =   "员工个人资料"
   ClientHeight    =   10740
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   12720
   LinkTopic       =   "Form1"
   ScaleHeight     =   10740
   ScaleWidth      =   12720
   StartUpPosition =   3  '窗口缺省
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   "D:\学习\企业考勤管理系统\爵哥\考勤管理系统\爵哥\db2.mdb"
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   345
      Left            =   3000
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   "员工资料"
      Top             =   7080
      Width           =   4215
   End
   Begin VB.Frame Frame1 
      Height          =   4095
      Left            =   600
      TabIndex        =   3
      Top             =   2400
      Width           =   9975
      Begin VB.TextBox Text13 
         Height          =   375
         Left            =   8280
         TabIndex        =   29
         Top             =   2160
         Width           =   1455
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Left            =   1320
         TabIndex        =   15
         Top             =   360
         Width           =   1695
      End
      Begin VB.TextBox Text2 
         Height          =   375
         Left            =   1320
         TabIndex        =   14
         Top             =   960
         Width           =   1695
      End
      Begin VB.TextBox Text3 
         Height          =   375
         Left            =   1320
         TabIndex        =   13
         Top             =   1560
         Width           =   1695
      End
      Begin VB.TextBox Text4 
         Height          =   375
         Left            =   1320
         TabIndex        =   12
         Top             =   2160
         Width           =   1695
      End
      Begin VB.TextBox Text5 
         Height          =   735
         Left            =   1320
         TabIndex        =   11
         Top             =   2760
         Width           =   8295
      End
      Begin VB.TextBox Text6 
         Height          =   375
         Left            =   4800
         TabIndex        =   10
         Top             =   360
         Width           =   1575
      End
      Begin VB.TextBox Text7 
         Height          =   375
         Left            =   4800
         TabIndex        =   9
         Top             =   960
         Width           =   1575
      End
      Begin VB.TextBox Text8 
         Height          =   375
         Left            =   4800
         TabIndex        =   8
         Top             =   1560
         Width           =   1575
      End
      Begin VB.TextBox Text9 
         Height          =   375
         Left            =   4800
         TabIndex        =   7
         Top             =   2160
         Width           =   1575
      End
      Begin VB.TextBox Text10 
         Height          =   375
         Left            =   7680
         TabIndex        =   6
         Top             =   480
         Width           =   1575
      End
      Begin VB.TextBox Text11 
         Height          =   375
         Left            =   7680
         TabIndex        =   5
         Top             =   960
         Width           =   1575
      End
      Begin VB.TextBox Text12 
         Height          =   375
         Left            =   7800
         TabIndex        =   4
         Top             =   1560
         Width           =   1575
      End
      Begin VB.Label Label14 
         Caption         =   "手机号码"
         Height          =   375
         Left            =   6840
         TabIndex        =   28
         Top             =   2160
         Width           =   1095
      End
      Begin VB.Label Label13 
         Caption         =   "家庭地址"
         Height          =   255
         Left            =   6960
         TabIndex        =   27
         Top             =   1680
         Width           =   735
      End
      Begin VB.Label Label12 
         Caption         =   "年龄"
         Height          =   375
         Left            =   7080
         TabIndex        =   26
         Top             =   1080
         Width           =   495
      End
      Begin VB.Label Label11 
         Caption         =   "性别"
         Height          =   255
         Left            =   7080
         TabIndex        =   25
         Top             =   480
         Width           =   615
      End
      Begin VB.Label Label10 
         Caption         =   "联系电话"
         Height          =   255
         Left            =   3960
         TabIndex        =   24
         Top             =   2280
         Width           =   735
      End
      Begin VB.Label Label2 
         Caption         =   "职工ID"
         Height          =   255
         Left            =   360
         TabIndex        =   23
         Top             =   480
         Width           =   735
      End
      Begin VB.Label Label3 
         Caption         =   "部门ID"
         Height          =   255
         Left            =   360
         TabIndex        =   22
         Top             =   1080
         Width           =   615
      End
      Begin VB.Label Label4 
         Caption         =   "民族"
         Height          =   255
         Left            =   360
         TabIndex        =   21
         Top             =   1680
         Width           =   615
      End
      Begin VB.Label Label5 
         Caption         =   "电子邮箱"
         Height          =   255
         Left            =   360
         TabIndex        =   20
         Top             =   2280
         Width           =   735
      End
      Begin VB.Label Label6 
         Caption         =   "备注"
         Height          =   255
         Left            =   360
         TabIndex        =   19
         Top             =   2880
         Width           =   615
      End
      Begin VB.Label Label7 
         Caption         =   "姓名"
         Height          =   255
         Left            =   3960
         TabIndex        =   18
         Top             =   480
         Width           =   615
      End
      Begin VB.Label Label8 
         Caption         =   "籍贯"
         Height          =   375
         Left            =   3960
         TabIndex        =   17
         Top             =   1080
         Width           =   495
      End
      Begin VB.Label Label9 
         Caption         =   "身份证ID"
         Height          =   255
         Left            =   3960
         TabIndex        =   16
         Top             =   1680
         Width           =   735
      End
   End
   Begin VB.CommandButton Command3 
      Caption         =   "关闭窗体"
      Height          =   495
      Left            =   7800
      TabIndex        =   2
      Top             =   1560
      Width           =   1815
   End
   Begin VB.CommandButton Command1 
      Caption         =   "添加职员"
      Height          =   495
      Left            =   1440
      TabIndex        =   1
      Top             =   1560
      Width           =   1815
   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            =   0
      TabIndex        =   0
      Top             =   240
      Width           =   5295
   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 a As Integer
Dim b As Integer
Dim m As Integer
Dim n As Integer

Command1.Enabled = True


Do While Len(Text1) <> 6
a = a + 1
If a > 3 Then
End
End If

If Len(Text1) <> 6 Then
MsgBox ("职工号有误")
Text1 = InputBox("请再次输入职工号")
End If
Loop
Do While Len(Text3) <> 1
b = b + 1
If b > 3 Then
End
End If

MsgBox ("民族有误")
Text3 = InputBox("请再次输入民族")
Loop
Do While Len(Text1) <> 6
n = n + 1
If n > 3 Then
End
End If

MsgBox ("职工号有误")
Text10 = InputBox("请再次输入职工号")
Loop
Do While Len(Text8) <> 18
m = m + 1
If m > 3 Then
End
End If

MsgBox ("身份证号有误")
Text8 = InputBox("请再次输入身份证号")
Loop
Do While Len(Text9) <> 10
MsgBox ("电话号码有误")
Text9 = InputBox("请再次输入电话号码")
Loop
Do While Len(Text11) <> 2
MsgBox ("年龄有误")
Text11 = InputBox("请再次输入年龄")
Loop

Data1.Recordset.AddNew
Data1.Recordset.Fields("职工ID") = Text1
Data1.Recordset.Fields("部门ID") = Text2
Data1.Recordset.Fields("民族") = Text3
Data1.Recordset.Fields("电子邮箱") = Text4
Data1.Recordset.Fields("备注") = Text5
Data1.Recordset.Fields("姓名") = Text6
Data1.Recordset.Fields("籍贯") = Text7
Data1.Recordset.Fields("身份证ID") = Text8
Data1.Recordset.Fields("家庭电话") = Text9
Data1.Recordset.Fields("性别") = Text10
Data1.Recordset.Fields("年龄") = Text11
Data1.Recordset.Fields("家庭地址") = Text12
Data1.Recordset.Fields("手机号码") = Text13
Data1.Recordset.Update
Data1.Refresh
Command1.Enabled = False



End Sub


Private Sub Command3_Click()
End
End Sub

⌨️ 快捷键说明

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