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

📄 main_zscx.frm

📁 酒店客房管理系统(vb^+SQLServer2000+使用说明)
💻 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 main_zscx 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "住宿查询"
   ClientHeight    =   3765
   ClientLeft      =   45
   ClientTop       =   705
   ClientWidth     =   7950
   Icon            =   "main_zscx.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   3765
   ScaleWidth      =   7950
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox Text2 
      Height          =   300
      Left            =   5475
      TabIndex        =   6
      Text            =   "Text2"
      Top             =   4110
      Width           =   690
   End
   Begin MSHierarchicalFlexGridLib.MSHFlexGrid MSHFlexGrid1 
      Height          =   2880
      Left            =   30
      TabIndex        =   5
      Top             =   765
      Width           =   7845
      _ExtentX        =   13838
      _ExtentY        =   5080
      _Version        =   393216
      _NumberOfBands  =   1
      _Band(0).Cols   =   2
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   2520
      Top             =   3960
      Width           =   2295
      _ExtentX        =   4048
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\程序修改\宾馆客房管理系统\宾馆客房管理系统\DB_KFGL.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\程序修改\宾馆客房管理系统\宾馆客房管理系统\DB_KFGL.mdb;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from tb_djb"
      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.Frame Frame1 
      Height          =   675
      Left            =   60
      TabIndex        =   0
      Top             =   -15
      Width           =   7815
      Begin VB.TextBox Text1 
         Height          =   345
         Left            =   960
         TabIndex        =   4
         Top             =   210
         Width           =   3135
      End
      Begin VB.CommandButton Command1 
         Caption         =   "查询"
         Height          =   330
         Left            =   4470
         Style           =   1  'Graphical
         TabIndex        =   3
         Top             =   225
         Width           =   1500
      End
      Begin VB.CommandButton Command2 
         Caption         =   "退出"
         Height          =   330
         Left            =   6150
         Style           =   1  'Graphical
         TabIndex        =   2
         Top             =   225
         Width           =   1500
      End
      Begin VB.Label Label1 
         Caption         =   "姓名"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   285
         Left            =   300
         TabIndex        =   1
         Top             =   270
         Width           =   915
      End
   End
End
Attribute VB_Name = "main_zscx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
    '自动识别数据库路径
    Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\DB_KFGL.mdb;Persist Security Info=False"
    Adodc1.RecordSource = "select * from tb_djb"
    Adodc1.Refresh
    Set MSHFlexGrid1.DataSource = Adodc1
    MSHFlexGrid1.ColWidth(8) = 0
    MSHFlexGrid1.ColWidth(20) = 0
    MSHFlexGrid1.ColWidth(24) = 0
    MSHFlexGrid1.ColWidth(25) = 0
    MSHFlexGrid1.ColWidth(27) = 0
End Sub
Private Sub Form_Unload(Cancel As Integer)
    Main.Enabled = True
End Sub
Private Sub Command1_Click()     '查询住宿信息
    Adodc1.RecordSource = "select * from tb_djb where 姓名  like '%" + Text1.text + "%'"
    Adodc1.Refresh
    MSHFlexGrid1.ColWidth(8) = 0
    MSHFlexGrid1.ColWidth(20) = 0
    MSHFlexGrid1.ColWidth(24) = 0
    MSHFlexGrid1.ColWidth(25) = 0
    MSHFlexGrid1.ColWidth(27) = 0
End Sub
Private Sub Command2_Click()
    Main.Enabled = True
    Unload Me
End Sub


Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = 13 Then Command1.SetFocus  '按回车键Command1获得焦点
End Sub

⌨️ 快捷键说明

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