Cisco Cisco Computer Telephony Integration Option 8.5 开发者指南

下载
页码 640
 
Chapter 4      Building Your Application
Building Supervisor Applications
4-100
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
Note
The Skill Group column lists the field from the Arguments object as 
CTIOS_NUMSKILLGROUPS.  This field tells the developer how many skill 
groups the agent belongs to.  To obtain information about each of the agent’s skill 
groups the developer should construct the following loop to get information about 
each of the agent’s skill groups (code taken from the sample source file 
CtiOsDataGrid\AgentSelectGridHelper.cs).
// Check to see if the event carries an array of skillgroups
// (NewAgentTeamMember)
//
int numGroups ;
if ( args.GetValueInt(Enum_CtiOs.CTIOS_NUMSKILLGROUPS, out numGroups) 
)
{
    CtiOsDataGrid.Trace(
        Logger.TRACE_MASK_METHOD_AVG_LOGIC,
        methodName,
        "Found skillgroup numbers") ;
    m_skillGroupNumbers.Clear() ;
    for ( int j = 1 ; j <= numGroups ; j++ )
    {
        CtiOsDataGrid.Trace(
            Logger.TRACE_MASK_METHOD_AVG_LOGIC,
            methodName,
            string.Format("Looking for skillgroup at position {0}", 
j)) ;
        string unknownStr = string.Format(
            AgentSelectGridHelper.STRING_UNKNOWN_SG_FORMAT, j) ;
        // Keys for individual skillgroups are formatted as 
SkillGroup[{index}]
        //
        string sgKey = string.Format(
            AgentSelectGridHelper.STRING_SKILLGROUP_FORMAT, j) ;
        // Each element of the array is an argument containing
        // skillgroup information.
        //
        Arguments sgInfo ;
        if ( !args.GetValueArray(sgKey, out sgInfo) )
        {
            CtiOsDataGrid.Trace(