public ActionResult ConfirmationReport(ConfirmationReportFilter filter = null, int pageNumber = 1) { int totalRecords = 0; if (filter == null) { filter = new ConfirmationReportFilter(); } var model = _confirmationReportingService.GetConfirmationReport(pageNumber, _pageSize, filter, out totalRecords); var currentAction = ControllerContext.RouteData.Values["action"].ToString(); var routeValueDictionary = new RouteValueDictionary { { "EventDateFrom", filter.EventDateFrom }, { "EventDateTo", filter.EventDateTo }, { "HealthPlanId", filter.HealthPlanId }, { "Disposition", filter.Disposition } }; Func <int, string> urlFunc = pn => Url.Action(currentAction, AddRouteValueDictionary(routeValueDictionary, pn)); model.PagingModel = new PagingModel(pageNumber, _pageSize, totalRecords, urlFunc); return(View(model)); }
public string ConfirmationReportExport(ConfirmationReportFilter filter, long userId) { var dataGen = new ExportableDataGenerator <ConfirmationReportViewModel, ConfirmationReportFilter>(_confirmationReportingService.GetConfirmationReport, Logger); var model = dataGen.GetData(filter); var exporter = ExportableDataGeneratorProcessManager <ViewModelBase, ModelFilterBase> .GetCsvExporter <ConfirmationReportViewModel>(); return(WriteCsv(GetExportableFileName("ConfirmationReport"), exporter, model.Collection, userId)); }
public void ConfirmationReportAsync(string id = null, ConfirmationReportFilter filter = null) { if (id == null) { return; } AsyncManager.OutstandingOperations.Increment(); var dataGen = new ExportableDataGenerator <ConfirmationReportViewModel, ConfirmationReportFilter>(_confirmationReportingService.GetConfirmationReport); var processmanager = new ExportableDataGeneratorProcessManager <ConfirmationReportViewModel, ConfirmationReportFilter>(); processmanager.Add(id, dataGen); GetNewProcessStarted(filter, dataGen, id); }
public ActionResult ConfirmationReport(ConfirmationReportFilter filter = null) { return(CreateExportQueue(filter, ExportableReportType.ConfirmationReport, _sessionContext.UserSession.CurrentOrganizationRole.OrganizationRoleUserId)); }