public ReportAnswer GetRezhimSKReport(DateTime date) { try { Logger.Info("Получение отчета режим СК "+date); RezhimSKReport report=new RezhimSKReport(date.Date, date.Date.AddDays(1), IntervalReportEnum.minute); report.ReadData(); report.CreateAnswerData(); report.CreateChart(); Logger.Info("Отчет Режим СК сформирован " + report.Answer.Data.Count()); return report.Answer; } catch (Exception e) { Logger.Error("Ошибка при получении режима СК " + e.ToString()); return null; } }
public ActionResult TestReport() { RezhimSKReport report=new RezhimSKReport(new DateTime(2010,3,14),new DateTime(2010,03,15),IntervalReportEnum.halfHour); report.ReadData(); return View("Test"); }