📄 frmxtgl.frm
字号:
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column02
DataField = "cFoodType"
Caption = "食品类型"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column03
DataField = "mFoodPrice"
Caption = "食品价格"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column04
DataField = "iNumber"
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
BeginProperty Column02
EndProperty
BeginProperty Column03
EndProperty
BeginProperty Column04
EndProperty
EndProperty
End
Begin MSDataGridLib.DataGrid DataGrid2
Height = 3015
Left = 0
TabIndex = 15
Top = 2400
Width = 4215
_ExtentX = 7435
_ExtentY = 5318
_Version = 393216
AllowUpdate = -1 'True
Enabled = 0 'False
HeadLines = 1
RowHeight = 15
FormatLocked = -1 'True
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
Caption = "房价情况"
ColumnCount = 3
BeginProperty Column00
DataField = "cRoomStory"
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 = "mRoomPrice"
Caption = "价格"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column02
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
BeginProperty Column02
EndProperty
EndProperty
End
Begin VB.Frame Frame2
Height = 2175
Left = 0
TabIndex = 7
Top = 240
Width = 4215
Begin VB.CommandButton Command4
Caption = "取消"
Height = 375
Left = 2760
TabIndex = 13
Top = 1200
Width = 1095
End
Begin VB.CommandButton Command3
Caption = "确定"
Height = 375
Left = 2760
TabIndex = 12
Top = 480
Width = 1095
End
Begin VB.TextBox Text1
Height = 375
Left = 1080
TabIndex = 11
Top = 1200
Width = 1455
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel4
Height = 255
Left = 480
OleObjectBlob = "frmXTGL.frx":078A
TabIndex = 10
Top = 1200
Width = 615
End
Begin VB.ComboBox Combo4
Height = 300
Left = 1080
TabIndex = 9
Top = 480
Width = 1455
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel3
Height = 255
Left = 360
OleObjectBlob = "frmXTGL.frx":07EE
TabIndex = 8
Top = 480
Width = 735
End
End
Begin VB.Frame Frame1
Height = 2895
Left = -75000
TabIndex = 1
Top = 840
Width = 6735
Begin VB.CommandButton Command2
Caption = "<"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 3240
TabIndex = 68
Top = 2160
Width = 615
End
Begin VB.CommandButton Command1
Caption = ">"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 3240
TabIndex = 67
Top = 1560
Width = 615
End
Begin VB.ListBox List1
Height = 1140
ItemData = "frmXTGL.frx":0854
Left = 960
List = "frmXTGL.frx":0856
MultiSelect = 1 'Simple
TabIndex = 24
Top = 1560
Width = 1935
End
Begin VB.ListBox List2
Height = 1140
ItemData = "frmXTGL.frx":0858
Left = 4200
List = "frmXTGL.frx":085A
MultiSelect = 1 'Simple
TabIndex = 23
Top = 1560
Width = 1815
End
Begin MSDataGridLib.DataGrid DataGrid1
Height = 30
Left = 0
TabIndex = 22
Top = 2880
Width = 6735
_ExtentX = 11880
_ExtentY = 53
_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
Begin VB.CommandButton Comok
Caption = "设置"
Height = 615
Left = 4080
TabIndex = 6
Top = 360
Width = 1215
End
Begin VB.ComboBox Combo3
Height = 300
Left = 1560
TabIndex = 5
Top = 720
Width = 1335
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel2
Height = 255
Left = 600
OleObjectBlob = "frmXTGL.frx":085C
TabIndex = 4
Top = 720
Width = 975
End
Begin VB.ComboBox Combo2
Height = 300
Left = 1560
TabIndex = 3
Top = 240
Width = 1335
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel1
Height = 255
Left = 840
OleObjectBlob = "frmXTGL.frx":08C4
TabIndex = 2
Top = 240
Width = 735
End
Begin MSComctlLib.TabStrip TabStrip2
Height = 1935
Left = 0
TabIndex = 25
Top = 960
Width = 6735
_ExtentX = 11880
_ExtentY = 3413
_Version = 393216
BeginProperty Tabs {1EFB6598-857C-11D1-B16A-00C0F0283628}
NumTabs = 1
BeginProperty Tab1 {1EFB659A-857C-11D1-B16A-00C0F0283628}
Caption = "追加房号"
ImageVarType = 2
EndProperty
EndProperty
End
End
Begin VB.Image Image1
BorderStyle = 1 'Fixed Single
Height = 1860
Left = -70320
Picture = "frmXTGL.frx":092A
Top = 360
Width = 2670
End
Begin VB.Image Image2
BorderStyle = 1 'Fixed Single
Height = 1845
Left = 4200
Picture = "frmXTGL.frx":103C
Top = 480
Width = 2670
End
Begin VB.Image Image3
BorderStyle = 1 'Fixed Single
Height = 1860
Left = -70680
Picture = "frmXTGL.frx":2175
Top = 360
Width = 2670
End
End
End
Attribute VB_Name = "frmXTGL"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
List2.AddItem List1.Text
List1.RemoveItem List1.ListIndex
If List1.ListCount = 0 Then
Command1.Enabled = False
Command2.Enabled = True
Else
Command1.Enabled = True
Command2.Enabled = True
End If
End Sub
Private Sub Command11_Click()
On Error GoTo check:
Me.Adodc4.Recordset.MovePrevious
If Me.Adodc4.Recordset.BOF Then
Me.Adodc4.Recordset.MoveNext
End If
Exit Sub
check:
MsgBox "记录集为空!"
End Sub
Private Sub Command12_Click()
On Error GoTo check:
Me.Adodc4.Recordset.MoveNext
If Me.Adodc4.Recordset.EOF Then
Me.Adodc4.Recordset.MovePrevious
End If
Exit Sub
check:
MsgBox "记录集为空!"
End Sub
Private Sub Command13_Click()
On Error GoTo check:
Dim intAnswer As Integer
Dim ADOBook, ADOBook1, adoBook2, adoBook3 As Variant
adoBook2 = Me.Adodc4.Recordset.Bookmark
Me.Adodc4.Recordset.MoveFirst
Me.Adodc4.Recordset.Bookmark = adoBook2
intAnswer = MsgBox("确认删除当前记录吗?", vbYesNo + vbQuestion, "华光宾馆管理系统")
If intAnswer = vbYes Then
With Me.Adodc4.Recordset
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -