Package GeneracionHorarios

Examples of GeneracionHorarios.Dia


        String lineaDiaLibre = lector.readLine();
        if (lineaDiaLibre==null)
            throw new IOException();
        String [] datosDiaLibre = lineaDiaLibre.split(",");
        Profesor profesor = ProfesorBD.buscarProfesor(datosDiaLibre[0]);
        Dia diaLibre = new Dia(datosDiaLibre[1],Integer.parseInt(datosDiaLibre[2])-8,Integer.parseInt(datosDiaLibre[3])-8,true,profesor);
        return diaLibre;
    }
View Full Code Here


            //Cargamos los cursos en la BD
            AccesoBD.conexionODBC("horariosBD");
           
       
            archDispProf = new ArchivoDispProfesor(txtRuta.getText());
            Dia diaLibre;
            int i;
            while (true){
                try{
                    diaLibre = archDispProf.leer();
                } catch(IOException ex){
                    break;
                }
                DiaBD.agregarDia(diaLibre);
                if (diaLibre.getNombreDia().equals("LUNES"))
                    i=0;
                else
                    if (diaLibre.getNombreDia().equals("MARTES"))
                        i=1;
                    else
                        if (diaLibre.getNombreDia().equals("MIERCOLES"))
                            i=2;
                        else
                            if (diaLibre.getNombreDia().equals("JUEVES"))
                            i=3;
                            else
                                if (diaLibre.getNombreDia().equals("VIERNES"))
                                i=4;
                                else
                                    i=5;   
           
                estProfesor.modificarDisponibilidad(diaLibre,i,1);
View Full Code Here

TOP

Related Classes of GeneracionHorarios.Dia

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.