|
|
@@ -35,7 +35,7 @@ import es.uv.saic.domain.Indicador;
|
|
|
import es.uv.saic.dto.IndicadorEnquestaDTO;
|
|
|
import es.uv.saic.dto.IndicadorEnquestaValorDTOImp;
|
|
|
import es.uv.saic.dto.InstanciaTascaDTO;
|
|
|
-import es.uv.saic.dto.OrganTransferDTO;
|
|
|
+import es.uv.saic.dto.OrganDTO;
|
|
|
import es.uv.saic.dto.PdfDTO;
|
|
|
import es.uv.saic.dto.ProcesDTO;
|
|
|
import es.uv.saic.dto.TascaDTO;
|
|
|
@@ -162,11 +162,11 @@ public class DownloadController {
|
|
|
public ResponseEntity<byte[]> downloadReport(@PathVariable("t") Integer idTitulacio, @PathVariable("p") String nomProces,
|
|
|
HttpServletResponse response) throws IOException, XDocReportException {
|
|
|
|
|
|
- OrganTransferDTO titulacio = core.findOrganById("T", idTitulacio);
|
|
|
+ OrganDTO titulacio = core.findOrganById("T", idTitulacio);
|
|
|
|
|
|
- ProcesDTO procesDTO = new ProcesDTO(nomProces, titulacio.getLugarCentre(),
|
|
|
- titulacio.getLugarTitulacion(),
|
|
|
- titulacio.getTambitTitulacion());
|
|
|
+ ProcesDTO procesDTO = new ProcesDTO(nomProces, titulacio.getLugar(),
|
|
|
+ titulacio.getLugar2(),
|
|
|
+ titulacio.getTambit());
|
|
|
TascaInformeTransferDTO it = core.getLastByProcName(procesDTO);
|
|
|
|
|
|
if(it != null) {
|
|
|
@@ -238,12 +238,12 @@ public class DownloadController {
|
|
|
Integer idCentre = it.getInstancia().getCentre();
|
|
|
|
|
|
if(tasca.getIdTipus() == 14) { // Iterable template task
|
|
|
- List<OrganTransferDTO> titulacions = new ArrayList<OrganTransferDTO>();
|
|
|
+ List<OrganDTO> titulacions = new ArrayList<OrganDTO>();
|
|
|
Integer ambit = idTitulacio/(int)1000;
|
|
|
titulacions = core.getTitulacionsByTypeCentre(it.getInstancia().getLugar(), ambit);
|
|
|
List<HashMap<String, String>> data = new ArrayList<HashMap<String, String>>();
|
|
|
- for(OrganTransferDTO x : titulacions) {
|
|
|
- HashMap<String, String> t = getTemplateDataArray(x.getLugarCentre(), idCentre, it.getInstancia().getCursAvaluat());
|
|
|
+ for(OrganDTO x : titulacions) {
|
|
|
+ HashMap<String, String> t = getTemplateDataArray(x.getLugar2(), idCentre, it.getInstancia().getCursAvaluat());
|
|
|
t.put("titulacio", x.getNomCas());
|
|
|
data.add(t);
|
|
|
}
|
|
|
@@ -379,8 +379,8 @@ public class DownloadController {
|
|
|
|
|
|
TascaDTO tasca = core.getByProcesTascap(idProces, idTascap);
|
|
|
ProcesDTO proces = core.findProcesdById(idProces);
|
|
|
- OrganTransferDTO titulacio = core.findOrganById("T", idTitulacio);
|
|
|
- OrganTransferDTO centre = core.findOrganById("C", idCentre);
|
|
|
+ OrganDTO titulacio = core.findOrganById("T", idTitulacio);
|
|
|
+ OrganDTO centre = core.findOrganById("C", idCentre);
|
|
|
Integer ambit = idTitulacio/(int)1000;
|
|
|
|
|
|
/* Check if specific template exists */
|
|
|
@@ -418,11 +418,11 @@ public class DownloadController {
|
|
|
context.put("curs_anterior", Integer.toString(proces.getCursAvaluat()-2)+" - "+Integer.toString(proces.getCursAvaluat()-1));
|
|
|
|
|
|
if(tasca.getIdTipus() == 14) { // Iterable template task
|
|
|
- List<OrganTransferDTO> titulacions = new ArrayList<OrganTransferDTO>();
|
|
|
- titulacions = core.getTitulacionsByTypeCentre(centre.getLugarCentre(), ambit);
|
|
|
+ List<OrganDTO> titulacions = new ArrayList<OrganDTO>();
|
|
|
+ titulacions = core.getTitulacionsByTypeCentre(centre.getLugar2(), ambit);
|
|
|
List<HashMap<String, String>> data = new ArrayList<HashMap<String, String>>();
|
|
|
- for(OrganTransferDTO x : titulacions) {
|
|
|
- HashMap<String, String> t = getTemplateDataArray(x.getLugarCentre(), idCentre, proces.getCursAvaluat());
|
|
|
+ for(OrganDTO x : titulacions) {
|
|
|
+ HashMap<String, String> t = getTemplateDataArray(x.getLugar2(), idCentre, proces.getCursAvaluat());
|
|
|
t.put("titulacio", x.getNomCas());
|
|
|
data.add(t);
|
|
|
}
|
|
|
@@ -459,8 +459,8 @@ public class DownloadController {
|
|
|
XDocReportRegistry.getRegistry().clear();
|
|
|
String reportId = "none";
|
|
|
|
|
|
- OrganTransferDTO titulacio = core.findOrganById("T", idTitulacio);
|
|
|
- OrganTransferDTO centre = core.findOrganById("C", idCentre);
|
|
|
+ OrganDTO titulacio = core.findOrganById("T", idTitulacio);
|
|
|
+ OrganDTO centre = core.findOrganById("C", idCentre);
|
|
|
Integer ambit = idTitulacio/(int)1000;
|
|
|
|
|
|
/* Check if specific template exists */
|
|
|
@@ -500,11 +500,11 @@ public class DownloadController {
|
|
|
context.put("curs_anterior", Integer.toString(curs-2)+" - "+Integer.toString(curs-1));
|
|
|
|
|
|
if(tipusTasca == 14) { // Iterable template task
|
|
|
- List<OrganTransferDTO> titulacions = new ArrayList<OrganTransferDTO>();
|
|
|
- titulacions = core.getTitulacionsByTypeCentre(centre.getLugarCentre(), ambit);
|
|
|
+ List<OrganDTO> titulacions = new ArrayList<OrganDTO>();
|
|
|
+ titulacions = core.getTitulacionsByTypeCentre(centre.getLugar2(), ambit);
|
|
|
List<HashMap<String, String>> data = new ArrayList<HashMap<String, String>>();
|
|
|
- for(OrganTransferDTO x : titulacions) {
|
|
|
- HashMap<String, String> t = getTemplateDataArray(x.getLugarCentre(), idCentre, curs);
|
|
|
+ for(OrganDTO x : titulacions) {
|
|
|
+ HashMap<String, String> t = getTemplateDataArray(x.getLugar2(), idCentre, curs);
|
|
|
t.put("titulacio", x.getNomCas());
|
|
|
data.add(t);
|
|
|
}
|