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

StrategyAD.cpp 711B

1234567891011121314151617181920212223242526272829
  1. #include "StdAfx.h"
  2. #include "StrategyAD.h"
  3. #include "Agent.h"
  4. CStrategyAD::CStrategyAD(void)
  5. {
  6. }
  7. /*****************************************************************
  8. **【函数名称】 distributeAgent
  9. **【函数功能】 分派可用座席
  10. **【参数】 AgentGroup:已签入的座席列表
  11. **【返回值】 pAgent:如果请求座席成功,保存可用的座席工号
  12. 请求座席的操作结果
  13. ****************************************************************/
  14. QUEUE_AGENT_RESULT CStrategyAD::distributeAgent( CAgentGroup& AgentGroup, const CString& InfoEx, CAgent*& pAgent )
  15. {
  16. _setStrategyInfo(InfoEx);
  17. // 按策略查找可用座席
  18. pAgent = _locateAgent(AgentGroup);
  19. if(pAgent == NULL)
  20. return QUEUE_AGETN_FAILED_NO_SPEC;
  21. else
  22. return QUEUE_AGENT_OK;
  23. }