private string GetReportPath(ReportViewerType type) { if (type == ReportViewerType.Project) { return("/Report/Transaction/Project/ProjectReport.aspx"); } return(""); }
private string GetReportTitle(ReportViewerType type, string queryString) { if (type == ReportViewerType.Project) { return("Laporan Proyek"); } return(""); }
public ActionResult Index(ReportViewerType type, string queryString) { ViewBag.Title = GetReportTitle(type, queryString); var reportPath = GetReportPath(type); if (!string.IsNullOrEmpty(queryString)) { reportPath += "?" + queryString; } ViewBag.ReportPath = reportPath; return(View()); }
/// <summary> /// Determine if report viewer is invoked via iFrames or via internal Izenda report viewer model. /// /// Default to iFrames /// </summary> /// <returns>Returns <see cref="ReportViewerType"/> enumeration of report viewer type.</returns> private ReportViewerType TypeOfReportViewer() { ReportViewerType type = ReportViewerType.Iframes; string viewer = ConfigurationManager.AppSettings[Constants.Security.IzendaReportViewer]; if (!string.IsNullOrWhiteSpace(viewer)) { if (viewer.Equals("iframes", StringComparison.CurrentCultureIgnoreCase)) { type = ReportViewerType.Iframes; } else if (viewer.Equals("internal", StringComparison.CurrentCultureIgnoreCase)) { type = ReportViewerType.Internal; } else { type = ReportViewerType.Undefined; } } return(type); }