📄 frmleavehotel.frm
字号:
VERSION 5.00
Object = "{74848F95-A02A-4286-AF0C-A3C755E4A5B3}#1.0#0"; "actskn43.ocx"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frmLeaveHotel
Caption = "离店客单"
ClientHeight = 5025
ClientLeft = 60
ClientTop = 345
ClientWidth = 8400
LinkTopic = "Form1"
ScaleHeight = 5025
ScaleWidth = 8400
StartUpPosition = 2 '屏幕中心
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 3000
Top = 5040
Width = 1455
_ExtentX = 2566
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
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;Persist Security Info=False;User ID=sa;Initial Catalog=DBHotel;Data Source=."
OLEDBString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=DBHotel;Data Source=."
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "tbSK_Book"
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 ACTIVESKINLibCtl.Skin sknLeaveHotel
Left = 120
OleObjectBlob = "frmLeaveHotel.frx":0000
Top = 5160
End
Begin VB.Frame Frame2
Caption = "客单信息"
Height = 4095
Left = 0
TabIndex = 6
Top = 840
Width = 8415
Begin MSDataGridLib.DataGrid DGleave
Bindings = "frmLeaveHotel.frx":0234
Height = 3615
Left = 120
TabIndex = 7
Top = 240
Width = 8175
_ExtentX = 14420
_ExtentY = 6376
_Version = 393216
HeadLines = 1
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
End
Begin VB.Frame Frame1
Height = 735
Left = 0
TabIndex = 0
Top = 0
Width = 8535
Begin VB.CommandButton cmdexit
Caption = "退出"
Height = 375
Left = 7080
TabIndex = 5
Top = 240
Width = 1095
End
Begin VB.CommandButton cmdrefresh
Caption = "刷新"
Height = 375
Left = 5520
TabIndex = 4
Top = 240
Width = 1095
End
Begin VB.CommandButton cmdquery
Caption = "查询"
Height = 375
Left = 3960
TabIndex = 3
Top = 240
Width = 1095
End
Begin MSComCtl2.DTPicker DTPicker1
Height = 375
Left = 1800
TabIndex = 2
Top = 240
Width = 1815
_ExtentX = 3201
_ExtentY = 661
_Version = 393216
Format = 70844417
CurrentDate = 38481
End
Begin ACTIVESKINLibCtl.SkinLabel lblleavedate
Height = 375
Left = 360
OleObjectBlob = "frmLeaveHotel.frx":0249
TabIndex = 1
Top = 240
Width = 1215
End
End
End
Attribute VB_Name = "frmLeaveHotel"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdexit_Click()
Unload Me
End Sub
Private Sub cmdquery_Click() '按日期查询离店客户的信息
Dim txtsql As String
txtsql = "select 主客户名= cClientName,客户账号 =cAccountId,楼层数=cRoomStory,房间号=cRoomNo,性别=cSex ,证件类型=cZJ,证件号=cZJ_No ,抵达时间=dRoom_In from tbSK_Book where dRoom_Out='" & DTPicker1.Value & "'"
Set rst = ExecuteSQL(txtsql)
If rst.EOF = True Then
MsgBox "此日没有离店客人!"
Else
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select 主客户名= cClientName,客户账号 =cAccountId,楼层数=cRoomStory,房间号=cRoomNo,性别=cSex ,证件类型=cZJ,证件号=cZJ_No ,抵达时间=dRoom_In from tbSK_Book where dRoom_Out='" & DTPicker1.Value & "'"
Set DGleave.DataSource = Adodc1
Adodc1.Refresh
End If
DGleave.Caption = "离店客单信息"
End Sub
Private Sub cmdrefresh_Click()
Unload Me
frmLeaveHotel.Show
End Sub
Private Sub Form_Load()
Call changeskin(Me, sknLeaveHotel, strSkin)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -