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

📄 setroomm.frm

📁 vb酒店管理系统的原码下载
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{0ECD9B60-23AA-11D0-B351-00A0C9055D8E}#6.0#0"; "MSHFLXGD.OCX"
Begin VB.Form 客房设置FORM 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "客房设置"
   ClientHeight    =   7125
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   11325
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   7125
   ScaleWidth      =   11325
   Begin VB.CommandButton Command4 
      BackColor       =   &H00FFFFC0&
      Caption         =   "关闭"
      Height          =   300
      Left            =   10260
      Style           =   1  'Graphical
      TabIndex        =   5
      Top             =   6090
      Width           =   915
   End
   Begin VB.CommandButton Command3 
      Caption         =   "删除"
      Height          =   300
      Left            =   10245
      Style           =   1  'Graphical
      TabIndex        =   4
      Top             =   2820
      Width           =   915
   End
   Begin VB.CommandButton Command2 
      Caption         =   "修改"
      Height          =   300
      Left            =   10260
      Style           =   1  'Graphical
      TabIndex        =   3
      Top             =   2190
      Width           =   915
   End
   Begin VB.CommandButton Command1 
      Caption         =   "增加"
      Height          =   300
      Left            =   10260
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   1740
      Width           =   915
   End
   Begin VB.PictureBox Picture1 
      Align           =   1  'Align Top
      Appearance      =   0  'Flat
      BackColor       =   &H00FFFFFF&
      BorderStyle     =   0  'None
      ForeColor       =   &H80000008&
      Height          =   975
      Left            =   0
      ScaleHeight     =   975
      ScaleWidth      =   11325
      TabIndex        =   1
      Top             =   0
      Width           =   11325
   End
   Begin MSHierarchicalFlexGridLib.MSHFlexGrid MSHFlexGrid1 
      Bindings        =   "setroomm.frx":0000
      Height          =   5550
      Left            =   30
      TabIndex        =   0
      Top             =   975
      Width           =   10020
      _ExtentX        =   17674
      _ExtentY        =   9790
      _Version        =   393216
      FixedCols       =   0
      _NumberOfBands  =   1
      _Band(0).Cols   =   2
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   345
      Left            =   45
      Top             =   6270
      Visible         =   0   'False
      Width           =   1935
      _ExtentX        =   3413
      _ExtentY        =   609
      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=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      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.Label Label7 
      Caption         =   "空  房:"
      Height          =   285
      Left            =   480
      TabIndex        =   11
      Top             =   6700
      Width           =   1500
   End
   Begin VB.Label Label8 
      Caption         =   "空  房:"
      Height          =   285
      Left            =   1980
      TabIndex        =   10
      Top             =   6700
      Width           =   1500
   End
   Begin VB.Label Label9 
      Caption         =   "空  房:"
      Height          =   285
      Left            =   3510
      TabIndex        =   9
      Top             =   6700
      Width           =   1500
   End
   Begin VB.Label Label10 
      Caption         =   "空  房:"
      Height          =   285
      Left            =   5055
      TabIndex        =   8
      Top             =   6700
      Width           =   1500
   End
   Begin VB.Label Label11 
      Caption         =   "空  房:"
      Height          =   285
      Left            =   6660
      TabIndex        =   7
      Top             =   6700
      Width           =   1500
   End
   Begin VB.Label Label12 
      Caption         =   "空  房:"
      Height          =   285
      Left            =   8355
      TabIndex        =   6
      Top             =   6700
      Width           =   1500
   End
End
Attribute VB_Name = "客房设置FORM"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'星级酒店管理系统最初功能演示版,提供所有星级酒店管理中的客房管理,
'房态管理,客史管理,客人资料管理,帐务管理,报表管理,餐饮收费管理
'菜谱管理,夜审处理,数据库备份等功能.所有功能皆可以运行,(但有一些BUG未处理)
'此代码完全可以完成星级酒店上述管理功能.(提供者:帅)
'--------------------------------------------------------------
'代码编写于:2001.12  系统分析:帅   代码编写:帅    版权所有:帅
'--------------------------------------------------------------
'本份代码仅提供给程序太平洋的所有朋友学习,研究之用.
'其它网站一律不得转载,否则为侵权行为,本人保留法律追诉权力.
'这也是本人最早的VB版程序,代码质量不好.望笑纳.:)
'--------------------------------------------------------------
'提供日期:2003-05-31    提供者:帅
'--------------------------------------------------------------
'系统提从与ACCESS或SQL相接,在登录时,选择全局数据库,就与SQL数据库
'连接,字符串存放在SERVER.DAT文本文件中;选择本地数据库,与本地ACCESS
'数据库相连,连接字符串存放在LOCAT.DAT文件中.(当前存放为e:\hotel2\room.mdb)
'---------------------------------------------------------------
'将ACCESS中所有表导入SQL中,并将有的表中的ID字段改为自动编码,就可以使用.
'---------------------------------------------------------------------
'
'
Dim Room(5) As Long

Private Sub Command1_Click()
    RoomForm_Type = "增加"
    setroom1.Show 1
    Adodc1.Refresh
    Me.MSHFlexGrid1.Refresh
End Sub

Private Sub Command2_Click()
    Me.MSHFlexGrid1.Col = 0
    RoomNO = Me.MSHFlexGrid1.Text
    RoomForm_Type = "修改"
    setroom1.Show 1
    Adodc1.Refresh
    Me.MSHFlexGrid1.Refresh
    
End Sub

Private Sub Command3_Click()
    Me.MSHFlexGrid1.Col = 0
    RoomNO = Me.MSHFlexGrid1.Text
    Adodc1.Recordset.Delete
    Adodc1.Recordset.Update
    Adodc1.Refresh
    Me.MSHFlexGrid1.Refresh

End Sub

Private Sub Command4_Click()
    Unload Me
End Sub

Private Sub Form_Load()
    Dim i, j As Integer
    Left = 0
    Top = 0
    If PIC_load Then
        Me.Picture1.Picture = LoadPicture(App.Path & "\pic\pic0001.jpg")
    End If
    
    Adodc1.ConnectionString = My_PROVIDER
    Adodc1.CommandType = adCmdText
    Adodc1.RecordSource = "select * from 客房"
    Adodc1.Refresh
    
    Set Me.MSHFlexGrid1.DataSource = Adodc1
    Me.MSHFlexGrid1.Refresh
    For i = 0 To 5
        Room(i) = 0
    Next
    'MsgBox Me.MSHFlexGrid1.Cols & "  rows:" & Me.MSHFlexGrid1.Rows
    Adodc1.Recordset.MoveFirst
    While Not Adodc1.Recordset.EOF
        Select Case Adodc1.Recordset.Fields("当前状态")
        Case "空房"
            Room(0) = Room(0) + 1
        Case "脏房"
            Room(1) = Room(1) + 1
        Case "维修房"
            Room(2) = Room(2) + 1
        Case "售出"
            Room(3) = Room(3) + 1
        Case "预订"
            Room(4) = Room(4) + 1
        Case Else
        End Select
        Adodc1.Recordset.MoveNext
    Wend
    Adodc1.Recordset.MoveFirst
    Me.Label7.Caption = "空房:" & CStr(Room(0))
    Me.Label8.Caption = "脏房:" & CStr(Room(1))
    Me.Label9.Caption = "维修房:" & CStr(Room(2))
    Me.Label10.Caption = "售出:" & CStr(Room(3))
    Me.Label11.Caption = "预订:" & CStr(Room(4))
    Me.Label12.Caption = "合计:" & CStr(Room(0) + Room(1) + Room(2) + Room(3) + Room(4))
    
    For i = 0 To Me.MSHFlexGrid1.Rows - 1
        
        Me.MSHFlexGrid1.Col = 7
        Me.MSHFlexGrid1.Row = i
        If Me.MSHFlexGrid1.Text = "售出" Then
            For j = 0 To Me.MSHFlexGrid1.Cols - 1
                Me.MSHFlexGrid1.Col = j
                Me.MSHFlexGrid1.Row = i
                Me.MSHFlexGrid1.CellBackColor = &HFF&
            Next
        End If
    Next
    
    
End Sub
Private Sub MSHFlexGrid1_RowColChange()
    'Me.MSHFlexGrid1.Col = 0
    'MsgBox Me.MSHFlexGrid1.Text

End Sub

Private Sub Picture1_Click()

End Sub

⌨️ 快捷键说明

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