示例#1
0
 void desabilitarCol(HorariosGrid nuevo, SalonCurso sc) {
   if (sc.getDiadelaSemana().equalsIgnoreCase("lunes")) {
     nuevo.lunes.enable = false;
   }
   if (sc.getDiadelaSemana().equalsIgnoreCase("martes")) {
     if (sc.getSalon() != null && sc.getCurso() != null) {
       nuevo.martes.enable = false;
     }
   }
   if (sc.getDiadelaSemana().equalsIgnoreCase("miercoles")) {
     if (sc.getSalon() != null && sc.getCurso() != null) {
       nuevo.miercoles.enable = false;
     }
   }
   if (sc.getDiadelaSemana().equalsIgnoreCase("jueves")) {
     if (sc.getSalon() != null && sc.getCurso() != null) {
       nuevo.jueves.enable = false;
     }
   }
   if (sc.getDiadelaSemana().equalsIgnoreCase("viernes")) {
     if (sc.getSalon() != null && sc.getCurso() != null) {
       nuevo.viernes.enable = false;
     }
   }
   if (sc.getDiadelaSemana().equalsIgnoreCase("sabado")) {
     if (sc.getSalon() != null && sc.getCurso() != null) {
       nuevo.sabado.enable = false;
     }
   }
 }
示例#2
0
 void setDiasHorario(HorariosGrid nuevo, SalonCurso sc) {
   if (sc.getDiadelaSemana().equalsIgnoreCase("lunes")) {
     nuevo.lunes.dato =
         sc.getSalon().getNombreNumero() + " " + sc.getCurso().getMateria().getNombre();
   }
   if (sc.getDiadelaSemana().equalsIgnoreCase("martes")) {
     if (sc.getSalon() != null && sc.getCurso() != null) {
       nuevo.martes.dato =
           sc.getSalon().getNombreNumero() + " " + sc.getCurso().getMateria().getNombre();
     }
   }
   if (sc.getDiadelaSemana().equalsIgnoreCase("miercoles")) {
     if (sc.getSalon() != null && sc.getCurso() != null) {
       nuevo.miercoles.dato =
           sc.getSalon().getNombreNumero() + " " + sc.getCurso().getMateria().getNombre();
     }
   }
   if (sc.getDiadelaSemana().equalsIgnoreCase("jueves")) {
     if (sc.getSalon() != null && sc.getCurso() != null) {
       nuevo.jueves.dato =
           sc.getSalon().getNombreNumero() + " " + sc.getCurso().getMateria().getNombre();
     }
   }
   if (sc.getDiadelaSemana().equalsIgnoreCase("viernes")) {
     if (sc.getSalon() != null && sc.getCurso() != null) {
       nuevo.viernes.dato =
           sc.getSalon().getNombreNumero() + " " + sc.getCurso().getMateria().getNombre();
     }
   }
   if (sc.getDiadelaSemana().equalsIgnoreCase("sabado")) {
     if (sc.getSalon() != null && sc.getCurso() != null) {
       nuevo.sabado.dato =
           sc.getSalon().getNombreNumero() + " " + sc.getCurso().getMateria().getNombre();
     }
   }
 }