private void BindDropDownControls() { var callQueueRepository = IoC.Resolve <ICallQueueRepository>(); var callQueues = callQueueRepository.GetByAssignedToOrgRoleUserId(IoC.Resolve <ISessionContext>().UserSession.CurrentOrganizationRole.OrganizationRoleUserId); long callQueueId = 0; if (Request.QueryString["cq"] != null) { long.TryParse(Request.QueryString["cq"], out callQueueId); } if (callQueues != null && callQueues.Any()) { CallQueues.DataSource = callQueues; CallQueues.DataTextField = "Name"; CallQueues.DataValueField = "Id"; CallQueues.DataBind(); CallQueues.Items.Insert(0, (new ListItem("--Select--", "0"))); CallQueues.SelectedValue = callQueueId.ToString(); } else { CallQueues.Items.Insert(0, (new ListItem("--No Call Queue Assigned--", "0"))); } }
private void InitializeMethodMembers() { Extensions = new Extensions(this); ExtensionGroups = new ExtensionGroups(this); Users = new Users(this); CallLogs = new CallLogs(this); CallQueueLogs = new CallQueueLogs(this); CurrentCalls = new CurrentCalls(this); CallQueues = new CallQueues(this); IVR = new IVR(this); }