?? frmmain.frm
字號:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form Frmmain
Caption = "歡迎使用賓館酒店管理系統(tǒng)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 = "版權(quán)所有.翻版必究"
TextSave = "版權(quán)所有.翻版必究"
EndProperty
BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Alignment = 1
AutoSize = 1
Object.Width = 6350
Text = "設(shè)計人:韓維敏 2008-5-20"
TextSave = "設(shè)計人:韓維敏 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 = "客房預(yù)定"
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 = "數(shù)據(jù)維護(hù)"
ImageIndex = 6
EndProperty
BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "用戶管理"
ImageIndex = 7
EndProperty
BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "關(guān)于"
ImageIndex = 8
EndProperty
BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "退出系統(tǒng)"
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 = "賓館酒店管理系統(tǒng)"
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 = "預(yù)定客房管理"
End
Begin VB.Menu mn_Eat
Caption = "就餐信息管理"
End
Begin VB.Menu mn_Registration
Caption = "入住登記管理"
End
Begin VB.Menu mn_Continue
Caption = "續(xù)住登記管理"
End
Begin VB.Menu mn_Return
Caption = "退房登記管理"
End
End
Begin VB.Menu mn_Cash
Caption = "收銀統(tǒng)計系統(tǒng)(&C)"
Begin VB.Menu mn_CashforRoom
Caption = "實收房款管理"
End
Begin VB.Menu mn_CashforEat
Caption = "實收餐款管理"
End
Begin VB.Menu mn_Report1
Caption = "客戶消費統(tǒng)計表"
End
Begin VB.Menu mn_Report2
Caption = "實收房款統(tǒng)計表"
End
Begin VB.Menu mn_Report3
Caption = "實收餐款統(tǒng)計表"
End
End
Begin VB.Menu mn_UManage
Caption = "用戶管理(&U)"
Begin VB.Menu mn_Users
Caption = "系統(tǒng)用戶管理"
End
Begin VB.Menu mn_ChangePwd
Caption = "修改密碼"
End
Begin VB.Menu mn_Login
Caption = "切換用戶"
End
End
Begin VB.Menu mn_Db
Caption = "數(shù)據(jù)維護(hù)(&D)"
End
Begin VB.Menu mn_Help
Caption = "幫助(&H)"
Begin VB.Menu mn_Bz
Caption = "幫助"
End
Begin VB.Menu mn_About
Caption = "關(guān)于"
End
End
Begin VB.Menu mn_Exit
Caption = "退出系統(tǒng)(&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()
'實收結(jié)款管理
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()
'普通用戶沒有些權(quán)限
If CurUser.UserType > 0 Then
MsgBox "沒有權(quán)限"
Exit Sub
End If
FrmCustMan.Show 1
End Sub
Private Sub mn_Continue_Click()
'續(xù)住管理
FrmAddMan.Show 1
End Sub
Private Sub mn_Db_Click()
If CurUser.UserType = 0 Then
'系統(tǒng)管理員可以打開用戶管理窗體
FrmData.Show 1
Else
MsgBox "沒有權(quán)限"
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 "沒有權(quán)限"
Exit Sub
End If
FrmFood.Show 1
End Sub
Private Sub mn_Login_Click()
FrmLogin.Show 1
End Sub
Private Sub mn_OrderRoom_Click()
'客房預(yù)定管理
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 "沒有權(quán)限"
Exit Sub
End If
'客戶消費統(tǒng)計
FrmStatusCustomer.Show 1
End Sub
Private Sub mn_Report3_Click()
If CurUser.UserType = 2 Then
MsgBox "沒有權(quán)限"
Exit Sub
End If
'收款統(tǒng)計
FrmEatPay.Show 1
End Sub
Private Sub mn_Report2_Click()
If CurUser.UserType = 2 Then
MsgBox "沒有權(quán)限"
Exit Sub
End If
'收款統(tǒng)計
FrmStatusPay.Show 1
End Sub
Private Sub mn_Return_Click()
'退房管理
FrmLeaveMan.Show 1
End Sub
Private Sub mn_Room_Click()
'普通用戶沒有些權(quán)限
If CurUser.UserType > 0 Then
MsgBox "沒有權(quán)限"
Exit Sub
End If
'客房管理
FrmRoomMan.Show 1
End Sub
Private Sub mn_RoomType_Click()
'普通用戶沒有些權(quán)限
If CurUser.UserType > 0 Then
MsgBox "沒有權(quán)限"
Exit Sub
End If
FrmRoomTypeMan.Show 1
End Sub
Private Sub mn_Users_Click()
If CurUser.UserType = 0 Then
'系統(tǒng)管理員可以打開用戶管理窗體
FrmUserMan.Show 1
Else
MsgBox "沒有權(quán)限"
Exit Sub
End If
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Index
Case 1
FrmOrderMan.Show 1 '調(diào)入客房預(yù)定
Case 2
FrmEat.Show 1 '調(diào)入點菜管理
Case 3
FrmRegMan.Show 1 '調(diào)入入住管理
Case 4
FrmLeaveMan.Show 1 '調(diào)入退房登記
Case 5
FrmPayFFoodEdit.Show 1 '調(diào)入餐飲收費
Case 6
If CurUser.UserType > 0 Then
MsgBox "沒有權(quán)限"
Exit Sub
End If
FrmData.Show 1 '調(diào)入數(shù)據(jù)維護(hù)
Case 7
If CurUser.UserType > 0 Then
MsgBox "沒有權(quán)限"
Exit Sub
End If
FrmUserMan.Show 1 '調(diào)入用戶管理
Case 8
FrmAbout.Show 1 '調(diào)入關(guān)于
Case 9
FrmMainEdit.Show 1 '調(diào)入退出系統(tǒng)
Case 10
End
End Select
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -