Beispiel #1
0
        public ActionResult DocumentViewerPartialExport()
        {
            CategoriesReport report = new CategoriesReport();

            report.DataSource = Category.GetCategories();
            return(ReportViewerExtension.ExportTo(report));
        }
Beispiel #2
0
        public ActionResult ExportDocumentViewer()
        {
            AssetDbContext Context = new AssetDbContext();
            string         id      = Session["Uid"].ToString();
            var            pro     = Context.customer_services.Where(x => x.Uid.ToString() == id).ToList();
            XtraReport1    report  = new XtraReport1();

            report.DataSource = pro;
            return(ReportViewerExtension.ExportTo(report));
        }
Beispiel #3
0
        /// <summary>
        ///     Patients the score range export report builder viewer.
        /// </summary>
        /// <param name="reportName">Name of the report.</param>
        /// <param name="parameters">The parameters.</param>
        /// <returns>Returns a Task as type ActionResult.</returns>
        public async Task <ActionResult> PatientScoreRangeExportReportBuilderViewer(string reportName, PatientScoreRangeParametersDto parameters)
        {
            var requestDispatcher = CreateAsyncRequestDispatcher();

            requestDispatcher.Add(new GetPatientScoreRangeReportRequest {
                PatientScoreRangeParametersDto = parameters
            });
            var response = await requestDispatcher.GetAsync <GetReportResponse> ();

            return(ReportViewerExtension.ExportTo((XtraReport)response.Report));
        }
Beispiel #4
0
        /// <summary>
        ///     Exports the report viewer.
        /// </summary>
        /// <param name="key">The key.</param>
        /// <param name="reportName">Name of the report.</param>
        /// <returns>
        ///     A <see cref="ActionResult" />.
        /// </returns>
        public async Task <ActionResult> ExportReportViewer(Guid key, string reportName)
        {
            var requestDispatcher = CreateAsyncRequestDispatcher();

            requestDispatcher.Add(new GetReportRequest {
                SourceKey = key, ReportName = reportName
            });
            var response = await requestDispatcher.GetAsync <GetReportResponse> ();

            return(ReportViewerExtension.ExportTo((XtraReport)response.Report));
        }
Beispiel #5
0
        /// <summary>
        ///     Nots the completed assessment export report builder viewer.
        /// </summary>
        /// <param name="reportName">Name of the report.</param>
        /// <param name="parameters">The parameters.</param>
        /// <returns>Returns a Task as type ActionResult.</returns>
        public async Task <ActionResult> NotCompletedAssessmentExportReportBuilderViewer(string reportName, NotCompletedAssessmentParametersDto parameters)
        {
            parameters.OrganizationKey = UserContext.Current.OrganizationKey;
            var requestDispatcher = CreateAsyncRequestDispatcher();

            requestDispatcher.Add(new GetNotCompletedAssessmentReportRequest {
                NotCompletedAssessmentParametersDto = parameters
            });
            var response = await requestDispatcher.GetAsync <GetReportResponse> ();

            return(ReportViewerExtension.ExportTo((XtraReport)response.Report));
        }
Beispiel #6
0
        private async Task <ActionResult> PatientsWithSpecificResponseAndAcrossAssessmentsExport(string reportName, PatientsWithSpecificResponseParametersDto parameters)
        {
            var requestDispatcher = CreateAsyncRequestDispatcher();

            ViewData["ReportName"]     = reportName;
            parameters.ReportName      = reportName;
            parameters.Responses       = JsonConvert.DeserializeObject <List <QuestionResponse> > (parameters.JsonResponse);
            parameters.OrganizationKey = UserContext.Current.OrganizationKey;
            requestDispatcher.Add(new GetPatientsWithSpecificResponseReportRequest {
                PatientsWithSpecificResponseParametersDto = parameters
            });
            var response = await requestDispatcher.GetAsync <GetReportResponse> ();

            return(ReportViewerExtension.ExportTo((XtraReport)response.Report));
        }
 public ActionResult ReportViewerExportTo(string reportID)
 {
     return(ReportViewerExtension.ExportTo(ReportDemoHelper.CreateModel(reportID).Report));
 }
Beispiel #8
0
 public ActionResult ExportReportViewer(int promotionId)
 {
     return(ReportViewerExtension.ExportTo(GetReport(promotionId)));
 }
        public ActionResult DocumentViewerExport()
        {
            ProductsByCategoriesReport report = new ProductsByCategoriesReport();

            return(ReportViewerExtension.ExportTo(report));
        }
Beispiel #10
0
 public ActionResult ShelterDetailExport()
 {
     return(ReportViewerExtension.ExportTo(new ShelterDetail()));
 }
Beispiel #11
0
 public ActionResult ItemStockExport()
 {
     return(ReportViewerExtension.ExportTo(new ItemsStock()));
 }
 public ActionResult ReportViewerExportTo(BlockModelCompareViewModel m)
 {
     return(ReportViewerExtension.ExportTo(AllReports.CreateModel(m).Report));
 }
 public ActionResult QueriesReportViewerExportTo()
 {
     return(ReportViewerExtension.ExportTo(GetQueriesReport()));
 }
 public ActionResult PatientsReportViewerExportTo()
 {
     return(ReportViewerExtension.ExportTo(GetPatientsReport()));
 }