예제 #1
0
        public ActionResult getCuotas(string id = "")
        {
            LPersonaCasas lp   = new LPersonaCasas();
            var           info = lp.GetClienteXID(id);

            return(PartialView("_VerDatosPersonales", info));
        }
예제 #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));
        }
예제 #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));
        }
        // GET: PersonasCasas/Create
        public ActionResult CreateID(string id = "")
        {
            try
            {
                LPersonaCasas lp  = new LPersonaCasas();
                var           per = lp.GetClienteXID(id);
                var           usu = new Usuario()
                {
                    Nombre    = per.NombreP,
                    Apellido1 = per.Apellido,
                    Apellido2 = per.Seg_Apellido,
                    Email     = per.Correo,
                    ID        = Convert.ToInt64(per.CodCliente)
                };
                return(PartialView("_Create", usu));
            }
            catch (System.Exception)
            {
                return(Json(""));

                throw;
            }
        }