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

📄 frmtuantiyuding.frm

📁 VB客房管理系统全套(带源码)顾客可以用电话或上网注册的方式预定。其方式不同
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Begin VB.Form frmtuantiyuding 
   Caption         =   "团体预定"
   ClientHeight    =   7050
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   7965
   LinkTopic       =   "Form1"
   ScaleHeight     =   7050
   ScaleWidth      =   7965
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command3 
      Caption         =   "返回"
      Height          =   495
      Left            =   5160
      TabIndex        =   37
      Top             =   6120
      Width           =   1455
   End
   Begin VB.CommandButton cmdsave 
      Caption         =   "确定"
      Height          =   495
      Left            =   3240
      TabIndex        =   36
      Top             =   6120
      Width           =   1455
   End
   Begin VB.TextBox txtNo 
      Height          =   495
      Left            =   480
      TabIndex        =   35
      Top             =   6000
      Width           =   1695
   End
   Begin VB.Frame Frame3 
      Caption         =   "预定"
      Height          =   975
      Left            =   3840
      TabIndex        =   24
      Top             =   4920
      Width           =   3855
      Begin VB.TextBox text1 
         Height          =   375
         Index           =   7
         Left            =   840
         TabIndex        =   34
         Top             =   240
         Width           =   1215
      End
      Begin VB.TextBox text1 
         Height          =   375
         Index           =   8
         Left            =   2640
         TabIndex        =   32
         Top             =   240
         Width           =   1215
      End
      Begin VB.Label Label5 
         Caption         =   "天数"
         Height          =   255
         Left            =   2280
         TabIndex        =   26
         Top             =   360
         Width           =   615
      End
      Begin VB.Label Label4 
         Caption         =   "预定时间"
         Height          =   375
         Left            =   120
         TabIndex        =   25
         Top             =   360
         Width           =   855
      End
   End
   Begin VB.Frame Frame2 
      Caption         =   "团体信息"
      Height          =   4815
      Left            =   3720
      TabIndex        =   1
      Top             =   0
      Width           =   4095
      Begin VB.TextBox Text6 
         Height          =   375
         Left            =   3000
         TabIndex        =   40
         Top             =   1920
         Width           =   495
      End
      Begin VB.TextBox Text3 
         Height          =   375
         Left            =   2280
         TabIndex        =   39
         Top             =   1920
         Width           =   495
      End
      Begin VB.TextBox text1 
         Height          =   375
         Index           =   5
         Left            =   1560
         TabIndex        =   33
         Top             =   2400
         Width           =   1215
      End
      Begin VB.TextBox text1 
         Height          =   375
         Index           =   4
         Left            =   1560
         TabIndex        =   31
         Top             =   1920
         Width           =   495
      End
      Begin VB.TextBox text1 
         Height          =   375
         Index           =   6
         Left            =   1560
         TabIndex        =   30
         Top             =   3000
         Width           =   1215
      End
      Begin VB.TextBox text1 
         Height          =   375
         Index           =   3
         Left            =   1560
         TabIndex        =   29
         Top             =   1440
         Width           =   2295
      End
      Begin VB.TextBox text1 
         Height          =   390
         Index           =   2
         Left            =   1560
         TabIndex        =   28
         Top             =   960
         Width           =   1215
      End
      Begin VB.TextBox text1 
         Height          =   390
         Index           =   1
         Left            =   1560
         TabIndex        =   27
         Top             =   480
         Width           =   1215
      End
      Begin VB.TextBox Text2 
         Height          =   1095
         Left            =   960
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   23
         Top             =   3600
         Width           =   2655
      End
      Begin VB.Label Label3 
         Caption         =   "备注"
         Height          =   375
         Index           =   6
         Left            =   240
         TabIndex        =   22
         Top             =   3720
         Width           =   495
      End
      Begin VB.Label Label3 
         Caption         =   "预收款"
         Height          =   375
         Index           =   5
         Left            =   240
         TabIndex        =   21
         Top             =   3000
         Width           =   735
      End
      Begin VB.Label Label3 
         Caption         =   "折扣"
         Height          =   375
         Index           =   4
         Left            =   240
         TabIndex        =   20
         Top             =   2520
         Width           =   1095
      End
      Begin VB.Label Label3 
         Caption         =   "入住日期"
         Height          =   375
         Index           =   3
         Left            =   240
         TabIndex        =   19
         Top             =   2040
         Width           =   1095
      End
      Begin VB.Label Label3 
         Caption         =   "负责人身份证号"
         Height          =   375
         Index           =   2
         Left            =   240
         TabIndex        =   18
         Top             =   1560
         Width           =   1335
      End
      Begin VB.Label Label3 
         Caption         =   "负责人姓名"
         Height          =   375
         Index           =   1
         Left            =   240
         TabIndex        =   17
         Top             =   1080
         Width           =   1095
      End
      Begin VB.Label Label3 
         Caption         =   "团体人数"
         Height          =   375
         Index           =   0
         Left            =   240
         TabIndex        =   16
         Top             =   600
         Width           =   1095
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "客房信息"
      Height          =   5775
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   3615
      Begin VB.OptionButton Option1 
         Caption         =   "Option1"
         Height          =   255
         Index           =   4
         Left            =   120
         TabIndex        =   44
         Top             =   1920
         Width           =   255
      End
      Begin VB.OptionButton Option1 
         Caption         =   "Option1"
         Height          =   255
         Index           =   3
         Left            =   120
         TabIndex        =   43
         Top             =   1560
         Width           =   255
      End
      Begin VB.OptionButton Option1 
         Caption         =   "Option1"
         Height          =   255
         Index           =   2
         Left            =   120
         TabIndex        =   42
         Top             =   1200
         Width           =   255
      End
      Begin VB.OptionButton Option1 
         Caption         =   "Option1"
         Height          =   255
         Index           =   1
         Left            =   120
         TabIndex        =   41
         Top             =   840
         Width           =   255
      End
      Begin VB.PictureBox Picture1 
         Height          =   3615
         Left            =   2760
         Picture         =   "frmtuantiyuding.frx":0000
         ScaleHeight     =   3555
         ScaleWidth      =   675
         TabIndex        =   38
         Top             =   360
         Width           =   735
      End
      Begin VB.TextBox Text5 
         Height          =   1455
         Left            =   1080
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   15
         Top             =   4200
         Width           =   2295
      End
      Begin VB.TextBox Text4 
         Height          =   1095
         Left            =   1080
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   14
         Top             =   2880
         Width           =   1455
      End
      Begin VB.CommandButton Command1 
         Caption         =   "客房信息"
         Height          =   375
         Left            =   120
         TabIndex        =   13
         Top             =   2880
         Width           =   975
      End
      Begin VB.ComboBox cboItem 
         Height          =   300
         Index           =   3
         Left            =   1440
         TabIndex        =   12
         Top             =   1920
         Width           =   1095
      End
      Begin VB.ComboBox cboItem 
         Height          =   300
         Index           =   2
         Left            =   1440
         TabIndex        =   11
         Top             =   1560
         Width           =   1095
      End
      Begin VB.ComboBox cboItem 
         Height          =   300
         Index           =   1
         Left            =   1440
         TabIndex        =   10
         Top             =   1200
         Width           =   1095
      End
      Begin VB.ComboBox cboItem 
         Height          =   300
         Index           =   0
         Left            =   1440
         TabIndex        =   9
         Top             =   840
         Width           =   1095
      End
      Begin VB.TextBox restrooms 
         Height          =   375
         Left            =   1440
         TabIndex        =   3
         Top             =   360
         Width           =   1095
      End
      Begin VB.Label Label2 
         Caption         =   "备注"
         Height          =   255
         Index           =   4
         Left            =   240
         TabIndex        =   8
         Top             =   4320
         Width           =   495
      End
      Begin VB.Label Label2 
         Caption         =   "客房单价"
         Height          =   255
         Index           =   3
         Left            =   480
         TabIndex        =   7
         Top             =   1920
         Width           =   735
      End
      Begin VB.Label Label2 
         Caption         =   "客房位置"
         Height          =   255
         Index           =   2
         Left            =   480
         TabIndex        =   6
         Top             =   1560
         Width           =   735
      End
      Begin VB.Label Label2 
         Caption         =   "客房种类"
         Height          =   255
         Index           =   1
         Left            =   480
         TabIndex        =   5
         Top             =   1200
         Width           =   735
      End
      Begin VB.Label Label2 
         Caption         =   "房间编号"
         Height          =   255
         Index           =   0
         Left            =   480
         TabIndex        =   4
         Top             =   840
         Width           =   735
      End
      Begin VB.Label Label1 
         Caption         =   "剩余客房"
         Height          =   255
         Left            =   480
         TabIndex        =   2
         Top             =   480
         Width           =   735
      End
   End
End
Attribute VB_Name = "frmtuantiyuding"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Dim mblChange As Boolean
Dim mrc As ADODB.Recordset
Public txtSQL As String

Private Sub command2_click()

End Sub

Private Sub cboItem_Click(Index As Integer)
Dim mrc As ADODB.Recordset
Dim intCount As Integer
Dim msgtext As String



Select Case Index
     
       Case 0
       
            If Option1(1).Value Then
'
           
            
                 txtSQL = "select * from rooms where roomNO='" & cboItem(0).Text & "'and putup<>'y'"
               
                Set mrc = ExecuteSQL(txtSQL, msgtext)
                
                        If Not mrc.EOF Then
                                For intCount = 1 To 3
                                cboItem(intCount).Clear
                                cboItem(intCount).AddItem mrc.Fields(intCount)
                                cboItem(intCount).ListIndex = 0
                                Next intCount
                        End If
                        

                      mrc.Close
            
            End If
       
       
       Case 1
      
            If Option1(2).Value Then
            
                 txtSQL = "select * from rooms where roomtype='" & cboItem(1).Text & "'and putup<>'y'"
             
                Set mrc = ExecuteSQL(txtSQL, msgtext)
                
                
                        If Not mrc.EOF Then
                         cboItem(0).Clear
                        Do While Not mrc.EOF
                        cboItem(0).AddItem Trim(mrc.Fields(0))
                        mrc.MoveNext
                        Loop
                        
                        End If
                      restrooms = mrc.RecordCount
                      
                      mrc.Close

        
'
            
            End If
       
       Case 2
      
            If Option1(3).Value Then
                 txtSQL = "select * from rooms where roomposition='" & cboItem(2).Text & "'and putup<>'y'"
              
                Set mrc = ExecuteSQL(txtSQL, msgtext)
               
                

⌨️ 快捷键说明

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