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

📄 frm查询订房信息.frm

📁 可以完成宾馆的日常管理功能,例如订房,登记,入住,结帐,和打印报表等
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form frm查询订房信息 
   Caption         =   "查询订房信息"
   ClientHeight    =   4740
   ClientLeft      =   60
   ClientTop       =   465
   ClientWidth     =   8010
   Icon            =   "frm查询订房信息.frx":0000
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   ScaleHeight     =   4740
   ScaleWidth      =   8010
   StartUpPosition =   2  '屏幕中心
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   480
      Top             =   4320
      Visible         =   0   'False
      Width           =   1575
      _ExtentX        =   2778
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   3
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "DSN=wmtao"
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   "wmtao"
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from 订房信息表 where 客房标准 ='"" & list1.text & ""'"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.PictureBox Picture1 
      BackColor       =   &H80000013&
      Height          =   4815
      Left            =   0
      ScaleHeight     =   4755
      ScaleWidth      =   7995
      TabIndex        =   0
      ToolTipText     =   "关闭窗口"
      Top             =   0
      Width           =   8055
      Begin VB.PictureBox Picture2 
         BackColor       =   &H80000013&
         Height          =   3855
         Left            =   120
         ScaleHeight     =   3795
         ScaleWidth      =   7755
         TabIndex        =   2
         Top             =   120
         Width           =   7815
         Begin VB.Frame Frame1 
            BackColor       =   &H80000013&
            Caption         =   "客房标准"
            Height          =   3735
            Left            =   0
            TabIndex        =   4
            Top             =   0
            Width           =   1935
            Begin VB.ListBox List1 
               Height          =   3300
               ItemData        =   "frm查询订房信息.frx":0442
               Left            =   120
               List            =   "frm查询订房信息.frx":0449
               TabIndex        =   5
               Top             =   240
               Width           =   1695
            End
         End
         Begin MSDataGridLib.DataGrid DataGrid1 
            Bindings        =   "frm查询订房信息.frx":0453
            Height          =   3615
            Left            =   2040
            TabIndex        =   3
            Top             =   120
            Width           =   5535
            _ExtentX        =   9763
            _ExtentY        =   6376
            _Version        =   393216
            BackColor       =   65280
            HeadLines       =   1
            RowHeight       =   15
            FormatLocked    =   -1  'True
            BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "宋体"
               Size            =   9
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "宋体"
               Size            =   9
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Caption         =   "房间信息"
            ColumnCount     =   12
            BeginProperty Column00 
               DataField       =   "客房编号"
               Caption         =   "客房编号"
               BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
                  Type            =   0
                  Format          =   ""
                  HaveTrueFalseNull=   0
                  FirstDayOfWeek  =   0
                  FirstWeekOfYear =   0
                  LCID            =   2052
                  SubFormatType   =   0
               EndProperty
            EndProperty
            BeginProperty Column01 
               DataField       =   "客房标准"
               Caption         =   "客房标准"
               BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
                  Type            =   0
                  Format          =   ""
                  HaveTrueFalseNull=   0
                  FirstDayOfWeek  =   0
                  FirstWeekOfYear =   0
                  LCID            =   2052
                  SubFormatType   =   0
               EndProperty
            EndProperty
            BeginProperty Column02 
               DataField       =   "客房位置"
               Caption         =   "客房位置"
               BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
                  Type            =   0
                  Format          =   ""
                  HaveTrueFalseNull=   0
                  FirstDayOfWeek  =   0
                  FirstWeekOfYear =   0
                  LCID            =   2052
                  SubFormatType   =   0
               EndProperty
            EndProperty
            BeginProperty Column03 
               DataField       =   "客房单价"
               Caption         =   "客房单价"
               BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
                  Type            =   0
                  Format          =   ""
                  HaveTrueFalseNull=   0
                  FirstDayOfWeek  =   0
                  FirstWeekOfYear =   0
                  LCID            =   2052
                  SubFormatType   =   0
               EndProperty
            EndProperty
            BeginProperty Column04 
               DataField       =   "客房备注信息"
               Caption         =   "客房备注信息"
               BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
                  Type            =   0
                  Format          =   ""
                  HaveTrueFalseNull=   0
                  FirstDayOfWeek  =   0
                  FirstWeekOfYear =   0
                  LCID            =   2052
                  SubFormatType   =   0
               EndProperty
            EndProperty
            BeginProperty Column05 
               DataField       =   "顾客姓名"
               Caption         =   "顾客姓名"
               BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
                  Type            =   0
                  Format          =   ""
                  HaveTrueFalseNull=   0
                  FirstDayOfWeek  =   0
                  FirstWeekOfYear =   0
                  LCID            =   2052
                  SubFormatType   =   0
               EndProperty
            EndProperty
            BeginProperty Column06 
               DataField       =   "顾客证件"
               Caption         =   "顾客证件"
               BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
                  Type            =   0
                  Format          =   ""
                  HaveTrueFalseNull=   0
                  FirstDayOfWeek  =   0
                  FirstWeekOfYear =   0
                  LCID            =   2052
                  SubFormatType   =   0
               EndProperty
            EndProperty
            BeginProperty Column07 
               DataField       =   "顾客证件号码"
               Caption         =   "顾客证件号码"
               BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
                  Type            =   0
                  Format          =   ""
                  HaveTrueFalseNull=   0
                  FirstDayOfWeek  =   0
                  FirstWeekOfYear =   0
                  LCID            =   2052
                  SubFormatType   =   0
               EndProperty
            EndProperty
            BeginProperty Column08 
               DataField       =   "订房时间"
               Caption         =   "订房时间"
               BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
                  Type            =   0
                  Format          =   ""
                  HaveTrueFalseNull=   0
                  FirstDayOfWeek  =   0
                  FirstWeekOfYear =   0
                  LCID            =   2052
                  SubFormatType   =   0
               EndProperty
            EndProperty
            BeginProperty Column09 
               DataField       =   "押金"
               Caption         =   "押金"
               BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
                  Type            =   0
                  Format          =   ""
                  HaveTrueFalseNull=   0
                  FirstDayOfWeek  =   0
                  FirstWeekOfYear =   0
                  LCID            =   2052
                  SubFormatType   =   0
               EndProperty
            EndProperty
            BeginProperty Column10 
               DataField       =   "折扣"
               Caption         =   "折扣"
               BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
                  Type            =   0
                  Format          =   ""
                  HaveTrueFalseNull=   0
                  FirstDayOfWeek  =   0
                  FirstWeekOfYear =   0
                  LCID            =   2052
                  SubFormatType   =   0
               EndProperty
            EndProperty
            BeginProperty Column11 
               DataField       =   "备注"
               Caption         =   "备注"
               BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
                  Type            =   0
                  Format          =   ""
                  HaveTrueFalseNull=   0
                  FirstDayOfWeek  =   0
                  FirstWeekOfYear =   0
                  LCID            =   2052
                  SubFormatType   =   0
               EndProperty
            EndProperty
            SplitCount      =   1
            BeginProperty Split0 
               BeginProperty Column00 
                  ColumnWidth     =   794.835
               EndProperty
               BeginProperty Column01 
                  ColumnWidth     =   810.142
               EndProperty
               BeginProperty Column02 
                  ColumnWidth     =   780.095
               EndProperty
               BeginProperty Column03 
                  ColumnWidth     =   794.835
               EndProperty
               BeginProperty Column04 
                  ColumnWidth     =   1140.095
               EndProperty
               BeginProperty Column05 
                  ColumnWidth     =   810.142
               EndProperty
               BeginProperty Column06 
                  ColumnWidth     =   794.835
               EndProperty
               BeginProperty Column07 
                  ColumnWidth     =   1260.284
               EndProperty
               BeginProperty Column08 
               EndProperty
               BeginProperty Column09 
                  ColumnWidth     =   629.858
               EndProperty
               BeginProperty Column10 
                  ColumnWidth     =   599.811
               EndProperty
               BeginProperty Column11 
               EndProperty
            EndProperty
         End
      End
      Begin VB.CommandButton Command1 
         Default         =   -1  'True
         Height          =   495
         Left            =   3960
         Picture         =   "frm查询订房信息.frx":0468
         Style           =   1  'Graphical
         TabIndex        =   1
         ToolTipText     =   "关闭窗口"
         Top             =   4080
         Width           =   495
      End
   End
End
Attribute VB_Name = "frm查询订房信息"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim i As Integer
i = MsgBox("是否确认退出?", vbYesNo, "提示")
If i = vbYes Then
Unload Me
End If
End Sub

Private Sub Form_Load()
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cn = New ADODB.Connection
Set rs = New ADODB.Recordset
cn.Open frm登录.Adodc1.ConnectionString
rs.Open "select * from 客房标准信息表", cn, 1, 3
While Not rs.EOF
List1.AddItem (rs.Fields(1))
rs.MoveNext
Wend
End Sub


Private Sub List1_Click()
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cn = New ADODB.Connection
Set rs = New ADODB.Recordset
cn.Open Adodc1.ConnectionString
If List1.Text = List1.List(0) Then
   rs.Open "select * from 订房信息表 ", cn, 1, 3
 If rs.EOF Then
   Set DataGrid1.DataSource = Nothing
   DataGrid1.Refresh
 Else
   Set DataGrid1.DataSource = rs
 End If
Else
  rs.Open "select * from 订房信息表 where 客房标准 = '" & List1.Text & "'", cn, 1, 3
 If rs.EOF Then
     Set DataGrid1.DataSource = Nothing
     DataGrid1.Refresh
 Else
      Set DataGrid1.DataSource = rs
 End If
End If
End Sub

⌨️ 快捷键说明

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