Ejemplo n.º 1
0
        public ActionResult PrintReportLoansBetweenTwoDates(ReportLoansBetweenTwoDatesFilter model)
        {
            try
            {
                ViewBag.Title = "Report";
                List <ReportLoansBetweenTwoDatesResult> result = DbServices.ReportLoansBetweenTwoDates(model, db);

                return(PartialView(result));
            }
            catch (CfException exc)
            {
                return(View());
            }
        }
Ejemplo n.º 2
0
        public ActionResult ReportLoansBetweenTwoDates(string operationType, ReportLoansBetweenTwoDatesFilter model)
        {
            try
            {
                if (operationType != null && operationType == "print")
                {
                    return(RedirectToAction("PrintReportLoansBetweenTwoDates", model));
                }
                List <ReportLoansBetweenTwoDatesResult> result = DbServices.ReportLoansBetweenTwoDates(model, db);

                return(PartialView("ReportLoansBetweenTwoDatesResult", result));
            }
            catch (CfException exc)
            {
                ViewBag.ReportLoansBetweenTwoDates = reportLoansBetweenTwoDates;
                return(View());
            }
        }