예제 #1
0
        public ActionResult Consultar(int IdEmpresa = 0, string IdPresentacion = "", bool Exito = false)
        {
            in_presentacion_Info model = bus_presentacion.get_info(IdEmpresa, IdPresentacion);

            if (model == null)
            {
                return(RedirectToAction("Index"));
            }
            #region Permisos
            seg_Menu_x_Empresa_x_Usuario_Info info = bus_permisos.get_list_menu_accion(Convert.ToInt32(SessionFixed.IdEmpresa), SessionFixed.IdUsuario, "Inventario", "Presentacion", "Index");
            if (model.estado == "I")
            {
                info.Modificar = false;
                info.Anular    = false;
            }
            model.Nuevo     = (info.Nuevo == true ? 1 : 0);
            model.Modificar = (info.Modificar == true ? 1 : 0);
            model.Anular    = (info.Anular == true ? 1 : 0);
            #endregion
            if (Exito)
            {
                ViewBag.MensajeSuccess = MensajeSuccess;
            }

            return(View(model));
        }
예제 #2
0
        public ActionResult Modificar(int IdEmpresa = 0, string IdPresentacion = "")
        {
            in_presentacion_Info model = bus_presentacion.get_info(IdEmpresa, IdPresentacion);

            if (model == null)
            {
                return(RedirectToAction("Index"));
            }
            return(View(model));
        }