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

📄 frmdfxx.frm

📁 宾馆管理系统 宾馆管理系统 宾馆管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmDfxx 
   Caption         =   "订房信息"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6390
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   6390
   StartUpPosition =   3  '窗口缺省
   WindowState     =   1  'Minimized
   Begin VB.CommandButton Command2 
      Caption         =   "返 回"
      Height          =   375
      Left            =   3960
      TabIndex        =   18
      Top             =   2760
      Width           =   855
   End
   Begin VB.CommandButton cmdSave 
      Caption         =   "保 存"
      Height          =   375
      Left            =   2640
      TabIndex        =   17
      Top             =   2760
      Width           =   855
   End
   Begin VB.Frame Frame2 
      Caption         =   "顾客信息"
      Height          =   2415
      Left            =   3240
      TabIndex        =   6
      Top             =   240
      Width           =   2895
      Begin VB.TextBox Text6 
         Height          =   495
         Left            =   1200
         TabIndex        =   24
         Top             =   1800
         Width           =   1455
      End
      Begin VB.TextBox Text4 
         Height          =   270
         Left            =   1200
         TabIndex        =   14
         Top             =   1440
         Width           =   1095
      End
      Begin VB.TextBox Text3 
         Height          =   270
         Left            =   1200
         TabIndex        =   12
         Top             =   1080
         Width           =   1215
      End
      Begin VB.TextBox Text2 
         Height          =   270
         Left            =   1200
         TabIndex        =   10
         Top             =   720
         Width           =   1215
      End
      Begin VB.TextBox Text1 
         Height          =   270
         Left            =   1200
         TabIndex        =   8
         Top             =   240
         Width           =   1215
      End
      Begin VB.Label Label11 
         Caption         =   "备注信息:"
         Height          =   255
         Left            =   120
         TabIndex        =   16
         Top             =   1800
         Width           =   975
      End
      Begin VB.Label Label10 
         Caption         =   "%"
         Height          =   255
         Left            =   2400
         TabIndex        =   15
         Top             =   1440
         Width           =   135
      End
      Begin VB.Label Label9 
         Caption         =   "折   扣:"
         Height          =   255
         Left            =   120
         TabIndex        =   13
         Top             =   1440
         Width           =   975
      End
      Begin VB.Label Label8 
         Caption         =   "入住时间:"
         Height          =   255
         Left            =   120
         TabIndex        =   11
         Top             =   1080
         Width           =   975
      End
      Begin VB.Label Label7 
         Caption         =   "身份证号码:"
         Height          =   255
         Left            =   120
         TabIndex        =   9
         Top             =   720
         Width           =   1095
      End
      Begin VB.Label Label6 
         Caption         =   "顾客姓名:"
         Height          =   255
         Left            =   120
         TabIndex        =   7
         Top             =   240
         Width           =   975
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "客房信息"
      Height          =   2415
      Left            =   240
      TabIndex        =   0
      Top             =   240
      Width           =   2295
      Begin VB.TextBox Text5 
         Height          =   495
         Left            =   1080
         TabIndex        =   23
         Top             =   1800
         Width           =   1095
      End
      Begin VB.ComboBox Combo5 
         Height          =   300
         ItemData        =   "frmDfxx.frx":0000
         Left            =   1080
         List            =   "frmDfxx.frx":0013
         TabIndex        =   22
         Text            =   "  东面"
         Top             =   960
         Width           =   1095
      End
      Begin VB.ComboBox Combo4 
         Height          =   300
         ItemData        =   "frmDfxx.frx":003F
         Left            =   1080
         List            =   "frmDfxx.frx":004F
         TabIndex        =   21
         Text            =   "  100"
         Top             =   1320
         Width           =   1095
      End
      Begin VB.ComboBox Combo2 
         Height          =   300
         ItemData        =   "frmDfxx.frx":0067
         Left            =   1080
         List            =   "frmDfxx.frx":0074
         TabIndex        =   20
         Text            =   " 标准间"
         Top             =   600
         Width           =   1095
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         ItemData        =   "frmDfxx.frx":0093
         Left            =   1080
         List            =   "frmDfxx.frx":00DF
         TabIndex        =   19
         Text            =   "  201"
         Top             =   240
         Width           =   1095
      End
      Begin VB.Label Label5 
         Caption         =   "客房备注:"
         Height          =   255
         Left            =   120
         TabIndex        =   5
         Top             =   1680
         Width           =   975
      End
      Begin VB.Label Label4 
         Caption         =   "客房单价:"
         Height          =   255
         Left            =   120
         TabIndex        =   4
         Top             =   1320
         Width           =   975
      End
      Begin VB.Label Label3 
         Caption         =   "客房位置:"
         Height          =   255
         Left            =   120
         TabIndex        =   3
         Top             =   960
         Width           =   975
      End
      Begin VB.Label Label2 
         Caption         =   "客房种类:"
         Height          =   255
         Left            =   120
         TabIndex        =   2
         Top             =   600
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "客房编号:"
         Height          =   255
         Left            =   120
         TabIndex        =   1
         Top             =   240
         Width           =   975
      End
   End
End
Attribute VB_Name = "frmDfxx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
   Dim intCount As Integer
   Dim sMeg As String
   Dim mrcc As ADODB.Recordset
   Dim MsgText As String
   Private Sub chkItem_Click(Index As Integer)
    If Index = 0 Then
        If chkItem(Index).Value = vbChecked Then
            Combo1(Index).Enabled = True
        End If
    Else
        If chkItem(Index).Value = vbChecked Then
            Combo1(1).Enabled = True
            Combo1(2).Enabled = True
        End If
    End If
     End Sub


Private Sub cmdExit_Click()
Unload.Me

End Sub

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


   If gingBmode = 2 Then
     txtSQL = "delect from bookin where bookno='" & Trim(txtNo) & "'"
     Set mrcc = ExecuteSQL(txtSQL, MsgText)
   End If
   txtSQL = "select * from bookin"
   Set mrcc = ExecuteSQL(txtSQL, MsgText)
   mrcc.AddNew
   mrcc.Fields(0) = txtNo
   For intCount = 0 To 1
       mrcc.Fields(intCount + 1) = txtItem(intCount)
   Next intCount
   mrcc.Fields(3) = cboItem(0)
   For intCount = 2 To 4
       mrcc.Fields(intCount + 2) = txtItem(intCount)
   Next intCount
   mrcc.Fields(8) = 0
   mrcc.Update
   mrcc.Close
   txtSQL = "select * from rooms where roomNO='" & Trim(cboItem(0)) & "'"
   Set mrcc = ExecuteSQL(txtSQL, MsgText)
   If Not mrcc.EOF Then
      mrcc!putup = "y"
   End If
    mrcc.Update
      mrcc.Close
      
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

⌨️ 快捷键说明

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