⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frm客户呼叫中心.frm

📁 1. 观察计算机显示系统构成
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frm客户呼叫中心 
   Caption         =   "客户呼叫中心"
   ClientHeight    =   3300
   ClientLeft      =   60
   ClientTop       =   405
   ClientWidth     =   4920
   LinkTopic       =   "Form1"
   ScaleHeight     =   3300
   ScaleWidth      =   4920
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command1 
      Caption         =   "开始拨号"
      Height          =   375
      Left            =   2640
      TabIndex        =   15
      Top             =   2880
      Width           =   1095
   End
   Begin VB.CommandButton Command2 
      Caption         =   "退出"
      Height          =   375
      Left            =   3720
      TabIndex        =   14
      Top             =   2880
      Width           =   1095
   End
   Begin VB.Frame Frame2 
      Caption         =   "客户信息"
      ForeColor       =   &H00C000C0&
      Height          =   2140
      Left            =   0
      TabIndex        =   3
      Top             =   720
      Width           =   4815
      Begin VB.TextBox Text1 
         DataField       =   "客户全称"
         DataSource      =   "Adodc1"
         Height          =   300
         Left            =   1320
         Locked          =   -1  'True
         TabIndex        =   8
         Top             =   240
         Width           =   3375
      End
      Begin VB.TextBox Text2 
         DataField       =   "地址"
         DataSource      =   "Adodc1"
         Height          =   300
         Left            =   1320
         Locked          =   -1  'True
         TabIndex        =   7
         Top             =   600
         Width           =   3375
      End
      Begin VB.TextBox Text3 
         DataField       =   "联系人"
         DataSource      =   "Adodc1"
         Height          =   300
         Left            =   1320
         Locked          =   -1  'True
         TabIndex        =   6
         Top             =   960
         Width           =   3375
      End
      Begin VB.TextBox Text4 
         DataField       =   "开户银行"
         DataSource      =   "Adodc1"
         Height          =   300
         Left            =   1320
         Locked          =   -1  'True
         TabIndex        =   5
         Top             =   1320
         Width           =   3375
      End
      Begin VB.TextBox Text5 
         DataField       =   "银行账号"
         DataSource      =   "Adodc1"
         Height          =   300
         Left            =   1320
         Locked          =   -1  'True
         TabIndex        =   4
         Top             =   1680
         Width           =   3375
      End
      Begin VB.Label Label2 
         Caption         =   "客户名称:"
         Height          =   255
         Left            =   240
         TabIndex        =   13
         Top             =   360
         Width           =   975
      End
      Begin VB.Label Label3 
         Caption         =   "客户地址:"
         Height          =   255
         Left            =   240
         TabIndex        =   12
         Top             =   720
         Width           =   975
      End
      Begin VB.Label Label4 
         Caption         =   "联系 人:"
         Height          =   255
         Left            =   240
         TabIndex        =   11
         Top             =   1080
         Width           =   855
      End
      Begin VB.Label Label5 
         Caption         =   "开户银行:"
         Height          =   255
         Left            =   240
         TabIndex        =   10
         Top             =   1440
         Width           =   975
      End
      Begin VB.Label Label6 
         Caption         =   "银行账号:"
         Height          =   255
         Left            =   240
         TabIndex        =   9
         Top             =   1800
         Width           =   975
      End
   End
   Begin VB.Frame Frame1 
      Height          =   615
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   4815
      Begin VB.ComboBox Combo1 
         Height          =   300
         Left            =   2760
         TabIndex        =   1
         Top             =   240
         Width           =   1935
      End
      Begin VB.Label Label1 
         Caption         =   "请输入或选择客户的电话号码:"
         Height          =   195
         Left            =   120
         TabIndex        =   2
         Top             =   300
         Width           =   2535
      End
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   120
      Top             =   4080
      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=   2
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "FILE NAME=D:\桌面\新建文件夹\客户信息表.dsn"
      OLEDBString     =   ""
      OLEDBFile       =   "D:\桌面\新建文件夹\客户信息表.dsn"
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from 客户信息表"
      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
End
Attribute VB_Name = "frm客户呼叫中心"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Combo1_Click()
 On Error Resume Next
  Adodc1.RecordSource = "select * from 客户管理表 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()
 On Error Resume Next
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()
 On Error Resume Next
  frm主窗体.StatusBar1.Panels(1) = Me.Caption
 ' Data1.DatabaseName = App.Path & "\db2.mdb"
  Me.Left = (Screen.Width - Me.Width) / 2
  Me.Top = (Screen.Height - Me.Height) / 2
 ' Data1.DatabaseName = App.Path & "\db2.mdb"
'  Data1.RecordSource = "客户信息表"
  Adodc1.RecordSource = "select * from 客户信息表"
  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主窗体.StatusBar1.Panels(1) = "杨扬工作室 作者:小杨"
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -