MiddleWares_YiHe 郑州颐和医院随访系统中间件

CellTurnAgent.h 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*************************************************************************
  2. 【文件名】 CellTurnAgent.h
  3. 【功能模块和目的】 转坐席节点类头文件
  4. 【开发者及日期】 郑石诺 2015/02/09
  5. 【版本】 V1.0.0
  6. 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
  7. 【更改记录】
  8. *************************************************************************/
  9. #pragma once
  10. #include "cellbase.h"
  11. #include "CellAUTOCREATE.h"
  12. /*************************************************************************
  13. 【类名】 CCellTurnAgent
  14. 【功能】
  15. 【接口说明】 转坐席节点类
  16. 【开发者及日期】 郑石诺 2015/02/09
  17. 【版本】 V1.0.0
  18. 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
  19. 【更改记录】
  20. *************************************************************************/
  21. class CCellTurnAgent : public CCellBase
  22. {
  23. DECLARE_CELL_AUTOCREATE
  24. public:
  25. CCellTurnAgent(void);
  26. CCellTurnAgent( CCellTurnAgent & cellTurnAgent );
  27. virtual ~CCellTurnAgent(void);
  28. ////////////////////////////////////////////////////////////////////////////////
  29. //继承自CCellBase
  30. int operate(void);
  31. CCellBase * copy(void);
  32. bool fillData(IFlowDataProvider& Provider);
  33. int onOpResultReturn(CPduEntity *a_pPduEntity);
  34. LPCTSTR name(void) const { return CELL_NAME_TURN_AGENT; }
  35. int maxWaitingTime(void) const { return 4* 60; }
  36. private:
  37. int m_SuccessPos; //转移成功执行下一节点编号
  38. int m_FailPos; //转移失败执行下一节点编号
  39. int m_HangUpPos; //挂机执行下一节点编号
  40. int m_TimeoutPos; // 等待超时的下一节点编号
  41. int m_Timeout; // 最大等待时长
  42. CString m_Exten; //要转坐席的分机号码
  43. DataSet m_VarList; //要传递给坐席的变量列表
  44. //2019-09-11 颐和随访 获取外线通电话以后的座席状态使其锁定并向主叫端和被叫端播放工号和分机声音
  45. protected:
  46. bool TurnAgent;
  47. bool SetTurnAgentReturn(bool m_SetTurnAgentReturn) { TurnAgent = m_SetTurnAgentReturn; }
  48. bool GetTurnAgentReturn() { return TurnAgent; }
  49. };