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

📄 登录.frm

📁 一个很有意思的点菜系统前后台连接齐全~做课程设计的同学可以参考
💻 FRM
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Object = "{C1A8AF28-1257-101B-8FB0-0020AF039CA3}#1.1#0"; "MCI32.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form1 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "威海海鲜城点菜系统"
   ClientHeight    =   8010
   ClientLeft      =   2310
   ClientTop       =   1830
   ClientWidth     =   10635
   ForeColor       =   &H00000000&
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   PaletteMode     =   2  'Custom
   Picture         =   "登录.frx":0000
   ScaleHeight     =   8010
   ScaleWidth      =   10635
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   1080
      Top             =   1560
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin MSComctlLib.StatusBar StatusBar1 
      Align           =   2  'Align Bottom
      Height          =   375
      Left            =   0
      TabIndex        =   4
      Top             =   7635
      Width           =   10635
      _ExtentX        =   18759
      _ExtentY        =   661
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   3
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            AutoSize        =   1
            Object.Width           =   13573
            Picture         =   "登录.frx":11FA7
            Text            =   "欢迎光临威海海鲜城"
            TextSave        =   "欢迎光临威海海鲜城"
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   6
            TextSave        =   "03-5-23"
         EndProperty
         BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   5
            Picture         =   "登录.frx":1784B
            TextSave        =   "11:36"
         EndProperty
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin MCI.MMControl MMControl1 
      Height          =   495
      Left            =   720
      TabIndex        =   3
      Top             =   4440
      Visible         =   0   'False
      Width           =   3540
      _ExtentX        =   6244
      _ExtentY        =   873
      _Version        =   393216
      DeviceType      =   ""
      FileName        =   "D:\点菜系统\Five.mid"
   End
   Begin VB.CommandButton Command1 
      BackColor       =   &H0080C0FF&
      Caption         =   "会员登录"
      BeginProperty Font 
         Name            =   "华文新魏"
         Size            =   15
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   4440
      MaskColor       =   &H8000000D&
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   2400
      Width           =   1575
   End
   Begin VB.CommandButton Command2 
      BackColor       =   &H0080C0FF&
      Caption         =   "新顾客"
      BeginProperty Font 
         Name            =   "华文新魏"
         Size            =   15
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   4440
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   3720
      Width           =   1575
   End
   Begin VB.CommandButton Command3 
      BackColor       =   &H0080C0FF&
      Caption         =   "超级用户"
      BeginProperty Font 
         Name            =   "华文新魏"
         Size            =   15
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   4440
      Style           =   1  'Graphical
      TabIndex        =   0
      Top             =   5160
      Width           =   1575
   End
   Begin VB.Menu system 
      Caption         =   "系统"
      Begin VB.Menu managerin 
         Caption         =   "经理登陆"
      End
      Begin VB.Menu music 
         Caption         =   "静音"
      End
      Begin VB.Menu managerpassword 
         Caption         =   "修改密码"
         Enabled         =   0   'False
      End
      Begin VB.Menu adduser 
         Caption         =   "添加用户"
         Enabled         =   0   'False
      End
      Begin VB.Menu deleteuser 
         Caption         =   "删除用户"
         Enabled         =   0   'False
      End
      Begin VB.Menu margine 
         Caption         =   "————"
      End
      Begin VB.Menu exit 
         Caption         =   "退出系统"
      End
   End
   Begin VB.Menu user 
      Caption         =   "超级用户"
      Begin VB.Menu userin 
         Caption         =   "用户登陆"
      End
      Begin VB.Menu userpassword 
         Caption         =   "修改密码"
         Enabled         =   0   'False
      End
      Begin VB.Menu addmember 
         Caption         =   "添加会员"
      End
      Begin VB.Menu deletemember 
         Caption         =   "删除会员"
      End
   End
   Begin VB.Menu member 
      Caption         =   "会员"
      Begin VB.Menu memberin 
         Caption         =   "会员登陆"
      End
      Begin VB.Menu memberpassword 
         Caption         =   "修改密码"
         Enabled         =   0   'False
      End
      Begin VB.Menu memberchoice 
         Caption         =   "会员选菜"
         Enabled         =   0   'False
      End
   End
   Begin VB.Menu newuser 
      Caption         =   "新顾客"
      Begin VB.Menu chioce 
         Caption         =   "顾客选菜"
      End
      Begin VB.Menu tomember 
         Caption         =   "升级为会员"
      End
   End
   Begin VB.Menu designmenu 
      Caption         =   "菜单设计"
      Begin VB.Menu menuok 
         Caption         =   "菜单设计"
      End
      Begin VB.Menu addmenu 
         Caption         =   "新菜添加"
      End
      Begin VB.Menu modifymenu 
         Caption         =   "菜单修改"
      End
   End
   Begin VB.Menu decision 
      Caption         =   "决策支持"
      Begin VB.Menu menuclick 
         Caption         =   "击率排行"
      End
      Begin VB.Menu ybglance 
         Caption         =   "月报浏览"
      End
      Begin VB.Menu rbglance 
         Caption         =   "日报浏览"
      End
      Begin VB.Menu menudicision 
         Caption         =   "智能决策"
      End
   End
   Begin VB.Menu help 
      Caption         =   "帮助"
      Begin VB.Menu readme 
         Caption         =   "使用说明"
      End
      Begin VB.Menu about 
         Caption         =   "关于"
      End
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rbtable As Recordset
Dim dcpath As String
Dim dcdb As Database

Private Sub changepassword_Click()

End Sub

Private Sub about_Click()
frmabout.Show
End Sub

Private Sub addmember_Click()
Unload frmaddmember
frmaddmember.Show
frmaddmember.Text1.SetFocus
frmaddmember.Command3.Enabled = False
End Sub

Private Sub addmenu_Click()
frmaddmenu.Show
End Sub

Private Sub adduser_Click()
Unload frmadduser
frmadduser.Show
frmadduser.Command3.Enabled = False
End Sub

Private Sub chioce_Click()
username = "新顾客"
discount = 0
Form2.Show
End Sub

Private Sub Command1_Click()
frmLogin.Show
End Sub

Private Sub Command2_Click()
If Command2.Caption = "会员选菜" Then
  
Else
  username = Command2.Caption
End If
Form2.Show
End Sub

Private Sub Command3_Click()
superuserlogin.Show
End Sub

Private Sub d_Click()

End Sub


Private Sub Command4_Click()
frmmodifymenu.Show
End Sub

Private Sub Command5_Click()
frmglancestatement.Show
End Sub

Private Sub deletemember_Click()
Unload frmaddmember
frmaddmember.Show
frmaddmember.Text1.SetFocus
frmaddmember.Command1.Enabled = False
frmaddmember.Text2.Enabled = False
frmaddmember.Text2.BackColor = -2147483648#
frmaddmember.Text3.Enabled = False
frmaddmember.Text3.BackColor = -2147483648#
End Sub

Private Sub deleteuser_Click()
Unload frmadduser
frmadduser.Show
frmadduser.Command1.Enabled = False
frmadduser.Text2.Enabled = False
frmadduser.Text2.BackColor = -2147483648#
frmadduser.Text3.Enabled = False
frmadduser.Text3.BackColor = -2147483648#
End Sub

Private Sub exit_Click()
Unload Me
End Sub

Private Sub management_Click()

End Sub

Private Sub Form_Load()
For i = 1 To 10
  MMControl1.FileName = "D:\点菜系统\Five.mid"
  MMControl1.Command = "open"
  MMControl1.Command = "play"
Next i
End Sub

Private Sub Form_Unload(Cancel As Integer)
dcpath = "c:\点菜系统.mdb"
Set dcdb = OpenDatabase(dcpath)
Set rbtable = dcdb.OpenRecordset("日报表", dbOpenTable)

If rbtable.EOF Then
  'MsgBox "不可少"
  Exit Sub
End If
rbtable.MoveLast
If rbtable.Fields(2) = 0 Then
  rbtable.Delete
  'MsgBox "已删除"
End If
dcdb.Close

End Sub

Private Sub managerin_Click()
superuserlogin.Show
End Sub

Private Sub managerpassword_Click()
frmpassword.Show
frmpassword.Text1.SetFocus
End Sub

Private Sub memberchoice_Click()
username = username2
Form2.Show
End Sub

Private Sub memberin_Click()
frmLogin.Show
End Sub

Private Sub memberpassword_Click()
frmpassword.Show
frmpassword.Text1.SetFocus
End Sub

Private Sub menuclick_Click()
frmclick.Show
End Sub

Private Sub menudicision_Click()
frmdisicion.Show
End Sub

Private Sub menumonthclick_Click()
frmmonthclick.Show
End Sub

Private Sub menuok_Click()
form3.Show
End Sub

Private Sub modifymenu_Click()
frmmodifymenu.Show
End Sub

Private Sub music_Click()
If music.Caption = "静音" Then
  MMControl1.Command = "pause"
  music.Caption = "音乐"
Else:
  music.Caption = "静音"
  MMControl1.Command = "play"
End If
End Sub

Private Sub rbglance_Click()
frmglancestatement.Show
End Sub

Private Sub readme_Click()
CommonDialog1.HelpFile = "d:\点菜系统\点菜系统帮助.hlp"
CommonDialog1.HelpCommand = cdlHelpContents
CommonDialog1.ShowHelp

End Sub

Private Sub tomember_Click()
frmaddmember.Show
End Sub

Private Sub userin_Click()
superuserlogin.Show
End Sub

Private Sub userpassword_Click()
frmpassword.Show
frmpassword.Text1.SetFocus
End Sub

Private Sub ybglance_Click()
frmybglance.Show
End Sub

⌨️ 快捷键说明

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