public ActionResult Index()
        {
            #region Validar Session
            if (string.IsNullOrEmpty(SessionFixed.IdTransaccionSession))
            {
                return(RedirectToAction("Login", new { Area = "", Controller = "Account" }));
            }
            SessionFixed.IdTransaccionSession       = (Convert.ToDecimal(SessionFixed.IdTransaccionSession) + 1).ToString();
            SessionFixed.IdTransaccionSessionActual = SessionFixed.IdTransaccionSession;
            #endregion

            #region Permisos
            seg_Menu_x_Empresa_x_Usuario_Info info = bus_permisos.get_list_menu_accion(Convert.ToInt32(SessionFixed.IdEmpresa), SessionFixed.IdUsuario, "Contabilidad", "PlantillaComprobanteContable", "Index");
            ViewBag.Nuevo     = info.Nuevo;
            ViewBag.Modificar = info.Modificar;
            ViewBag.Anular    = info.Anular;
            #endregion

            ct_cbtecble_Plantilla_Info model = new ct_cbtecble_Plantilla_Info
            {
                IdTransaccionSession = Convert.ToDecimal(SessionFixed.IdTransaccionSession),
                IdEmpresa            = Convert.ToInt32(SessionFixed.IdEmpresa),
            };

            var lst = bus_CbteCble_Plantilla.GetList(model.IdEmpresa, true);
            Lista_PlantillaComprobante.set_list(lst, model.IdTransaccionSession);
            return(View(model));
        }
Ejemplo n.º 2
0
        public ActionResult GridViewPartial_ComprobanteContablePlantilla()
        {
            int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
            List <ct_cbtecble_Plantilla_Info> model = bus_CbteCble_Plantilla.GetList(IdEmpresa, true);

            return(PartialView("_GridViewPartial_ComprobanteContablePlantilla", model));
        }