Beispiel #1
0
        public void UncontactedCustomersReportAsync(string id = null, UncontactedCustomersReportModelFilter filter = null)
        {
            if (id == null)
            {
                return;
            }

            AsyncManager.OutstandingOperations.Increment();
            var dataGen = new ExportableDataGenerator <UncontactedCustomersReportModel, UncontactedCustomersReportModelFilter>(_callQueueService.GetUncontactedCustomersReport);

            var processmanager = new ExportableDataGeneratorProcessManager <UncontactedCustomersReportModel, UncontactedCustomersReportModelFilter>();

            processmanager.Add(id, dataGen);

            GetNewProcessStarted(filter, dataGen, id);
        }
Beispiel #2
0
        public ActionResult UncontactedCustomersReport(UncontactedCustomersReportModelFilter filter = null, int pageNumber = 1)
        {
            int totalRecords;
            var model = _callQueueService.GetUncontactedCustomersReport(pageNumber, _pageSize, filter, out totalRecords);

            if (model == null)
            {
                model = new UncontactedCustomersReportListModel();
            }
            model.Filter = filter;

            var currentAction        = ControllerContext.RouteData.Values["action"].ToString();
            var routeValueDictionary = GetRouteValueDictionaryForUncontactedCustomerReportModel(filter);

            Func <int, string> urlFunc = pn => Url.Action(currentAction, AddRouteValueDictionary(routeValueDictionary, pn));

            model.PagingModel = new PagingModel(pageNumber, _pageSize, totalRecords, urlFunc);
            return(View(model));
        }
Beispiel #3
0
        private RouteValueDictionary GetRouteValueDictionaryForUncontactedCustomerReportModel(UncontactedCustomersReportModelFilter filter)
        {
            var routeValueDictionary = new RouteValueDictionary
            {
                { "EligibleStatus", filter.EligibleStatus },
                { "HelathPlanId", filter.HelathPlanId },
            };

            if (filter.CustomTags != null)
            {
                var index = 0;
                foreach (var customtag in filter.CustomTags)
                {
                    routeValueDictionary.Add(string.Format("CustomTags[{0}]", index), customtag);
                    index++;
                }
            }

            return(routeValueDictionary);
        }