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

📄 frmmemberfind.frm

📁 星级酒店管理系统(附带系统自写控件源码)
💻 FRM
📖 第 1 页 / 共 2 页
字号:
      Text            =   "0"
   End
   Begin 给出焦点文本框.FocusText ftGuest 
      Height          =   300
      Index           =   9
      Left            =   8490
      TabIndex        =   9
      Top             =   1050
      Visible         =   0   'False
      Width           =   735
      _ExtentX        =   1296
      _ExtentY        =   529
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Arial"
         Size            =   10.5
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BorderStyle     =   0
      TextType        =   2
      Text            =   "0"
   End
   Begin 给出焦点文本框.FocusText ftGuest 
      Height          =   300
      Index           =   10
      Left            =   10005
      TabIndex        =   10
      Top             =   1050
      Visible         =   0   'False
      Width           =   795
      _ExtentX        =   1402
      _ExtentY        =   529
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Arial"
         Size            =   10.5
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BorderStyle     =   0
      TextType        =   2
      Text            =   "0"
   End
   Begin MSComCtl2.DTPicker ftExpireDate 
      Height          =   300
      Left            =   9120
      TabIndex        =   12
      Top             =   1500
      Visible         =   0   'False
      Width           =   1680
      _ExtentX        =   2963
      _ExtentY        =   529
      _Version        =   393216
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Arial"
         Size            =   10.5
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Format          =   23724033
      CurrentDate     =   37461
   End
   Begin VB.Image Image1 
      Height          =   480
      Left            =   195
      Picture         =   "frmMemberFind.frx":0958
      Top             =   1695
      Width           =   480
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "请在输入条件框前面打勾?"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   195
      Left            =   735
      TabIndex        =   39
      Top             =   1890
      Width           =   2250
   End
   Begin VB.Label Label12 
      AutoSize        =   -1  'True
      Caption         =   "结帐方式:"
      Height          =   210
      Index           =   10
      Left            =   7245
      TabIndex        =   38
      Top             =   1995
      Visible         =   0   'False
      Width           =   945
   End
   Begin VB.Label Label12 
      AutoSize        =   -1  'True
      Caption         =   "过期时间:"
      Height          =   210
      Index           =   9
      Left            =   7260
      TabIndex        =   37
      Top             =   1545
      Visible         =   0   'False
      Width           =   945
   End
   Begin VB.Label Label12 
      AutoSize        =   -1  'True
      Caption         =   "会员等级:"
      Height          =   210
      Index           =   14
      Left            =   7245
      TabIndex        =   36
      Top             =   2430
      Visible         =   0   'False
      Width           =   945
   End
   Begin VB.Label Label12 
      AutoSize        =   -1  'True
      Caption         =   "累计碟片:大于         小于等于"
      Height          =   180
      Index           =   7
      Left            =   7275
      TabIndex        =   35
      Top             =   1110
      Visible         =   0   'False
      Width           =   2700
   End
   Begin VB.Label Label12 
      AutoSize        =   -1  'True
      Caption         =   "累计消费:大于         小于等于"
      Height          =   180
      Index           =   6
      Left            =   7275
      TabIndex        =   34
      Top             =   645
      Visible         =   0   'False
      Width           =   2700
   End
   Begin VB.Line Line1 
      X1              =   285
      X2              =   6120
      Y1              =   1770
      Y2              =   1770
   End
   Begin VB.Label Label12 
      AutoSize        =   -1  'True
      Caption         =   "编号:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   195
      Index           =   0
      Left            =   720
      TabIndex        =   33
      Top             =   375
      Width           =   495
   End
   Begin VB.Label Label12 
      AutoSize        =   -1  'True
      Caption         =   "名称:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   195
      Index           =   1
      Left            =   720
      TabIndex        =   32
      Top             =   825
      Width           =   495
   End
   Begin VB.Label Label12 
      AutoSize        =   -1  'True
      Caption         =   "地址:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   195
      Index           =   2
      Left            =   720
      TabIndex        =   31
      Top             =   1290
      Width           =   495
   End
   Begin VB.Label Label12 
      AutoSize        =   -1  'True
      Caption         =   "电话:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   195
      Index           =   3
      Left            =   3795
      TabIndex        =   30
      Top             =   360
      Width           =   495
   End
   Begin VB.Label Label12 
      AutoSize        =   -1  'True
      Caption         =   "身份证:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   195
      Index           =   4
      Left            =   3600
      TabIndex        =   29
      Top             =   810
      Width           =   690
   End
   Begin VB.Label Label12 
      AutoSize        =   -1  'True
      Caption         =   "押金:大于         小于等于"
      Height          =   180
      Index           =   5
      Left            =   7650
      TabIndex        =   28
      Top             =   195
      Visible         =   0   'False
      Width           =   2340
   End
End
Attribute VB_Name = "frmMemberFind"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmbCheck_Click()

 chkQuery(9).Value = vbChecked
  
End Sub

Private Sub cmbMatch_Change()

  chkQuery(8).Value = vbChecked

End Sub

Private Sub cmbMatch_Click()

  chkQuery(8).Value = vbChecked

End Sub

Private Sub cmbType_Click()

  chkQuery(10).Value = vbChecked
  
End Sub

Private Sub cmdCancel_Click()

  IsChangeIT = False
  Unload Me
  
End Sub

Private Sub cmdFind_Click()

  On Error GoTo FindErr
  
  Dim isError As Boolean
 '在左边的框中输入条件
  Dim sTmp As String
  Dim sQue As String
      sQue = " Where "
      isError = False
  If ftGuest(0).Text <> "" And chkQuery(0).Value = vbChecked Then
     sTmp = sTmp & sQue & " DGuest Like '%" & ftGuest(0).Text & "%' "
     sQue = " And "
     isError = True
  End If
  If ftGuest(1).Text <> "" And chkQuery(1).Value = vbChecked Then
     sTmp = sTmp & sQue & " DName Like '%" & ftGuest(1).Text & "%' "
     sQue = " And "
     isError = True
  End If
  If ftGuest(2).Text <> "" And chkQuery(2).Value = vbChecked Then
     sTmp = sTmp & sQue & " DAddress Like '%" & ftGuest(2).Text & "%' "
     sQue = " And "
     isError = True
  End If
  If ftGuest(3).Text <> "" And chkQuery(3).Value = vbChecked Then
     sTmp = sTmp & sQue & " DTel Like '%" & ftGuest(3).Text & "%' "
     sQue = " And "
     isError = True
  End If
  If ftGuest(4).Text <> "" And chkQuery(4).Value = vbChecked Then
     sTmp = sTmp & sQue & " DIcq Like '%" & ftGuest(4).Text & "%' "
     sQue = " And "
     isError = True
  End If
  
  If isError = False Then
     MsgBox "请在左边框中输入条件,然后在前面方框中打勾." & vbCrLf & vbCrLf & "如果查询时不需要该项目,请将方框中勾去掉? ", vbExclamation
     ftGuest(0).SetFocus
     Exit Sub
  End If

  strSearch = sTmp
  IsChangeIT = True
  Unload Me
  
  Exit Sub
FindErr:
  MsgBox "建立查询语句错误:" & Err.Description, vbCritical
  Exit Sub

End Sub

Private Sub Form_Load()

   GetFormSet Me, Screen
   
  '搜索字符串
   strSearch = ""
   
End Sub

Private Sub Form_Unload(Cancel As Integer)

   SaveFormSet Me
  
End Sub

Private Sub ftGuest_Change(Index As Integer)
  
   If Index <= 4 Then
      If ftGuest(Index).Text = "" Then
         chkQuery(Index).Value = vbUnchecked
        Else
         chkQuery(Index).Value = vbChecked
      End If
   End If
   
End Sub

Private Sub ftGuest_KeyPress(Index As Integer, KeyAscii As Integer)

  If Index >= 0 And Index < 3 And KeyAscii = 13 Then
     ftGuest(Index + 1).SetFocus
  End If
  
End Sub

⌨️ 快捷键说明

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