📄 frmdyxxcx.frm
字号:
VERSION 5.00
Begin VB.Form frmDfxxcx
Caption = "订房信息查询"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame1
Height = 735
Left = 1680
TabIndex = 7
Top = 1560
Width = 2775
Begin VB.ComboBox Combo3
Height = 300
ItemData = "frmdyxxcx.frx":0000
Left = 1920
List = "frmdyxxcx.frx":0061
TabIndex = 10
Text = "11"
Top = 240
Width = 615
End
Begin VB.ComboBox Combo2
Height = 300
ItemData = "frmdyxxcx.frx":00D8
Left = 960
List = "frmdyxxcx.frx":0100
TabIndex = 9
Text = "11"
Top = 240
Width = 615
End
Begin VB.ComboBox Combo1
Height = 300
ItemData = "frmdyxxcx.frx":012B
Left = 0
List = "frmdyxxcx.frx":0150
TabIndex = 8
Text = "2004"
Top = 240
Width = 735
End
Begin VB.Label Label3
Caption = "日"
Height = 255
Left = 2520
TabIndex = 13
Top = 240
Width = 255
End
Begin VB.Label Label2
Caption = "月"
Height = 255
Left = 1680
TabIndex = 12
Top = 240
Width = 255
End
Begin VB.Label Label1
Caption = "年"
Height = 375
Left = 720
TabIndex = 11
Top = 240
Width = 255
End
End
Begin VB.CommandButton Command2
Caption = "取 消"
Height = 375
Left = 2880
TabIndex = 6
Top = 2640
Width = 975
End
Begin VB.CommandButton Command1
Caption = "确 定"
Height = 375
Left = 1200
TabIndex = 5
Top = 2640
Width = 975
End
Begin VB.CheckBox Check3
Caption = " 入住时间:"
Height = 495
Left = 360
TabIndex = 4
Top = 1560
Width = 1335
End
Begin VB.TextBox Text2
Height = 375
Left = 1800
TabIndex = 3
Top = 1080
Width = 2415
End
Begin VB.CheckBox Check2
Caption = " 房间编号:"
Height = 495
Left = 360
TabIndex = 2
Top = 840
Width = 1335
End
Begin VB.TextBox Text1
Height = 375
Left = 1800
TabIndex = 1
Top = 360
Width = 2415
End
Begin VB.CheckBox Check1
Caption = " 顾客姓名:"
Height = 495
Left = 360
TabIndex = 0
Top = 240
Value = 1 'Checked
Width = 1335
End
End
Attribute VB_Name = "frmDfxxcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub chkItem_Click(Index As Integer)
If Index = 2 Then
cboYear(0).SetFocus
Else
txtItem(Index).SetFocus
End If
End Sub
Private Sub cmdExit_Click()
Me.Hide
End Sub
Private Sub cmdOK_Click()
Dim dBeginDate As String
Dim sQSql As String
If chkItem(0).Value = vbChecked Then
sQSql = " customname = '" & Trim(txtItem(0) & " ") & "'"
End If
If chkItem(1).Value = vbChecked Then
If Trim(sQSql & " ") = "" Then
sQSql = " roomno ='" & Trim(txtItem(1) & " ") & "'"
Else
sQSql = sQSql & " and roomno ='" & Trim(txtItem(1) & " ") & "'"
End If
End If
If chkItem(2).Value = vbChecked Then
dBeginDate = Format(CDate(cboYear(0) & "-" & cboMonth(0) & "-" & cboDay), "yyyy-mm-dd")
If Trim(sQSql & " ") = "" Then
sQSql = " indate ='" & dBeginDate & "'"
Else
sQSql = sQSql & " and indate ='" & dBeginDate & "'"
End If
End If
If Trim(sQSql) = "" Then
MsgBox "请设置查询条件!", vbOKOnly + vbExclamation, "警告"
Exit Sub
Else
If flagBedit Then
Unload frmBookin
End If
frmBookin.txtSQL = "select bookno,customname,customID,roomno,indate,discount,inmemo from bookin where ammount = '0' and " & sQSql
frmBookin.Show
End If
Me.Hide
End Sub
Private Sub lblitem_Click(Index As Integer)
chkItem(Index).Value = vbChecked
End Sub
Private Sub txtItem_GotFocus(Index As Integer)
txtItem(Index).SelStart = 0
txtItem(Index).SelLength = Len(txtItem(Index))
End Sub
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -