📄 form5.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form5
Caption = "客房信息"
ClientHeight = 5115
ClientLeft = 60
ClientTop = 450
ClientWidth = 8445
LinkTopic = "Form5"
ScaleHeight = 5115
ScaleWidth = 8445
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command3
Caption = "删除"
Height = 495
Left = 2040
TabIndex = 12
Top = 3840
Width = 1095
End
Begin VB.CommandButton Command4
Caption = "取消"
Height = 495
Left = 4200
TabIndex = 11
Top = 3840
Width = 1095
End
Begin VB.CommandButton Command6
Caption = "返回"
Height = 495
Left = 6840
TabIndex = 10
Top = 4320
Width = 1095
End
Begin VB.CommandButton Command5
Caption = "查找房号"
Height = 495
Left = 5280
TabIndex = 9
Top = 3840
Width = 1095
End
Begin VB.CommandButton Command2
Caption = "编辑/确认"
Height = 495
Left = 3120
TabIndex = 8
Top = 3840
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "添加记录"
Height = 495
Left = 960
TabIndex = 7
Top = 3840
Width = 1095
End
Begin MSAdodcLib.Adodc Adodc1
Height = 495
Left = 1920
Top = 3000
Visible = 0 'False
Width = 3615
_ExtentX = 6376
_ExtentY = 873
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= 3
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=guan"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "guan"
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "客房信息"
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.TextBox Text3
DataField = "用房标志"
DataSource = "Adodc1"
Height = 495
Left = 4560
TabIndex = 3
Top = 2280
Width = 1695
End
Begin VB.TextBox Text2
DataField = "客房级别"
DataSource = "Adodc1"
Height = 495
Left = 4560
TabIndex = 2
Top = 1560
Width = 1695
End
Begin VB.TextBox Text1
DataField = "房号"
DataSource = "Adodc1"
Height = 495
Left = 4560
TabIndex = 1
Top = 840
Width = 1695
End
Begin VB.Label Label4
Caption = "用房标志"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1680
TabIndex = 6
Top = 2280
Width = 975
End
Begin VB.Label Label3
Caption = "客房级别"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1680
TabIndex = 5
Top = 1560
Width = 975
End
Begin VB.Label Label2
Caption = "房号"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1680
TabIndex = 4
Top = 840
Width = 615
End
Begin VB.Label Label1
Caption = "退房信息处理"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2880
TabIndex = 0
Top = 240
Width = 1935
End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Adodc1.Recordset.AddNew
Command1.Enabled = False
Command3.Enabled = False
Command2.Enabled = True
Command4.Enabled = True
End Sub
Private Sub Command2_Click()
Adodc1.Recordset.Update
Command5.Enabled = True
Command6.Enabled = True
End Sub
Private Sub Command3_Click()
x = MsgBox("确实要删除当前记录吗?", vbYesNo + vbQuestion, "确认")
If x = vbYes Then
Adodc1.Recordset.Delete
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
End If
Else
Adodc1.Refresh
End If
End Sub
Private Sub Command4_Click()
Adodc1.Refresh
Command5.Enabled = True
Command6.Enabled = True
End Sub
Private Sub Command5_Click()
Form9.Show
End Sub
Private Sub Command6_Click()
MDIForm1.Show
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -