📄 slryxxdj_chuangti.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form slryxxdj_chuangti
Caption = "售楼人员信息登记"
ClientHeight = 7830
ClientLeft = 60
ClientTop = 450
ClientWidth = 7935
LinkTopic = "Form1"
Picture = "slryxxdj_chuangti.frx":0000
ScaleHeight = 7830
ScaleWidth = 7935
StartUpPosition = 3 '窗口缺省
Begin VB.ComboBox Combo1
DataField = "性别"
DataSource = "Adodc1"
Height = 300
Left = 1800
TabIndex = 25
Top = 1560
Width = 1095
End
Begin VB.TextBox Text8
DataField = "电子邮件"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 23
Top = 4560
Width = 3255
End
Begin VB.TextBox Text7
DataField = "手机号"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 22
Top = 3960
Width = 3255
End
Begin VB.TextBox Text6
DataField = "联系电话"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 21
Top = 3360
Width = 3255
End
Begin VB.TextBox Text5
DataField = "身份证号"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 20
Top = 2760
Width = 3255
End
Begin VB.TextBox Text4
DataField = "出生日期"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 19
Top = 2160
Width = 1815
End
Begin VB.TextBox Text2
DataField = "姓名"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 18
Top = 960
Width = 1815
End
Begin VB.TextBox Text1
DataField = "售楼员编号"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 17
Top = 360
Width = 1815
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 4080
Top = 960
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 = "售楼人员信息表"
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 Command9
BackColor = &H00FFFFFF&
Caption = "取消"
Height = 375
Left = 5640
Style = 1 'Graphical
TabIndex = 16
Top = 2280
Width = 1095
End
Begin VB.CommandButton Command8
BackColor = &H00FFFFFF&
Caption = "确定/修改"
Height = 375
Left = 5640
Style = 1 'Graphical
TabIndex = 15
Top = 1560
Width = 1095
End
Begin VB.CommandButton Command7
BackColor = &H00FFFFFF&
Caption = "删除"
Height = 375
Left = 5640
Style = 1 'Graphical
TabIndex = 14
Top = 960
Width = 1095
End
Begin VB.CommandButton Command6
BackColor = &H00FFFFFF&
Caption = "新增"
Height = 375
Left = 5640
Style = 1 'Graphical
TabIndex = 13
Top = 360
Width = 1095
End
Begin VB.CommandButton Command5
BackColor = &H00FFFFFF&
Caption = "返回"
Height = 375
Left = 5640
Style = 1 'Graphical
TabIndex = 12
Top = 5160
Width = 1095
End
Begin VB.CommandButton Command4
BackColor = &H00FFFFFF&
Cancel = -1 'True
Caption = "末记录"
Height = 375
Left = 4320
Style = 1 'Graphical
TabIndex = 11
Top = 5160
Width = 1095
End
Begin VB.CommandButton Command3
BackColor = &H00FFFFFF&
Caption = "后一个"
Height = 375
Left = 3000
Style = 1 'Graphical
TabIndex = 10
Top = 5160
Width = 1095
End
Begin VB.CommandButton Command2
BackColor = &H00FFFFFF&
Caption = "前一个"
Height = 375
Left = 1800
Style = 1 'Graphical
TabIndex = 9
Top = 5160
Width = 1095
End
Begin VB.CommandButton Command1
BackColor = &H00FFFFFF&
Caption = "首记录"
Height = 375
Left = 600
Style = 1 'Graphical
TabIndex = 8
Top = 5160
Width = 1095
End
Begin VB.Label Label9
AutoSize = -1 'True
BackStyle = 0 'Transparent
Height = 180
Left = 5760
TabIndex = 24
Top = 3240
Width = 90
End
Begin VB.Label Label8
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 = &H00FFFF80&
Height = 180
Left = 600
TabIndex = 7
Top = 4680
Width = 780
End
Begin VB.Label Label7
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 = &H00FFFF80&
Height = 180
Left = 600
TabIndex = 6
Top = 4080
Width = 585
End
Begin VB.Label Label6
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 = &H00FFFF80&
Height = 180
Left = 600
TabIndex = 5
Top = 3480
Width = 780
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 = &H00FFFF80&
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 = &H00FFFF80&
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 = &H00FFFF80&
Height = 180
Left = 600
TabIndex = 2
Top = 1680
Width = 390
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 = &H00FFFF80&
Height = 180
Left = 600
TabIndex = 1
Top = 1080
Width = 390
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 = &H00FFFF80&
Height = 180
Left = 600
TabIndex = 0
Top = 480
Width = 975
End
End
Attribute VB_Name = "slryxxdj_chuangti"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Combo1_Change()
End Sub
Private Sub Command1_Click()
Adodc1.Recordset.MoveFirst
Command1.Enabled = False
Command2.Enabled = False
Command3.Enabled = True
Command4.Enabled = True
Label9.Caption = "记录:" & Adodc1.Recordset.AbsolutePosition & "/" & Adodc1.Recordset.RecordCount
End Sub
Private Sub Command2_Click()
Adodc1.Recordset.MovePrevious
Command3.Enabled = True
Command4.Enabled = True
If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
Command1.Enabled = False
Command2.Enabled = False
End If
Label9.Caption = "记录:" & Adodc1.Recordset.AbsolutePosition & "/" & Adodc1.Recordset.RecordCount
End Sub
Private Sub Command3_Click()
Adodc1.Recordset.MoveNext
Command1.Enabled = True
Command2.Enabled = True
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
Command3.Enabled = False
Command4.Enabled = False
End If
Label9.Caption = "记录:" & Adodc1.Recordset.AbsolutePosition & "/" & Adodc1.Recordset.RecordCount
End Sub
Private Sub Command4_Click()
Adodc1.Recordset.MoveLast
Command1.Enabled = True
Command2.Enabled = True
Command3.Enabled = False
Command4.Enabled = False
Label9.Caption = "记录:" & Adodc1.Recordset.AbsolutePosition & "/" & Adodc1.Recordset.RecordCount
End Sub
Private Sub Command5_Click()
zhuchuangti.Show
Unload Me
End Sub
Private Sub Command6_Click()
Adodc1.Recordset.AddNew
Command5.Enabled = False
Command6.Enabled = False
Command7.Enabled = True
Command8.Enabled = True
End Sub
Private Sub Command7_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 Command8_Click()
Adodc1.Recordset.Update
Command5.Enabled = True
Command6.Enabled = True
End Sub
Private Sub Command9_Click()
Adodc1.Refresh
Command5.Enabled = True
Command6.Enabled = True
End Sub
Private Sub Form_Load()
Combo1.AddItem "男"
Combo1.AddItem "女"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -