📄 frm_wlbh.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frm_wlbh
Caption = "客户呼叫中心"
ClientHeight = 3390
ClientLeft = 60
ClientTop = 345
ClientWidth = 5025
LinkTopic = "Form1"
ScaleHeight = 3390
ScaleWidth = 5025
StartUpPosition = 3 '窗口缺省
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 1800
Top = 3600
Width = 2535
_ExtentX = 4471
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=khgl.mdb"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=khgl.mdb"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from kh"
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.Frame Frame2
Caption = "客户信息"
ForeColor = &H00C000C0&
Height = 2140
Left = 120
TabIndex = 4
Top = 720
Width = 4815
Begin VB.TextBox Text5
DataField = "银行账号"
DataSource = "Adodc1"
Height = 300
Left = 1320
Locked = -1 'True
TabIndex = 14
Top = 1680
Width = 3375
End
Begin VB.TextBox Text4
DataField = "开户银行"
DataSource = "Adodc1"
Height = 300
Left = 1320
Locked = -1 'True
TabIndex = 13
Top = 1320
Width = 3375
End
Begin VB.TextBox Text3
DataField = "联系人"
DataSource = "Adodc1"
Height = 300
Left = 1320
Locked = -1 'True
TabIndex = 12
Top = 960
Width = 3375
End
Begin VB.TextBox Text2
DataField = "地址"
DataSource = "Adodc1"
Height = 300
Left = 1320
Locked = -1 'True
TabIndex = 11
Top = 600
Width = 3375
End
Begin VB.TextBox Text1
DataField = "客户全称"
DataSource = "Adodc1"
Height = 300
Left = 1320
Locked = -1 'True
TabIndex = 10
Top = 240
Width = 3375
End
Begin VB.Label Label6
Caption = "银行账号:"
Height = 255
Left = 240
TabIndex = 9
Top = 1800
Width = 975
End
Begin VB.Label Label5
Caption = "开户银行:"
Height = 255
Left = 240
TabIndex = 8
Top = 1440
Width = 975
End
Begin VB.Label Label4
Caption = "联系人:"
Height = 375
Left = 240
TabIndex = 7
Top = 1080
Width = 975
End
Begin VB.Label Label3
Caption = "客户地址:"
Height = 375
Left = 240
TabIndex = 6
Top = 720
Width = 975
End
Begin VB.Label Label2
Caption = "客户名称:"
Height = 255
Left = 240
TabIndex = 5
Top = 360
Width = 975
End
End
Begin VB.CommandButton Command2
Caption = "退出"
Height = 375
Left = 3840
TabIndex = 3
Top = 3000
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "开始拨号"
Height = 375
Left = 2640
TabIndex = 2
Top = 3000
Width = 1095
End
Begin VB.Frame Frame1
Height = 615
Left = 120
TabIndex = 0
Top = 0
Width = 4815
Begin VB.ComboBox Combo1
Height = 300
Left = 2760
TabIndex = 15
Top = 240
Width = 1935
End
Begin VB.Label Label1
Caption = "请输入或选择客户的电话号码:"
Height = 195
Left = 120
TabIndex = 1
Top = 300
Width = 2535
End
End
End
Attribute VB_Name = "frm_wlbh"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Combo1_Click()
Adodc1.RecordSource = "select * from kh where 电话='" + Combo1.Text + "'"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
Adodc1.Refresh
Else
MsgBox "没有符合条件的客户信息", , "信息提示"
End If
End Sub
Private Sub Combo1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Call Combo1_Click
Else
End If
End Sub
Private Sub Command1_Click()
If Text1.Text = "" Then
MsgBox "请您输入电话号码!", vbQuestion, "提示信息"
Text1.SetFocus
Else
MSComm1.CommPort = 1 '设置通信端口号
MSComm1.Settings = "4800,N,8,1" '设置波特率、奇偶校验位、数据位和停止位参数
MSComm1.PortOpen = True
MSComm1.Output = "ATDT" & Text1.Text & vbCr
MsgBox "请听电话!", vbpuestion, "提示信息"
MSComm1.PortOpen = False
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
frm_main.StatusBar1.Panels(1) = Me.Caption
' Data1.DatabaseName = App.Path & "\khgl.mdb"
Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2
' Data1.DatabaseName = App.Path & "\khgl.mdb"
' Data1.RecordSource = "kh"
Adodc1.RecordSource = "select * from kh"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
Adodc1.Recordset.MoveFirst
Do While Adodc1.Recordset.EOF = False
Combo1.AddItem (Adodc1.Recordset.Fields("电话"))
Adodc1.Recordset.MoveNext
Loop
Else
End If
End Sub
Private Sub Form_Unload(Cancel As Integer)
frm_main.StatusBar1.Panels(1) = "长春市明日科技有限责任公司"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -