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

📄 frmemployee.frm

📁 人事管理信息系统visual basic + my sql
💻 FRM
📖 第 1 页 / 共 2 页
字号:
      End
      Begin VB.Label lblLabels 
         Caption         =   "爱人工作单位:"
         Height          =   255
         Index           =   34
         Left            =   360
         TabIndex        =   49
         Top             =   3720
         Width           =   1455
      End
      Begin VB.Label lblLabels 
         Caption         =   "爱人姓名:"
         Height          =   255
         Index           =   32
         Left            =   3960
         TabIndex        =   48
         Top             =   3720
         Width           =   975
      End
      Begin VB.Label lblLabels 
         Caption         =   "移动电话:"
         Height          =   255
         Index           =   31
         Left            =   360
         TabIndex        =   47
         Top             =   3315
         Width           =   1095
      End
      Begin VB.Label lblLabels 
         Caption         =   "电话:"
         Height          =   255
         Index           =   29
         Left            =   7800
         TabIndex        =   46
         Top             =   2910
         Width           =   735
      End
      Begin VB.Label lblLabels 
         Caption         =   "邮编:"
         Height          =   255
         Index           =   28
         Left            =   7800
         TabIndex        =   45
         Top             =   3315
         Width           =   615
      End
      Begin VB.Label lblLabels 
         Caption         =   "家庭通讯地址:"
         Height          =   255
         Index           =   27
         Left            =   3960
         TabIndex        =   44
         Top             =   2910
         Width           =   1455
      End
      Begin VB.Label lblLabels 
         Caption         =   "转正时间:"
         Height          =   255
         Index           =   48
         Left            =   360
         TabIndex        =   43
         Top             =   1695
         Width           =   1815
      End
      Begin VB.Label lblLabels 
         Caption         =   "进入公司时间:"
         Height          =   255
         Index           =   47
         Left            =   7800
         TabIndex        =   42
         Top             =   1290
         Width           =   1815
      End
      Begin VB.Label lblLabels 
         Caption         =   "职称:"
         Height          =   255
         Index           =   18
         Left            =   360
         TabIndex        =   41
         Top             =   2910
         Width           =   855
      End
      Begin VB.Label lblLabels 
         Caption         =   "毕业学校:"
         Height          =   255
         Index           =   17
         Left            =   7800
         TabIndex        =   40
         Top             =   2505
         Width           =   1095
      End
      Begin VB.Label lblLabels 
         Caption         =   "所学专业:"
         Height          =   255
         Index           =   16
         Left            =   3960
         TabIndex        =   39
         Top             =   2505
         Width           =   1095
      End
      Begin VB.Label lblLabels 
         Caption         =   "学历:"
         Height          =   255
         Index           =   15
         Left            =   3960
         TabIndex        =   38
         Top             =   1290
         Width           =   975
      End
      Begin VB.Label lblLabels 
         Caption         =   "身份证号:"
         Height          =   255
         Index           =   14
         Left            =   360
         TabIndex        =   37
         Top             =   2505
         Width           =   975
      End
      Begin VB.Label lblLabels 
         Caption         =   "婚姻状况:"
         Height          =   255
         Index           =   13
         Left            =   7800
         TabIndex        =   36
         Top             =   885
         Width           =   975
      End
      Begin VB.Label lblLabels 
         Caption         =   "政治面目:"
         Height          =   255
         Index           =   12
         Left            =   360
         TabIndex        =   35
         Top             =   1290
         Width           =   1815
      End
      Begin VB.Label lblLabels 
         Caption         =   "户口所在地:"
         Height          =   255
         Index           =   11
         Left            =   7800
         TabIndex        =   34
         Top             =   2100
         Width           =   1215
      End
      Begin VB.Label lblLabels 
         Caption         =   "出生地点:"
         Height          =   255
         Index           =   10
         Left            =   3960
         TabIndex        =   33
         Top             =   2100
         Width           =   1815
      End
      Begin VB.Label lblLabels 
         Caption         =   "籍贯:"
         Height          =   255
         Index           =   9
         Left            =   360
         TabIndex        =   32
         Top             =   2100
         Width           =   615
      End
      Begin VB.Label lblLabels 
         Caption         =   "民族:"
         Height          =   255
         Index           =   8
         Left            =   3960
         TabIndex        =   31
         Top             =   885
         Width           =   615
      End
      Begin VB.Label lblLabels 
         Caption         =   "出生日期:"
         Height          =   255
         Index           =   7
         Left            =   360
         TabIndex        =   30
         Top             =   885
         Width           =   975
      End
      Begin VB.Label lblLabels 
         Caption         =   "性别:"
         Height          =   255
         Index           =   2
         Left            =   7800
         TabIndex        =   29
         Top             =   480
         Width           =   615
      End
      Begin VB.Label lblLabels 
         Caption         =   "姓名:"
         Height          =   255
         Index           =   1
         Left            =   3960
         TabIndex        =   28
         Top             =   480
         Width           =   615
      End
      Begin VB.Label lblLabels 
         Caption         =   "员工号:"
         Height          =   255
         Index           =   0
         Left            =   360
         TabIndex        =   27
         Top             =   480
         Width           =   735
      End
   End
   Begin VB.CommandButton cmdExit 
      Caption         =   "退出"
      Height          =   495
      Left            =   7800
      TabIndex        =   1
      Top             =   4560
      Width           =   1215
   End
   Begin VB.CommandButton cmdSave 
      Caption         =   "保存"
      Height          =   495
      Left            =   4080
      TabIndex        =   0
      Top             =   4560
      Width           =   1215
   End
   Begin VB.Label Label1 
      Caption         =   "Label1"
      Height          =   495
      Left            =   5160
      TabIndex        =   57
      Top             =   2760
      Width           =   1215
   End
End
Attribute VB_Name = "frmAddEmployee"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub cmdExit_Click()
Unload Me
End Sub

Private Sub cmdSave_Click()
    If UserName <> "Admin" Then
    '判断用户的权限
        MsgBox "只有超级管理员才有此权限!", vbOKOnly + vbExclamation, "警告"
        Exit Sub
    End If

    Dim txtSQL As String
    Dim MsgText As String
    Dim mrcc As ADODB.Recordset
    If Not Testtxt(txtEmployeeID.Text) Then
        MsgBox "请输入员工号!", vbOKOnly + vbExclamation, "警告"
        txtEmployeeID.SetFocus
        Exit Sub
    End If
     If Not Testtxt(txtName.Text) Then
        MsgBox "请输入姓名!", vbOKOnly + vbExclamation, "警告"
        txtName.SetFocus
        Exit Sub
    End If
     If Not IsNumeric(txtId.Text) Then
        MsgBox "请输入身份证号!", vbOKOnly + vbExclamation, "警告"
        txtId.SetFocus
        Exit Sub
    End If
    txtSQL = "select * from 员工基本信息 where  员工号= '" & Trim(txtEmployeeID.Text) & "'"
    Set mrcc = ExecuteSQL(txtSQL, MsgText)
    If mrcc.EOF = False Then
    '判断是否有重复的员工号
        MsgBox "员工号重复,请重新输入!", vbOKOnly + vbExclamation, "警告"
        mrcc.Close
        txtHouseNO.SetFocus
    Else
        mrcc.AddNew
        '添加新记录
        mrcc.Fields(0) = Trim(txtEmployeeID.Text)
        mrcc.Fields(1) = Trim(txtName.Text)
        mrcc.Fields(2) = Trim(txtSex.Text)
        mrcc.Fields(3) = DTBirth.Value
        mrcc.Fields(4) = Trim(txtNation.Text)
        mrcc.Fields(5) = Trim(txtMarriage.Text)
        mrcc.Fields(6) = Trim(txtStatus.Text)
        mrcc.Fields(7) = Trim(txtDegree.Text)
        mrcc.Fields(8) = Trim(DTEnterCom.Value)
        mrcc.Fields(9) = Trim(DTForm.Value)
        mrcc.Fields(10) = Trim(txtDepartment.Text)
        mrcc.Fields(11) = Trim(txtPosition.Text)
        mrcc.Fields(12) = Trim(txtHomeTown.Text)
        mrcc.Fields(13) = Trim(txtBirthPlace.Text)
        mrcc.Fields(14) = Trim(txtLivingPlace.Text)
        mrcc.Fields(15) = Trim(txtId.Text)
        mrcc.Fields(16) = Trim(txtMajor.Text)
        mrcc.Fields(17) = Trim(txtGraduateCol.Text)
        mrcc.Fields(18) = Trim(txtRank.Text)
        mrcc.Fields(19) = Trim(txtAddress.Text)
        mrcc.Fields(20) = Trim(txtStreet.Text)
        mrcc.Fields(21) = Trim(txtZip.Text)
        mrcc.Fields(22) = Trim(txtTel.Text)
        mrcc.Fields(23) = Trim(txtCellPhone.Text)
        mrcc.Fields(24) = Trim(txtCoupleName.Text)
        mrcc.Fields(25) = Trim(txtCoupleUnit.Text)
        mrcc.Fields(26) = Trim(txtCoupleTel.Text)
        mrcc.Update
        MsgBox "员工信息添加成功!", vbOKOnly + vbExclamation, "添加房屋资料信息"
        mrcc.Close
    End If
End Sub




⌨️ 快捷键说明

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