Ejemplo n.º 1
0
        public static RespuestaDTO GuardarLiquidacionEstacion(VentaCorteAnticipoModel cc, string tkn)
        {
            var agente = new AgenteServicio();

            agente.GuardarLiquidacionEst(cc, tkn);
            return(agente._RespuestaDTO);
        }
Ejemplo n.º 2
0
        public ActionResult BuscarEstacion(VentaCorteAnticipoModel _model, int?page)
        {
            if (Session["StringToken"] == null)
            {
                return(RedirectToAction("Index", "Home", AutenticacionServicio.InitIndex(new Models.Seguridad.LoginModel())));
            }
            string _tkn   = Session["StringToken"].ToString();
            var    Pagina = page ?? 1;

            ViewBag.CajaGeneralEstacion = VentasServicio.ListaVentasCajaGralEstacion(_model.FolioOperacion, _tkn).ToPagedList(Pagina, 10);

            if (ViewBag.CajaGeneralEstacion.Count == 0)
            {
                TempData["RespuestaDTOError"] = "No existe la clave solicitada";
            }
            else
            {
                TempData["RespuestaCajaGralEst"] = ViewBag.CajaGeneralEstacion;
            }
            return(RedirectToAction("Estacion"));
        }
Ejemplo n.º 3
0
        public ActionResult GuardarLiquidaEstacion(VentaCorteAnticipoModel _ObjModel)
        {
            if (Session["StringToken"] == null)
            {
                return(RedirectToAction("Index", "Home", AutenticacionServicio.InitIndex(new Models.Seguridad.LoginModel())));
            }
            string _tok = Session["StringToken"].ToString();

            var respuesta = VentasServicio.GuardarLiquidacionEstacion(_ObjModel, _tok);

            if (respuesta.Exito)
            {
                TempData["RespuestaDTO"]      = respuesta.Mensaje;
                TempData["RespuestaDTOError"] = null;
                return(RedirectToAction("Estacion"));
            }

            else
            {
                TempData["RespuestaDTOError"] = respuesta;
                return(RedirectToAction("Estacion"));
            }
        }