Esempio n. 1
0
        public ActionResult getOperaciones(string id = "")
        {
            LOperaciones op   = new LOperaciones();
            var          oper = op.getLista(id);

            return(Json(oper));
        }
Esempio n. 2
0
        public ActionResult Printf(string idclient, int idoperacion = 0)
        {
            ViewBag.fecha = DateTime.Now;
            LPersonaCasas pc  = new LPersonaCasas();
            LOperaciones  op  = new LOperaciones();
            Imprimir      imp = new Imprimir
            {
                cliente   = pc.GetClienteXID(idclient),
                operacion = op.GetOperacion(idoperacion)
            };

            return(View(imp));
        }
Esempio n. 3
0
        public ActionResult Imprimir(string idclient, int idoperacion = 0)
        {
            ViewBag.fecha      = DateTime.Now;
            ViewBag.idclient   = idclient;
            ViewBag.idopracion = idoperacion;
            LPersonaCasas pc  = new LPersonaCasas();
            LOperaciones  op  = new LOperaciones();
            Imprimir      imp = new Imprimir
            {
                cliente   = pc.GetClienteXID(idclient),
                operacion = op.GetOperacion(idoperacion)
            };

            return(PartialView("_Imprimir", imp));
        }
Esempio n. 4
0
        /// <summary>
        /// cambiar de estado a alerta que se ha gnerado
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult Change(int id = 0)
        {
            var mensaje = new List <KeyValuePair <string, string> >();

            try
            {
                LOperaciones op = new LOperaciones();
                if (!op.change(id, false))
                {
                    mensaje.Add(Util.mensaje(Util.ERROR, Util.ERRORMENSAJE));
                }
                else
                {
                    mensaje.Add(Util.mensaje(Util.OK, Util.OKMENSAJE));
                }
            }
            catch (Exception ex)
            {
                mensaje.Clear();
                mensaje.Add(Util.mensaje("ERROR", ex.Message));
            }
            return(Json(mensaje));
        }