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

📄 form26.frm

📁 银行的客户端模块
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form26 
   BorderStyle     =   0  'None
   Caption         =   "解挂"
   ClientHeight    =   4950
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   6060
   LinkTopic       =   "Form26"
   ScaleHeight     =   4950
   ScaleWidth      =   6060
   ShowInTaskbar   =   0   'False
   Begin VB.TextBox Text4 
      Height          =   405
      Left            =   2160
      TabIndex        =   13
      Text            =   "Text4"
      Top             =   3000
      Width           =   2415
   End
   Begin VB.CommandButton Command2 
      Caption         =   "返回"
      Height          =   495
      Left            =   2880
      TabIndex        =   11
      Top             =   3600
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "解挂"
      Height          =   495
      Left            =   1440
      TabIndex        =   10
      Top             =   3600
      Width           =   975
   End
   Begin VB.ComboBox Combo1 
      Height          =   315
      ItemData        =   "Form26.frx":0000
      Left            =   2160
      List            =   "Form26.frx":000A
      TabIndex        =   6
      Text            =   "请选择"
      Top             =   600
      Width           =   1695
   End
   Begin VB.TextBox Text3 
      Height          =   375
      Left            =   2160
      TabIndex        =   5
      Text            =   "Text3"
      Top             =   2400
      Width           =   2415
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   2160
      TabIndex        =   3
      Text            =   "Text2"
      Top             =   1800
      Width           =   2415
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   2160
      TabIndex        =   1
      Text            =   "Text1"
      Top             =   1200
      Width           =   2415
   End
   Begin VB.Label Label8 
      Caption         =   "18位"
      Height          =   255
      Left            =   4920
      TabIndex        =   14
      Top             =   1920
      Width           =   615
   End
   Begin VB.Label Label7 
      Caption         =   "身份证号码"
      Height          =   255
      Left            =   600
      TabIndex        =   12
      Top             =   1800
      Width           =   1215
   End
   Begin VB.Label Label6 
      Caption         =   "1——10位"
      Height          =   255
      Left            =   4800
      TabIndex        =   9
      Top             =   2520
      Width           =   855
   End
   Begin VB.Label Label5 
      Caption         =   "10位"
      Height          =   375
      Left            =   4920
      TabIndex        =   8
      Top             =   1200
      Width           =   735
   End
   Begin VB.Label Label4 
      Caption         =   "确认新密码"
      Height          =   375
      Left            =   600
      TabIndex        =   7
      Top             =   3000
      Width           =   1095
   End
   Begin VB.Label Label3 
      Caption         =   "新密码"
      Height          =   255
      Left            =   600
      TabIndex        =   4
      Top             =   2400
      Width           =   975
   End
   Begin VB.Label Label2 
      Caption         =   "解挂账号"
      Height          =   255
      Left            =   600
      TabIndex        =   2
      Top             =   1320
      Width           =   735
   End
   Begin VB.Label Label1 
      Caption         =   "解挂帐号类型"
      Height          =   255
      Left            =   600
      TabIndex        =   0
      Top             =   600
      Width           =   1215
   End
End
Attribute VB_Name = "Form26"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Select Case Combo1.Text
       Case "请选择"
           MsgBox "请选择解挂帐户类型"
       Case "储蓄帐户"
            cmd.CommandText = "select * from xinxi0504_23_account where account_id='" & Trim(Text1.Text) & "'"
            Set rs = cmd.Execute
            If rs.EOF = True Then
               MsgBox "不存在该帐户"
            ElseIf rs.Fields("lost") = "0" Then
               MsgBox "该帐户未挂失"
            ElseIf Text2.Text <> rs.Fields("customer_ident") Then
               MsgBox "身份证号码错误"
            ElseIf Text3.Text = "" Or Len(Text3.Text) > 10 Then
               MsgBox "密码输入错误"
            ElseIf Text4.Text <> Text3.Text Then
               MsgBox "两次密码输入不一样"
            Else
               cmd.CommandText = "update xinxi0504_23_account set account_secret_code='" & Trim(Text3.Text) & "' where account_id='" & Trim(Text1.Text) & "'"
               cmd.Execute
               cmd.CommandText = "update xinxi0504_23_account set lost='0' where account_id='" & Trim(Text1.Text) & "'"
               cmd.Execute
               MsgBox "解挂成功"
               Form11.Show
               Unload Form25
            End If
       Case "信用卡帐户"
            cmd.CommandText = "select * from xinxi0504_23_credit where credit_id='" & Trim(Text1.Text) & "'"
            Set rs = cmd.Execute
            If rs.EOF = True Then
               MsgBox "不存在该帐户"
            ElseIf rs.Fields("lost") = "0" Then
               MsgBox "该帐户未未挂失"
            ElseIf Text2.Text <> rs.Fields("customer_ident") Then
               MsgBox "身份证号码错误"
            ElseIf Text3.Text = "" Or Len(Text3.Text) > 10 Then
               MsgBox "密码输入错误"
            ElseIf Text4.Text <> Text3.Text Then
               MsgBox "两次密码输入不一样"
            Else
               cmd.CommandText = "update xinxi0504_23_credit set lost='0' where credit_id='" & Trim(Text1.Text) & "'"
               cmd.Execute
               cmd.CommandText = "update xinxi0504_23_credit set credit_secret_code='" & Trim(Text3.Text) & "' where credit_id='" & Trim(Text1.Text) & "'"
               cmd.Execute
               MsgBox "解挂成功"
               Form11.Show
               Unload Form25
            End If
End Select
End Sub

Private Sub Command2_Click()
Form11.Show
Unload Form26
End Sub

Private Sub Form_Load()
Combo1.Text = "请选择"
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""

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

⌨️ 快捷键说明

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