コード例 #1
0
        private string GetPrintOutPath(PrintOutType type)
        {
            if (type == PrintOutType.Invoice)
            {
                return("/PrintOut/Transaction/Invoice/InvoicePrintOut.aspx");
            }

            return("");
        }
コード例 #2
0
        private string GetPrintOutTitle(PrintOutType type)
        {
            if (type == PrintOutType.Invoice)
            {
                return("Invoice");
            }

            return("");
        }
コード例 #3
0
        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());
        }