📄 slryxxdj_chuangti.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form 户型信息编辑
Caption = "户型信息编辑"
ClientHeight = 4515
ClientLeft = 60
ClientTop = 450
ClientWidth = 7065
LinkTopic = "Form1"
Picture = "slryxxdj_chuangti.frx":0000
ScaleHeight = 4515
ScaleWidth = 7065
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command10
BackColor = &H00FFFFFF&
Caption = "末记录"
Height = 375
Left = 5640
MaskColor = &H00FFFFFF&
Style = 1 'Graphical
TabIndex = 20
Top = 2400
Width = 1095
End
Begin VB.CommandButton Command9
BackColor = &H00FFFFFF&
Caption = "后一个"
Height = 375
Left = 5640
MaskColor = &H00FFFFFF&
Style = 1 'Graphical
TabIndex = 19
Top = 1800
Width = 1095
End
Begin VB.CommandButton Command8
BackColor = &H00FFFFFF&
Caption = "前一个"
Height = 375
Left = 5640
MaskColor = &H00FFFFFF&
Style = 1 'Graphical
TabIndex = 18
Top = 1200
Width = 1095
End
Begin VB.CommandButton Command7
BackColor = &H00FFFFFF&
Caption = "首记录"
Height = 375
Left = 5640
MaskColor = &H00FFFFFF&
Style = 1 'Graphical
TabIndex = 17
Top = 600
Width = 1095
End
Begin VB.CommandButton Command6
BackColor = &H00FFFFFF&
Caption = "返回"
Height = 375
Left = 5640
MaskColor = &H00400000&
Style = 1 'Graphical
TabIndex = 16
Top = 3000
Width = 1095
End
Begin VB.TextBox Text6
DataField = "户型简介"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 14
Top = 2880
Width = 1815
End
Begin VB.TextBox Text5
DataField = "套内面积"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 13
Top = 2280
Width = 1815
End
Begin VB.TextBox Text4
DataField = "建筑面积"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 12
Top = 1680
Width = 1815
End
Begin VB.TextBox Text2
DataField = "户型结构"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 11
Top = 960
Width = 1815
End
Begin VB.TextBox Text1
DataField = "户型编号"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 10
Top = 360
Width = 1815
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 3960
Top = 1680
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 661
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=售楼管理系统"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "售楼管理系统"
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "huxing"
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.CommandButton Command5
BackColor = &H00FFFFFF&
Caption = "取消"
Height = 375
Left = 5640
Style = 1 'Graphical
TabIndex = 9
Top = 3600
Width = 1095
End
Begin VB.CommandButton Command4
BackColor = &H00FFFFFF&
Cancel = -1 'True
Caption = "确定"
Height = 375
Left = 4320
Style = 1 'Graphical
TabIndex = 8
Top = 3600
Width = 1095
End
Begin VB.CommandButton Command3
BackColor = &H00FFFFFF&
Caption = "修改"
Height = 375
Left = 3000
Style = 1 'Graphical
TabIndex = 7
Top = 3600
Width = 1095
End
Begin VB.CommandButton Command2
BackColor = &H00FFFFFF&
Caption = "删除"
Height = 375
Left = 1680
Style = 1 'Graphical
TabIndex = 6
Top = 3600
Width = 1095
End
Begin VB.CommandButton Command1
BackColor = &H00FFFFFF&
Caption = "新增"
Height = 375
Left = 360
Style = 1 'Graphical
TabIndex = 5
Top = 3600
Width = 1095
End
Begin VB.Label Label6
AutoSize = -1 'True
BackStyle = 0 'Transparent
Height = 180
Left = 4320
TabIndex = 21
Top = 2880
Width = 330
End
Begin VB.Label Label9
AutoSize = -1 'True
BackStyle = 0 'Transparent
Height = 180
Left = 5760
TabIndex = 15
Top = 3240
Width = 90
End
Begin VB.Label Label5
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "户型简介"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00400000&
Height = 180
Left = 600
TabIndex = 4
Top = 2880
Width = 780
End
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "套内面积"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00400000&
Height = 180
Left = 600
TabIndex = 3
Top = 2280
Width = 780
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "建筑面积"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00400000&
Height = 180
Left = 600
TabIndex = 2
Top = 1680
Width = 780
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "户型结构"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00400000&
Height = 180
Left = 600
TabIndex = 1
Top = 1080
Width = 780
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "户型编号"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00400000&
Height = 180
Left = 600
TabIndex = 0
Top = 480
Width = 780
End
End
Attribute VB_Name = "户型信息编辑"
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
Command6.Enabled = False
Command2.Enabled = True
Command3.Enabled = True
Command4.Enabled = True
End Sub
Private Sub Command10_Click()
Adodc1.Recordset.MoveLast
Command7.Enabled = True
Command8.Enabled = True
Command9.Enabled = False
Command10.Enabled = False
Label6.Caption = "记录:" & Adodc1.Recordset.AbsolutePosition & "/" & Adodc1.Recordset.RecordCount
End Sub
Private Sub Command2_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 Command3_Click()
Adodc1.Recordset.Update
Command1.Enabled = True
Command6.Enabled = True
End Sub
Private Sub Command4_Click()
Adodc1.Recordset.Update
Command1.Enabled = True
Command6.Enabled = True
End Sub
Private Sub Command5_Click()
Adodc1.Refresh
Command1.Enabled = True
Command6.Enabled = True
End Sub
Private Sub Command6_Click()
售楼信息管理系统.Show
Unload Me
End Sub
Private Sub Command7_Click()
Adodc1.Recordset.MoveFirst
Command7.Enabled = False
Command8.Enabled = False
Command9.Enabled = True
Command10.Enabled = True
Label6.Caption = "记录:" & Adodc1.Recordset.AbsolutePosition & "/" & Adodc1.Recordset.RecordCount
End Sub
Private Sub Command8_Click()
Adodc1.Recordset.MovePrevious
Command9.Enabled = True
Command10.Enabled = True
If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
Command7.Enabled = False
Command8.Enabled = False
End If
Label6.Caption = "记录:" & Adodc1.Recordset.AbsolutePosition & "/" & Adodc1.Recordset.RecordCount
End Sub
Private Sub Command9_Click()
Adodc1.Recordset.MoveNext
Command7.Enabled = True
Command8.Enabled = True
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
Command9.Enabled = False
Command10.Enabled = False
End If
Label6.Caption = "记录:" & Adodc1.Recordset.AbsolutePosition & "/" & Adodc1.Recordset.RecordCount
End Sub
Private Sub Label4_Click()
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -