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

📄 form24.frm

📁 银行的客户端模块
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form24 
   BorderStyle     =   0  'None
   Caption         =   "修改密码"
   ClientHeight    =   6735
   ClientLeft      =   60
   ClientTop       =   75
   ClientWidth     =   8775
   LinkTopic       =   "Form24"
   ScaleHeight     =   6735
   ScaleWidth      =   8775
   ShowInTaskbar   =   0   'False
   Begin VB.CommandButton Command2 
      Caption         =   "返回"
      Height          =   615
      Left            =   3960
      TabIndex        =   9
      Top             =   5040
      Width           =   1335
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确认"
      Height          =   615
      Left            =   2040
      TabIndex        =   8
      Top             =   5040
      Width           =   1095
   End
   Begin VB.TextBox Text4 
      Height          =   495
      Left            =   3000
      TabIndex        =   7
      Text            =   "Text4"
      Top             =   3600
      Width           =   2295
   End
   Begin VB.TextBox Text3 
      Height          =   615
      Left            =   3000
      TabIndex        =   5
      Text            =   "Text3"
      Top             =   2640
      Width           =   2415
   End
   Begin VB.TextBox Text2 
      Height          =   495
      Left            =   3000
      TabIndex        =   3
      Text            =   "Text2"
      Top             =   1800
      Width           =   2415
   End
   Begin VB.TextBox Text1 
      Enabled         =   0   'False
      Height          =   495
      Left            =   3000
      TabIndex        =   1
      Text            =   "Text1"
      Top             =   840
      Width           =   2415
   End
   Begin VB.Label Label4 
      Caption         =   "确认新密码"
      Height          =   375
      Left            =   1560
      TabIndex        =   6
      Top             =   3600
      Width           =   1095
   End
   Begin VB.Label Label3 
      Caption         =   "新密码"
      Height          =   255
      Left            =   1560
      TabIndex        =   4
      Top             =   2760
      Width           =   1095
   End
   Begin VB.Label Label2 
      Caption         =   "原密码"
      Height          =   255
      Left            =   1560
      TabIndex        =   2
      Top             =   1920
      Width           =   1095
   End
   Begin VB.Label Label1 
      Caption         =   "帐户id"
      Height          =   255
      Left            =   1560
      TabIndex        =   0
      Top             =   960
      Width           =   1095
   End
End
Attribute VB_Name = "Form24"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Select Case account_type
       Case "储蓄帐户"
            cmd.CommandText = "select account_secret_code from xinxi0504_23_account where account_id='" & account_id & "'"
            Set rs = cmd.Execute
            If Text2.Text <> rs.Fields("account_secret_code") Then
               MsgBox "输入原始密码错误"
               Text2.Text = ""
            ElseIf Text3.Text = "" Or Len(Text3.Text) > 10 Then
               MsgBox "新密码输入错误"
               Text3.Text = ""
               Text4.Text = ""
            ElseIf Text4.Text <> Text3.Text Then
               MsgBox "两次密码不一样"
               Text3.Text = ""
               Text4.Text = ""
            Else
               cmd.CommandText = "update xinxi0504_23_account set account_secret_code='" & Trim(Text3.Text) & "' where account_id='" & account_id & "'"
               cmd.Execute
               MsgBox "修改密码成功"
               Text2.Text = ""
               Text3.Text = ""
               Text4.Text = ""
            End If
        Case "信用卡帐户"
             cmd.CommandText = "select credit_secret_code from xinxi0504_23_credit where credit_id='" & account_id & "'"
            Set rs = cmd.Execute
            If Text2.Text <> rs.Fields("credit_secret_code") Then
               MsgBox "输入原始密码错误"
               Text2.Text = ""
            ElseIf Text3.Text = "" Or Len(Text3.Text) > 10 Then
               MsgBox "新密码输入错误"
               Text3.Text = ""
               Text4.Text = ""
            ElseIf Text4.Text <> Text3.Text Then
               MsgBox "两次密码不一样"
               Text3.Text = ""
               Text4.Text = ""
            Else
               cmd.CommandText = "update xinxi0504_23_credit set credit_secret_code='" & Trim(Text3.Text) & "' where credit_id='" & account_id & "'"
               cmd.Execute
               MsgBox "修改密码成功"
               Text2.Text = ""
               Text3.Text = ""
               Text4.Text = ""
            End If
 End Select
            
End Sub

Private Sub Command2_Click()
Form16.Show
Unload Form24

End Sub

Private Sub Form_Load()
Text1.Text = account_id
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""

Set rs = New ADODB.Recordset
cmd.CommandType = adCmdText

End Sub

⌨️ 快捷键说明

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