Exemplo n.º 1
0
 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");
 }
Exemplo n.º 2
0
 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");
 }
Exemplo n.º 3
0
 public FileContentResult GenerateTotalDocumentsDownloadedReport()
 {
     String physicalPath = GetTheLogoPath();
     ReportOperations reportOperations = new ReportOperations();
     Byte[] bytestream = reportOperations.GenerateReportForTotalDocumentsDownloaded(physicalPath);
     return File(bytestream, "application/pdf", "TotalDocumentsDownloaded" + "Report.pdf");
 }
Exemplo n.º 4
0
        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"));
        }
Exemplo n.º 5
0
        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"));
        }
Exemplo n.º 6
0
        public ProcessResult <List <NumberReport> > GetReport()
        {
            ApiUser          apiUser   = new ApiUser("test", "test");
            string           messageId = "6228056";
            ReportOperations reportOps = new ReportOperations();

            return(reportOps.GetReport(apiUser, messageId));
        }
Exemplo n.º 7
0
        public FileContentResult GenerateTotalDocumentsDownloadedReport()
        {
            String           physicalPath     = GetTheLogoPath();
            ReportOperations reportOperations = new ReportOperations();

            Byte[] bytestream = reportOperations.GenerateReportForTotalDocumentsDownloaded(physicalPath);
            return(File(bytestream, "application/pdf", "TotalDocumentsDownloaded" + "Report.pdf"));
        }
Exemplo n.º 8
0
        private void btnReport_Click(object sender, EventArgs e)
        {
            var reportForm       = new FormXML();
            var reportRepository = new DataAccess();
            var reportPresenter  = new ReportOperations(reportForm, reportRepository);

            reportForm.Show();
        }
Exemplo n.º 9
0
        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);
        }
Exemplo n.º 10
0
        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);
        }
Exemplo n.º 11
0
        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();
 }