private string GetPrintOutPath(PrintOutType type) { if (type == PrintOutType.Invoice) { return("/PrintOut/Transaction/Invoice/InvoicePrintOut.aspx"); } return(""); }
private string GetPrintOutTitle(PrintOutType type) { if (type == PrintOutType.Invoice) { return("Invoice"); } return(""); }
public ActionResult PopUp(PrintOutType type, string queryString) { ViewBag.Title = GetPrintOutTitle(type); var reportPath = GetPrintOutPath(type); if (!string.IsNullOrEmpty(queryString)) { reportPath += "?" + queryString; } ViewBag.ReportPath = reportPath; return(View()); }