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

📄 frmmmxg.frm

📁 一款代码完整
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmMMXG 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "密码修改"
   ClientHeight    =   3990
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   5325
   BeginProperty Font 
      Name            =   "Arial"
      Size            =   9
      Charset         =   0
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3990
   ScaleWidth      =   5325
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton cmdQDXG 
      Caption         =   "确定修改"
      Height          =   375
      Left            =   3960
      TabIndex        =   10
      Top             =   3435
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      Caption         =   "密码修改"
      Height          =   2895
      Left            =   240
      TabIndex        =   0
      Top             =   375
      Width           =   4815
      Begin VB.PictureBox Picture1 
         BorderStyle     =   0  'None
         Height          =   2295
         Left            =   240
         ScaleHeight     =   2295
         ScaleWidth      =   4335
         TabIndex        =   1
         Top             =   360
         Width           =   4335
         Begin VB.TextBox txtQDMM 
            Height          =   345
            IMEMode         =   3  'DISABLE
            Left            =   1560
            PasswordChar    =   "*"
            TabIndex        =   5
            Top             =   1680
            Width           =   1935
         End
         Begin VB.TextBox txtXMM 
            Height          =   345
            IMEMode         =   3  'DISABLE
            Left            =   1560
            PasswordChar    =   "*"
            TabIndex        =   4
            Top             =   1200
            Width           =   1935
         End
         Begin VB.TextBox txtJMM 
            Height          =   345
            IMEMode         =   3  'DISABLE
            Left            =   1560
            PasswordChar    =   "*"
            TabIndex        =   3
            Top             =   720
            Width           =   1935
         End
         Begin VB.TextBox txtCZY 
            Enabled         =   0   'False
            Height          =   345
            Left            =   1560
            TabIndex        =   2
            Top             =   240
            Width           =   1935
         End
         Begin VB.Label Label1 
            Caption         =   "确定密码"
            Height          =   255
            Index           =   3
            Left            =   600
            TabIndex        =   9
            Top             =   1710
            Width           =   855
         End
         Begin VB.Label Label1 
            Caption         =   "新  密  码"
            Height          =   255
            Index           =   2
            Left            =   600
            TabIndex        =   8
            Top             =   1230
            Width           =   855
         End
         Begin VB.Label Label1 
            Caption         =   "旧  密  码"
            Height          =   255
            Index           =   1
            Left            =   600
            TabIndex        =   7
            Top             =   750
            Width           =   855
         End
         Begin VB.Label Label1 
            Caption         =   "操  作  员"
            Height          =   255
            Index           =   0
            Left            =   600
            TabIndex        =   6
            Top             =   270
            Width           =   855
         End
      End
   End
End
Attribute VB_Name = "frmMMXG"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'枕善居收藏整理
'发布日期:2007/12/17
'描    述:企事业单位人事管理系统 Ver 2007
'网    站:http://www.Mndsoft.com/  (VB6源码博客)
'网    站:http://www.VbDnet.com/   (VB.NET源码博客,主要基于.NET2005)
'e-mail  :Mndsoft@163.com
'e-mail  :Mndsoft@126.com
'OICQ    :88382850
'          如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************

Dim dJMM As String '旧密码



Private Sub cmdQDXG_Click()
If zhuan(Me.txtJMM.Text) <> dJMM Then
    MsgBox "您输入的旧密码不对!", 48, "提示"
    Me.txtJMM.Text = ""
    Me.txtJMM.SetFocus
    Exit Sub
End If

If Me.txtXMM.Text <> Me.txtQDMM.Text Then
    MsgBox "两次输入的密码不一致!", 48, "提示"
    Me.txtXMM.Text = ""
    Me.txtQDMM.Text = ""
    Me.txtXMM.SetFocus
    Exit Sub
End If

Call OpenConn
SQL = "select * from 系统用户表 where czy='" & gCzy & "'"
rs.Open SQL, cn, 3, 3
rs!pass = zhuan(Me.txtXMM.Text)
rs.Update
Call CloseConn
MsgBox "密码修改成功!", 64, "提示"

Unload Me

End Sub

Private Sub Form_Initialize()
Call InitCommonControls 'XP效果
End Sub

Private Sub Form_Load()
Me.Icon = MDIfrm.Icon '图标

Me.txtCZY.Text = gCzy

Call OpenConn
SQL = "select * from 系统用户表 where czy='" & gCzy & "'"
rs.Open SQL, cn, 1, 1
dJMM = rs!pass
Call CloseConn


End Sub

⌨️ 快捷键说明

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