Ejemplo n.º 1
0
        /// <summary>
        /// Load the specified supervisors
        /// </summary>
        internal void Load(int serviceId)
        {
            base.Clear();

            UDInfo oInfo = new UDInfo {
                listType = (int)AgentInfoType.GET_XFER_TO_DIRECTOR_LIST, serviceId = serviceId
            };

            DirectorXfer[] oItems = (DirectorXfer[])mpApp.Portal.WSAgent.getInfo(mpApp.CurrentAgent.AgentArg, oInfo);
            foreach (DirectorXfer t in oItems)
            {
                CUser oDirector = new CUser(t.userid, t.userfname, t.userlname);
                base.Add(oDirector.Id, oDirector);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Load the specified agents
        /// </summary>
        internal void Load(int serviceId)
        {
            base.Clear();

            UDInfo oInfo = new UDInfo {
                listType = (int)AgentInfoType.GET_XFER_TO_AGENT_LIST, serviceId = serviceId
            };

            AgentXfer[] oItems = (AgentXfer[])mpApp.Portal.WSAgent.getInfo(mpApp.CurrentAgent.AgentArg, oInfo);

            foreach (AgentXfer t in oItems)
            {
                CUser oAgent = new CUser(t.userid, t.userfname, t.userlname);
                base.Add(oAgent.Id, oAgent);
            }
        }