Beispiel #1
0
        public ActionResult Consultar(int IdEmpresa = 0, int IdTerminoPago = 0, bool Exito = false)
        {
            com_TerminoPago_Info model = bus_termino.get_info(IdEmpresa, IdTerminoPago);

            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, "Compras", "TerminoPagoCompras", "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));
        }
        public ActionResult Modificar(int IdEmpresa = 0, int IdTerminoPago = 0)
        {
            com_TerminoPago_Info model = bus_termino.get_info(IdEmpresa, IdTerminoPago);

            if (model == null)
            {
                return(RedirectToAction("Index"));
            }
            return(View(model));
        }
        public ActionResult Modificar(string IdTerminoPago = "")
        {
            com_TerminoPago_Info model = bus_termino.get_info(IdTerminoPago);

            if (model == null)
            {
                return(RedirectToAction("Index"));
            }
            return(View(model));
        }
Beispiel #4
0
        public JsonResult get_info_termino_pago(int IdEmpresa = 0, int IdTerminoPago = 0)
        {
            var info_termino_pago = bus_termino.get_info(IdEmpresa, IdTerminoPago);

            return(Json(info_termino_pago, JsonRequestBehavior.AllowGet));
        }