public GetGraphVersions ( System.Guid graphGuid, System.Guid applicationId, IEnumerable |
||
graphGuid | System.Guid | |
applicationId | System.Guid | |
versions | IEnumerable |
|
dateStart | System.DateTime | |
dateEnd | System.DateTime | |
return |
public GraphWithTabularCompare GetGraphVersions(Guid graphGuid, Guid applicationId,
IEnumerable<string> versions, DateTime dateStart, DateTime dateEnd)
{
GraphWithTabularCompare graphWithTabularCompare = new GraphWithTabularCompare();
try
{
if (versions.Count() > 0)
{
ReportDefinitionReportReportCompareVersion reportVersion =
this.reportRepository.GetReportCompareVersion(graphGuid);
graphWithTabularCompare.Data = new Graph(reportVersion.Parent, reportVersion);
graphWithTabularCompare.Data.Series =
this.dataRepository.GetGraphAxis
(
reportVersion.Query.Value,
applicationId,
versions,
dateStart,
dateEnd
);
graphWithTabularCompare.Tabular = graphWithTabularCompare.Data.Series;
}
}
catch (DataAccessLayerException)
{
throw;
}
catch (Exception ex)
{
throw new ServiceLayerException(ex);
}
return graphWithTabularCompare;
}