📄 frmcheckout.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
Begin VB.Form frmCheckOut
BorderStyle = 3 'Fixed Dialog
Caption = "退房结算--客房管理系统"
ClientHeight = 4770
ClientLeft = 45
ClientTop = 435
ClientWidth = 4575
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4770
ScaleWidth = 4575
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin MSAdodcLib.Adodc Adodc2
Height = 330
Left = 2400
Top = 5160
Visible = 0 'False
Width = 1935
_ExtentX = 3413
_ExtentY = 582
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 = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=HotelRoom;Data Source=."
OLEDBString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=HotelRoom;Data Source=."
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select Rnum from RoomInfo where Rstates='满'"
Caption = "Adodc2"
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 MSDataListLib.DataCombo DataCombo1
Bindings = "frmCheckOut.frx":0000
Height = 330
Left = 1560
TabIndex = 7
Top = 840
Width = 1215
_ExtentX = 2143
_ExtentY = 582
_Version = 393216
Style = 2
ListField = "Rnum"
Text = ""
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 240
Top = 5160
Visible = 0 'False
Width = 2055
_ExtentX = 3625
_ExtentY = 582
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 = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=HotelRoom;Data Source=."
OLEDBString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=HotelRoom;Data Source=."
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from ViewGuestInfo"
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.CommandButton Command3
Caption = "退出"
Height = 375
Left = 2520
TabIndex = 5
Top = 4200
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "费用结算"
Enabled = 0 'False
Height = 375
Left = 840
TabIndex = 4
Top = 4200
Width = 1215
End
Begin VB.Frame Frame1
Caption = "显示信息"
Height = 2655
Left = 120
TabIndex = 3
Top = 1320
Width = 4335
Begin RichTextLib.RichTextBox RichTextBox1
Height = 2295
Left = 120
TabIndex = 6
Top = 240
Width = 4095
_ExtentX = 7223
_ExtentY = 4048
_Version = 393217
BackColor = -2147483633
Enabled = 0 'False
TextRTF = $"frmCheckOut.frx":0015
End
End
Begin VB.CommandButton Command1
Caption = "查看信息"
Height = 310
Left = 2880
TabIndex = 2
Top = 840
Width = 1095
End
Begin VB.Label Label2
Caption = "房间编号"
Height = 255
Left = 720
TabIndex = 1
Top = 960
Width = 735
End
Begin VB.Label Label1
Caption = "退 房 结 算"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 255
Left = 1560
TabIndex = 0
Top = 240
Width = 1455
End
End
Attribute VB_Name = "frmCheckOut"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If DataCombo1.Text <> "" Then
If Command1.Caption = "查看信息" Then
Adodc1.RecordSource = "select * from ViewGuestInfo where Rnum='" & DataCombo1.Text & "'and Couttime is null"
Adodc1.Refresh
RichTextBox1.Text = vbCrLf + " " + "编号:" + Trim(Adodc1.Recordset.Fields(0).Value) + " " + "姓名:" + Trim(Adodc1.Recordset.Fields(1).Value) + " " + "性别:" + Trim(Adodc1.Recordset.Fields(2).Value) + " " + "年龄:" + Trim(Adodc1.Recordset.Fields(3).Value) + vbCrLf + vbCrLf + " " + "身份证号:" + Trim(Adodc1.Recordset.Fields(4).Value) + vbCrLf + vbCrLf + " " + "入住时间:" + Trim(Adodc1.Recordset.Fields(6).Value) + vbCrLf + vbCrLf + " " + "押金:" + Trim(Adodc1.Recordset.Fields(10).Value) + " 元"
Frame1.Caption = "显示信息-" + DataCombo1.Text
DataCombo1.Enabled = False
Command1.Caption = "取消"
Command2.Enabled = True
ElseIf Command1.Caption = "取消" Then
Frame1.Caption = "显示信息"
RichTextBox1.Text = ""
DataCombo1.Enabled = True
DataCombo1.Text = ""
Command1.Caption = "查看信息"
Command2.Enabled = False
End If
Else
MsgBox "房间编号不能为空!", vbOKOnly + vbInformation, "错误信息"
DataCombo1.SetFocus
End If
End Sub
Private Sub Command2_Click()
Me.Hide
frmPrice.Show
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -