Ejemplo n.º 1
0
        public ActionResult CustomReportTypeAdd()
        {
            CustomReportTypeViewModel model = new CustomReportTypeViewModel();

            model.RolesList = model.GetEditRoles(0);

            return(PartialView("_CustomReportTypeAdd", model));
        }
Ejemplo n.º 2
0
        public ActionResult RefreshCustomReportTypeGrid()
        {
            CustomReportTypeViewModel model = new CustomReportTypeViewModel();

            model.CustomReportTypeGridList = model.GetCustomReportType(0, 10);

            return(PartialView("_Grid", model));
        }
Ejemplo n.º 3
0
        public ActionResult CustomReportTypeDelete(int id, int?page = 0)
        {
            CustomReportTypeViewModel model = new CustomReportTypeViewModel();

            model.DeleteCustomType(id);

            model.CustomReportTypeGridList = model.GetCustomReportType(page ?? 0, 10);

            return(PartialView("_Grid", model));
        }
Ejemplo n.º 4
0
        public ActionResult AjaxPageGrid(int id, int?page = 0)
        {
            int currentPageIndex            = page.HasValue ? page.Value - 1 : 0;
            CustomReportTypeViewModel model = new CustomReportTypeViewModel();


            model.CustomReportTypeGridList = model.GetCustomReportType(page ?? 0, 10);

            return(PartialView("_Grid", model));
        }
Ejemplo n.º 5
0
        // GET: CustomParamType
        public ActionResult Index()
        {
            // LoginCaptureHelper.InsertCaptureDetails("CustomParamType");
            // check to see if the user has logged in. If not get them out of here.
            //if (!Securitay.IsValid("/admin/customreports"))
            //{
            //    return Redirect("~/");
            //}

            CustomReportTypeViewModel model = new CustomReportTypeViewModel();

            model.CustomReportTypeGridList = model.GetCustomReportType(0, 10);
            return(View(model));
        }
Ejemplo n.º 6
0
        public ActionResult CustomReportTypeEdit(int id)
        {
            CustomReportTypeViewModel model = new CustomReportTypeViewModel();

            return(PartialView("_CustomReportTypeEdit", model.GetACustomReportType(id)));
        }
Ejemplo n.º 7
0
        public ActionResult EditCustomReportType(CustomReportTypeViewModel model)
        {
            model.EditParamType(model);

            return(Json(new { success = true }));
        }
Ejemplo n.º 8
0
        public ActionResult AddCustomReportType(CustomReportTypeViewModel model)
        {
            model.AddCustomType(model);

            return(Json(new { success = true }));
        }