|
|
@@ -358,7 +358,8 @@ public class ProceduresController {
|
|
|
String b64 = node.get("base64").asText();
|
|
|
|
|
|
byte[] bytes = Base64.getDecoder().decode(b64);
|
|
|
- String ruta = "C:\\Users\\Pablo\\Desktop\\Trabajo\\SAIC\\docs"+ it.getIdInstanciaTasca() + "_" + nombre;
|
|
|
+ String nombreFichero = it.getIdInstanciaTasca() + "_" + nombre;
|
|
|
+ String ruta = Paths.get(filePath, nombreFichero).toString();
|
|
|
Files.write(Paths.get(ruta),bytes);
|
|
|
|
|
|
PamDocuments pamDocuments = new PamDocuments();
|
|
|
@@ -413,20 +414,20 @@ public class ProceduresController {
|
|
|
.append("<thead>")
|
|
|
.append("<tr>")
|
|
|
.append("<th colspan='3' class='header-group'>ORIGEN DE LA ACCIÓN</th>")
|
|
|
- .append("<th colspan='4' class='header-group'>ACCIÓN PLANIFICADA</th>")
|
|
|
- .append("<th colspan='4' class='header-group'>SEGUIMIENTO</th>")
|
|
|
+ .append("<th colspan='5' class='header-group'>ACCIÓN PLANIFICADA</th>")
|
|
|
+ .append("<th colspan='3' class='header-group'>SEGUIMIENTO</th>")
|
|
|
.append("</tr>")
|
|
|
.append("<tr class='subheader'>")
|
|
|
- .append("<td style='width: 40px;'>ID</td>")
|
|
|
- .append("<td style='width: 140px;'>Objetivo de mejora</td>")
|
|
|
- .append("<td style='width: 100px;'>Origen</td>")
|
|
|
- .append("<td style='width: 160px;'>Actividades a desarrollar</td>")
|
|
|
- .append("<td style='width: 110px;'>Responsable</td>")
|
|
|
- .append("<td style='width: 70px;'>Prioridad</td>")
|
|
|
- .append("<td style='width: 80px;'>Curso Inicio/Fin</td>")
|
|
|
- .append("<td style='width: 120px;'>Indicadores de seguimiento</td>")
|
|
|
- .append("<td style='width: 90px;'>Grado ejecución</td>")
|
|
|
- .append("<td style='width: 80px;'>Objetivo (SÍ/NO)</td>")
|
|
|
+ .append("<td style='width: 35px;'>ID</td>")
|
|
|
+ .append("<td style='width: 140px;'>OBJETIVO</td>")
|
|
|
+ .append("<td style='width: 90px;'>ORIGEN</td>")
|
|
|
+ .append("<td style='width: 160px;'>ACTIVIDADES</td>")
|
|
|
+ .append("<td style='width: 110px;'>RESPONSABLE</td>")
|
|
|
+ .append("<td style='width: 70px;'>PRIORIDAD</td>")
|
|
|
+ .append("<td style='width: 55px;'>CURSO INICIO</td>")
|
|
|
+ .append("<td style='width: 55px;'>CURSO FIN</td>")
|
|
|
+ .append("<td style='width: 110px;'>INDICADORES</td>")
|
|
|
+ .append("<td style='width: 100px;'>GRADO DE EJECUCIÓN</td>")
|
|
|
.append("<td style='width: 130px;'>JUSTIFICACIÓN</td>")
|
|
|
.append("</tr></thead><tbody>");
|
|
|
|
|
|
@@ -438,14 +439,10 @@ public class ProceduresController {
|
|
|
html.append("<td>").append(row.path("actividades").asText("")).append("</td>");
|
|
|
html.append("<td>").append(formatList(row.path("responsable"))).append("</td>");
|
|
|
html.append("<td align='center'>").append(row.path("prioridad").asText("")).append("</td>");
|
|
|
- html.append("<td align='center'>")
|
|
|
- .append(row.path("cursoInicio").asText("")).append(" / ")
|
|
|
- .append(row.path("cursoFin").asText(""))
|
|
|
- .append("</td>");
|
|
|
+ html.append("<td align='center'>").append(row.path("cursoInicio").asText("")).append("</td>");
|
|
|
+ html.append("<td align='center'>").append(row.path("cursoFin").asText("")).append("</td>");
|
|
|
html.append("<td>").append(row.path("indicadores").asText("")).append("</td>");
|
|
|
html.append("<td>").append(row.path("gradoEjecucion").asText("")).append("</td>");
|
|
|
- String consecucion = row.path("consecucion").asText(" - ");
|
|
|
- html.append("<td align='center'>").append(consecucion).append("</td>");
|
|
|
html.append("<td>").append(row.path("justificacion").asText("")).append("</td>");
|
|
|
html.append("</tr>");
|
|
|
}
|