Sfoglia il codice sorgente

modifiche richieste

master
Mattia Gosetto 4 anni fa
parent
commit
0c2fd35b1c
  1. 105
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java
  2. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties
  3. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties

105
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java

@ -458,61 +458,66 @@ public class ValidazionePraticaUtil {
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
if (!territorio.getZona().equals("2") && !territorio.getZona().equals("4")
&& Validator.isNull(dettPratica.getAg())) {
notCompleted.add("ag");
}
if (dettPratica.getNormSismaBonus() && Validator.isNull(dettPratica.getClRischioPreInt())
&& Validator.isNull(dettPratica.getClRischioPostInt())) {
if (Validator.isNull(dettPratica.getClRischioPreInt())) {
notCompleted.add("cl-rischio-pre-int");
if(intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P10)){
if (Validator.isNull(dettPratica.getLocalizzazioneGeografica())
|| dettPratica.getLocalizzazioneGeografica().startsWith("||")) {
notCompleted.add("Localizzazione geografica mancante");
}
if (Validator.isNull(dettPratica.getClRischioPostInt())) {
notCompleted.add("cl-rischio-post-int");
}else{
if(intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P9)){
if(!dettPratica.getSanatoriaEdilizia326() &&
!dettPratica.getSanatoriaEdilizia47() &&
!dettPratica.getSanatoriaEdilizia724()){
notCompleted.add("sanatorie-obbligatorie");
}
}
}
if (dettPratica.getIntervFinPub() && Validator.isNull(dettPratica.getIntervFinPubDesc())) {
notCompleted.add("interv-fin-pub-desc");
}
if (dettPratica.getIntervFinPub() && Validator.isNull(dettPratica.getIntervFinPubDesc())) {
notCompleted.add("interv-fin-pub-desc");
}
if (dettPratica.getTcAltriInterventi() && Validator.isNull(dettPratica.getTcAltriInterventiDesc())) {
notCompleted.add("tc-altro-intervento");
}
if (dettPratica.getTcAltriInterventi() && Validator.isNull(dettPratica.getTcAltriInterventiDesc())) {
notCompleted.add("tc-altro-intervento");
}
if (Validator.isNull(dettPratica.getDescLongIntervento())) {
notCompleted.add("desc-long-intervento");
}
if (Validator.isNull(dettPratica.getDescLongIntervento())) {
notCompleted.add("desc-long-intervento");
}
if (!(dettPratica.getTcNuovaCostruzione() || dettPratica.getTcNuovaCostruzionePertinenza()
|| dettPratica.getTcCostruzioniEsistenti() || dettPratica.getTcManutOrdStraord()
|| dettPratica.getTcInterventoOpereEscavazione() || dettPratica.getTcViarch()
|| dettPratica.getTcOperaA25() || dettPratica.getTcAltriInterventi())) {
notCompleted.add("fascicolo_title_intervento");
}
if (!(dettPratica.getTcNuovaCostruzione() || dettPratica.getTcNuovaCostruzionePertinenza()
|| dettPratica.getTcCostruzioniEsistenti() || dettPratica.getTcManutOrdStraord()
|| dettPratica.getTcInterventoOpereEscavazione() || dettPratica.getTcViarch()
|| dettPratica.getTcOperaA25() || dettPratica.getTcAltriInterventi())) {
notCompleted.add("fascicolo_title_intervento");
}
if (Validator.isNull(dettPratica.getDestinazione())) {
notCompleted.add("destinazione");
}
if (Validator.isNull(dettPratica.getVia())) {
notCompleted.add("via");
}
if (Validator.isNull(dettPratica.getDestinazione()) &&
!intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) &&
!intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P2)) {
notCompleted.add("destinazione");
}
if (Validator.isNull(dettPratica.getVia())) {
notCompleted.add("via");
}
if (Validator.isNull(dettPratica.getLocalizzazioneGeografica())
|| dettPratica.getLocalizzazioneGeografica().startsWith("||")) {
notCompleted.add("Localizzazione geografica mancante");
}
if (Validator.isNull(dettPratica.getLocalizzazioneGeografica())
|| dettPratica.getLocalizzazioneGeografica().startsWith("||")) {
notCompleted.add("Localizzazione geografica mancante");
}
boolean tipologiaCostruttiva = dettPratica.getDestinazione().equals("3") || dettPratica.getTcInCA()
|| dettPratica.getTcInAcciaio() || dettPratica.getTcInMuratura()
|| dettPratica.getTcInLegno() || dettPratica.getTcAltro();
if (!tipologiaCostruttiva) {
notCompleted.add("Tipologia Costruttiva Mancante");
}
boolean tipologiaCostruttiva = dettPratica.getDestinazione().equals("3") || dettPratica.getTcInCA()
|| dettPratica.getTcInAcciaio() || dettPratica.getTcInMuratura()
|| dettPratica.getTcInLegno() || dettPratica.getTcAltro();
if (!tipologiaCostruttiva && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1)
&& !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P2) ) {
notCompleted.add("Tipologia Costruttiva Mancante");
}
if ((dettPratica.getLavoriPubblici() || dettPratica.getIntervFinPub()) && !(dettPratica.getTcViarch() || dettPratica.getTcOperaA25())) {
notCompleted.add("Tipologia intervento Opera pubblica mancante");
if ((dettPratica.getLavoriPubblici() || dettPratica.getIntervFinPub()) && !(dettPratica.getTcViarch() || dettPratica.getTcOperaA25())) {
notCompleted.add("Tipologia intervento Opera pubblica mancante");
}
}
return notCompleted;
@ -643,14 +648,20 @@ public class ValidazionePraticaUtil {
SystemException {
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
List<String> notCompleted = new ArrayList<>();
// Se in "Dettagli/Destinazione" è selezionato "altri interventi"
// rendere non obbligatoria la compilazione della sezione
// "descrizione interventi"
if (dettPratica.getDestinazione().equals("3")) {
if (dettPratica.getDestinazione().equals("3") ||
intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) ||
intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P2) ||
intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P10) ) {
return notCompleted;
}
List<String> infrastrutture = Arrays.asList("1A", "2A", "A4A", "A4B", "A4C", "A4D", "A4E", "A4F",
"A5A", "B4A", "B4B", "B4C", "B5A");
// se infrastruttura controllo solo DATI INFRASTRUTTURA
@ -1260,8 +1271,8 @@ public class ValidazionePraticaUtil {
if (firmeObbligatorie.containsKey(tipologiaAllegato)) {
firme.addAll(firmeObbligatorie.get(tipologiaAllegato));
}
if(intPratica.getTipoProcedura() == DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A08 ||
intPratica.getTipoProcedura() == DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09 ){
if(intPratica.getTipoProcedura().equals(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A08) ||
intPratica.getTipoProcedura().equals(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09) ){
firme.remove(TipoSoggettoUtil.DIRETTORE_LAVORI);
}

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties

@ -297,6 +297,7 @@ cl-rischio-post-int-16 = G*
interv-fin-pub = L'intervento è oggetto di Finanziamento Pubblico
interv-fin-pub-desc = Descrizione intervento oggetto di Finanziamento Pubblico
sanatorie-obbligatorie = Selezionare almeno una Sanatoria Edilizia
### DESTINAZIONE (RIFERIMENTO AL REGOLAMENTO N.36/R DEL 9/7/2009, ALL.A)
destinazione = Destinazione

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties

@ -13,8 +13,8 @@
##
build.namespace=portos_bo
build.number=2686
build.date=1603117327009
build.number=2690
build.date=1603120366764
build.auto.upgrade=true
##

Caricamento…
Annulla
Salva