Package org.salamanca.domain

Examples of org.salamanca.domain.Curso


    protected Vector getVAlumnoMorosoBean( Date dateFinCobro, Vector vCursos) {

        Vector vMorosos = new Vector();
        Enumeration enumer = vCursos.elements();
        while (enumer.hasMoreElements()) {
            Curso itemCurso = (Curso) enumer.nextElement();
            double importeCurso = 0;
            Iterator iter = itemCurso.getSetCuotaBasica().iterator();
            while (iter.hasNext()) {
                CuotaBasica itemCuotaBasica = (CuotaBasica) iter.next();
                if ( itemCuotaBasica.getFechaVencimiento().before(dateFinCobro)) {
//esto significa que la cuota es cobrable porque ya venci�

//ahora averiguo por cada alumno si pag� o no la cuota


                    Iterator iterAlumnos = itemCurso.getSetAlumnos().iterator();
                    while (iterAlumnos.hasNext()) {
                        Alumno itemAlumno = (Alumno) iterAlumnos.next();

                        if (itemAlumno.isHabilitado()) {

                            boolean estaPagado = false;
                            Iterator iterPagos = itemAlumno.getSetPagos().
                                                 iterator();
                            while (iterPagos.hasNext()) {
                                Pago itemPago = (Pago) iterPagos.next();

                                if (!itemPago.isAnulado() &&
                                    javax.jdo.JDOHelper.getObjectId(itemPago.
                                        getCuotaPagada()).equals(
                                                javax.jdo.JDOHelper.getObjectId(
                                        itemCuotaBasica))) {
                                    //es la misma cuota pagada por lo tanto no es moroso
                                    estaPagado = true;
                                }

                            }

                            //si la cuota no est� pagada es un moroso de esa cuota
                            if (!estaPagado) {
                                AlumnoMorosoBean morosoBean = new
                                        AlumnoMorosoBean();
                                morosoBean.setNombreCurso(itemCurso.getNombre());
                                morosoBean.setApellidoAlumno(itemAlumno.
                                        getApellido());
                                morosoBean.setNombreAlumno(itemAlumno.getNombre());

                                morosoBean.setDni(itemAlumno.getDocumento());
View Full Code Here

TOP

Related Classes of org.salamanca.domain.Curso

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.