📄 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 + -