升龙物业 老版本 ocx IPO, 加密狗 转值班电话

AgentOffice.h 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*************************************************************************
  2. 【文件名】 AgentOffice.h
  3. 【功能模块和目的】 座席管理类头文件
  4. 【开发者及日期】 郑石诺 2015/01/21
  5. 【版本】 V1.0.0
  6. 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
  7. 【更改记录】
  8. *************************************************************************/
  9. #pragma once
  10. #include "IMsgObserver.h"
  11. class CAgent;
  12. class CStrategyAD;
  13. /*************************************************************************
  14. 【类名】 CAgentOffice
  15. 【功能】
  16. 【接口说明】 座席管理类
  17. 【开发者及日期】 郑石诺 2015/01/21
  18. 【版本】 V1.0.0
  19. 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
  20. 【更改记录】
  21. *************************************************************************/
  22. class CAgentOffice
  23. {
  24. public:
  25. CAgentOffice(void);
  26. ~CAgentOffice(void);
  27. // 逻辑处理相关
  28. void close(void); // 释放资源
  29. void clearAgent(void); // 清理所有座席
  30. BOOL insertAgent(UINT a_AgentID, UINT a_ExtID, LPCTSTR a_GroupID, UINT a_AgentType, UINT a_TimePostProcessing, INNER_STATE a_ExtStatus); // 添加一个座席
  31. BOOL isAgentExisted(UINT a_AgentId); // 指定工号的座席是否存在
  32. BOOL isAgentExisted(UINT a_AgentId, const CString& a_AgentIp); // 指定工号及IP的座席是否存在
  33. BOOL removeAgent(UINT a_AgentID, UINT a_HostAgent); // 删除一个座席
  34. UINT getAgentAssoExten(UINT a_AgentID); // 查找座席对应的分机号
  35. UINT getAgentType(UINT a_AgentID ); // 查找座席对应类型
  36. UINT getAgentState(UINT a_AgentID); // 查找指定座席的当前状态
  37. BOOL isAgentRepose(UINT a_AgentID); // 坐席是否是置忙状态
  38. BOOL lockAgent(UINT a_AgentId); // 临时对座席进行锁定
  39. BOOL setAgentState4Calling(UINT a_AgentId); // 为外呼设置座席状态
  40. // 状态变化事件响应
  41. void onExtenStateUpdated(UINT a_AgentID, CPduEntity* a_pCmd); // 关联分机状态变化的对应处理
  42. BOOL setAgentState(UINT a_AgentID, AGENT_STATE a_AgentStatus); // 设置座席的逻辑状态
  43. // 分配座席
  44. BOOL isNoAgent(void); // 是否无座席签入
  45. CAgent* getAgentById(UINT AgentId); // 根据工号查找座席对象
  46. CAgent* getAgentByIp(UINT AgentId, const CString& AgentIp); // 根据工号及IP查找座席对象
  47. CAgent* getAgentByExt(UINT AgentId, UINT ExtenId); // 根据工号及分机号查找座席对象
  48. BOOL getAgentInfo(Agent2Show& Info);
  49. UINT getAgentCount(void) const { return m_AgentMap.GetCount(); }
  50. // 获取指定状态的座席列表
  51. void getStateSpecAgentList(AGENT_LIST_SPEC_STATE SpecState, CString& AgentList);
  52. private:
  53. CCriticalSection m_Cs4AgentMap;
  54. CMap<UINT, UINT, CAgent*, CAgent*> m_AgentMap; // 座席索引表
  55. };