|
|
@@ -262,7 +262,7 @@ public class ProceduresController {
|
|
|
}
|
|
|
|
|
|
// POST que se utiliza para conseguir los cursos a partir de la titulación
|
|
|
- @PostMapping("/ajax/search/years")
|
|
|
+ @PostMapping("/search/years")
|
|
|
public String getYearsByCenterTitulation(Model model, Authentication auth,
|
|
|
@RequestParam(name="centers[]", required=false) List<Integer> centres,
|
|
|
@RequestParam("titulations[]") List<Integer> titulacions) throws IOException {
|
|
|
@@ -279,7 +279,7 @@ public class ProceduresController {
|
|
|
}
|
|
|
|
|
|
// POST que se utiliza para conseguir los procedimiento que se han llevado a cabo por cursos y por titulación
|
|
|
- @PostMapping("/ajax/search/procedures")
|
|
|
+ @PostMapping("/search/procedures")
|
|
|
public String getProceduresByCenterTitulationYear(Model model, Authentication auth,
|
|
|
@RequestParam(name="centers[]", required=false) List<Integer> centres,
|
|
|
@RequestParam("years[]") List<Integer> cursos,
|
|
|
@@ -295,7 +295,7 @@ public class ProceduresController {
|
|
|
return "components/selector_processos";
|
|
|
}
|
|
|
|
|
|
- @PostMapping("/ajax/find/procedure")
|
|
|
+ @PostMapping("/find/procedure")
|
|
|
public String findProcedure(Model model, Authentication auth, @RequestParam("procedure") Integer idProces,
|
|
|
@RequestParam("action") String action) throws IOException {
|
|
|
|
|
|
@@ -315,7 +315,7 @@ public class ProceduresController {
|
|
|
}
|
|
|
|
|
|
// POST para crear el form de creación de plantilla
|
|
|
- @PostMapping("/ajax/template/form")
|
|
|
+ @PostMapping("/template/form")
|
|
|
public String formTemplate(Model model, Authentication auth, @RequestParam("id") Integer idPlantilla,
|
|
|
@RequestParam("action") String action) throws IOException {
|
|
|
|
|
|
@@ -331,7 +331,7 @@ public class ProceduresController {
|
|
|
|
|
|
|
|
|
// GET para renderizar el formulario de cración de nueva tarea
|
|
|
- @GetMapping("/ajax/newTask/{i}")
|
|
|
+ @GetMapping("/newTask/{i}")
|
|
|
public String newTaskForm(Model model, Authentication auth, @PathVariable Integer i) throws IOException {
|
|
|
List<RolDTO> roles = uc.findAssignables();
|
|
|
List<Tipus> tipus = pc.findAll();
|
|
|
@@ -344,7 +344,7 @@ public class ProceduresController {
|
|
|
}
|
|
|
|
|
|
@ResponseBody
|
|
|
- @PostMapping("/ajax/find/template")
|
|
|
+ @PostMapping("/find/template")
|
|
|
public String findTemplate(Model model, Authentication auth, @RequestParam("id") Integer idPlantilla) throws IOException {
|
|
|
Plantilla p = plc.findByID(idPlantilla);
|
|
|
return p.getText();
|
|
|
@@ -352,14 +352,14 @@ public class ProceduresController {
|
|
|
|
|
|
// GET para comprobar si una plantilla esta siendo usada
|
|
|
@ResponseBody
|
|
|
- @GetMapping("/ajax/template/used/{idPlantilla}")
|
|
|
+ @GetMapping("/template/used/{idPlantilla}")
|
|
|
public int isTemplateUsed(Model model, Authentication auth, @PathVariable("idPlantilla") Integer idPlantilla) throws IOException {
|
|
|
Boolean u = plc.isUsed(idPlantilla);
|
|
|
return u ? 1 : 0;
|
|
|
}
|
|
|
|
|
|
@ResponseBody
|
|
|
- @PostMapping("/ajax/template/edit")
|
|
|
+ @PostMapping("/template/edit")
|
|
|
public String templateEdit(Model model, Authentication auth, @RequestParam("id") Integer idPlantilla,@RequestParam("text") String text, @RequestParam("versio") Integer versio,
|
|
|
@RequestParam("nomCas") String nomCas, @RequestParam("nomVal") String nomVal, @RequestParam("ambit") String ambit) throws IOException {
|
|
|
Plantilla p = plc.findByID(idPlantilla);
|
|
|
@@ -372,7 +372,7 @@ public class ProceduresController {
|
|
|
}
|
|
|
|
|
|
@ResponseBody
|
|
|
- @PostMapping("/ajax/template/save")
|
|
|
+ @PostMapping("/template/save")
|
|
|
public String templateSave(Model model, Authentication auth, @RequestParam("text") String text, @RequestParam("codi") String codi, @RequestParam("versio") Integer versio,
|
|
|
@RequestParam("nomCas") String nomCas, @RequestParam("nomVal") String nomVal, @RequestParam("ambit") String ambit) throws IOException {
|
|
|
Plantilla p = new Plantilla();
|
|
|
@@ -391,7 +391,7 @@ public class ProceduresController {
|
|
|
}
|
|
|
|
|
|
@ResponseBody
|
|
|
- @PostMapping("/ajax/draft/save/{id}")
|
|
|
+ @PostMapping("/draft/save/{id}")
|
|
|
public String saveTemplate(Model model, Authentication auth, @PathVariable("id") Integer idPlantilla,
|
|
|
@RequestParam("text") String text) throws IOException {
|
|
|
Plantilla p = plc.findByID(idPlantilla);
|
|
|
@@ -400,7 +400,7 @@ public class ProceduresController {
|
|
|
return "1";
|
|
|
}
|
|
|
|
|
|
- @DeleteMapping("/ajax/template/form")
|
|
|
+ @DeleteMapping("/template/form")
|
|
|
@ResponseBody
|
|
|
public String formTemplateRemove(Model model, Authentication auth, @RequestParam("id") Integer idPlantilla) throws IOException {
|
|
|
if(plc.isUsed(idPlantilla)){
|
|
|
@@ -414,7 +414,7 @@ public class ProceduresController {
|
|
|
|
|
|
}
|
|
|
|
|
|
- @PostMapping("/ajax/find/template/inds")
|
|
|
+ @PostMapping("/find/template/inds")
|
|
|
public String findTemplatesInds(Model model, Authentication auth, @RequestParam("procedure") Integer idProces,
|
|
|
@RequestParam("center") String idCentre, @RequestParam("titulation") String idTitulacio,
|
|
|
@RequestParam("ev") String evidencia) throws IOException {
|