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

📄 挂失解挂.frm

📁 浴馆管理软件(包括IC卡的操作、动态库的调用等内容)
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmgua 
   Caption         =   "挂失"
   ClientHeight    =   5190
   ClientLeft      =   2970
   ClientTop       =   1470
   ClientWidth     =   6540
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   ScaleHeight     =   5190
   ScaleWidth      =   6540
   Begin VB.Frame Frame1 
      Caption         =   "查寻"
      Height          =   1815
      Left            =   360
      TabIndex        =   11
      Top             =   720
      Width           =   6015
      Begin VB.OptionButton Option2 
         Caption         =   "Option2"
         Height          =   255
         Left            =   360
         TabIndex        =   18
         Top             =   1080
         Width           =   255
      End
      Begin VB.OptionButton Option1 
         Caption         =   "Option1"
         Height          =   255
         Left            =   360
         TabIndex        =   17
         Top             =   360
         Width           =   255
      End
      Begin VB.TextBox Text6 
         Height          =   375
         Left            =   1800
         TabIndex        =   15
         Top             =   960
         Width           =   2175
      End
      Begin VB.TextBox Text5 
         Height          =   375
         Left            =   1800
         TabIndex        =   13
         Top             =   360
         Width           =   2175
      End
      Begin VB.CommandButton Command2 
         Caption         =   "查  询"
         Height          =   495
         Left            =   4320
         TabIndex        =   12
         Top             =   1200
         Width           =   1455
      End
      Begin VB.Label Label8 
         Caption         =   "卡号:"
         Height          =   255
         Left            =   960
         TabIndex        =   16
         Top             =   1080
         Width           =   735
      End
      Begin VB.Label Label7 
         Caption         =   "姓名:"
         Height          =   255
         Left            =   960
         TabIndex        =   14
         Top             =   360
         Width           =   735
      End
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   1800
      Locked          =   -1  'True
      TabIndex        =   5
      Top             =   2760
      Width           =   2175
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   1800
      Locked          =   -1  'True
      TabIndex        =   4
      Top             =   3360
      Width           =   2175
   End
   Begin VB.TextBox Text3 
      Height          =   375
      Left            =   1800
      Locked          =   -1  'True
      TabIndex        =   3
      Top             =   3960
      Width           =   2175
   End
   Begin VB.TextBox Text4 
      Height          =   375
      Left            =   1800
      Locked          =   -1  'True
      TabIndex        =   2
      Top             =   4560
      Width           =   2175
   End
   Begin VB.CommandButton Command1 
      Caption         =   " 挂      失"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1575
      Left            =   5040
      TabIndex        =   1
      Top             =   3120
      Width           =   615
   End
   Begin VB.Label Label2 
      Caption         =   "姓名:"
      Height          =   255
      Left            =   960
      TabIndex        =   10
      Top             =   2880
      Width           =   735
   End
   Begin VB.Label Label3 
      Caption         =   "身份证号:"
      Height          =   255
      Left            =   600
      TabIndex        =   9
      Top             =   3480
      Width           =   975
   End
   Begin VB.Label Label4 
      Caption         =   "卡号:"
      Height          =   255
      Left            =   840
      TabIndex        =   8
      Top             =   4080
      Width           =   735
   End
   Begin VB.Label Label5 
      Caption         =   "余额:"
      Height          =   255
      Left            =   960
      TabIndex        =   7
      Top             =   4680
      Width           =   735
   End
   Begin VB.Label Label6 
      BorderStyle     =   1  'Fixed Single
      Height          =   2295
      Left            =   4680
      TabIndex        =   6
      Top             =   2760
      Width           =   1335
   End
   Begin VB.Line Line2 
      X1              =   0
      X2              =   6480
      Y1              =   600
      Y2              =   600
   End
   Begin VB.Line Line1 
      X1              =   0
      X2              =   6480
      Y1              =   480
      Y2              =   480
   End
   Begin VB.Label Label1 
      Caption         =   "欢迎使用富美贵宾卡"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   15
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   1920
      TabIndex        =   0
      Top             =   120
      Width           =   2895
   End
End
Attribute VB_Name = "frmgua"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
'On Error Resume Next
Dim msg As String

If Text3.Text = "" Then
  msg = MsgBox("没有你查的结果,不可以挂失?", vbOKCancel, "提示!")
  Exit Sub
End If

Dim lidicn As New ADODB.Connection
lidicn.Open "Provider = Microsoft.Jet.OLEDB.4.0; Data Source = 信息库.mdb;"

Dim lidirs As New ADODB.Recordset
msg = MsgBox("您确定要挂失吗?", vbOKCancel, "提示!")
If msg = vbOK Then
   hh = Text3.Text
   lidirs.Open "select * from 卡表 " + " where IC号 like" + "'" + hh + "'", lidicn, adOpenKeyset, adLockOptimistic
   lidirs!是否挂失 = "Yes"
   lidirs.Update
Else
   Exit Sub
End If

End Sub

Private Sub Command2_Click()

Dim lidicn As New ADODB.Connection
lidicn.Open "Provider = Microsoft.Jet.OLEDB.4.0; Data Source = 信息库.mdb;"
 Dim lidirs As New ADODB.Recordset
Dim tj As String
If Option1.Value = True Then
   Text5.Enabled = True
   Text6.Enabled = False
   
   tj = Text5.Text
  
   lidirs.Open "select * from 卡表" + "where 姓名 like" + "'" + tj + "'", lidicn
   If (lidirs.BOF Or lidirs.EOF) Then
          MsgBox "没有您要查询的结果!", vbInformation, "提示!"
          Exit Sub
    Else
          Text1.Text = lidirs!姓名
          Text2.Text = lidirs!身份证号码
          Text3.Text = lidirs!IC号
          Text4.Text = lidirs!余额
          lidirs.Close
    End If
    
Else
    Text5.Enabled = False
    Text6.Enabled = True
     tj = Text6.Text
     lidirs.Open "select * from 卡表 " + " where IC号 like" + "'" + tj + "'", lidicn
    If (lidirs.BOF Or lidirs.EOF) Then
          MsgBox "没有您要查询的结果!", vbInformation, "提示!"
          Exit Sub
    Else
          Text1.Text = lidirs!姓名
          Text2.Text = lidirs!身份证号码
          Text3.Text = lidirs!IC号
          Text4.Text = lidirs!余额
          lidirs.Close
    End If
End If
If Text3.Text = "" Then
  msg = MsgBox("没有你查的结果,不可以挂失?", vbOKCancel, "提示!")
  Exit Sub
End If
End Sub

Private Sub Command3_Click()
 
End Sub


⌨️ 快捷键说明

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