Exemplo n.º 1
0
        public List <BE.UI.Cuota> ListarCuotas(int idPrestamo)
        {
            try
            {
                var lstUiCuotas = new List <BE.UI.Cuota>();

                List <BE.PrestamoCuota> lstBeCuotas = new DA.Prestamo().ListarCuotas(idPrestamo);
                lstUiCuotas = this.ListPrestamoCuotaBEtoUI(lstBeCuotas);

                return(lstUiCuotas);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 2
0
        public BE.UI.Prestamo ObtenerSinCuotas(int idPrestamo)
        {
            try
            {
                BE.UI.Prestamo uiPrestamo = null;

                BE.Prestamo bePrestamo = new DA.Prestamo().Obtener(idPrestamo, false);
                if (bePrestamo != null)
                {
                    uiPrestamo = this.PrestamoBEtoUI(bePrestamo);
                    uiPrestamo.NombreCompletoEmpleado = new DA.Trabajador().ObtenerNombreCompleto(bePrestamo.CodigoEmpleado);
                }

                return(uiPrestamo);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 3
0
        public List <BE.UI.Prestamo> ListarSinCuotas(int anho, int mes)
        {
            try
            {
                List <BE.Prestamo> lstbePrestamo = new DA.Prestamo().Listar(anho, mes, false);

                var lstUiPrestamo = new List <BE.UI.Prestamo>();
                foreach (var bePrestamo in lstbePrestamo)
                {
                    BE.UI.Prestamo uiPrestamo = this.PrestamoBEtoUI(bePrestamo);
                    uiPrestamo.NombreCompletoEmpleado = new DA.Trabajador().ObtenerNombreCompleto(bePrestamo.CodigoEmpleado);
                    lstUiPrestamo.Add(uiPrestamo);
                }
                return(lstUiPrestamo);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 4
0
        public List <BE.UI.Cuota> ListarCuotas(int anho, int mes, string codigoEmpleado)
        {
            List <BE.UI.Cuota> lstUiCuotas = new List <BE.UI.Cuota>();

            try
            {
                var lstBeCuotas = new DA.Prestamo().ListarCuotas(anho, mes, codigoEmpleado);

                foreach (BE.PrestamoCuota beCuota in lstBeCuotas)
                {
                    BE.UI.Cuota uiCuota = this.PrestamoCuotaBEtoUI(beCuota);
                    lstUiCuotas.Add(uiCuota);
                }

                return(lstUiCuotas);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }