资源简介
在湖南汇友科技有限公司工作时独立设计并开发的一个简单的呼叫中心管理系统的源代码,非常适合初学者学习。。。。。。

代码片段和文件信息
package call;
import java.sql.*;
import java.util.*;
import DB.*;
public class calling{
private String CphoneNo;//电话号码
private String YWID;//YWID
private String FYWID;
private String CName;
private String CPay;
private String YWName;
private String YWMemo;
private int RNo;
private ResultSet yewurs;//业务信息结果集来自yewu表
private ResultSet kehurs;//客户信息结果集来自kehu表
private ResultSet callinfors;//外呼号码结果集来自callinfo表
private DBConn conn;
//---------------------用于在话务员页面显示-------------------------------------
public calling(){//构造函数,进行初始化,呼叫过程开始
this.CphoneNo=““;
this.YWID=““;
conn = new DBConn();
}
public void setYWID(String YWID){//得到YWID(从session中得到)
this.YWID=YWID;
}
public String getYWID(){//返回YWID
return YWID;
}
public String getFYWID(){
return FYWID;
}
public synchronized void setCphoneNo() throws SQLException{//得到电话号码
String sql = “select * from callinfo where issend=‘N‘ and YWID=‘“+getYWID()+“‘ order by CphoneNo“;
callinfors = conn.executeQuery(sql);//得到电话号码信息(可优化)
if (callinfors.next()) {
CphoneNo=callinfors.getString(“CphoneNo“);
RNo=callinfors.getInt(“RNo“);
FYWID=callinfors.getString(“FYWID“);
}
sql = “update callinfo set issend=‘Y‘ where RNo=‘“+callinfors.getInt(“RNo“)+“‘“;
conn.executeUpdate(sql);//设置记录的issend为N保证其不会再被分配(以后应优化为存储过程)
}
public synchronized void setCphoneNo(String taixiIP) throws SQLException{//得到电话号码
String sql = “select * from callinfo where issend=‘N‘ and YWID=‘“+getYWID()+“‘ order by CphoneNo“;
callinfors = conn.executeQuery(sql);//得到电话号码信息(可优化)
if (callinfors.next()) {
CphoneNo=callinfors.getString(“CphoneNo“);
RNo=callinfors.getInt(“RNo“);
FYWID=callinfors.getString(“FYWID“);
sql = “update taixi set CphoneNo=‘“+CphoneNo+“‘ where taixiIP=‘“+taixiIP+“‘“;
conn.executeUpdate(sql);//设置台席对应的外呼号码
}
sql = “update callinfo set issend=‘Y‘ where RNo=‘“+callinfors.getInt(“RNo“)+“‘“;
conn.executeUpdate(sql);//设置记录的issend为N保证其不会再被分配(以后应优化为存储过程)
}
public void setkehurs() throws SQLException{//得到客户信息
//DBConn kehuconn = new DBConn();
String sql = “select CphoneNoCNameCPayYWID from kehu where CphoneNo=‘“+ getCphoneNo()+“‘ and YWID=‘“+YWID+“‘“;
kehurs = conn.executeQuery(sql);//可优化
if (kehurs.next()){
CName=kehurs.getString(“CName“);
CPay=kehurs.getString(“CPay“);
}
//kehuconn.dropConnection();
}
public int getyewuonly(String YWID) throws SQLException{//得到only信息
int jg=0;
ResultSet rs;
String sql = “select only from yewu where YWID=‘“+YWID+“‘“;
rs = conn.executeQuery(sql);
rs.next();
jg=rs.getInt(“only“);
return jg;
}
public int getwithmemo(String YWID) throws SQLException{//得到only信息
int jg=0;
ResultSet rs;
String sql = “select withmemo from yewu where YWID=‘“+YWID+“‘“;
rs = conn.executeQuery(sql);
rs.next();
jg=rs.getInt(“withmemo“);
return jg;
}
public void setyewurs() throws SQLException{//
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2403 2008-09-20 01:36 huiyou\checkuser.jsp
文件 480 2008-09-19 21:10 huiyou\content.jsp
文件 63632 2007-11-13 08:45 huiyou\editor\backup_KindEditor.js
文件 671 2007-11-13 08:45 huiyou\editor\icons\etc_01.gif
文件 687 2007-11-13 08:45 huiyou\editor\icons\etc_02.gif
文件 682 2007-11-13 08:45 huiyou\editor\icons\etc_03.gif
文件 655 2007-11-13 08:45 huiyou\editor\icons\etc_04.gif
文件 643 2007-11-13 08:45 huiyou\editor\icons\etc_05.gif
文件 660 2007-11-13 08:45 huiyou\editor\icons\etc_06.gif
文件 657 2007-11-13 08:45 huiyou\editor\icons\etc_07.gif
文件 680 2007-11-13 08:45 huiyou\editor\icons\etc_08.gif
文件 670 2007-11-13 08:45 huiyou\editor\icons\etc_09.gif
文件 657 2007-11-13 08:45 huiyou\editor\icons\etc_10.gif
文件 655 2007-11-13 08:45 huiyou\editor\icons\etc_11.gif
文件 687 2007-11-13 08:45 huiyou\editor\icons\etc_12.gif
文件 666 2007-11-13 08:45 huiyou\editor\icons\etc_13.gif
文件 657 2007-11-13 08:45 huiyou\editor\icons\etc_14.gif
文件 683 2007-11-13 08:45 huiyou\editor\icons\etc_15.gif
文件 685 2007-11-13 08:45 huiyou\editor\icons\etc_16.gif
文件 445 2007-11-13 08:45 huiyou\editor\icons\etc_17.gif
文件 453 2007-11-13 08:45 huiyou\editor\icons\etc_18.gif
文件 423 2007-11-13 08:45 huiyou\editor\icons\etc_19.gif
文件 453 2007-11-13 08:45 huiyou\editor\icons\etc_20.gif
文件 322 2007-11-13 08:45 huiyou\editor\icons\etc_21.gif
文件 473 2007-11-13 08:45 huiyou\editor\icons\etc_22.gif
文件 444 2007-11-13 08:45 huiyou\editor\icons\etc_23.gif
文件 1077 2007-11-13 08:45 huiyou\editor\icons\etc_24.gif
文件 1030 2007-11-13 08:45 huiyou\editor\icons\etc_25.gif
文件 1012 2007-11-13 08:45 huiyou\editor\icons\etc_26.gif
文件 978 2007-11-13 08:45 huiyou\editor\icons\etc_27.gif
............此处省略375个文件信息
相关资源
- bp神经网络源代码,可直接运行
- 仿知乎界面小程序源代码
- 贪吃蛇源代码.fla
- dotnet 写字板 实验 源代码 不好请要不
- 图像二维小波变换的实现源代码
- 八三编码器设计 VHDL代码 简单,包附
- linux应用层的华容道游戏源代码
- 网上拍卖系统完整源代码
- CSMA/CD等动画演示加源代码
- silicon lab公司的收音IC SI47XX全套开发工
- 合同管理系统的源代码(附数据库)
- 用VC 编写的仿QQ聊天室程序源代码
- STM32F103 串口程序(完整版)
- VPC3_DPV1源代码,Profibus
- PB做的托盘程序(最小化后在左下角显
- 透明加密源码及说明
- 排队机叫号 源代码
- 五子棋C 源代码
- CAD LISP24个源代码
- 二叉树基本操作源代码
- 推箱子及人工智能寻路C 源代码
- opengl轮廓字体源代码
- 冈萨雷斯 数字图像处理 源代码(m文
- 直流伺服电机电路原理图(内附单片
- 哈哈冒险岛登入器源代码
- midi电子琴简单设计(附源代码).ra
- PESQ C源代码
- 画图程序MFC/VC/VC CRectTracker 串行化
- 莱卡 全站仪数据格式转换程序,有源
- HEX到Bin文件源代码
评论
共有 条评论