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

📄 main_xftx.frm

📁 宾馆客房管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form main_xftx 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "宿费提醒"
   ClientHeight    =   3945
   ClientLeft      =   45
   ClientTop       =   1980
   ClientWidth     =   7620
   Icon            =   "main_xftx.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3945
   ScaleWidth      =   7620
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton Command3 
      BackColor       =   &H00C0C0C0&
      Caption         =   "退出"
      Height          =   330
      Left            =   5910
      Style           =   1  'Graphical
      TabIndex        =   6
      Top             =   3555
      Width           =   1620
   End
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   "C:\mrjd\kfgl.mdb"
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   480
      Left            =   -240
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   "djb"
      Top             =   1395
      Visible         =   0   'False
      Width           =   1335
   End
   Begin VB.Frame Frame1 
      Height          =   675
      Left            =   30
      TabIndex        =   1
      Top             =   -15
      Width           =   7500
      Begin VB.CommandButton Command2 
         Caption         =   "到时提醒"
         Height          =   300
         Left            =   4050
         TabIndex        =   5
         Top             =   240
         Width           =   1470
      End
      Begin VB.CommandButton Command1 
         Caption         =   "所有被提醒"
         Height          =   300
         Left            =   5805
         TabIndex        =   4
         Top             =   240
         Width           =   1470
      End
      Begin MSComCtl2.DTPicker DTP1 
         Height          =   315
         Left            =   1005
         TabIndex        =   3
         Top             =   240
         Width           =   2385
         _ExtentX        =   4207
         _ExtentY        =   556
         _Version        =   393216
         Format          =   30146561
         CurrentDate     =   37143
      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            =   345
         TabIndex        =   2
         Top             =   285
         Width           =   690
      End
   End
   Begin MSDBGrid.DBGrid DBGrid1 
      Bindings        =   "main_xftx.frx":000C
      Height          =   2760
      Left            =   30
      OleObjectBlob   =   "main_xftx.frx":0020
      TabIndex        =   0
      Top             =   720
      Width           =   7530
   End
End
Attribute VB_Name = "main_xftx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
 Data1.DatabaseName = App.Path & "\KFGL.MDB"     '自动识别数据库路径
 DTP1.Value = Date
End Sub
Private Sub Form_Unload(Cancel As Integer)
  main.Enabled = True
End Sub
Private Sub Command1_Click()     '所有被提醒的客人
 Data1.RecordSource = "select * from djb where 标志='1'order by 凭证号码"
 Data1.Refresh
End Sub
Private Sub Command2_Click()     '按设定的日期被提醒的客人
 Data1.RecordSource = "select * from djb where djb.提醒日期 < " + Chr(35) + Str(DTP1.Value) + Chr(35) + "or djb.提醒日期 =" + Chr(35) + Str(DTP1.Value) + Chr(35) + "and djb.标志 like " + Chr(34) + "1" + Chr(34) + "order by 凭证号码"
 Data1.Refresh
End Sub
Private Sub Command3_Click()
 main.Enabled = True
 Unload Me
End Sub

⌨️ 快捷键说明

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