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

📄 frmmdi.frm

📁 系统功能 基本功能(客房信息
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.MDIForm frmMDI 
   BackColor       =   &H8000000C&
   Caption         =   "酒店收费管理信息系统"
   ClientHeight    =   8790
   ClientLeft      =   165
   ClientTop       =   555
   ClientWidth     =   12165
   Icon            =   "frmMDI.frx":0000
   LinkTopic       =   "MDIForm1"
   LockControls    =   -1  'True
   Picture         =   "frmMDI.frx":000C
   StartUpPosition =   2  '屏幕中心
   Begin MSAdodcLib.Adodc adoTemp 
      Align           =   1  'Align Top
      Height          =   360
      Left            =   0
      Top             =   1440
      Visible         =   0   'False
      Width           =   12165
      _ExtentX        =   21458
      _ExtentY        =   635
      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         =   "adoTemp"
      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 MSAdodcLib.Adodc adoQuery 
      Align           =   1  'Align Top
      Height          =   360
      Left            =   0
      Top             =   1080
      Visible         =   0   'False
      Width           =   12165
      _ExtentX        =   21458
      _ExtentY        =   635
      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         =   "adoQuery"
      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 MSAdodcLib.Adodc adoCancel 
      Align           =   1  'Align Top
      Height          =   360
      Left            =   0
      Top             =   720
      Visible         =   0   'False
      Width           =   12165
      _ExtentX        =   21458
      _ExtentY        =   635
      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         =   "adoCancel"
      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 MSAdodcLib.Adodc adoGuest 
      Align           =   1  'Align Top
      Height          =   360
      Left            =   0
      Top             =   360
      Visible         =   0   'False
      Width           =   12165
      _ExtentX        =   21458
      _ExtentY        =   635
      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         =   "adoGuest"
      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 MSAdodcLib.Adodc adoRoom 
      Align           =   1  'Align Top
      Height          =   360
      Left            =   0
      Top             =   0
      Visible         =   0   'False
      Width           =   12165
      _ExtentX        =   21458
      _ExtentY        =   635
      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         =   "adoRoom"
      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 MSComctlLib.ImageList ImageList1 
      Left            =   1560
      Top             =   2400
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   16
      ImageHeight     =   15
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   6
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMDI.frx":675D6
            Key             =   "IMG1"
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMDI.frx":67B18
            Key             =   "IMG2"
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMDI.frx":67C2A
            Key             =   "IMG3"
         EndProperty
         BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMDI.frx":67DC4
            Key             =   "IMG4"
         EndProperty
         BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMDI.frx":68306
            Key             =   "IMG5"
         EndProperty
         BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMDI.frx":68418
            Key             =   "IMG6"
         EndProperty
      EndProperty
   End
   Begin VB.Menu mnuSystem 
      Caption         =   "系统功能(&S)"
      Begin VB.Menu mnuExit 
         Caption         =   "退出系统(&X)"
      End
   End
   Begin VB.Menu mnuInfo 
      Caption         =   "基本信息管理(&I)"
      Begin VB.Menu mnuRoomInfo 
         Caption         =   "客房信息(&R)"
      End
      Begin VB.Menu mnuGuest 
         Caption         =   "入住情况(&G)"
      End
      Begin VB.Menu mnuCancel 
         Caption         =   "退房记录(&C)"
      End
   End
   Begin VB.Menu mnuQuerySelect 
      Caption         =   "查询(&Q)"
   End
   Begin VB.Menu mnureport 
      Caption         =   "报表输出(&R)"
      Begin VB.Menu mnuReportRoom 
         Caption         =   "房间情况表(&R)"
      End
   End
   Begin VB.Menu mnuWindow 
      Caption         =   "窗口(&W)"
      WindowList      =   -1  'True
      Begin VB.Menu mnuHor 
         Caption         =   "水平平铺(&H)"
      End
      Begin VB.Menu mnuVer 
         Caption         =   "垂直平铺(&V)"
      End
      Begin VB.Menu mnuCascade 
         Caption         =   "层叠(&C)"
      End
      Begin VB.Menu mnuIcon 
         Caption         =   "排列图标(&I)"
      End
   End
   Begin VB.Menu mnuHelp 
      Caption         =   "关于(&H)"
      Begin VB.Menu mnuAbout 
         Caption         =   "关于...(&A)"
      End
   End
End
Attribute VB_Name = "frmMDI"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub MDIForm_Load()
    App.Title = "酒店收费管理信息系统"
    OpenTable adoRoom, "Room"
    OpenTable adoGuest, "Guest" '打开表
    OpenTable adoCancel, "Cancel"
End Sub

Private Sub mnuAbout_Click()
    frmAbout.Show vbModal
End Sub


Private Sub mnuCancel_Click()
    frmCancelInfo.Show
End Sub
Private Sub mnuCascade_Click()
    frmMDI.Arrange vbCascade
End Sub

Private Sub mnuGuest_Click()
    frmGuestInfo.Show
End Sub
Private Sub mnuQuerySelect_Click()
    frmQuerySelect.Show
End Sub


Private Sub mnuRoomInfo_Click()
    frmRoomInfo.Show
End Sub

'Private Sub mnuRoomTypeInfo_Click()
'    frmRoomTypeInfo.Show
'End Sub

Private Sub mnuExit_Click()
    Unload Me
End Sub

Private Sub mnuHor_Click()
    frmMDI.Arrange vbTileHorizontal
End Sub

Private Sub mnuIcon_Click()
    frmMDI.Arrange vbArrangeIcons
End Sub

'Private Sub mnuQueryRoomInfo_Click()
'    frmQuery.Caption = "客房信息"
'    frmQuery.Show
'End Sub
Private Sub mnuReportRoom_Click()
    '先查询出结果
    OpenTable frmMDI.adoQuery, "select * from Room order by RoomNo,RoomRate"
    
    With drpRoomRequired
        Set .DataSource = frmMDI.adoQuery '实施报表数据源绑定
        '设置属性
        .Caption = "房间基本情况表"
        '绑定显示字段
        .Sections("Section1").Controls("txtRoomNo").DataField = "RoomNo"
        .Sections("Section1").Controls("txtRoomGrade").DataField = "RoomGrade"
        .Sections("Section1").Controls("txtRoomGrade").DataFormat.Type = 5
        .Sections("Section1").Controls("txtRoomGrade").DataFormat.TrueValue = "标准间"
        .Sections("Section1").Controls("txtRoomGrade").DataFormat.FalseValue = "豪华间"
        .Sections("Section1").Controls("txtRoomGrade").DataFormat.NullValue = "未知"
        .Sections("Section1").Controls("txtRoomType").DataField = "RoomType"
        .Sections("Section1").Controls("txtRoomType").DataFormat.Type = 5
        .Sections("Section1").Controls("txtRoomType").DataFormat.TrueValue = "单人间"
        .Sections("Section1").Controls("txtRoomType").DataFormat.FalseValue = "双人间"
        .Sections("Section1").Controls("txtRoomType").DataFormat.NullValue = "未知"
        .Sections("Section1").Controls("txtRoomRate").DataField = "RoomRate"
        .Sections("Section1").Controls("txtRoomStatus").DataField = "RoomStatus"
        .Sections("Section1").Controls("txtRoomStatus").DataFormat.Type = 5
        .Sections("Section1").Controls("txtRoomStatus").DataFormat.TrueValue = "在住"
        .Sections("Section1").Controls("txtRoomStatus").DataFormat.FalseValue = "空房"
        .Sections("Section1").Controls("txtRoomStatus").DataFormat.NullValue = "未知"
        '显示报表预览
        .Show
    End With
End Sub

Private Sub mnuVer_Click()
    frmMDI.Arrange vbTileVertical
End Sub

⌨️ 快捷键说明

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