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

📄 frmxxcx.frm

📁 宾馆管理系统 宾馆管理系统 宾馆管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmCfxxcx 
   Caption         =   "客房信息查询"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.CheckBox chkItem 
      Caption         =   "客 房 种 类:"
      Height          =   375
      Index           =   1
      Left            =   360
      TabIndex        =   5
      Top             =   1320
      Width           =   1455
   End
   Begin VB.TextBox txtItem 
      Height          =   270
      Index           =   1
      Left            =   2040
      TabIndex        =   4
      Top             =   480
      Width           =   1815
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取  消"
      Height          =   375
      Left            =   2760
      TabIndex        =   3
      Top             =   2400
      Width           =   975
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确  定"
      Height          =   375
      Left            =   720
      TabIndex        =   2
      Top             =   2400
      Width           =   975
   End
   Begin VB.ComboBox Combo1 
      Height          =   300
      ItemData        =   "frmXxcx.frx":0000
      Left            =   2040
      List            =   "frmXxcx.frx":000D
      TabIndex        =   1
      Text            =   "   标准间"
      Top             =   1320
      Width           =   1815
   End
   Begin VB.CheckBox chkItem 
      Caption         =   "客 房 编 号:"
      Height          =   375
      Index           =   0
      Left            =   360
      TabIndex        =   0
      Top             =   360
      Value           =   1  'Checked
      Width           =   1455
   End
End
Attribute VB_Name = "frmCfxxcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub cmdOK_Click()
    Dim sQSql As String
    If chkItem(0).Value = vbChecked Then
      sQSql = "roomNO='" & Trim(txtItem(1) & " ") & "'"
    End If
    If chkItem(1).Value = vbChecked Then
      If Trim(sQSql & " ") = " " Then
        sQSql = "roomtype='" & Trim(Combo1 & " ") & "'"
      Else
        sQSql = sQSql & "and roomtype='" & Trim(Combo1 & " ") & "'"
      End If
    End If
    If Trim(sQSql) = " " Then
       MsgBox "请设置查询条件!", vbOKOnly + vbExclamation, "警告"
      Exit Sub
    Else
       If flagRedit Then
         Unload frmRoom
       End If
        frmKfxxlb.txtSQL = "select * from rooms where " & sQSql
        frmKfxxlb.Show
    End If
      Me.Hide
    
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

⌨️ 快捷键说明

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