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

📄 frmaddfront.frm

📁 餐饮管理信息系统 my sql visual basic
💻 FRM
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomct2.ocx"
Begin VB.Form frmAddFront 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "前台营业信息管理"
   ClientHeight    =   6750
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   7965
   ClipControls    =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   6750
   ScaleWidth      =   7965
   Begin VB.Frame Frame2 
      Caption         =   "前台基本信息"
      Height          =   2895
      Left            =   240
      TabIndex        =   9
      Top             =   120
      Width           =   7455
      Begin VB.TextBox txtComment 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   615
         Left            =   1320
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   23
         Top             =   2040
         Width           =   5985
      End
      Begin VB.TextBox txtPeople 
         Height          =   375
         Left            =   5040
         TabIndex        =   15
         Top             =   840
         Width           =   2175
      End
      Begin VB.TextBox txtDeskNO 
         Height          =   372
         Left            =   1320
         TabIndex        =   14
         Top             =   360
         Width           =   2055
      End
      Begin VB.TextBox txtDiscount 
         Height          =   372
         Left            =   1320
         TabIndex        =   13
         Text            =   "1"
         Top             =   1440
         Width           =   2055
      End
      Begin VB.OptionButton OpA 
         Caption         =   "中餐"
         Height          =   255
         Left            =   1440
         TabIndex        =   12
         Top             =   960
         Value           =   -1  'True
         Width           =   735
      End
      Begin VB.OptionButton OpP 
         Caption         =   "晚餐"
         Height          =   255
         Left            =   2520
         TabIndex        =   11
         Top             =   960
         Width           =   1095
      End
      Begin VB.TextBox txtPayment 
         Enabled         =   0   'False
         Height          =   375
         Left            =   5040
         TabIndex        =   10
         Top             =   1440
         Width           =   2175
      End
      Begin MSComCtl2.DTPicker DTReserve 
         Height          =   375
         Left            =   5040
         TabIndex        =   16
         Top             =   360
         Width           =   2175
         _ExtentX        =   3836
         _ExtentY        =   661
         _Version        =   393216
         Format          =   72220673
         CurrentDate     =   37903
      End
      Begin VB.Label Label9 
         Alignment       =   2  'Center
         AutoSize        =   -1  'True
         Caption         =   "备注:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   180
         Left            =   360
         TabIndex        =   24
         Top             =   2040
         Width           =   555
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "时间:"
         Height          =   180
         Left            =   3960
         TabIndex        =   22
         Top             =   480
         Width           =   540
      End
      Begin VB.Label Label1 
         Alignment       =   2  'Center
         AutoSize        =   -1  'True
         Caption         =   "人数:"
         Height          =   180
         Left            =   3960
         TabIndex        =   21
         Top             =   960
         Width           =   555
      End
      Begin VB.Label Label5 
         Alignment       =   2  'Center
         AutoSize        =   -1  'True
         Caption         =   "桌位号:"
         Height          =   180
         Left            =   360
         TabIndex        =   20
         Top             =   480
         Width           =   735
      End
      Begin VB.Label Label4 
         Alignment       =   2  'Center
         AutoSize        =   -1  'True
         Caption         =   "中晚餐:"
         Height          =   180
         Left            =   360
         TabIndex        =   19
         Top             =   1000
         Width           =   720
      End
      Begin VB.Label Label2 
         Alignment       =   2  'Center
         AutoSize        =   -1  'True
         Caption         =   "折扣:"
         Height          =   180
         Left            =   360
         TabIndex        =   18
         Top             =   1520
         Width           =   555
      End
      Begin VB.Label 应付款 
         AutoSize        =   -1  'True
         Caption         =   "应付款:"
         Height          =   180
         Left            =   3960
         TabIndex        =   17
         Top             =   1560
         Width           =   720
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "制订你的菜单"
      Height          =   2655
      Left            =   240
      TabIndex        =   2
      Top             =   3240
      Width           =   7455
      Begin VB.CommandButton cmdDrop 
         Caption         =   "<<"
         Height          =   375
         Left            =   3000
         TabIndex        =   8
         Top             =   1680
         Width           =   1095
      End
      Begin VB.CommandButton cmdSelect 
         Caption         =   ">>"
         Height          =   375
         Left            =   3000
         TabIndex        =   7
         Top             =   840
         Width           =   1095
      End
      Begin VB.ListBox ListYou 
         Height          =   1680
         Left            =   4560
         TabIndex        =   4
         Top             =   720
         Width           =   2415
      End
      Begin VB.ListBox ListAll 
         Height          =   1680
         Left            =   600
         TabIndex        =   3
         Top             =   720
         Width           =   2055
      End
      Begin VB.Label Label7 
         Caption         =   "你的菜单:"
         Height          =   255
         Left            =   4440
         TabIndex        =   6
         Top             =   360
         Width           =   975
      End
      Begin VB.Label Label6 
         Caption         =   "菜单目录:"
         Height          =   255
         Left            =   480
         TabIndex        =   5
         Top             =   360
         Width           =   1215
      End
   End
   Begin VB.CommandButton cancelCommand 
      Caption         =   "关闭退出"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   492
      Left            =   5040
      TabIndex        =   1
      Top             =   6120
      Width           =   1215
   End
   Begin VB.CommandButton updateCommand 
      Caption         =   "保存记录"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   492
      Left            =   1560
      TabIndex        =   0
      Top             =   6120
      Width           =   1095
   End
End
Attribute VB_Name = "frmAddFront"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cancelCommand_Click()
Unload Me
End Sub

Private Sub cmdDrop_Click()
'取消菜肴
ListYou.RemoveItem (ListYou.ListIndex)
End Sub

Private Sub cmdSelect_Click()
    Dim strtemp As String
    strtemp = Me.ListAll.List(ListAll.ListIndex)
    Me.ListYou.AddItem strtemp
End Sub

Private Sub Form_Load()
 
    Dim txtSQL As String
    Dim MsgText As String
    Dim mrc As ADODB.Recordset
    txtSQL = "select * from 菜肴信息"
    Set mrc = ExecuteSQL(txtSQL, MsgText)
    Dim i As Integer
    For i = 0 To mrc.RecordCount - 1
      ListAll.AddItem mrc.Fields(0)
      mrc.MoveNext
    Next
    mrc.Close
End Sub




Private Sub updateCommand_Click()
Dim i As Integer
Dim objFront As clsFront
Set objFront = New clsFront
If objFront.AddRec(txtDeskNO.Text, DTReserve.Value, OpA.Value, txtPeople.Text, txtDiscount.Text, txtPayment.Text, txtComment.Text) = True Then
 For i = 0 To ListYou.ListCount - 1
      objFront.AddMenu txtDeskNO.Text, DTReserve.Value, OpA.Value, ListYou.List(i)
     Next
  End If
End Sub




⌨️ 快捷键说明

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