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

📄 mmxg.frm

📁 员工考勤工资员工考勤工员工考勤工资资员工考勤工资员工考勤工资员工考勤工资
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form4 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "职工密码修改"
   ClientHeight    =   3360
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   6315
   LinkTopic       =   "Form4"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3360
   ScaleWidth      =   6315
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "提  交"
      Default         =   -1  'True
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   450
      Left            =   4320
      TabIndex        =   3
      Top             =   2640
      Width           =   1000
   End
   Begin VB.CommandButton Command1 
      Cancel          =   -1  'True
      Caption         =   "返  回"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   450
      Left            =   2400
      TabIndex        =   4
      Top             =   2640
      Width           =   1000
   End
   Begin VB.TextBox Text5 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   370
      IMEMode         =   3  'DISABLE
      Left            =   2640
      MaxLength       =   12
      PasswordChar    =   "*"
      TabIndex        =   2
      Top             =   2040
      Width           =   1575
   End
   Begin VB.TextBox Text4 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   370
      IMEMode         =   3  'DISABLE
      Left            =   2640
      MaxLength       =   12
      PasswordChar    =   "*"
      TabIndex        =   1
      Top             =   1500
      Width           =   1575
   End
   Begin VB.TextBox Text3 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   370
      IMEMode         =   3  'DISABLE
      Left            =   2640
      MaxLength       =   12
      PasswordChar    =   "*"
      TabIndex        =   0
      Top             =   900
      Width           =   1575
   End
   Begin VB.TextBox Text2 
      Alignment       =   2  'Center
      Enabled         =   0   'False
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   400
      Left            =   4320
      TabIndex        =   8
      Top             =   120
      Width           =   1815
   End
   Begin VB.TextBox Text1 
      Alignment       =   2  'Center
      Enabled         =   0   'False
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   400
      Left            =   1320
      TabIndex        =   7
      Top             =   120
      Width           =   1455
   End
   Begin VB.Label Label6 
      Caption         =   "(必  填)"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   255
      Left            =   4440
      TabIndex        =   13
      Top             =   960
      Width           =   1215
   End
   Begin VB.Label Label7 
      Caption         =   " 由a-z、A-Z和0-9组成且长度不大于12个字符!"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   975
      Left            =   4440
      TabIndex        =   12
      Top             =   1500
      Width           =   1455
   End
   Begin VB.Label Label5 
      Caption         =   "再输入一次新密码:"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   360
      TabIndex        =   11
      Top             =   2160
      Width           =   2290
   End
   Begin VB.Label Label4 
      Caption         =   "新  密  码:"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   360
      TabIndex        =   10
      Top             =   1560
      Width           =   2175
   End
   Begin VB.Label Label3 
      Caption         =   "旧  密  码:"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   360
      TabIndex        =   9
      Top             =   960
      Width           =   2175
   End
   Begin VB.Label Label2 
      Caption         =   "姓  名:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   3000
      TabIndex        =   6
      Top             =   178
      Width           =   1305
   End
   Begin VB.Label Label1 
      Caption         =   "工  号:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   120
      TabIndex        =   5
      Top             =   178
      Width           =   1305
   End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Form3.Show
Unload Me
End Sub

Private Sub Command2_Click()
Text3.Text = Trim(Text3.Text)
Text4.Text = Trim(Text4.Text)
Text5.Text = Trim(Text5.Text)

If Text3.Text = "" Then MsgBox "请输入你的旧密码!", 48, 消息框: Exit Sub
If Text4.Text = "" Then MsgBox "请输入你的新密码!", 48, 消息框: Exit Sub
If Text5.Text = "" Then MsgBox "请再输入一次你的新密码!", 48, 消息框: Exit Sub

If Text3.Text <> mm Then
  
MsgBox "你的旧密码不正确,请重新输入!"
ElseIf Text4.Text = Text5.Text Then

   
   
   my = "update koulingbiao set 密码=" & Text4.Text & " where 工号=" & Text1.Text & ""
  
   con.BeginTrans
   
   con.Execute my
   

   r = MsgBox("是要修改吗?", vbYesNo + vbQuestion)
   If r = vbYes Then
      con.CommitTrans
   Else
      MsgBox "您的新密码不匹配!", 48, "消息窗口"
       con.RollbackTrans
   
    End If
    
End If

Text3.Text = ""
Text4.Text = ""
Text5.Text = ""




End Sub

Private Sub Form_Load()
Text1.Text = gh
Text2.Text = xm
End Sub

⌨️ 快捷键说明

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