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

📄 员工密码恢复.frm

📁 C/S模块
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form4 
   BackColor       =   &H00FFC0C0&
   Caption         =   "Form4"
   ClientHeight    =   5190
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   8505
   LinkTopic       =   "Form4"
   Picture         =   "员工密码恢复.frx":0000
   ScaleHeight     =   5190
   ScaleWidth      =   8505
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      BackColor       =   &H00FFC0C0&
      Caption         =   "恢复员工密码"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   1575
      Left            =   240
      TabIndex        =   0
      Top             =   2280
      Width           =   5055
      Begin VB.TextBox Text2 
         Height          =   495
         Left            =   2520
         TabIndex        =   4
         Top             =   240
         Width           =   2175
      End
      Begin VB.CommandButton Command3 
         Caption         =   "恢复密码"
         Height          =   495
         Left            =   2520
         Picture         =   "员工密码恢复.frx":10474
         Style           =   1  'Graphical
         TabIndex        =   3
         Top             =   840
         Width           =   2175
      End
      Begin VB.CommandButton Command2 
         Caption         =   "返回"
         Height          =   495
         Left            =   360
         Picture         =   "员工密码恢复.frx":18D4A
         Style           =   1  'Graphical
         TabIndex        =   2
         Top             =   840
         Width           =   1575
      End
      Begin VB.CommandButton Command1 
         Caption         =   "员工号"
         Height          =   495
         Index           =   4
         Left            =   360
         Picture         =   "员工密码恢复.frx":21620
         Style           =   1  'Graphical
         TabIndex        =   1
         Top             =   240
         Width           =   1575
      End
   End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public yg4 As String

Private Sub Command2_Click()
   Unload Me
   Form11.Show
End Sub

Private Sub Command3_Click()
If Text2.Text = "" Then
        MsgBox "输入不能为空!"
        Text2.SetFocus
        Exit Sub
ElseIf Not IsNumeric(Text2.Text) Then
        MsgBox "员工号为数字"
        Text2.SetFocus
        Exit Sub
ElseIf Len(Text2.Text) <> 4 Then
        MsgBox "员工号为4位"
        Text2.SetFocus
        Exit Sub
Else
      Call openconn
       rs.Open "select * from employee_xx053_06 where e_No='" & Trim(Text2.Text) & "'and manager='" & yg4 & "'", conn, adOpenDynamic, adLockOptimistic
       If rs.BOF And rs.EOF Then
       MsgBox "你没有权限修改该员工密码!", vbRetryCancel + vbExclamation, "错误提示"
       Text2.SetFocus
       rs.Close
       Unload Me
       Form11.Show
       Else
       rs.Fields(6) = 222222
       rs.Update
       MsgBox "密码初始化为222222"
       rs.Close
       Unload Me
       Form11.Show
       End If
End If
End Sub

⌨️ 快捷键说明

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