?? frmroomstatus.frm
字號:
VERSION 5.00
Begin VB.Form FrmRoomStatus
Caption = "更改客房狀態"
ClientHeight = 3615
ClientLeft = 60
ClientTop = 345
ClientWidth = 2655
Icon = "FrmRoomStatus.frx":0000
LinkTopic = "Form1"
ScaleHeight = 3615
ScaleWidth = 2655
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
Caption = "選擇狀態"
Height = 1815
Left = 120
TabIndex = 6
Top = 960
Width = 2415
Begin VB.OptionButton Option1
Caption = "維 修"
Height = 375
Index = 4
Left = 240
TabIndex = 11
Top = 1320
Width = 975
End
Begin VB.OptionButton Option1
Caption = "退 房"
Height = 375
Index = 3
Left = 1320
TabIndex = 10
Top = 840
Width = 975
End
Begin VB.OptionButton Option1
Caption = "入 住"
Height = 375
Index = 2
Left = 240
TabIndex = 9
Top = 840
Width = 975
End
Begin VB.OptionButton Option1
Caption = "預 定"
Height = 375
Index = 1
Left = 1320
TabIndex = 8
Top = 360
Width = 975
End
Begin VB.OptionButton Option1
Caption = "空 房"
Height = 375
Index = 0
Left = 240
TabIndex = 7
Top = 360
Width = 975
End
End
Begin VB.CommandButton Cmd_Close
Caption = "關 閉"
Height = 375
Left = 1440
TabIndex = 5
Top = 3000
Width = 975
End
Begin VB.CommandButton Cmd_Change
Caption = "更 改"
Height = 375
Left = 240
TabIndex = 4
Top = 3000
Width = 975
End
Begin VB.Label lblStatus
Height = 255
Left = 1200
TabIndex = 3
Top = 480
Width = 1335
End
Begin VB.Label Label2
Caption = "當前狀態"
Height = 255
Left = 240
TabIndex = 2
Top = 480
Width = 855
End
Begin VB.Label lblRoomNo
Height = 255
Left = 1200
TabIndex = 1
Top = 120
Width = 1215
End
Begin VB.Label Label1
Caption = "客房編號"
Height = 255
Left = 240
TabIndex = 0
Top = 120
Width = 855
End
End
Attribute VB_Name = "FrmRoomStatus"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmd_Change_Click()
'更改狀態
Dim iStatus As Integer
'如果狀態被選中,則其值為true
For i = 0 To Option1.Count - 1
If Option1(i).Value Then
iStatus = i
Exit For
End If
Next
'更改狀態值
MyRoom.Status = iStatus
MyRoom.UpdateStatus (Trim(lblRoomNo.Caption))
Unload Me
End Sub
Private Sub Cmd_Close_Click()
Unload Me
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -