📄 fzdkhadd.frm
字号:
VERSION 5.00
Object = "{AAFC76DD-CA60-4286-B6D9-3F60CB53A409}#1.0#0"; "data.ocx"
Begin VB.Form Fzdkhadd
BorderStyle = 1 'Fixed Single
Caption = "增加重点客户信息"
ClientHeight = 5535
ClientLeft = 45
ClientTop = 330
ClientWidth = 10905
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 5535
ScaleWidth = 10905
Begin VB.Frame Frame2
BackColor = &H00FFC0C0&
BorderStyle = 0 'None
Height = 5535
Left = 0
TabIndex = 0
Top = 0
Width = 10935
Begin VB.TextBox Tmark
Appearance = 0 'Flat
BackColor = &H00FFFFFF&
Height = 2775
Left = 240
MultiLine = -1 'True
TabIndex = 21
Top = 2160
Width = 10575
End
Begin VB.Frame Frame5
BackColor = &H00FFC0C0&
BorderStyle = 0 'None
Height = 1695
Left = 120
TabIndex = 1
Top = 120
Width = 12735
Begin VB.TextBox Tmsg
Appearance = 0 'Flat
Height = 270
Index = 5
Left = 9120
TabIndex = 10
Top = 720
Width = 1575
End
Begin VB.TextBox Tmsg
Appearance = 0 'Flat
Height = 270
Index = 4
Left = 1080
TabIndex = 9
Top = 1200
Width = 9600
End
Begin VB.TextBox Tmsg
Appearance = 0 'Flat
Height = 270
Index = 3
Left = 1080
TabIndex = 8
Top = 720
Width = 1305
End
Begin VB.TextBox Tmsg
Appearance = 0 'Flat
Height = 270
Index = 2
Left = 6000
TabIndex = 7
Top = 255
Width = 1575
End
Begin VB.TextBox Tmsg
Appearance = 0 'Flat
Height = 270
Index = 1
Left = 3360
TabIndex = 6
Top = 250
Width = 1335
End
Begin VB.TextBox Tmsg
Appearance = 0 'Flat
Height = 270
Index = 0
Left = 1080
TabIndex = 5
Top = 240
Width = 1335
End
Begin VB.TextBox Tadd
Appearance = 0 'Flat
Enabled = 0 'False
Height = 270
Left = 7680
TabIndex = 3
Top = 240
Visible = 0 'False
Width = 255
End
Begin VB.TextBox Tmsg
Appearance = 0 'Flat
Height = 270
Index = 6
Left = 9120
TabIndex = 2
Top = 240
Width = 1575
End
Begin 保险秘书.OsenXPComboBox Ox
Height = 315
Left = 6000
TabIndex = 4
Top = 720
Width = 1575
_ExtentX = 2778
_ExtentY = 556
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin OsenXPControls2.OsenXPDTPicker Obr
Height = 315
Left = 3360
TabIndex = 11
Top = 720
Width = 1335
_ExtentX = 2355
_ExtentY = 556
Text = ""
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Value = 38576
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "职务:"
Height = 180
Index = 11
Left = 2830
TabIndex = 20
Top = 360
Width = 540
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "推荐险种:"
Height = 180
Index = 8
Left = 5115
TabIndex = 19
Top = 840
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "单位主要领导人:"
Height = 180
Index = 7
Left = 7695
TabIndex = 18
Top = 840
Width = 1440
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "单位地址:"
Height = 180
Index = 6
Left = 120
TabIndex = 17
Top = 1320
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "生日提醒:"
Height = 180
Index = 4
Left = 2475
TabIndex = 16
Top = 840
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "联系方式:"
Height = 180
Index = 3
Left = 120
TabIndex = 15
Top = 840
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "手机或电话:"
Height = 180
Index = 2
Left = 4920
TabIndex = 14
Top = 360
Width = 1080
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "单位名称:"
Height = 195
Index = 0
Left = 120
TabIndex = 13
Top = 360
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "联系人:"
Height = 195
Index = 1
Left = 8400
TabIndex = 12
Top = 345
Width = 720
End
End
Begin 保险秘书.isButton isBOk
Height = 375
Left = 8160
TabIndex = 23
Top = 5040
Width = 1215
_ExtentX = 2143
_ExtentY = 661
Icon = "Fzdkhadd.frx":0000
Style = 5
Caption = " 确 认"
IconAlign = 1
Tooltiptitle = ""
ToolTipIcon = 0
ToolTipType = 0
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin 保险秘书.isButton isButton1
Height = 375
Left = 9600
TabIndex = 24
Top = 5040
Width = 1215
_ExtentX = 2143
_ExtentY = 661
Icon = "Fzdkhadd.frx":08DA
Style = 5
Caption = " 取 消"
IconAlign = 1
Tooltiptitle = ""
ToolTipIcon = 0
ToolTipType = 0
ttForeColor = 0
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "重点客户维护信息栏:"
Height = 195
Left = 240
TabIndex = 22
Top = 1920
Width = 1800
End
End
End
Attribute VB_Name = "Fzdkhadd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Form_Load()
Me.Move (Fzdkh.ScaleWidth - Me.Width) / 2, (Fzdkh.ScaleHeight - Me.Height) / 2
Call ExplodeForm(Me, 1500)
Call showsel(Ox, "险种")
Obr.Text = Date
End Sub
Private Sub Form_Unload(Cancel As Integer)
Call ImplodeForm(Me, 1500, 800, 800)
End Sub
Private Sub isBOk_Click()
Call sqlinsert
Fzdkh.Timer1.Enabled = True
Unload Me
End Sub
Private Sub isButton1_Click()
Unload Me
End Sub
Private Sub sqlinsert()
Dim sql As String
Dim vnum As Integer
Dim vdb As Boolean
sql = "select count(name) from zpeo where name='" & Trim$(Tmsg(0).Text) & "'"
vdb = ExcSql
If vdb = True Then
vnum = conn.Execute(sql)(0)
End If
If vnum > 0 Then
MsgBox "改用户名已经存在!请更改其他名称。"
Exit Sub
End If
sql = "insert into zpeo(name,dw,zw,tel,br,ld,lx,xz,addr,mark,do_time) values('" & Tmsg(0).Text & "','" & Tmsg(6).Text & "','" & Tmsg(1).Text & "','" & Tmsg(2).Text & "'," & _
"#" & Obr.Text & "#,'" & Tmsg(5).Text & "','" & Tmsg(3).Text & "','" & Ox.Text & "','" & Tmsg(4).Text & "','" & Tmark.Text & "',#" & Now() & "#)"
Call exsql(sql)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -