📄 tuantiruzhu.frm
字号:
VERSION 5.00
Begin VB.Form frmGroupBook1
Caption = "团体入住"
ClientHeight = 6540
ClientLeft = 60
ClientTop = 345
ClientWidth = 9300
LinkTopic = "Form1"
ScaleHeight = 6540
ScaleWidth = 9300
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox txtNO
Height = 285
Left = 1920
TabIndex = 30
Top = 6000
Width = 1695
End
Begin VB.CommandButton Command3
Caption = "返 回"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 6240
TabIndex = 29
Top = 6000
Width = 1215
End
Begin VB.CommandButton cmdsave
Caption = "保 存 "
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4440
TabIndex = 28
Top = 6000
Width = 1335
End
Begin VB.Frame Frame2
Caption = "客房信息"
Height = 5535
Left = 0
TabIndex = 14
Top = 120
Width = 4695
Begin VB.OptionButton Option1
Caption = "Option2"
Height = 255
Index = 4
Left = 120
TabIndex = 38
Top = 2280
Width = 255
End
Begin VB.OptionButton Option1
Caption = "Option2"
Height = 255
Index = 3
Left = 120
TabIndex = 37
Top = 1800
Width = 255
End
Begin VB.OptionButton Option1
Caption = "Option2"
Height = 375
Index = 2
Left = 120
TabIndex = 36
Top = 1320
Width = 255
End
Begin VB.OptionButton Option1
Caption = "Option1"
Height = 255
Index = 1
Left = 120
TabIndex = 35
Top = 840
Width = 255
End
Begin VB.CommandButton Command1
Caption = "客房信息"
Height = 375
Left = 120
TabIndex = 27
Top = 3000
Width = 1215
End
Begin VB.PictureBox Picture1
Height = 3375
Left = 3720
Picture = "tuantiruzhu.frx":0000
ScaleHeight = 3315
ScaleWidth = 675
TabIndex = 26
Top = 360
Width = 735
End
Begin VB.TextBox Text5
Height = 1215
Left = 1560
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 25
Top = 4200
Width = 2655
End
Begin VB.TextBox Text4
Height = 975
Left = 1800
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 23
Top = 2880
Width = 1935
End
Begin VB.TextBox restrooms
Height = 270
Left = 1920
TabIndex = 22
Top = 360
Width = 855
End
Begin VB.ComboBox cboItem
Height = 300
Index = 3
Left = 1800
TabIndex = 20
Top = 2280
Width = 1695
End
Begin VB.ComboBox cboItem
Height = 300
Index = 2
Left = 1800
TabIndex = 19
Top = 1800
Width = 1695
End
Begin VB.ComboBox cboItem
Height = 300
Index = 1
Left = 1800
TabIndex = 18
Top = 1320
Width = 1695
End
Begin VB.ComboBox cboItem
Height = 300
Index = 0
Left = 1800
TabIndex = 17
Top = 840
Width = 1695
End
Begin VB.Label Label14
Caption = "客房单价"
Height = 255
Left = 480
TabIndex = 34
Top = 2280
Width = 855
End
Begin VB.Label Label13
Caption = "客房位置"
Height = 255
Left = 480
TabIndex = 33
Top = 1800
Width = 975
End
Begin VB.Label Label11
Caption = "客房种类"
Height = 255
Left = 480
TabIndex = 32
Top = 1320
Width = 855
End
Begin VB.Label Label1
Caption = "客房编号"
Height = 255
Left = 480
TabIndex = 31
Top = 840
Width = 975
End
Begin VB.Label Label12
Caption = "客房备注"
Height = 255
Left = 240
TabIndex = 24
Top = 4320
Width = 855
End
Begin VB.Label Label10
Caption = "客房数量"
Height = 255
Left = 240
TabIndex = 21
Top = 480
Width = 975
End
End
Begin VB.Frame Frame1
Caption = "团体信息"
Height = 5535
Left = 4800
TabIndex = 0
Top = 120
Width = 4455
Begin VB.TextBox Text1
Height = 270
Index = 6
Left = 1440
TabIndex = 16
Top = 3240
Width = 1335
End
Begin VB.TextBox Text2
Height = 1695
Left = 1320
TabIndex = 13
Top = 3720
Width = 2655
End
Begin VB.TextBox Text1
Height = 270
Index = 5
Left = 1440
TabIndex = 10
Top = 2760
Width = 1095
End
Begin VB.TextBox Text1
Height = 270
Index = 4
Left = 1440
TabIndex = 8
Top = 2280
Width = 1695
End
Begin VB.TextBox Text1
Height = 270
Index = 3
Left = 1440
TabIndex = 6
Top = 1800
Width = 2535
End
Begin VB.TextBox Text1
Height = 270
Index = 2
Left = 1440
TabIndex = 4
Top = 1320
Width = 1335
End
Begin VB.TextBox Text1
Height = 270
Index = 1
Left = 1440
TabIndex = 2
Top = 840
Width = 1335
End
Begin VB.Label Label9
Caption = "预收款"
Height = 255
Left = 240
TabIndex = 15
Top = 3240
Width = 855
End
Begin VB.Label Label8
Caption = "备注信息:"
Height = 255
Left = 240
TabIndex = 12
Top = 3720
Width = 855
End
Begin VB.Label Label7
Caption = "%"
Height = 255
Left = 2760
TabIndex = 11
Top = 2760
Width = 255
End
Begin VB.Label Label6
Caption = "折扣:"
Height = 255
Left = 240
TabIndex = 9
Top = 2760
Width = 615
End
Begin VB.Label Label5
Caption = "入住日期:"
Height = 255
Left = 120
TabIndex = 7
Top = 2280
Width = 855
End
Begin VB.Label Label4
Caption = "负责人身份证号:"
Height = 255
Left = 120
TabIndex = 5
Top = 1800
Width = 1455
End
Begin VB.Label Label3
Caption = "负责人姓名:"
Height = 255
Left = 120
TabIndex = 3
Top = 1320
Width = 1095
End
Begin VB.Label Label2
Caption = "团体人数:"
Height = 255
Left = 120
TabIndex = 1
Top = 840
Width = 975
End
End
End
Attribute VB_Name = "frmGroupBook1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim mblChange As Boolean
Dim mrc As ADODB.Recordset
Public txtSQL As String
Private Sub command2_click()
End Sub
Private Sub cboItem_Click(Index As Integer)
Dim mrc As ADODB.Recordset
Dim intCount As Integer
Dim msgtext As String
Select Case Index
Case 0
If Option1(1).Value Then
txtSQL = "select * from rooms where roomNO='" & cboItem(0).Text & "'and putup<>'y'"
Set mrc = ExecuteSQL(txtSQL, msgtext)
If Not mrc.EOF Then
For intCount = 1 To 3
cboItem(intCount).Clear
cboItem(intCount).AddItem mrc.Fields(intCount)
cboItem(intCount).ListIndex = 0
Next intCount
End If
mrc.Close
End If
Case 1
If Option1(2).Value Then
txtSQL = "select * from rooms where roomtype='" & cboItem(1).Text & "'and putup<>'y'"
Set mrc = ExecuteSQL(txtSQL, msgtext)
If Not mrc.EOF Then
cboItem(0).Clear
Do While Not mrc.EOF
cboItem(0).AddItem Trim(mrc.Fields(0))
mrc.MoveNext
Loop
End If
restrooms = mrc.RecordCount
mrc.Close
End If
Case 2
If Option1(3).Value Then
txtSQL = "select * from rooms where roomposition='" & cboItem(2).Text & "'and putup<>'y'"
Set mrc = ExecuteSQL(txtSQL, msgtext)
If Not mrc.EOF Then
cboItem(0).Clear
Do While Not mrc.EOF
cboItem(0).AddItem Trim(mrc.Fields(0))
mrc.MoveNext
Loop
End If
restrooms = mrc.RecordCount
mrc.Close
'
End If
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -