public FileContentResult GenerateUserActivityReportForASpecificUser(String userName) { String physicalPath = GetTheLogoPath(); ReportOperations reportOperations = new ReportOperations(); Byte[] bytestream = reportOperations.GenerateReportForUserActivity(physicalPath, userName); return File(bytestream, "application/pdf", userName + "_UserActivity" + "Report.pdf"); }
public FileContentResult GenerateDocumentsDownloadedReportForASpecificUser(String userName) { String physicalPath = GetTheLogoPath(); ReportOperations reportOperations = new ReportOperations(); Byte[] bytestream = reportOperations.GenerateReportForDocumentsDownloadedBySpecificUser(physicalPath, userName); return File(bytestream, "application/pdf", userName + "_DocumentsDownloaded" + "Report.pdf"); }
public FileContentResult GenerateTotalDocumentsDownloadedReport() { String physicalPath = GetTheLogoPath(); ReportOperations reportOperations = new ReportOperations(); Byte[] bytestream = reportOperations.GenerateReportForTotalDocumentsDownloaded(physicalPath); return File(bytestream, "application/pdf", "TotalDocumentsDownloaded" + "Report.pdf"); }
public FileContentResult GenerateDocumentsDownloadedReportForASpecificUser(String userName) { String physicalPath = GetTheLogoPath(); ReportOperations reportOperations = new ReportOperations(); Byte[] bytestream = reportOperations.GenerateReportForDocumentsDownloadedBySpecificUser(physicalPath, userName); return(File(bytestream, "application/pdf", userName + "_DocumentsDownloaded" + "Report.pdf")); }
public FileContentResult GenerateUserActivityReportForASpecificUser(String userName) { String physicalPath = GetTheLogoPath(); ReportOperations reportOperations = new ReportOperations(); Byte[] bytestream = reportOperations.GenerateReportForUserActivity(physicalPath, userName); return(File(bytestream, "application/pdf", userName + "_UserActivity" + "Report.pdf")); }
public ProcessResult <List <NumberReport> > GetReport() { ApiUser apiUser = new ApiUser("test", "test"); string messageId = "6228056"; ReportOperations reportOps = new ReportOperations(); return(reportOps.GetReport(apiUser, messageId)); }
public FileContentResult GenerateTotalDocumentsDownloadedReport() { String physicalPath = GetTheLogoPath(); ReportOperations reportOperations = new ReportOperations(); Byte[] bytestream = reportOperations.GenerateReportForTotalDocumentsDownloaded(physicalPath); return(File(bytestream, "application/pdf", "TotalDocumentsDownloaded" + "Report.pdf")); }
private void btnReport_Click(object sender, EventArgs e) { var reportForm = new FormXML(); var reportRepository = new DataAccess(); var reportPresenter = new ReportOperations(reportForm, reportRepository); reportForm.Show(); }
public DataHub() : base(Program.Host.LogWebHostStatusMessage, Program.Host.LogException) { void logStatusMessage(string message, UpdateType updateType) => LogStatusMessage(message, updateType); void logException(Exception ex) => LogException(ex); m_historianOperations = new HistorianOperations(this, logStatusMessage, logException); m_modbusOperations = new ModbusOperations(this, logStatusMessage, logException); m_reportOperations = new ReportOperations(this, logStatusMessage, logException); }
public DataHub() : base(Program.Host.LogWebHostStatusMessage, Program.Host.LogException) { Action <string, UpdateType> logStatusMessage = (message, updateType) => LogStatusMessage(message, updateType); Action <Exception> logException = ex => LogException(ex); m_historianOperations = new HistorianOperations(this, logStatusMessage, logException); m_modbusOperations = new ModbusOperations(this, logStatusMessage, logException); m_reportOperations = new ReportOperations(this, logStatusMessage, logException); }
public async Task <object> ManageReport(ResolveFieldContext <object> context, ReportOperations operation) { try { object report = null; switch (operation) { case ReportOperations.AddReport: var reportAdd = context.GetArgument <Domain.DomainModel.Report>("reportAdd"); report = await _reportDriver.AddReport(reportAdd); break; case ReportOperations.AddReports: var reportAdds = context.GetArgument <List <Domain.DomainModel.Report> >("reportAdd"); report = await _reportDriver.AddReports(reportAdds); break; } return(report); } catch (ExecutionError ex) { context.Errors.Add(new ExecutionError(ex.Message)); } catch (AggregateException ex) { context.Errors.Add(new ExecutionError(ex.Message)); } catch (Exception ex) { context.Errors.Add(new ExecutionError(ex.Message)); } return(null); }
public BLReport() { _report_object = new ReportOperations(); }