/// <summary> /// Getting statistics for platform and application P A V /// </summary> public DataWithInfo GetGraphWithInfo(Guid graphGuid, Guid applicationId, DateTime dateStart, DateTime dateEnd) { DataWithInfo dataWithInfo = new DataWithInfo(); try { ReportDefinitionReportNormal reportNormal = this.reportRepository.GetReportNormal(graphGuid); dataWithInfo.Info = new GraphInfo(reportNormal.Parent); dataWithInfo.Data = new Graph(reportNormal.Parent, reportNormal); List <GraphSeries> graphSeries = this.dataRepository.GetGraphAxis(reportNormal.Query.Value, applicationId, dateStart, dateEnd); dataWithInfo.Data.Series = graphSeries; dataWithInfo.Tabular = graphSeries.First(); } catch (DataAccessLayerException) { throw; } catch (Exception ex) { throw new ServiceLayerException(ex); } return(dataWithInfo); }
public DataWithInfo GetGraphWithInfo(Guid graphGuid, Guid applicationId, DateTime dateStart, DateTime dateEnd) { DataWithInfo graphWithInfo = null; try { graphWithInfo = this.iReportService.GetGraphWithInfo(graphGuid, applicationId, dateStart, dateEnd); } catch (Exception ex) { this.iLog.Error(ex); } return(graphWithInfo); }