|
|
|
@ -31,10 +31,6 @@ import java.util.*;
|
|
|
|
|
@Controller
|
|
|
|
|
public class AlumnoController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Value("${es.matricula}")
|
|
|
|
|
private boolean esMatricula;
|
|
|
|
|
|
|
|
|
@ -112,6 +108,7 @@ public class AlumnoController {
|
|
|
|
|
return "redirect:/registro";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int idMatricula = matriculacionService.getMatriculacionByIdAlumno(alumnoActual.getId());
|
|
|
|
|
if (idMatricula!= 0) {
|
|
|
|
|
session.setAttribute("idMatricula", idMatricula);
|
|
|
|
@ -246,7 +243,12 @@ public class AlumnoController {
|
|
|
|
|
|
|
|
|
|
} else if (alumnoActual.getMatFamilia().equals("FP")){
|
|
|
|
|
String codigoAlumno = filtrarLetras(alumnoActual.getMatActual());
|
|
|
|
|
try {
|
|
|
|
|
ciclos = cicloService.findCicloByCodigoDos(codigoAlumno);
|
|
|
|
|
|
|
|
|
|
} catch (StackOverflowError e){
|
|
|
|
|
System.out.println("ERROR CON LOS CICLOS " );
|
|
|
|
|
}
|
|
|
|
|
model.addAttribute("informacion", "Confirma tu ciclo formativo seleccionándolo.");
|
|
|
|
|
if (ciclos == null){
|
|
|
|
|
System.out.println("NO SE HAN ENCONTRADO LOS CICLOS");
|
|
|
|
@ -489,7 +491,7 @@ public class AlumnoController {
|
|
|
|
|
private String actualizarAlumno(HttpSession session,
|
|
|
|
|
@RequestParam("opcion2") String opcion2, @RequestParam("opcion3") String opcion3,
|
|
|
|
|
@RequestParam("limitaciontxt") String limitaciontxt,
|
|
|
|
|
@RequestParam("patologiaSeleccionada") String patologiaSeleccionada,
|
|
|
|
|
@RequestParam("txtPatologia") String txtPatologia,
|
|
|
|
|
@RequestParam("medicaciontxt") String medicaciontxt,
|
|
|
|
|
@RequestParam("madretxt") String madretxt,
|
|
|
|
|
@RequestParam("parentescotxt") String parentesctotxt
|
|
|
|
@ -507,7 +509,7 @@ public class AlumnoController {
|
|
|
|
|
boolean esLimitacion = opcion3.equals("si");
|
|
|
|
|
alumnoActual.setLimitacion(esLimitacion);
|
|
|
|
|
alumnoActual.setTxtLimitacion(limitaciontxt);
|
|
|
|
|
alumnoActual.setPatologia(patologiaService.getPatologiaByNombre(patologiaSeleccionada));
|
|
|
|
|
alumnoActual.setTxtPatologia(txtPatologia);
|
|
|
|
|
alumnoActual.setMedicacion(medicaciontxt);
|
|
|
|
|
alumnoActual.setNombreApellidoMadre(madretxt);
|
|
|
|
|
alumnoActual.setParentesco(parentesctotxt);
|
|
|
|
|