public string GenerateStaffPlanner(AHCViews input) { var lobid = long.Parse(input.LobID); AHCViews models = new AHCViews(); var pivotData = _ahcService.Read(lobid, start: input.StartDate, end: input.EndDate, includeDatapoint: 1, tablename: "WeeklyStaffDatapoint", siteID: input.SiteID, campaignID: input.CampaignID); var datapoints = _staffDatapointService.GetAll().Where(x => x.Visible == true && x.Active == true).ToList(); models.Pivot = pivotData; models.StaffDatapoints = datapoints; models.IsLoadDataGrid = true; string HtmlString = RenderPartialViewToString("_StaffPlanner", models); return(HtmlString); }
public string GenerateAHC(AHCViews input) { var lobid = long.Parse(input.LobID); AHCViews models = new AHCViews(); //var reader = _ahcService.GetPivotData( lobid, includeDatapoint: 1 ); var pivotData = _ahcService.Read(lobid, start: input.StartDate, end: input.EndDate, includeDatapoint: 1, siteID: input.SiteID, campaignID: input.CampaignID); //_ahcService.Read( reader ).ToList(); var datapoints = _datapointService.GetAll().Where(x => x.Visible == true && x.Active == true).AsEnumerable(); models.Pivot = pivotData; models.Datapoints = datapoints; models.IsLoadDataGrid = true; string HtmlString = RenderPartialViewToString("_AssumptionAHC", models); return(HtmlString); }