?? setroomm.frm
字號:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{0ECD9B60-23AA-11D0-B351-00A0C9055D8E}#6.0#0"; "MSHFLXGD.OCX"
Begin VB.Form 客房設置FORM
BorderStyle = 1 'Fixed Single
Caption = "客房設置"
ClientHeight = 7125
ClientLeft = 45
ClientTop = 330
ClientWidth = 11325
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 7125
ScaleWidth = 11325
Begin VB.CommandButton Command4
BackColor = &H00FFFFC0&
Caption = "關閉"
Height = 300
Left = 10260
Style = 1 'Graphical
TabIndex = 5
Top = 6090
Width = 915
End
Begin VB.CommandButton Command3
Caption = "刪除"
Height = 300
Left = 10245
Style = 1 'Graphical
TabIndex = 4
Top = 2820
Width = 915
End
Begin VB.CommandButton Command2
Caption = "修改"
Height = 300
Left = 10260
Style = 1 'Graphical
TabIndex = 3
Top = 2190
Width = 915
End
Begin VB.CommandButton Command1
Caption = "增加"
Height = 300
Left = 10260
Style = 1 'Graphical
TabIndex = 2
Top = 1740
Width = 915
End
Begin VB.PictureBox Picture1
Align = 1 'Align Top
Appearance = 0 'Flat
BackColor = &H00FFFFFF&
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 975
Left = 0
ScaleHeight = 975
ScaleWidth = 11325
TabIndex = 1
Top = 0
Width = 11325
End
Begin MSHierarchicalFlexGridLib.MSHFlexGrid MSHFlexGrid1
Bindings = "setroomm.frx":0000
Height = 5550
Left = 30
TabIndex = 0
Top = 975
Width = 10020
_ExtentX = 17674
_ExtentY = 9790
_Version = 393216
FixedCols = 0
_NumberOfBands = 1
_Band(0).Cols = 2
End
Begin MSAdodcLib.Adodc Adodc1
Height = 345
Left = 45
Top = 6270
Visible = 0 'False
Width = 1935
_ExtentX = 3413
_ExtentY = 609
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Label Label7
Caption = "空 房:"
Height = 285
Left = 480
TabIndex = 11
Top = 6700
Width = 1500
End
Begin VB.Label Label8
Caption = "空 房:"
Height = 285
Left = 1980
TabIndex = 10
Top = 6700
Width = 1500
End
Begin VB.Label Label9
Caption = "空 房:"
Height = 285
Left = 3510
TabIndex = 9
Top = 6700
Width = 1500
End
Begin VB.Label Label10
Caption = "空 房:"
Height = 285
Left = 5055
TabIndex = 8
Top = 6700
Width = 1500
End
Begin VB.Label Label11
Caption = "空 房:"
Height = 285
Left = 6660
TabIndex = 7
Top = 6700
Width = 1500
End
Begin VB.Label Label12
Caption = "空 房:"
Height = 285
Left = 8355
TabIndex = 6
Top = 6700
Width = 1500
End
End
Attribute VB_Name = "客房設置FORM"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'歡迎你下載使用本代碼,本份代碼由程序太平洋提供下載學習之用
'聲明:
'1.本站所有代碼的版權歸原作者所有,如果你使用了在本站下載的源代碼
' 引起的一切糾紛(后果)與本站無關,請您尊重原作者的勞動成果!
'2.若本站在代碼上有侵權之處請您與站長聯系,站長會及時更正。
'網站:http://www.dapha.net
'論壇:http://www.5ivb.net
'Email:dapha@etang.com
'CopyRight 2001-2005 By dapha.net
'整理時間:2003-12-8 12:22:14
'星級酒店管理系統最初功能演示版,提供所有星級酒店管理中的客房管理,
'房態管理,客史管理,客人資料管理,帳務管理,報表管理,餐飲收費管理
'菜譜管理,夜審處理,數據庫備份等功能.所有功能皆可以運行,(但有一些BUG未處理)
'此代碼完全可以完成星級酒店上述管理功能.(提供者:帥)
'--------------------------------------------------------------
'代碼編寫于:2001.12 系統分析:帥 代碼編寫:帥 版權所有:帥
'--------------------------------------------------------------
'本份代碼僅提供給程序太平洋的所有朋友學習,研究之用.
'其它網站一律不得轉載,否則為侵權行為,本人保留法律追訴權力.
'這也是本人最早的VB版程序,代碼質量不好.望笑納.:)
'--------------------------------------------------------------
'提供日期:2003-05-31 提供者:帥
'--------------------------------------------------------------
'系統提從與ACCESS或SQL相接,在登錄時,選擇全局數據庫,就與SQL數據庫
'連接,字符串存放在SERVER.DAT文本文件中;選擇本地數據庫,與本地ACCESS
'數據庫相連,連接字符串存放在LOCAT.DAT文件中.(當前存放為e:\hotel2\room.mdb)
'---------------------------------------------------------------
'將ACCESS中所有表導入SQL中,并將有的表中的ID字段改為自動編碼,就可以使用.
'---------------------------------------------------------------------
'
'
Dim Room(5) As Long
Private Sub Command1_Click()
RoomForm_Type = "增加"
setroom1.Show 1
Adodc1.Refresh
Me.MSHFlexGrid1.Refresh
End Sub
Private Sub Command2_Click()
Me.MSHFlexGrid1.Col = 0
RoomNO = Me.MSHFlexGrid1.Text
RoomForm_Type = "修改"
setroom1.Show 1
Adodc1.Refresh
Me.MSHFlexGrid1.Refresh
End Sub
Private Sub Command3_Click()
Me.MSHFlexGrid1.Col = 0
RoomNO = Me.MSHFlexGrid1.Text
Adodc1.Recordset.Delete
Adodc1.Recordset.Update
Adodc1.Refresh
Me.MSHFlexGrid1.Refresh
End Sub
Private Sub Command4_Click()
Unload Me
End Sub
Private Sub Form_Load()
Dim i, j As Integer
Left = 0
Top = 0
If PIC_load Then
Me.Picture1.Picture = LoadPicture(App.Path & "\pic\pic0001.jpg")
End If
Adodc1.ConnectionString = My_PROVIDER
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from 客房"
Adodc1.Refresh
Set Me.MSHFlexGrid1.DataSource = Adodc1
Me.MSHFlexGrid1.Refresh
For i = 0 To 5
Room(i) = 0
Next
'MsgBox Me.MSHFlexGrid1.Cols & " rows:" & Me.MSHFlexGrid1.Rows
Adodc1.Recordset.MoveFirst
While Not Adodc1.Recordset.EOF
Select Case Adodc1.Recordset.Fields("當前狀態")
Case "空房"
Room(0) = Room(0) + 1
Case "臟房"
Room(1) = Room(1) + 1
Case "維修房"
Room(2) = Room(2) + 1
Case "售出"
Room(3) = Room(3) + 1
Case "預訂"
Room(4) = Room(4) + 1
Case Else
End Select
Adodc1.Recordset.MoveNext
Wend
Adodc1.Recordset.MoveFirst
Me.Label7.Caption = "空房:" & CStr(Room(0))
Me.Label8.Caption = "臟房:" & CStr(Room(1))
Me.Label9.Caption = "維修房:" & CStr(Room(2))
Me.Label10.Caption = "售出:" & CStr(Room(3))
Me.Label11.Caption = "預訂:" & CStr(Room(4))
Me.Label12.Caption = "合計:" & CStr(Room(0) + Room(1) + Room(2) + Room(3) + Room(4))
For i = 0 To Me.MSHFlexGrid1.Rows - 1
Me.MSHFlexGrid1.Col = 7
Me.MSHFlexGrid1.Row = i
If Me.MSHFlexGrid1.Text = "售出" Then
For j = 0 To Me.MSHFlexGrid1.Cols - 1
Me.MSHFlexGrid1.Col = j
Me.MSHFlexGrid1.Row = i
Me.MSHFlexGrid1.CellBackColor = &HFF&
Next
End If
Next
End Sub
Private Sub MSHFlexGrid1_RowColChange()
'Me.MSHFlexGrid1.Col = 0
'MsgBox Me.MSHFlexGrid1.Text
End Sub
Private Sub Picture1_Click()
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -