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

📄 main_xftx.frm

📁 宾馆客房管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.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 MSDataGridLib.DataGrid DataGrid1 
      Height          =   2655
      Left            =   120
      TabIndex        =   6
      Top             =   840
      Width           =   7455
      _ExtentX        =   13150
      _ExtentY        =   4683
      _Version        =   393216
      HeadLines       =   1
      RowHeight       =   15
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ColumnCount     =   2
      BeginProperty Column00 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin VB.CommandButton Command3 
      BackColor       =   &H00C0C0C0&
      Caption         =   "退出"
      Height          =   330
      Left            =   5910
      Style           =   1  'Graphical
      TabIndex        =   5
      Top             =   3555
      Width           =   1620
   End
   Begin VB.Frame Frame1 
      Height          =   675
      Left            =   30
      TabIndex        =   0
      Top             =   -15
      Width           =   7500
      Begin VB.CommandButton Command2 
         Caption         =   "到时提醒"
         Height          =   300
         Left            =   4050
         TabIndex        =   4
         Top             =   240
         Width           =   1470
      End
      Begin VB.CommandButton Command1 
         Caption         =   "所有被提醒"
         Height          =   300
         Left            =   5805
         TabIndex        =   3
         Top             =   240
         Width           =   1470
      End
      Begin MSComCtl2.DTPicker DTP1 
         Height          =   315
         Left            =   1005
         TabIndex        =   2
         Top             =   240
         Width           =   2385
         _ExtentX        =   4207
         _ExtentY        =   556
         _Version        =   393216
         Format          =   23789569
         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        =   1
         Top             =   285
         Width           =   690
      End
   End
End
Attribute VB_Name = "main_xftx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim DBcnn As New ADODB.Connection
Dim DBrs As New ADODB.Recordset
Dim sqlstr As String
Private Sub Form_Load()
 If DBcnn.State = 0 Then
    Dim connectstr As String
    connectstr = "Provider=Microsoft.jet.OLEDB.4.0;Data Source=" & _
               App.Path & "\KFGL.mdb;Persist Security Info=False"
    DBcnn.CursorLocation = adUseClient
    DBcnn.Open connectstr
 End If

sqlstr = "select * from djb where 标志='1' order by 凭证号码"
 If DBrs.State = 1 Then
    DBrs.Close
 End If
 DBrs.Open sqlstr, DBcnn, adOpenStatic, adLockBatchOptimistic
 Set DataGrid1.DataSource = DBrs
 DTP1.Value = Date
End Sub
Private Sub Form_Unload(Cancel As Integer)
  main.Enabled = True
End Sub
Private Sub Command1_Click()     '所有被提醒的客人
 sqlstr = "标志='1'"
 DBrs.Filter = sqlstr
End Sub
Private Sub Command2_Click()     '按设定的日期被提醒的客人
 sqlstr = "提醒日期 <= '" & Format(DTP1.Value, "yyyy-MM-dd") & _
          "' and 标志 like '1'"
 DBrs.Filter = sqlstr
End Sub
Private Sub Command3_Click()
 main.Enabled = True
 Unload Me
End Sub

⌨️ 快捷键说明

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