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

📄 修改客户密码.frm

📁 C/S模块
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form19 
   BackColor       =   &H00FFC0C0&
   Caption         =   "Form19"
   ClientHeight    =   5415
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   8310
   LinkTopic       =   "Form19"
   Picture         =   "修改客户密码.frx":0000
   ScaleHeight     =   5415
   ScaleWidth      =   8310
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      BackColor       =   &H00FFC0C0&
      Caption         =   "修改密码"
      Height          =   4335
      Left            =   960
      TabIndex        =   0
      Top             =   720
      Width           =   5655
      Begin VB.CommandButton Command1 
         Caption         =   "身份证"
         Height          =   495
         Index           =   2
         Left            =   600
         Picture         =   "修改客户密码.frx":D374
         Style           =   1  'Graphical
         TabIndex        =   14
         Top             =   1800
         Width           =   1575
      End
      Begin VB.CommandButton Command1 
         Caption         =   "卡号|折号"
         Height          =   495
         Index           =   1
         Left            =   600
         Picture         =   "修改客户密码.frx":15C4A
         Style           =   1  'Graphical
         TabIndex        =   13
         Top             =   1200
         Width           =   1575
      End
      Begin VB.CommandButton Command3 
         Caption         =   "返回"
         Height          =   495
         Left            =   600
         Picture         =   "修改客户密码.frx":1E520
         Style           =   1  'Graphical
         TabIndex        =   12
         Top             =   3600
         Width           =   1575
      End
      Begin VB.OptionButton Option1 
         BackColor       =   &H00FFC0C0&
         Caption         =   "卡"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   720
         TabIndex        =   11
         Top             =   720
         Width           =   1335
      End
      Begin VB.OptionButton Option2 
         BackColor       =   &H00FFC0C0&
         Caption         =   "帐"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   2760
         TabIndex        =   10
         Top             =   600
         Width           =   1215
      End
      Begin VB.TextBox Text2 
         Height          =   495
         Left            =   2760
         TabIndex        =   9
         Top             =   1800
         Width           =   2535
      End
      Begin VB.TextBox Text1 
         Height          =   495
         Left            =   2760
         TabIndex        =   8
         Top             =   1200
         Width           =   2535
      End
      Begin VB.CommandButton Command4 
         Caption         =   "密码"
         Height          =   495
         Left            =   600
         Picture         =   "修改客户密码.frx":26DF6
         Style           =   1  'Graphical
         TabIndex        =   7
         Top             =   2400
         Width           =   1575
      End
      Begin VB.TextBox Text3 
         Height          =   495
         IMEMode         =   3  'DISABLE
         Left            =   2760
         PasswordChar    =   "*"
         TabIndex        =   6
         Top             =   2400
         Width           =   2535
      End
      Begin VB.TextBox Text4 
         Height          =   495
         IMEMode         =   3  'DISABLE
         Left            =   2760
         PasswordChar    =   "*"
         TabIndex        =   5
         Top             =   3000
         Width           =   2535
      End
      Begin VB.CommandButton Command5 
         Caption         =   "确认密码"
         Height          =   495
         Left            =   600
         Picture         =   "修改客户密码.frx":2F6CC
         Style           =   1  'Graphical
         TabIndex        =   4
         Top             =   3000
         Width           =   1575
      End
      Begin VB.CommandButton Command6 
         Caption         =   "提交信息"
         Height          =   495
         Left            =   2760
         Picture         =   "修改客户密码.frx":37FA2
         Style           =   1  'Graphical
         TabIndex        =   3
         Top             =   3600
         Width           =   2535
      End
      Begin VB.CheckBox Check1 
         BackColor       =   &H00FFC0C0&
         Caption         =   "身份证修改密码"
         Height          =   735
         Left            =   720
         TabIndex        =   2
         Top             =   120
         Width           =   1935
      End
      Begin VB.CheckBox Check2 
         BackColor       =   &H00FFC0C0&
         Caption         =   "密码修改密码"
         Height          =   495
         Left            =   2880
         TabIndex        =   1
         Top             =   240
         Width           =   2295
      End
   End
End
Attribute VB_Name = "Form19"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Check1_Click()
    Check2.Value = 0
    Text3.Enabled = False
    Text4.Enabled = False
    Text3.Visible = False
    Text4.Visible = False
    Text2.Enabled = True
    Text2.Visible = True
    Text3.Text = ""
    Text4.Text = ""
End Sub

Private Sub Check2_Click()
Check1.Value = 0
Text2.Text = ""
Text2.Enabled = False
Text2.Visible = False
Text3.Enabled = True
Text4.Enabled = True
Text3.Visible = True
Text4.Visible = True
End Sub

Private Sub Command3_Click()
  Unload Me
  Form3.Show
           
End Sub

Private Sub Command6_Click()
If Check1.Value <> 1 And Check2.Value <> 1 Then
    MsgBox "请选择修改方式!"
    Exit Sub
    ElseIf Option1.Value = False And Option2.Value = False Then
    MsgBox "请选择修改卡还是账号!"
    Exit Sub
    ElseIf Not IsNumeric(Text1.Text) Then
    MsgBox "卡和帐户必需为位数字!", vbRetryCancel + vbExclamation, "错误提示"
    Text1.SetFocus
    Exit Sub
    ElseIf Len(Text1.Text) <> 18 Then
        MsgBox "卡和帐户长度必需为18位!", vbRetryCancel + vbExclamation, "错误提示"
        Text1.SetFocus
        Exit Sub
ElseIf Check1.Value = 1 Then
           If Not IsNumeric(Text2.Text) Then
           MsgBox "身份证必须为数字"
           Text2.SetFocus
           Exit Sub
           End If
           
           If Len(Text2.Text) > 20 Then
           MsgBox "身份证号必须小于20位"
           Text2.SetFocus
           Exit Sub
           End If
           
    If Option1.Value = True Then
          Call openconn
          rs.Open "select * from card_xx053_06 where c_No='" & Trim(Text1.Text) & "'and id='" & Trim(Text2.Text) & "'", conn, adOpenDynamic, adLockOptimistic
          If rs.BOF And rs.EOF Then
           MsgBox "卡号和证件号不匹配,找不到该用户", vbRetryCancel + vbExclamation, "错误提示"
           rs.Close
           Unload Me
           Form19.Show
           Else
            rs.Close
            Form21.no21 = Text1.Text
           Unload Me
           Form21.Show
           End If
   Else
       Call openconn
       rs.Open "select * from account_xx053_06 where b_No='" & Trim(Text1.Text) & "'and id='" & Trim(Text2.Text) & "'", conn, adOpenDynamic, adLockOptimistic
       If rs.BOF And rs.EOF Then
         MsgBox "账号和证件号不匹配,找不到该用户", vbRetryCancel + vbExclamation, "错误提示"
           rs.Close
           Unload Me
           Form19.Show
           
       Else
          rs.Close
        Form21.no21 = Text1.Text
          Unload Me
           Form21.Show
        End If
          
  End If
  
  ElseIf Not IsNumeric(Text3.Text) Then
     MsgBox "密码为数字!", vbRetryCancel + vbExclamation, "错误提示"
     Exit Sub
  ElseIf Len(Text3.Text) <> 6 Then
       MsgBox "密码为6位!", vbRetryCancel + vbExclamation, "错误提示"
        Text3.SetFocus
        Exit Sub
  ElseIf Trim(Text3.Text) <> Trim(Text4.Text) Then
    MsgBox "密码输入不一致!", vbRetryCancel + vbExclamation, "错误提示"
    Text3.SetFocus
     Exit Sub
  ElseIf Option1.Value = True Then
       Call openconn
       rs.Open "select * from card_xx053_06 where c_No='" & Trim(Text1.Text) & "'and c_key='" & Trim(Text3.Text) & "'", conn, adOpenDynamic, adLockOptimistic
       If rs.BOF And rs.EOF Then
        MsgBox "卡号和密码不匹配", vbRetryCancel + vbExclamation, "错误提示"
           rs.Close
          Unload Me
          Form19.Show
       Else
          rs.Close
            Form21.no21 = Text1.Text
           Unload Me
           Form21.Show
       End If
  Else
     Call openconn
       rs.Open "select * from account_xx053_06 where b_No='" & Trim(Text1.Text) & "'and b_key='" & Trim(Text3.Text) & "'", conn, adOpenDynamic, adLockOptimistic
       If rs.BOF And rs.EOF Then
         MsgBox "输入不正确!请从新输入"
            rs.Close
          Unload Me
           Form17.Show
       Else
          rs.Close
        Form21.no21 = Text1.Text
          Unload Me
           Form21.Show
       End If
  End If
           
End Sub

Private Sub Option1_Click()
Form21.bz21 = 1
End Sub

Private Sub Option2_Click()
Form21.bz21 = 0
End Sub

⌨️ 快捷键说明

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