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

📄 frmmain.frm

📁 一个小型管理系统.~!!不同的用户拥有不同的权限
💻 FRM
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form Frmmain 
   Caption         =   "欢迎使用宾馆酒店管理系统V1.0!"
   ClientHeight    =   9585
   ClientLeft      =   165
   ClientTop       =   255
   ClientWidth     =   10440
   LinkTopic       =   "Form1"
   ScaleHeight     =   9585
   ScaleWidth      =   10440
   StartUpPosition =   2  '屏幕中心
   WindowState     =   2  'Maximized
   Begin VB.Timer Timer1 
      Interval        =   10000
      Left            =   1080
      Top             =   8760
   End
   Begin MSComctlLib.StatusBar StatusBar1 
      Align           =   2  'Align Bottom
      Height          =   465
      Left            =   0
      TabIndex        =   1
      Top             =   9120
      Width           =   10440
      _ExtentX        =   18415
      _ExtentY        =   820
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   4
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   6
            AutoSize        =   2
            Enabled         =   0   'False
            TextSave        =   "2008-5-26"
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   5
            TextSave        =   "10:21"
         EndProperty
         BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Alignment       =   1
            AutoSize        =   1
            Object.Width           =   6350
            Text            =   "版权所有.翻版必究"
            TextSave        =   "版权所有.翻版必究"
         EndProperty
         BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Alignment       =   1
            AutoSize        =   1
            Object.Width           =   6350
            Text            =   "设计人:韩维敏 2008-5-20"
            TextSave        =   "设计人:韩维敏 2008-5-20"
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.Toolbar Toolbar1 
      Align           =   3  'Align Left
      Height          =   9120
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   1110
      _ExtentX        =   1958
      _ExtentY        =   16087
      ButtonWidth     =   1455
      ButtonHeight    =   1773
      Appearance      =   1
      ImageList       =   "ImageList1"
      DisabledImageList=   "ImageList1"
      HotImageList    =   "ImageList1"
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   9
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "客房预定"
            ImageIndex      =   2
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "就餐管理"
            ImageIndex      =   11
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "入住管理"
            ImageIndex      =   3
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "退房登记"
            ImageIndex      =   4
         EndProperty
         BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "餐饮收费"
            ImageIndex      =   5
         EndProperty
         BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "数据维护"
            ImageIndex      =   6
         EndProperty
         BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "用户管理"
            ImageIndex      =   7
         EndProperty
         BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "关于"
            ImageIndex      =   8
         EndProperty
         BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "退出系统"
            ImageIndex      =   9
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   1080
      Top             =   0
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   48
      ImageHeight     =   48
      MaskColor       =   12632256
      UseMaskColor    =   0   'False
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   12
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Frmmain.frx":0000
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Frmmain.frx":196D9
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Frmmain.frx":1FA2F
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Frmmain.frx":A906A
            Key             =   ""
         EndProperty
         BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Frmmain.frx":F99AE
            Key             =   ""
         EndProperty
         BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Frmmain.frx":1554E6
            Key             =   ""
         EndProperty
         BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Frmmain.frx":1A5EA5
            Key             =   ""
         EndProperty
         BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Frmmain.frx":1FE50E
            Key             =   ""
         EndProperty
         BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Frmmain.frx":267BC4
            Key             =   ""
         EndProperty
         BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Frmmain.frx":2C89DA
            Key             =   ""
         EndProperty
         BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Frmmain.frx":32B347
            Key             =   ""
         EndProperty
         BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "Frmmain.frx":3C9448
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "宾馆酒店管理系统"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   48
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   1335
      Left            =   3840
      TabIndex        =   2
      Top             =   4200
      Width           =   7935
   End
   Begin VB.Image Image1 
      Height          =   11520
      Left            =   -120
      Picture         =   "Frmmain.frx":3CDFB9
      Top             =   -720
      Width           =   15360
   End
   Begin VB.Menu mn_Base 
      Caption         =   "基本信息管理(&B)"
      Begin VB.Menu mn_Customer 
         Caption         =   "客户信息管理"
      End
      Begin VB.Menu mn_RoomType 
         Caption         =   "客房类型管理"
      End
      Begin VB.Menu mn_Room 
         Caption         =   "客房信息管理"
      End
      Begin VB.Menu mn_Food 
         Caption         =   "食品信息管理"
      End
   End
   Begin VB.Menu mn_Front 
      Caption         =   "前台接待管理(&F)"
      Begin VB.Menu mn_OrderRoom 
         Caption         =   "预定客房管理"
      End
      Begin VB.Menu mn_Eat 
         Caption         =   "就餐信息管理"
      End
      Begin VB.Menu mn_Registration 
         Caption         =   "入住登记管理"
      End
      Begin VB.Menu mn_Continue 
         Caption         =   "续住登记管理"
      End
      Begin VB.Menu mn_Return 
         Caption         =   "退房登记管理"
      End
   End
   Begin VB.Menu mn_Cash 
      Caption         =   "收银统计系统(&C)"
      Begin VB.Menu mn_CashforRoom 
         Caption         =   "实收房款管理"
      End
      Begin VB.Menu mn_CashforEat 
         Caption         =   "实收餐款管理"
      End
      Begin VB.Menu mn_Report1 
         Caption         =   "客户消费统计表"
      End
      Begin VB.Menu mn_Report2 
         Caption         =   "实收房款统计表"
      End
      Begin VB.Menu mn_Report3 
         Caption         =   "实收餐款统计表"
      End
   End
   Begin VB.Menu mn_UManage 
      Caption         =   "用户管理(&U)"
      Begin VB.Menu mn_Users 
         Caption         =   "系统用户管理"
      End
      Begin VB.Menu mn_ChangePwd 
         Caption         =   "修改密码"
      End
      Begin VB.Menu mn_Login 
         Caption         =   "切换用户"
      End
   End
   Begin VB.Menu mn_Db 
      Caption         =   "数据维护(&D)"
   End
   Begin VB.Menu mn_Help 
      Caption         =   "帮助(&H)"
      Begin VB.Menu mn_Bz 
         Caption         =   "帮助"
      End
      Begin VB.Menu mn_About 
         Caption         =   "关于"
      End
   End
   Begin VB.Menu mn_Exit 
      Caption         =   "退出系统(&E)"
   End
End
Attribute VB_Name = "Frmmain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
  FrmLogin.Show 1
End Sub

Private Sub mn_CashforFood_Click()
 '餐费管理
 FrmPayFFoodMan.Show 1
End Sub


Private Sub mn_About_Click()
FrmAbout.Show 1
End Sub


Private Sub mn_Bz_Click()
  FrmHint.Show 1
End Sub

Private Sub mn_CashforEat_Click()
FrmPayFFoodEdit.Show 1
End Sub

Private Sub mn_CashforRoom_Click()
 '实收结款管理
  FrmPayFRoomMan.Show 1
End Sub

Private Sub mn_ChangePwd_Click()
  FrmUserPwdEdit.txtUserName = Trim(CurUser.UserName)   '用户名
  FrmUserPwdEdit.txtUserName.Enabled = False            '不允许修改用户名
  FrmUserPwdEdit.Show 1
End Sub

Private Sub mn_Customer_Click()
  '普通用户没有些权限
  If CurUser.UserType > 0 Then
    MsgBox "没有权限"
    Exit Sub
  End If
  
FrmCustMan.Show 1
End Sub


Private Sub mn_Continue_Click()
 '续住管理
 FrmAddMan.Show 1
End Sub


Private Sub mn_Db_Click()
  If CurUser.UserType = 0 Then
    '系统管理员可以打开用户管理窗体
    FrmData.Show 1
  Else
    MsgBox "没有权限"
    Exit Sub
  End If
End Sub

Private Sub mn_Eat_Click()
FrmEat.Show 1
End Sub

Private Sub mn_Exit_Click()
    FrmMainEdit.Show 1
    
End Sub


Private Sub mn_Food_Click()
  If CurUser.UserType > 0 Then
    MsgBox "没有权限"
    Exit Sub
  End If

    FrmFood.Show 1
    
End Sub

Private Sub mn_Login_Click()
  FrmLogin.Show 1
End Sub

Private Sub mn_OrderRoom_Click()
  '客房预定管理
  FrmOrderMan.Show 1
End Sub


Private Sub mn_Print_Click()
FrmPrint.Show 1
End Sub

Private Sub mn_Registration_Click()
  '入住管理
  FrmRegMan.Show 1
End Sub

Private Sub mn_Report1_Click()
  If CurUser.UserType = 2 Then
    MsgBox "没有权限"
    Exit Sub
  End If
  '客户消费统计
  FrmStatusCustomer.Show 1
End Sub

Private Sub mn_Report3_Click()
  If CurUser.UserType = 2 Then
    MsgBox "没有权限"
    Exit Sub
  End If
  '收款统计
FrmEatPay.Show 1
End Sub


Private Sub mn_Report2_Click()
  If CurUser.UserType = 2 Then
    MsgBox "没有权限"
    Exit Sub
  End If
  '收款统计
  FrmStatusPay.Show 1

End Sub

Private Sub mn_Return_Click()
  '退房管理
  FrmLeaveMan.Show 1
End Sub

Private Sub mn_Room_Click()
  '普通用户没有些权限
  If CurUser.UserType > 0 Then
    MsgBox "没有权限"
    Exit Sub
  End If
  '客房管理
  FrmRoomMan.Show 1
End Sub

Private Sub mn_RoomType_Click()
  '普通用户没有些权限
  If CurUser.UserType > 0 Then
    MsgBox "没有权限"
    Exit Sub
  End If
  
  FrmRoomTypeMan.Show 1
End Sub

Private Sub mn_Users_Click()
  If CurUser.UserType = 0 Then
    '系统管理员可以打开用户管理窗体
    FrmUserMan.Show 1
  Else
    MsgBox "没有权限"
    Exit Sub
  End If
End Sub

Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Index
    Case 1
    FrmOrderMan.Show 1   '调入客房预定
    Case 2
    FrmEat.Show 1    '调入点菜管理
    Case 3
    FrmRegMan.Show 1    '调入入住管理
    Case 4
    FrmLeaveMan.Show 1    '调入退房登记
    Case 5
    FrmPayFFoodEdit.Show 1 '调入餐饮收费
    Case 6
      If CurUser.UserType > 0 Then
    MsgBox "没有权限"
    Exit Sub
    End If
    FrmData.Show 1    '调入数据维护
    Case 7
      If CurUser.UserType > 0 Then
    MsgBox "没有权限"
    Exit Sub
    End If
    FrmUserMan.Show 1    '调入用户管理
    Case 8
    FrmAbout.Show 1   '调入关于
    Case 9
    FrmMainEdit.Show 1    '调入退出系统
    Case 10
    End
    End Select
End Sub

⌨️ 快捷键说明

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