Package org.salamanca.domain

Examples of org.salamanca.domain.Alumno


        HashSet setAlumno = persona.getSetAlumno();
        Vector vMorosos = new Vector();

        Iterator iter = setAlumno.iterator();
        while (iter.hasNext()) {
            Alumno itemAlumno = (Alumno) iter.next();
            if (itemAlumno.isHabilitado()) {
                Vector vCuotaBasica = new Vector(itemAlumno.getCurso().
                                                 getSetCuotaBasica());
                java.util.Collections.sort(vCuotaBasica,
                                           new CuotaBasicaComparator()); //ordeno las cuotas por fecha de vencimiento
                Enumeration enumerCuotaBasica = vCuotaBasica.elements();
                while (enumerCuotaBasica.hasMoreElements()) { //recorro las cuotas del alumno en el curso inscripto
                    CuotaBasica itemCuotaBasica = (CuotaBasica)
                                                  enumerCuotaBasica.
                                                  nextElement();

                    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
                        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(itemCuotaBasica.
                                        getCurso().
                                        getNombre());
                                morosoBean.setApellidoAlumno(itemAlumno.
                                        getApellido());
                                morosoBean.setNombreAlumno(itemAlumno.getNombre());

                                morosoBean.setDni(itemAlumno.getDocumento());
                                morosoBean.setConceptoAdeuda(itemCuotaBasica.
                                        getConcepto());
                                SimpleDateFormat dateFormatInicio = new
                                        SimpleDateFormat(
                                                "d-M-yyyy");
View Full Code Here

TOP

Related Classes of org.salamanca.domain.Alumno

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.