Package org.salamanca.domain

Examples of org.salamanca.domain.Alumno


                        JDOHelper.getObjectId(curso),true);

                Vector v = new Vector();
                Iterator iter = curso.getSetAlumnos().iterator();
                while (iter.hasNext()) {
                    Alumno itemAlumno = (Alumno) iter.next();

                    if (itemAlumno.isHabilitado()) { //solo se muestran los alumnos habilitados
                        v.add(itemAlumno);
                    }
                }

                compomenteABMCListAlumnos.clearDatos();
                if (v.size() > 0) {
                    Object[][] trabajo = new Object[v.size()][10];
                    for (int i = 0; i < v.size(); i++) {
                        Alumno alumno = (Alumno) v.elementAt(i);
                        Persona persona = alumno.getPersona();
                        trabajo[i][0] = persona.getNombre();
                        trabajo[i][1] = persona.getApellido();
                        trabajo[i][2] = new Long(persona.getDni());
                        trabajo[i][3] = new Boolean(persona.isMasculino());
                        trabajo[i][4] = persona.getDomicilio();
View Full Code Here


        if (compomenteABMCListAlumnos.getSelectedRow() != -1) {
            String oidStr = ((String) compomenteABMCListAlumnos.
                             getSelectedRowData().
                             getValueAt(9));
            kodo.util.Id oid = new kodo.util.Id(oidStr);
            Alumno alumno = (Alumno) org.salamanca.broker.BrokerServer.instance().
                            getPMF().getPersistenceManager().getObjectById(oid,true);
            return alumno;

        }
        return null;
View Full Code Here

                int i = 0;
                int n = 0;
                Vector v = new Vector();
                Iterator iter = curso.getSetAlumnos().iterator();
                while (iter.hasNext()) {
                    Alumno itemAlumno = (Alumno) iter.next();
                    CalificacionesCursoLandscapeBean alumnoCalifBean = new
                            CalificacionesCursoLandscapeBean(itemAlumno.
                            getNombre(), itemAlumno.getApellido());
                    if (itemAlumno != null && itemAlumno.isHabilitado()) { //solo se muestran los alumnos habilitados

                        Enumeration enumer = itemAlumno.getVectorPeriodos().
                                             elements();
                        while (enumer.hasMoreElements()) {
                            Periodo itemPeriodo = (Periodo) enumer.nextElement();
                            CalificacionesCursoBean calificacionesCursoBean = new
                                    CalificacionesCursoBean(itemPeriodo);
View Full Code Here

                int i = 0;
                int n = 0;
                Vector v = new Vector();
                Iterator iter = curso.getSetAlumnos().iterator();
                while (iter.hasNext()) {
                    Alumno itemAlumno = (Alumno) iter.next();

                    if (itemAlumno!=null && itemAlumno.isHabilitado()) { //solo se muestran los alumnos habilitados

                        Enumeration enumer = itemAlumno.getVectorPeriodos().
                                             elements();
                        while (enumer.hasMoreElements()) {
                            Periodo itemPeriodo = (Periodo) enumer.nextElement();
                            CalificacionesCursoBean calificacionesCursoBean = new
                                    CalificacionesCursoBean(itemPeriodo);
View Full Code Here

                    url1);

            Vector v = new Vector();
            Iterator iter = persona.getSetAlumno().iterator();
            while (iter.hasNext()) {
                Alumno itemAlumno = (Alumno) iter.next();
                if (itemAlumno != null && itemAlumno.isHabilitado()) {
                    javax.jdo.JDOHelper.getPersistenceManager(itemAlumno.
                            getCurso()).makeNontransactional(itemAlumno.getCurso());
                    v.add(itemAlumno.getCurso());
                }
            }

            HashMap parametros = new HashMap();
View Full Code Here

//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());
                                morosoBean.setConceptoAdeuda(itemCuotaBasica.
                                        getConcepto());
                                SimpleDateFormat dateFormatInicio = new
                                        SimpleDateFormat(
                                                "d-M-yyyy");
View Full Code Here

                        JDOHelper.getObjectId(curso), true);

                Vector v = new Vector();
                Iterator iter = curso.getSetAlumnos().iterator();
                while (iter.hasNext()) {
                    Alumno itemAlumno = (Alumno) iter.next();

                    if (itemAlumno.isHabilitado()) { //solo se muestran los alumnos habilitados
                        v.add(itemAlumno);
                    }
                }

                compomenteABMCListAlumnos.clearDatos();
                if (v.size() > 0) {
                    Object[][] trabajo = new Object[v.size()][10];
                    for (int i = 0; i < v.size(); i++) {
                        Alumno alumno = (Alumno) v.elementAt(i);
                        Persona persona = alumno.getPersona();
                        trabajo[i][0] = persona.getNombre();
                        trabajo[i][1] = persona.getApellido();
                        trabajo[i][2] = new Long(persona.getDni());
                        trabajo[i][3] = new Boolean(persona.isMasculino());
                        trabajo[i][4] = persona.getDomicilio();
View Full Code Here


    public void compomenteABMCListAlumnos_ClickTable(ClickTableEvent e) {
        if (compomenteABMCListAlumnos.getSelectedRow() != -1) {

            Alumno alumno = getUltimoAlumnoSeleccionado();
            this.loadListCuotas(alumno);

        }
    }
View Full Code Here

        }
    }

    public void refreshABCMListAlumnos() {
        Alumno alumno = getUltimoAlumnoSeleccionado();
        if (alumno != null) {
            this.loadListCuotas(alumno);
        }
    }
View Full Code Here

        if (compomenteABMCListAlumnos.getSelectedRow() != -1) {
            String oidStr = ((String) compomenteABMCListAlumnos.
                             getSelectedRowData().
                             getValueAt(9));
            kodo.util.Id oid = new kodo.util.Id(oidStr);
            Alumno alumno = (Alumno) org.salamanca.broker.BrokerServer.instance().
                            getPMF().getPersistenceManager().getObjectById(oid, true);
            return alumno;

        }
        return null;
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.