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

📄 frmpwdedit.frm

📁 主要是基本的客户资源管理操作界面, 包含基本信息管理、客户管理商业管理等
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmPwdEdit 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "修改密码"
   ClientHeight    =   3225
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4455
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3225
   ScaleWidth      =   4455
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame1 
      Height          =   2295
      Left            =   240
      TabIndex        =   6
      Top             =   120
      Width           =   3975
      Begin VB.TextBox txtOPass 
         Height          =   270
         IMEMode         =   3  'DISABLE
         Left            =   1560
         MaxLength       =   20
         PasswordChar    =   "*"
         TabIndex        =   1
         Top             =   840
         Width           =   2175
      End
      Begin VB.TextBox txtUserName 
         Enabled         =   0   'False
         Height          =   270
         Left            =   1560
         MaxLength       =   20
         TabIndex        =   0
         Top             =   360
         Width           =   2175
      End
      Begin VB.TextBox txtPass 
         Height          =   270
         IMEMode         =   3  'DISABLE
         Left            =   1560
         MaxLength       =   20
         PasswordChar    =   "*"
         TabIndex        =   3
         Top             =   1320
         Width           =   2175
      End
      Begin VB.TextBox txtPass2 
         Height          =   270
         IMEMode         =   3  'DISABLE
         Left            =   1560
         MaxLength       =   20
         PasswordChar    =   "*"
         TabIndex        =   4
         Top             =   1800
         Width           =   2175
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "原密码"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000000&
         Height          =   180
         Left            =   240
         TabIndex        =   10
         Top             =   840
         Width           =   540
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "用户名"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000000&
         Height          =   180
         Left            =   240
         TabIndex        =   9
         Top             =   360
         Width           =   540
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "确认密码"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000000&
         Height          =   180
         Left            =   240
         TabIndex        =   8
         Top             =   1800
         Width           =   720
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "新密码"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000000&
         Height          =   180
         Left            =   240
         TabIndex        =   7
         Top             =   1320
         Width           =   540
      End
   End
   Begin VB.CommandButton Cmd_Cancel 
      Cancel          =   -1  'True
      Caption         =   "取 消"
      Height          =   400
      Left            =   2380
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   5
      Top             =   2640
      Width           =   1300
   End
   Begin VB.CommandButton Cmd_Ok 
      Caption         =   "确 定"
      Height          =   400
      Left            =   775
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   2640
      Width           =   1300
   End
End
Attribute VB_Name = "FrmPwdEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmd_Cancel_Click()
  Unload Me
End Sub

Private Sub Cmd_OK_Click()
  If Trim(txtOPass) = "" Then
    MsgBox "请输入原密码"
    txtOPass.SetFocus
    Exit Sub
  End If
  If Len(txtPass) < 6 Then
    MsgBox "密码长度不能小于6"
    txtPass.SetFocus
    txtPass.SelStart = 0
    txtPass.SelLength = Len(txtPass2)
    Exit Sub
  End If
  If txtPass <> txtPass2 Then
    MsgBox "密码和确认密码不相同,请重新确认"
    txtPass2.SetFocus
    txtPass2.SelStart = 0
    txtPass2.SelLength = Len(txtPass2)
    Exit Sub
  End If
  CurUser.GetInfo (Trim(txtUserName))
  '取得当前用户信息,判断原密码是否正确
  If Trim(CurUser.UserPwd) <> Trim(txtOPass) Then
    MsgBox "原密码错误,请重新输入"
    txtOPass.SetFocus
    Exit Sub
  End If
  With MyUser
    .UserName = MakeStr(txtUserName)
    .UserPwd = MakeStr(txtPass)
    .UpdatePassword (MakeStr(txtUserName))
  End With
  Unload Me
End Sub

⌨️ 快捷键说明

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