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

📄 frminquirefront.frm

📁 餐饮管理信息系统 my sql visual basic
💻 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 frmInquireFront 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "查询前台营业信息"
   ClientHeight    =   6255
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   8325
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   6255
   ScaleWidth      =   8325
   Begin VB.Frame Frame2 
      Caption         =   "查询前台营业信息"
      Height          =   3495
      Left            =   120
      TabIndex        =   10
      Top             =   240
      Width           =   8055
      Begin VB.ListBox ListYou 
         Height          =   2940
         Left            =   5520
         TabIndex        =   11
         Top             =   360
         Width           =   2415
      End
      Begin MSDataGridLib.DataGrid DataGrid1 
         Height          =   2985
         Left            =   120
         TabIndex        =   12
         Top             =   360
         Width           =   5220
         _ExtentX        =   9208
         _ExtentY        =   5265
         _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
   End
   Begin VB.Frame Frame1 
      Caption         =   "查询"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   2100
      Left            =   120
      TabIndex        =   0
      Top             =   3960
      Width           =   8055
      Begin VB.OptionButton OpA 
         Caption         =   "中餐"
         Height          =   255
         Left            =   1560
         TabIndex        =   6
         Top             =   1560
         Value           =   -1  'True
         Width           =   735
      End
      Begin VB.OptionButton OpP 
         Caption         =   "晚餐"
         Height          =   255
         Left            =   3480
         TabIndex        =   5
         Top             =   1560
         Width           =   1095
      End
      Begin VB.TextBox txtDeskNO 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   372
         Left            =   1200
         TabIndex        =   3
         Top             =   360
         Width           =   3900
      End
      Begin VB.CommandButton cmdExit 
         Caption         =   "退出查询"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   492
         Left            =   6120
         TabIndex        =   2
         Top             =   1200
         Width           =   1455
      End
      Begin VB.CommandButton cmdInquire 
         Caption         =   "查询"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   492
         Left            =   6120
         TabIndex        =   1
         Top             =   480
         Width           =   1455
      End
      Begin MSComCtl2.DTPicker DTReserve 
         Height          =   375
         Left            =   1200
         TabIndex        =   7
         Top             =   960
         Width           =   3855
         _ExtentX        =   6800
         _ExtentY        =   661
         _Version        =   393216
         Format          =   72220673
         CurrentDate     =   37903
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "时间:"
         Height          =   180
         Left            =   240
         TabIndex        =   9
         Top             =   1080
         Width           =   540
      End
      Begin VB.Label Label4 
         Alignment       =   2  'Center
         AutoSize        =   -1  'True
         Caption         =   "中晚餐:"
         Height          =   180
         Left            =   240
         TabIndex        =   8
         Top             =   1560
         Width           =   720
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "桌位号:"
         Height          =   180
         Left            =   240
         TabIndex        =   4
         Top             =   480
         Width           =   720
      End
   End
End
Attribute VB_Name = "frmInquireFront"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub cmdExit_Click()
    Unload Me
    
End Sub

Private Sub cmdInquire_Click()
    Dim txtSQL As String
    Dim MsgText As String
    Dim mrc As ADODB.Recordset
    If Trim(txtDeskNO.Text) = "" Then
        sMeg = "桌位编号不能为空"
        MsgBox sMeg, vbOKOnly + vbExclamation, "警告"
        txtDeskNO.SetFocus
        Exit Sub
    Else
        If OpA.Value = True Then
            txtSQL = "select * from 前台营业 where 桌位编号 = '" & Trim(txtDeskNO.Text) & "' and  时间 = '" & DTReserve.Value & "' and 中晚餐 <> 0"
  
        Else
            txtSQL = "select * from 前台营业 where 桌位编号 = '" & Trim(txtDeskNO.Text) & "' and  时间 = '" & DTReserve.Value & "' and 中晚餐 = 0"
 
        End If
    End If
    Set mrc = ExecuteSQL(txtSQL, MsgText)
    Set DataGrid1.DataSource = mrc
    GetMenu
End Sub





Sub GetMenu()
    Dim txtSQL As String
    Dim MsgText As String
    Dim mrc As ADODB.Recordset
    If OpA.Value = True Then
  txtSQL = "select 菜肴名称 from 菜单 where 桌位编号 = '" & Trim(txtDeskNO.Text) & "' and  时间 = '" & DTReserve.Value & "' and 中晚餐 <> 0"
  
  Else
  txtSQL = "select 菜肴名称 from 菜单 where 桌位编号 = '" & Trim(txtDeskNO.Text) & "' and  时间 = '" & DTReserve.Value & "' and 中晚餐 = 0"
 
  End If
     Set mrc = ExecuteSQL(txtSQL, MsgText)
    
 For i = 0 To mrc.RecordCount - 1
  ListYou.AddItem mrc.Fields(0)
  mrc.MoveNext
  Next
  mrc.Close
 
End Sub

⌨️ 快捷键说明

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