| 1234567891011121314151617181920212223242526272829 |
- #include "StdAfx.h"
- #include "StrategyAD.h"
- #include "Agent.h"
- CStrategyAD::CStrategyAD(void)
- {
- }
- /*****************************************************************
- **【函数名称】 distributeAgent
- **【函数功能】 分派可用座席
- **【参数】 AgentGroup:已签入的座席列表
- **【返回值】 pAgent:如果请求座席成功,保存可用的座席工号
- 请求座席的操作结果
- ****************************************************************/
- QUEUE_AGENT_RESULT CStrategyAD::distributeAgent( CAgentGroup& AgentGroup, const CString& InfoEx, CAgent*& pAgent )
- {
- _setStrategyInfo(InfoEx);
- // 按策略查找可用座席
- pAgent = _locateAgent(AgentGroup);
- if(pAgent == NULL)
- return QUEUE_AGETN_FAILED_NO_SPEC;
- else
- return QUEUE_AGENT_OK;
- }
|