From c7898d02c7d2db9fdd7e1723b2da02ee4465a294 Mon Sep 17 00:00:00 2001 From: Salvatore La Manna Date: Tue, 17 May 2022 17:24:17 +0200 Subject: [PATCH] Modifiche DDG 334/2020 --- jasper/ATAP.jrxml | 234 ----- jasper/Autorizzazione negata.jrxml | 2 +- jasper/{Modello_A.jrxml => Modello A.jrxml} | 0 jasper/{Modello_A1.jrxml => Modello A1.jrxml} | 2 +- jasper/{Modello_B.jrxml => Modello B.jrxml} | 0 jasper/{Modello_B2.jrxml => Modello B2.jrxml} | 0 jasper/{Modello_C.jrxml => Modello C.jrxml} | 0 jasper/{Modello_P.jrxml => Modello P.jrxml} | 0 jasper/{Modello_PS.jrxml => Modello PS.jrxml} | 0 jasper/{Modello_S.jrxml => Modello S.jrxml} | 0 .../{Modello_VNS.jrxml => Modello VNS.jrxml} | 0 jasper/Modello_B1.jrxml | 457 ---------- jasper/Modello_SS.jrxml | 242 ----- jasper/Modello_Sorteggio.jrxml | 450 ---------- jasper/Modello_V2.jrxml | 559 ------------ jasper/Modello_deposito.jrxml | 671 -------------- jasper/Modello_deposito_collaudo.jrxml | 510 ----------- jasper/Modello_deposito_fine_lavori.jrxml | 510 ----------- jasper/Modello_vidimazione.jrxml | 423 --------- jasper/accettata_integrazione.jrxml | 388 ++++++++ jasper/allegato_pagamento.vm | 15 + jasper/annullamento.jrxml | 363 ++++++++ jasper/annullamento_istanza.vm | 14 + jasper/autorizzazione.jrxml | 623 ------------- ...edimento.jrxml => cambio_istruttore.jrxml} | 809 ++++++++--------- jasper/richiesta_integrazione_portos2.jrxml | 2 +- ...procedimento 2.jrxml => vidimazione.jrxml} | 839 +++++++++--------- jasper/vidimazione_fl.jrxml | 397 +++++++++ jasper/vidimazione_var_sog.jrxml | 416 +++++++++ jasper/visualizza_collaudo.jrxml | 444 +++++++++ jasper/visualizza_fine_lavori.jrxml | 487 ++++++++++ .../service/ConfigurazioneLocalService.java | 3 +- .../ConfigurazioneLocalServiceClp.java | 7 +- .../ConfigurazioneLocalServiceUtil.java | 3 +- .../ConfigurazioneLocalServiceWrapper.java | 3 +- .../portos/bo/util/AzioniPraticheUtil.java | 5 +- .../bo/util/ValidazionePraticaUtil.java | 7 +- .../liferay/portos/bo/util/WorkflowUtil.java | 12 +- .../bo/startup/DatabaseUpdateAction.java | 8 +- .../sismica/bo/util/ManutenzioneDatabase.java | 150 ++-- .../it/mwg/sismica/bo/util/SismicaUtil.java | 35 +- .../sismica/bo/util/SorteggioPraticaUtil.java | 5 +- .../mwg/sismica/bo/util/ZoneSismicheUtil.java | 251 ++++++ .../bo/scheduler/SchedulerInvioDocumento.java | 6 +- .../bo/scheduler/SchedulerPratiche.java | 1 + .../docroot/WEB-INF/src/service.properties | 4 +- .../domanda/page_dettagli_principali.jsp | 9 +- 47 files changed, 3710 insertions(+), 5656 deletions(-) delete mode 100644 jasper/ATAP.jrxml rename jasper/{Modello_A.jrxml => Modello A.jrxml} (100%) rename jasper/{Modello_A1.jrxml => Modello A1.jrxml} (99%) rename jasper/{Modello_B.jrxml => Modello B.jrxml} (100%) rename jasper/{Modello_B2.jrxml => Modello B2.jrxml} (100%) rename jasper/{Modello_C.jrxml => Modello C.jrxml} (100%) rename jasper/{Modello_P.jrxml => Modello P.jrxml} (100%) rename jasper/{Modello_PS.jrxml => Modello PS.jrxml} (100%) rename jasper/{Modello_S.jrxml => Modello S.jrxml} (100%) rename jasper/{Modello_VNS.jrxml => Modello VNS.jrxml} (100%) delete mode 100644 jasper/Modello_B1.jrxml delete mode 100644 jasper/Modello_SS.jrxml delete mode 100644 jasper/Modello_Sorteggio.jrxml delete mode 100644 jasper/Modello_V2.jrxml delete mode 100644 jasper/Modello_deposito.jrxml delete mode 100644 jasper/Modello_deposito_collaudo.jrxml delete mode 100644 jasper/Modello_deposito_fine_lavori.jrxml delete mode 100644 jasper/Modello_vidimazione.jrxml create mode 100644 jasper/accettata_integrazione.jrxml create mode 100644 jasper/allegato_pagamento.vm create mode 100644 jasper/annullamento.jrxml create mode 100644 jasper/annullamento_istanza.vm delete mode 100644 jasper/autorizzazione.jrxml rename jasper/{Avvio procedimento.jrxml => cambio_istruttore.jrxml} (63%) rename jasper/{Avvio procedimento 2.jrxml => vidimazione.jrxml} (51%) create mode 100644 jasper/vidimazione_fl.jrxml create mode 100644 jasper/vidimazione_var_sog.jrxml create mode 100644 jasper/visualizza_collaudo.jrxml create mode 100644 jasper/visualizza_fine_lavori.jrxml create mode 100644 liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ZoneSismicheUtil.java diff --git a/jasper/ATAP.jrxml b/jasper/ATAP.jrxml deleted file mode 100644 index 1b0e39d3..00000000 --- a/jasper/ATAP.jrxml +++ /dev/null @@ -1,234 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Mod. ATAP – Annullamento d'ufficio]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jasper/Autorizzazione negata.jrxml b/jasper/Autorizzazione negata.jrxml index 74b40c9b..bfe2f225 100644 --- a/jasper/Autorizzazione negata.jrxml +++ b/jasper/Autorizzazione negata.jrxml @@ -369,7 +369,7 @@ - + diff --git a/jasper/Modello_A.jrxml b/jasper/Modello A.jrxml similarity index 100% rename from jasper/Modello_A.jrxml rename to jasper/Modello A.jrxml diff --git a/jasper/Modello_A1.jrxml b/jasper/Modello A1.jrxml similarity index 99% rename from jasper/Modello_A1.jrxml rename to jasper/Modello A1.jrxml index ea591b9f..4331ff6a 100644 --- a/jasper/Modello_A1.jrxml +++ b/jasper/Modello A1.jrxml @@ -357,7 +357,7 @@ Con le modifiche di cui all’art. 94 bis, come introdotto dal DL 32/2019, conve - + diff --git a/jasper/Modello_B.jrxml b/jasper/Modello B.jrxml similarity index 100% rename from jasper/Modello_B.jrxml rename to jasper/Modello B.jrxml diff --git a/jasper/Modello_B2.jrxml b/jasper/Modello B2.jrxml similarity index 100% rename from jasper/Modello_B2.jrxml rename to jasper/Modello B2.jrxml diff --git a/jasper/Modello_C.jrxml b/jasper/Modello C.jrxml similarity index 100% rename from jasper/Modello_C.jrxml rename to jasper/Modello C.jrxml diff --git a/jasper/Modello_P.jrxml b/jasper/Modello P.jrxml similarity index 100% rename from jasper/Modello_P.jrxml rename to jasper/Modello P.jrxml diff --git a/jasper/Modello_PS.jrxml b/jasper/Modello PS.jrxml similarity index 100% rename from jasper/Modello_PS.jrxml rename to jasper/Modello PS.jrxml diff --git a/jasper/Modello_S.jrxml b/jasper/Modello S.jrxml similarity index 100% rename from jasper/Modello_S.jrxml rename to jasper/Modello S.jrxml diff --git a/jasper/Modello_VNS.jrxml b/jasper/Modello VNS.jrxml similarity index 100% rename from jasper/Modello_VNS.jrxml rename to jasper/Modello VNS.jrxml diff --git a/jasper/Modello_B1.jrxml b/jasper/Modello_B1.jrxml deleted file mode 100644 index a19ec9f4..00000000 --- a/jasper/Modello_B1.jrxml +++ /dev/null @@ -1,457 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jasper/Modello_SS.jrxml b/jasper/Modello_SS.jrxml deleted file mode 100644 index 2b6fb3e5..00000000 --- a/jasper/Modello_SS.jrxml +++ /dev/null @@ -1,242 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Mod. S – Attestato pratiche sorteggiate, interventi di minor rilevanza (solo zone sismiche 1-2) e abitati da consolidare]]> - - - - - - - - - - - - - - - - - - - - - - - - - - "+($F{tipoValido}.equals("SP") ? "Avviso di sorteggio relativo" : "Conferma di conformità relativa")+" al Deposito/denuncia del progetto n. "+$F{numeroProgetto}+" del "+(new SimpleDateFormat("dd/MM/yyyy").format($F{dataPratica}))+" ai sensi degli artt. 65 comma 1 e 93 del D.P.R.380/2001, come recepito dalla LR. 16/2016 (art. 4 della L.1086/71 – art. 17 della L.64/74), con le modifiche di cui all’art. 94 bis, come introdotto dal DL 32/2019, convertito in legge 55/2019 - NTC di riferimento: DM 17/Gennaio /2018.\n"+ -"Annullamento d'ufficio ai sensi dell'art. 1, comma 136, della Legge Finanziaria 2005 (legge 30.12.2004, n. 311) e della legge 11.2.2005 n. 15 (recante modifiche e integrazioni alla legge 7 agosto 1990, n. 241)."]]> - - - - - - - - - - - - Verificata:
" + -"> la giuridica esistenza di un provvedimento amministrativo denominato Attestato di deposito pratiche non sorteggiate in zona 1-2 o di un avviso di sorteggio errato ;
" + -"> la ricorrenza di uno di vizi di legittimità del provvedimento (violazione di legge, eccesso di potere, incompetenza) che nel caso in specie è generato da errore tecnico della piattaforma Sismica Sicilia, rispetto al dettato del Decreto Dirigenziale DRT 189/2019 che prevede:”….D) INTERVENTI SOTTOPOSTI A VERIFICHE A CAMPIONE.
" + -"Gli Uffici del Genio Civile dell’Isola adotteranno controlli a campione sui progetti da realizzare nelle zone sismiche 1 e 2 (alta sismicità), sottoponendoli a procedura autorizzativa preventiva (anche a mezzo di checklist delle verifiche minime), procedendo alla contestuale verifica dei luoghi, per una percentuale del 20%(eventualmente arrotondata all’unità superiore) delle pratiche depositate ai sensi degli artt. 65 comma 1 e93 del DPR 380/2000, come recepito dalla L.R.16/2016 (art. 4 L.,1086/71 e art. 17 L.64/74).I progetti da verificare saranno selezionati dagli Uffici del Genio Civile, a mezzo di sorteggio che avverrà con procedura informatica tramite algoritmo certificato, con cadenza settimanale, alle ore 24,00 del mercoledì. I risultati del sorteggio verranno resi immediatamente pubblici sul portale informatico...”

"+ -"Considerato:
"+ -"> che sono stati emesso automaticamente i provvedimenti sopra citati.
"+ -"> che tale provvedimento è nullo in considerazione della validità del primo sorteggio validato in data 05/03/2020 ore 11:10.

"+ -"Verificata
"+ -"> la sussistenza di ragioni di interesse pubblico per l'annullamento d'ufficio

"+ -"Annulla
"+ -"> I provvedimenti succitati generati erroneamente dalla piattaforma Sismica." -]]>
-
- - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/jasper/Modello_Sorteggio.jrxml b/jasper/Modello_Sorteggio.jrxml deleted file mode 100644 index 9bbc8f82..00000000 --- a/jasper/Modello_Sorteggio.jrxml +++ /dev/null @@ -1,450 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jasper/Modello_V2.jrxml b/jasper/Modello_V2.jrxml deleted file mode 100644 index 04387afe..00000000 --- a/jasper/Modello_V2.jrxml +++ /dev/null @@ -1,559 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Mod. V2 Avviso di vidimazione varianti non sostanziali (interventi A e B in zona sismica 1, 2, 3 e 4)]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - variante non sostanziale a seguito di denuncia dei lavori prodotta ai sensi degli artt. 65 e 93 del D.P.R. 380/2001 e ss.mm.ii., come recepito dalla LR. 16/2016 (art. 4 della L.1086/71 – art. 17 della L.64/74), con le modifiche di cui all’art. 94-bis, come introdotto dal DL 32/2019, convertito in legge 55/2019 - NTC di riferimento: DM 17 gennaio 2018.]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jasper/Modello_deposito.jrxml b/jasper/Modello_deposito.jrxml deleted file mode 100644 index 57bfa03f..00000000 --- a/jasper/Modello_deposito.jrxml +++ /dev/null @@ -1,671 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Deposito del progetto a seguito della denuncia dei lavori, ai sensi degli artt. 65 comma 1 e 93 del D.P.R. 380/2001 e ss.mm.ii., come recepito dalla LR. 16/2016 (art. 4 della L.1086/71 - art. 17 della L.64/74), come recepito dalla LR. 16/2016 (art. 4 della L.1086/71 – art. 17 della L.64/74), con le modifiche di cui all’art. 94-bis, come introdotto dal DL 32/2019, convertito in legge 55/2019 - NTC di riferimento: DM 17/Gennaio/2018. ]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jasper/Modello_deposito_collaudo.jrxml b/jasper/Modello_deposito_collaudo.jrxml deleted file mode 100644 index b207be26..00000000 --- a/jasper/Modello_deposito_collaudo.jrxml +++ /dev/null @@ -1,510 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jasper/Modello_deposito_fine_lavori.jrxml b/jasper/Modello_deposito_fine_lavori.jrxml deleted file mode 100644 index d8847ee7..00000000 --- a/jasper/Modello_deposito_fine_lavori.jrxml +++ /dev/null @@ -1,510 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jasper/Modello_vidimazione.jrxml b/jasper/Modello_vidimazione.jrxml deleted file mode 100644 index 9006e0b4..00000000 --- a/jasper/Modello_vidimazione.jrxml +++ /dev/null @@ -1,423 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jasper/accettata_integrazione.jrxml b/jasper/accettata_integrazione.jrxml new file mode 100644 index 00000000..e43a2695 --- /dev/null +++ b/jasper/accettata_integrazione.jrxml @@ -0,0 +1,388 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jasper/allegato_pagamento.vm b/jasper/allegato_pagamento.vm new file mode 100644 index 00000000..9cdd624f --- /dev/null +++ b/jasper/allegato_pagamento.vm @@ -0,0 +1,15 @@ + + + + +

+ Regione Siciliana +

+
+ $html +
+ + + diff --git a/jasper/annullamento.jrxml b/jasper/annullamento.jrxml new file mode 100644 index 00000000..45d89d83 --- /dev/null +++ b/jasper/annullamento.jrxml @@ -0,0 +1,363 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jasper/annullamento_istanza.vm b/jasper/annullamento_istanza.vm new file mode 100644 index 00000000..e4005163 --- /dev/null +++ b/jasper/annullamento_istanza.vm @@ -0,0 +1,14 @@ + + + + +

+ Regione Siciliana +

+
+ $html +
+ + diff --git a/jasper/autorizzazione.jrxml b/jasper/autorizzazione.jrxml deleted file mode 100644 index 80869485..00000000 --- a/jasper/autorizzazione.jrxml +++ /dev/null @@ -1,623 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jasper/Avvio procedimento.jrxml b/jasper/cambio_istruttore.jrxml similarity index 63% rename from jasper/Avvio procedimento.jrxml rename to jasper/cambio_istruttore.jrxml index 5aa1ebe1..7dd0116f 100644 --- a/jasper/Avvio procedimento.jrxml +++ b/jasper/cambio_istruttore.jrxml @@ -1,419 +1,390 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Si comunica inoltre che i termini del procedimento non subiscono variazioni."]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jasper/richiesta_integrazione_portos2.jrxml b/jasper/richiesta_integrazione_portos2.jrxml index 5034893a..4b8366a8 100644 --- a/jasper/richiesta_integrazione_portos2.jrxml +++ b/jasper/richiesta_integrazione_portos2.jrxml @@ -82,7 +82,7 @@ "D.P.R. n. 380 06/06/2001.\n"+ "Progetto soggetto ad autorizzazione ai sensi delli'art. 94 D.P.R. 380/2001 in relazione"+ "ai controlli a campione effettuati ai sensi dall'art. 94-bis, comma 5, secondo le"+ -"indicazioni di cui al D.D.G. 189/2019.\n"+ +"indicazioni di cui al D.D.G. 334/2020.\n"+ "\n"+ "Richiesta di documentazione integrativa o sostitutiva.\n" : diff --git a/jasper/Avvio procedimento 2.jrxml b/jasper/vidimazione.jrxml similarity index 51% rename from jasper/Avvio procedimento 2.jrxml rename to jasper/vidimazione.jrxml index b0319e50..76e541c1 100644 --- a/jasper/Avvio procedimento 2.jrxml +++ b/jasper/vidimazione.jrxml @@ -1,438 +1,401 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jasper/vidimazione_fl.jrxml b/jasper/vidimazione_fl.jrxml new file mode 100644 index 00000000..823732e6 --- /dev/null +++ b/jasper/vidimazione_fl.jrxml @@ -0,0 +1,397 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jasper/vidimazione_var_sog.jrxml b/jasper/vidimazione_var_sog.jrxml new file mode 100644 index 00000000..46754909 --- /dev/null +++ b/jasper/vidimazione_var_sog.jrxml @@ -0,0 +1,416 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jasper/visualizza_collaudo.jrxml b/jasper/visualizza_collaudo.jrxml new file mode 100644 index 00000000..3e348e16 --- /dev/null +++ b/jasper/visualizza_collaudo.jrxml @@ -0,0 +1,444 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jasper/visualizza_fine_lavori.jrxml b/jasper/visualizza_fine_lavori.jrxml new file mode 100644 index 00000000..c1c81980 --- /dev/null +++ b/jasper/visualizza_fine_lavori.jrxml @@ -0,0 +1,487 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ConfigurazioneLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ConfigurazioneLocalService.java index b30b2cdd..cc0f17e6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ConfigurazioneLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ConfigurazioneLocalService.java @@ -331,8 +331,7 @@ public interface ConfigurazioneLocalService extends BaseLocalService, com.liferay.portal.kernel.exception.SystemException; @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public boolean isDeveloper(com.liferay.portal.model.User user) - throws com.liferay.portal.kernel.exception.SystemException; + public boolean isDeveloper(com.liferay.portal.model.User user); @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public boolean isProduction(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ConfigurazioneLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ConfigurazioneLocalServiceClp.java index e9a6878a..c8dbcf97 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ConfigurazioneLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ConfigurazioneLocalServiceClp.java @@ -1010,8 +1010,7 @@ public class ConfigurazioneLocalServiceClp implements ConfigurazioneLocalService } @Override - public boolean isDeveloper(com.liferay.portal.model.User user) - throws com.liferay.portal.kernel.exception.SystemException { + public boolean isDeveloper(com.liferay.portal.model.User user) { Object returnObj = null; try { @@ -1022,10 +1021,6 @@ public class ConfigurazioneLocalServiceClp implements ConfigurazioneLocalService catch (Throwable t) { t = ClpSerializer.translateThrowable(t); - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - if (t instanceof RuntimeException) { throw (RuntimeException)t; } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ConfigurazioneLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ConfigurazioneLocalServiceUtil.java index 832146ba..15480ba9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ConfigurazioneLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ConfigurazioneLocalServiceUtil.java @@ -365,8 +365,7 @@ public class ConfigurazioneLocalServiceUtil { return getService().isDeveloper(userId); } - public static boolean isDeveloper(com.liferay.portal.model.User user) - throws com.liferay.portal.kernel.exception.SystemException { + public static boolean isDeveloper(com.liferay.portal.model.User user) { return getService().isDeveloper(user); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ConfigurazioneLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ConfigurazioneLocalServiceWrapper.java index df32f1de..5b273f15 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ConfigurazioneLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ConfigurazioneLocalServiceWrapper.java @@ -391,8 +391,7 @@ public class ConfigurazioneLocalServiceWrapper } @Override - public boolean isDeveloper(com.liferay.portal.model.User user) - throws com.liferay.portal.kernel.exception.SystemException { + public boolean isDeveloper(com.liferay.portal.model.User user) { return _configurazioneLocalService.isDeveloper(user); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AzioniPraticheUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AzioniPraticheUtil.java index 26f24b35..b08ec889 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AzioniPraticheUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AzioniPraticheUtil.java @@ -127,10 +127,7 @@ public class AzioniPraticheUtil { status = STATE_COLLAUDO_PARZIALE; } List actionList = STATE_ACTIONS_MAP.get(status); - if (actionList == null) { - actionList = new ArrayList<>(); - } - if (!actionList.contains(action)) { + if (actionList == null || !actionList.contains(action)) { return false; } if (!action.equalsIgnoreCase(ACTION_INTEGRAZIONE) && intPratica.getCollaudoTotale()) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java index 11e70860..2faf3861 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java @@ -7,7 +7,6 @@ import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.FineLavori; import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.Soggetto; -import it.tref.liferay.portos.bo.model.Territorio; import it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil; import it.tref.liferay.portos.bo.service.CollaudoServiceUtil; import it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil; @@ -19,7 +18,6 @@ import it.tref.liferay.portos.bo.service.FineLavoriServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaServiceUtil; import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; -import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.shared.bean.FirmeBean; import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.DocumentiPraticaUtil; @@ -424,9 +422,8 @@ public class ValidazionePraticaUtil { DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); List notCompleted = new ArrayList<>(); IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); - if (!territorio.getZona().equals(Constants.ZONA_2) && !territorio.getZona().equals(Constants.ZONA_4) - && Validator.isNull(dettPratica.getAg())) { + if (Validator.isNull(dettPratica.getAg()) + && (dettPratica.isTcAdeguamentoSismico() || dettPratica.isTcMiglioramentoSismico())) { notCompleted.add("ag"); } boolean aiSensi = AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId()) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowUtil.java index 8ef049f7..5cb14586 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowUtil.java @@ -7,6 +7,7 @@ import it.tref.liferay.portos.bo.model.Territorio; import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; +import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.kaleo.model.FormLog; @@ -71,8 +72,9 @@ public class WorkflowUtil { return null; } - public static WorkflowTask getLastApprovazioneTask(long companyId, long groupId, Long userId, ControlloPratica bean) - throws PortalException, SystemException { + public static WorkflowTask + getLastApprovazioneTask(long companyId, long groupId, Long userId, ControlloPratica bean) + throws PortalException, SystemException { WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.getWorkflowInstanceLink( companyId, groupId, ControlloPratica.class.getName(), bean.getPrimaryKey()); @@ -148,6 +150,12 @@ public class WorkflowUtil { return false; } return true; + } else if ((Constants.ZONA_1.equals(territorio.getZona()) || (Constants.ZONA_2.equals(territorio.getZona()) && (dettPratica + .getAg().replace(',', '.').compareTo("0.2") >= 0))) + && (dettPratica.isTcAdeguamentoSismico() || dettPratica.isTcMiglioramentoSismico())) { + intPratica.setTipoPratica(Constants.TIPO_PRATICA_AUTORIZZAZIONE); + IntPraticaLocalServiceUtil.updateIntPratica(intPratica); + return true; } else if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { return false; } else { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/startup/DatabaseUpdateAction.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/startup/DatabaseUpdateAction.java index 42989c77..fa6ff620 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/startup/DatabaseUpdateAction.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/startup/DatabaseUpdateAction.java @@ -133,18 +133,18 @@ public class DatabaseUpdateAction extends SimpleAction { _log.info("Aggiornamento a v4 di " + IntPraticaImpl.TABLE_NAME); s.executeUpdate("ALTER TABLE " + IntPraticaImpl.TABLE_NAME + " ADD COLUMN inLavorazioneSue BOOL"); } - - + + if (!hasColumn(DettPraticaImpl.TABLE_NAME, "contestoPaesaggistico")) { _log.info("Aggiornamento a v7 di " + IntPraticaImpl.TABLE_NAME); s.executeUpdate("ALTER TABLE " + DettPraticaImpl.TABLE_NAME + " ADD COLUMN contestoPaesaggistico TEXT"); } - + if (!hasColumn(DettPraticaImpl.TABLE_NAME, "livelloDiTutela")) { _log.info("Aggiornamento a v7 di " + IntPraticaImpl.TABLE_NAME); s.executeUpdate("ALTER TABLE " + DettPraticaImpl.TABLE_NAME + " ADD COLUMN livelloDiTutela TEXT"); } - + if (!hasColumn(DettPraticaImpl.TABLE_NAME, "vincoli")) { _log.info("Aggiornamento a v7 di " + IntPraticaImpl.TABLE_NAME); s.executeUpdate("ALTER TABLE " + DettPraticaImpl.TABLE_NAME + " ADD COLUMN vincoli TEXT"); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ManutenzioneDatabase.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ManutenzioneDatabase.java index 7fd63552..d6123c93 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ManutenzioneDatabase.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ManutenzioneDatabase.java @@ -1,7 +1,5 @@ /** - * * @author Salvatore La Manna, Manifattura Web Group per Regione Siciliana - * */ package it.mwg.sismica.bo.util; @@ -160,11 +158,15 @@ public class ManutenzioneDatabase { List esito = new ArrayList<>(); long companyId = serviceContext.getCompanyId(); if (mode.contains("!Workflow=")) { - esito.addAll(SismicaUtil.riparaWorkflow(mode.replaceAll(".*?!Workflow=([^!]*)!", "$1"))); + esitoLog(esito, SismicaUtil.riparaWorkflow(mode.replaceAll(".*?!Workflow=([^!]*)!", "$1"))); + } + if (mode.contains("!AggiornaZone!")) { + ZoneSismicheUtil zone = new ZoneSismicheUtil(serviceContext); + esitoLog(esito, zone.aggiornaComuni(companyId)); } if (mode.contains("!Pulisci!")) { if (mode.contains("!DocumentLibrary!")) { - esito.addAll(puliziaDocumentLibrary(companyId)); + esitoLog(esito, puliziaDocumentLibrary(companyId)); esitoLog( esito, puliziaAllegati(companyId, ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, @@ -180,7 +182,7 @@ public class ManutenzioneDatabase { if (mode.contains("!User!")) { esitoLog(esito, svuotaUser(companyId)); } - esito.addAll(svuotaDatabase(companyId)); + esitoLog(esito, svuotaDatabase(companyId)); if (mode.contains("!Reset!")) { ConfigurazioneLocalServiceUtil.storeConfig(Constants.NUMERO_PROGETTO_KEY_DB, "1", serviceContext); } @@ -199,8 +201,7 @@ public class ManutenzioneDatabase { MultiVMPoolUtil.clear(); CacheRegistryUtil.clear(); DirectServletRegistryUtil.clearServlets(); - } catch (IllegalStateException e) { - } + } catch (IllegalStateException e) {} } private static List svuotaDatabase(long companyId) throws SystemException, PortalException { @@ -287,8 +288,7 @@ public class ManutenzioneDatabase { long emailId = 0; try { emailId = Long.parseLong(folder.getName()); - } catch (NumberFormatException e) { - } + } catch (NumberFormatException e) {} if (Validator.isNotNull(emailId) && String.valueOf(emailId).equals(folder.getName()) && !esiste(EMAIL_CLASS_NAME, emailId)) { _log.info("Cancello la cartella " + folder.getName()); @@ -344,46 +344,46 @@ public class ManutenzioneDatabase { String tipo = StringPool.BLANK; String strId2 = StringPool.BLANK; switch (parti.length) { - case 3: - tipo = parti[1]; - strId2 = parti[2]; - break; - case 4: - tipo = parti[1] + StringPool.UNDERLINE + parti[2]; - strId2 = parti[3]; - break; - case 5: - if (parti[4].equals("protocollato")) { + case 3: + tipo = parti[1]; + strId2 = parti[2]; + break; + case 4: tipo = parti[1] + StringPool.UNDERLINE + parti[2]; strId2 = parti[3]; - } + break; + case 5: + if (parti[4].equals("protocollato")) { + tipo = parti[1] + StringPool.UNDERLINE + parti[2]; + strId2 = parti[3]; + } } if ((strId1.length() == 10) && (strId2.length() > 0) && SismicaUtil.isLong(strId1) && SismicaUtil.isLong(strId2)) { long id1 = Long.parseLong(strId1); switch (tipo) { - case "AS": - if (!esiste(DETTPRATICA_CLASS_NAME, id1)) { - DLAppLocalServiceUtil.deleteFileEntry(fileEntry.getFileEntryId()); - cancellati++; - rimossi++; - } - break; - case "AI_B": - case "CO_B": - case "IN_B": - case "IN_F": - case "MA_F": - if (!avvisiFileEntries.contains(fileEntry.getFileEntryId())) { - DLAppLocalServiceUtil.deleteFileEntry(fileEntry.getFileEntryId()); - cancellati++; - rimossi++; - } - break; - default: - _log.info("T " + System.currentTimeMillis()); - _log.info("Tipo sconosciuto " + tipo + " (" + fileEntry.getTitle() + ")"); - break; + case "AS": + if (!esiste(DETTPRATICA_CLASS_NAME, id1)) { + DLAppLocalServiceUtil.deleteFileEntry(fileEntry.getFileEntryId()); + cancellati++; + rimossi++; + } + break; + case "AI_B": + case "CO_B": + case "IN_B": + case "IN_F": + case "MA_F": + if (!avvisiFileEntries.contains(fileEntry.getFileEntryId())) { + DLAppLocalServiceUtil.deleteFileEntry(fileEntry.getFileEntryId()); + cancellati++; + rimossi++; + } + break; + default: + _log.info("T " + System.currentTimeMillis()); + _log.info("Tipo sconosciuto " + tipo + " (" + fileEntry.getTitle() + ")"); + break; } } else { _log.info("Nome sconosciuto " + fileEntry.getTitle()); @@ -689,8 +689,7 @@ public class ManutenzioneDatabase { Statement s = connection.createStatement(); i = s.executeUpdate("DELETE FROM portos_bo_intpratica"); d = s.executeUpdate("DELETE FROM portos_bo_dettpratica"); - } catch (SQLException e) { - } + } catch (SQLException e) {} clearCache(); return "Cancellati " + i + " IntPratica, " + d + " DettPratica"; } @@ -890,17 +889,16 @@ public class ManutenzioneDatabase { if (!String.valueOf(classPK).equals(resourcePermission.getPrimKey())) { classPK = 0; } - } catch (NumberFormatException e) { - } + } catch (NumberFormatException e) {} if (Validator.isNotNull(classPK)) { switch (resourcePermission.getScope()) { - case ResourceConstants.SCOPE_INDIVIDUAL: - if (!esiste(resourcePermission.getName(), classPK)) { - ResourcePermissionLocalServiceUtil.deleteResourcePermission(resourcePermission); - cancellati++; - rimossi++; - } - break; + case ResourceConstants.SCOPE_INDIVIDUAL: + if (!esiste(resourcePermission.getName(), classPK)) { + ResourcePermissionLocalServiceUtil.deleteResourcePermission(resourcePermission); + cancellati++; + rimossi++; + } + break; } } } @@ -927,8 +925,7 @@ public class ManutenzioneDatabase { deleteFileEntry(docPratica.getDlFileEntryId()); DocPraticaLocalServiceUtil.deleteDocPratica(docPratica); docPraticaCancellati++; - } catch (PortalException e) { - } + } catch (PortalException e) {} } SoggettoLocalServiceUtil.deleteSoggetto(soggetto); cancellati++; @@ -1009,12 +1006,12 @@ public class ManutenzioneDatabase { for (SyncDLObject syncDLObject : syncDLObjects) { String className = null; switch (syncDLObject.getType()) { - case DLSyncConstants.TYPE_FILE: - className = DLFILEENTRY_CLASS_NAME; - break; - case DLSyncConstants.TYPE_FOLDER: - className = DLFOLDER_CLASS_NAME; - break; + case DLSyncConstants.TYPE_FILE: + className = DLFILEENTRY_CLASS_NAME; + break; + case DLSyncConstants.TYPE_FOLDER: + className = DLFOLDER_CLASS_NAME; + break; } if (!esiste(className, syncDLObject.getTypePK())) { SyncDLObjectLocalServiceUtil.deleteSyncDLObject(syncDLObject); @@ -1079,8 +1076,7 @@ public class ManutenzioneDatabase { try { instance = WorkflowInstanceManagerUtil.getWorkflowInstance(link.getCompanyId(), link.getWorkflowInstanceId()); - } catch (PortalException e) { - } + } catch (PortalException e) {} if (Validator.isNull(instance)) { WorkflowInstanceLinkLocalServiceUtil.deleteWorkflowInstanceLink(link); } else { @@ -1199,16 +1195,16 @@ public class ManutenzioneDatabase { } else { if (className.contains(".")) { switch (className) { - case "com.liferay.portlet.blogs": - case "com.liferay.portlet.documentlibrary": - case "com.liferay.portlet.journal": - case "com.liferay.portlet.messageboards": - case "com.liferay.portlet.polls": - case "com.liferay.portlet.wiki": - case "it.tref.liferay.portos.bo.intpratiche": - break; - default: - _log.info("Classe non supportata: " + className); + case "com.liferay.portlet.blogs": + case "com.liferay.portlet.documentlibrary": + case "com.liferay.portlet.journal": + case "com.liferay.portlet.messageboards": + case "com.liferay.portlet.polls": + case "com.liferay.portlet.wiki": + case "it.tref.liferay.portos.bo.intpratiche": + break; + default: + _log.info("Classe non supportata: " + className); } } } @@ -1222,7 +1218,13 @@ public class ManutenzioneDatabase { private static void deleteFileEntry(long fileEntryId) throws SystemException { try { DLAppLocalServiceUtil.deleteFileEntry(fileEntryId); - } catch (PortalException e) { + } catch (PortalException e) {} + } + + private static void esitoLog(List esito, List msgs) { + + for (String msg : msgs) { + esitoLog(esito, msg); } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java index fddf072a..5263626d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java @@ -118,7 +118,7 @@ import com.liferay.portlet.documentlibrary.model.DLFolder; import com.liferay.portlet.documentlibrary.service.DLAppServiceUtil; public class SismicaUtil { - private final static Log _log = LogFactoryUtil.getLog(SismicaUtil.class); + private static final Log _log = LogFactoryUtil.getLog(SismicaUtil.class); private static final SimpleDateFormat dfmt = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss"); private static final SimpleDateFormat sdfGiornoDB = new SimpleDateFormat("yyyy-MM-dd"); @@ -336,7 +336,7 @@ public class SismicaUtil { List controlli = ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status(intPraticaId, WorkflowConstants.STATUS_PENDING); if (0 == controlli.size()) { - esitoLog(esito, "Aggiungo controllo pratica"); + esitoLog(esito, "Aggiungo controllo pratica numero " + numeroProgetto); ServiceContext serviceContext = new ServiceContext(); serviceContext.setCompanyId(companyId); serviceContext.setScopeGroupId(dettPraticaId); @@ -709,6 +709,7 @@ public class SismicaUtil { controllo = controlli.get(controlli.size() - 1); } catch (Exception e1) { try { + esitoLog(esito, "Aggiungo controllo pratica numero " + pratica.getNumeroProgetto()); controllo = ControlloPraticaLocalServiceUtil.addControlloPratica( dettPratica.getGroupId(), dettPratica.getUserId(), pratica.getIntPraticaId(), dettPratica.getDettPraticaId(), false, serviceContext); @@ -792,6 +793,7 @@ public class SismicaUtil { serviceContext.setUserId(dettPratica.getUserId()); ControlloPratica controllo; try { + esitoLog(esito, "Aggiungo controllo pratica numero " + pratica.getNumeroProgetto()); controllo = ControlloPraticaLocalServiceUtil.addControlloPratica( dettPratica.getGroupId(), dettPratica.getUserId(), pratica.getIntPraticaId(), dettPratica.getDettPraticaId(), false, @@ -923,6 +925,7 @@ public class SismicaUtil { } catch (SystemException e) {} int start = 0; List pratiche = null; + String className = ControlloPratica.class.getName(); do { try { pratiche = IntPraticaLocalServiceUtil.getIntPraticas(start, start + SLICE); @@ -955,9 +958,11 @@ public class SismicaUtil { Map workflowContext = new HashMap(); esitoLog(esito, "id: " + pratica.getIntPraticaId() + ", numero: " + pratica.getNumeroProgetto()); try { - WorkflowHandlerRegistryUtil.startWorkflowInstance(last.getCompanyId(), last.getGroupId(), - last.getUserId(), ControlloPratica.class.getName(), last.getPrimaryKey(), last, - serviceContext, workflowContext); + long groupId = last.getGroupId(); + long classPK = last.getPrimaryKey(); + cancellaWorkflow(companyId, groupId, className, classPK); + WorkflowHandlerRegistryUtil.startWorkflowInstance(companyId, groupId, last.getUserId(), + className, classPK, last, serviceContext, workflowContext); } catch (PortalException | SystemException e) { esitoLog(esito, "Errore " + e.getMessage()); } @@ -969,6 +974,25 @@ public class SismicaUtil { return esito; } + private static void cancellaWorkflow(long companyId, long groupId, String className, long classPK) + throws PortalException, SystemException { + + WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.fetchWorkflowInstanceLink( + companyId, groupId, className, classPK); + if (workflowInstanceLink != null) { + WorkflowInstance workflowInstance; + try { + workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance(companyId, + workflowInstanceLink.getWorkflowInstanceId()); + } catch (Exception e) { + workflowInstance = null; + } + if (Validator.isNull(workflowInstance) || !workflowInstance.isComplete()) { + WorkflowInstanceLinkLocalServiceUtil.deleteWorkflowInstanceLink(companyId, groupId, className, classPK); + } + } + } + private static Map templateByKey; private static Map templateById; private static Map templateIdByKey; @@ -1121,6 +1145,7 @@ public class SismicaUtil { serviceContext.setCompanyId(dettPratica.getCompanyId()); serviceContext.setScopeGroupId(dettPratica.getGroupId()); serviceContext.setUserId(dettPratica.getUserId()); + _log.info("Aggiungo controllo pratica numero " + intPratica.getNumeroProgetto()); ControlloPratica controllo = ControlloPraticaLocalServiceUtil.addControlloPratica(intPratica.getGroupId(), intPratica.getUserId(), intPratica.getIntPraticaId(), dettPratica.getDettPraticaId(), false, serviceContext); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SorteggioPraticaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SorteggioPraticaUtil.java index 71d47903..e37ebcb3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SorteggioPraticaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SorteggioPraticaUtil.java @@ -98,7 +98,7 @@ public class SorteggioPraticaUtil { Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(companyId, codiceProvincia); long numeroSorteggiate = (long) Math.ceil(0.1 * elenco.size()); String testoSorteggio; - if (numeroSorteggiate > 1) { + if (numeroSorteggiate != 1) { testoSorteggio = "saranno estratte " + numeroSorteggiate + " pratiche"; } else { testoSorteggio = "sarà estratta 1 pratica"; @@ -202,7 +202,7 @@ public class SorteggioPraticaUtil { private static String reportFileName(long companyId, String anno, int settimana) { - return "Sorteggio_" + settimana + StringPool.UNDERLINE + anno + StringPool.UNDERLINE + companyId; + return "Sorteggio_" + settimana + '_' + anno + '_' + companyId; } /** @@ -250,6 +250,7 @@ public class SorteggioPraticaUtil { mese, sett, dtSorteggio, StringPool.BLANK, APERTO, StringPool.BLANK, progressivoEstrazione++, pratica.getNumeroProgetto(), committente, comune.getDenominazione(), provincia.getProvincia(), false, pratica.getIntPraticaId(), false, sc); + _log.info("Aggiungo controllo pratica numero " + pratica.getNumeroProgetto()); ControlloPratica controllo = ControlloPraticaLocalServiceUtil.addControlloPratica(pratica.getGroupId(), pratica.getUserId(), pratica.getIntPraticaId(), dettPratica.getDettPraticaId(), true, sc); long idTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(sc.getCompanyId(), diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ZoneSismicheUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ZoneSismicheUtil.java new file mode 100644 index 00000000..0e185e8e --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ZoneSismicheUtil.java @@ -0,0 +1,251 @@ +package it.mwg.sismica.bo.util; + +import it.tref.liferay.portos.bo.model.Comune; +import it.tref.liferay.portos.bo.model.Territorio; +import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil; +import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; + +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Date; +import java.util.List; + +import com.liferay.counter.service.CounterLocalServiceUtil; +import com.liferay.portal.kernel.dao.orm.DynamicQuery; +import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.service.ServiceContext; + +public class ZoneSismicheUtil { + + private Date oggi; + private ServiceContext serviceContext; + + private static final Log _log = LogFactoryUtil.getLog(ZoneSismicheUtil.class); + + public ZoneSismicheUtil(ServiceContext serviceContext) { + + Calendar calendar = Calendar.getInstance(); + calendar.set(Calendar.HOUR_OF_DAY, 0); + calendar.set(Calendar.MINUTE, 0); + calendar.set(Calendar.SECOND, 0); + calendar.set(Calendar.MILLISECOND, 0); + oggi = calendar.getTime(); + this.serviceContext = serviceContext; + } + + public List aggiornaComuni(long companyId) throws PortalException, SystemException { + + List ret = new ArrayList<>(); + ret.add(aggiungiComune(companyId, "Misiliscemi", "081", "025", "081025", "M432", false, "", "", serviceContext)); + + ret.add(impostaZona(companyId, "MENFI", 1, "0,1659")); + ret.add(impostaZona(companyId, "MONTEVAGO", 1, "0,1629")); + ret.add(impostaZona(companyId, "SANTA MARGHERITA DI BELICE", 1, "0,1686")); + ret.add(impostaZona(companyId, "LICODIA EUBEA", 1, "0,2672")); + ret.add(impostaZona(companyId, "MILITELLO IN VAL DI CATANIA", 1, "0,2614")); + ret.add(impostaZona(companyId, "SCORDIA", 1, "0,2605")); + ret.add(impostaZona(companyId, "VIZZINI", 1, "0,2761")); + ret.add(impostaZona(companyId, "ALÌ", 1, "0,244")); + ret.add(impostaZona(companyId, "ALÌ TERME", 1, "0,2512")); + ret.add(impostaZona(companyId, "FIUMEDINISI", 1, "0,2357")); + ret.add(impostaZona(companyId, "FURCI SICULO", 1, "0,2362")); + ret.add(impostaZona(companyId, "ITALA", 1, "0,2448")); + ret.add(impostaZona(companyId, "MANDANICI", 1, "0,2222")); + ret.add(impostaZona(companyId, "MESSINA", 1, "0,2559")); + ret.add(impostaZona(companyId, "NIZZA DI SICILIA", 1, "0,247")); + ret.add(impostaZona(companyId, "PAGLIARA", 1, "0,2435")); + ret.add(impostaZona(companyId, "ROCCALUMERA", 1, "0,2398")); + ret.add(impostaZona(companyId, "ROMETTA", 1, "0,2232")); + ret.add(impostaZona(companyId, "SANTA TERESA DI RIVA", 1, "0,241")); + ret.add(impostaZona(companyId, "SANT'ALESSIO SICULO", 1, "0,2359")); + ret.add(impostaZona(companyId, "SAPONARA", 1, "0,2231")); + ret.add(impostaZona(companyId, "SAVOCA", 1, "0,2349")); + ret.add(impostaZona(companyId, "SCALETTA ZANCLEA", 1, "0,2522")); + ret.add(impostaZona(companyId, "VILLAFRANCA TIRRENA", 1, "0,2062")); + ret.add(impostaZona(companyId, "CONTESSA ENTELLINA", 1, "0,1695")); + ret.add(impostaZona(companyId, "CHIARAMONTE GULFI", 1, "0,2586")); + ret.add(impostaZona(companyId, "GIARRATANA", 1, "0,2726")); + ret.add(impostaZona(companyId, "MODICA", 1, "0,2641")); + ret.add(impostaZona(companyId, "MONTEROSSO ALMO", 1, "0,2699")); + ret.add(impostaZona(companyId, "RAGUSA", 1, "0,259")); + ret.add(impostaZona(companyId, "AUGUSTA", 1, "0,2671")); + ret.add(impostaZona(companyId, "BUCCHERI", 1, "0,2798")); + ret.add(impostaZona(companyId, "BUSCEMI", 1, "0,2785")); + ret.add(impostaZona(companyId, "CANICATTINI BAGNI", 1, "0,265")); + ret.add(impostaZona(companyId, "CARLENTINI", 1, "0,2804")); + ret.add(impostaZona(companyId, "CASSARO", 1, "0,279")); + ret.add(impostaZona(companyId, "FERLA", 1, "0,2803")); + ret.add(impostaZona(companyId, "FLORIDIA", 1, "0,2678")); + ret.add(impostaZona(companyId, "FRANCOFONTE", 1, "0,2791")); + ret.add(impostaZona(companyId, "LENTINI", 1, "0,2722")); + ret.add(impostaZona(companyId, "MELILLI", 1, "0,2787")); + ret.add(impostaZona(companyId, "NOTO", 1, "0,2702")); + ret.add(impostaZona(companyId, "PALAZZOLO ACREIDE", 1, "0,2766")); + ret.add(impostaZona(companyId, "PRIOLO GARGALLO", 1, "0,2631")); + ret.add(impostaZona(companyId, "SIRACUSA", 1, "0,2614")); + ret.add(impostaZona(companyId, "SOLARINO", 1, "0,2699")); + ret.add(impostaZona(companyId, "SORTINO", 1, "0,2803")); + ret.add(impostaZona(companyId, "GIBELLINA", 1, "0,1581")); + ret.add(impostaZona(companyId, "PARTANNA", 1, "0,1558")); + + ret.add(impostaZona(companyId, "FAVIGNANA", 2, "0,0417")); + ret.add(impostaZona(companyId, "MARSALA", 2, "0,0711")); + ret.add(impostaZona(companyId, "MAZARA DEL VALLO", 2, "0,0833")); + ret.add(impostaZona(companyId, "MISILISCEMI", 2, "0,0578")); + ret.add(impostaZona(companyId, "PACECO", 2, "0,061")); + ret.add(impostaZona(companyId, "PETROSINO", 2, "0,0594")); + ret.add(impostaZona(companyId, "SAN VITO LO CAPO", 2, "0,0712")); + ret.add(impostaZona(companyId, "TRAPANI", 2, "0,0813")); + ret.add(impostaZona(companyId, "VALDERICE", 2, "0,0601")); + ret.add(impostaZona(companyId, "VITA", 2, "0,0971")); + + ret.add(impostaZona(companyId, "CAMASTRA", 3, "0,0571")); + ret.add(impostaZona(companyId, "CAMPOBELLO DI LICATA", 3, "0,0618")); + ret.add(impostaZona(companyId, "CANICATTÌ", 3, "0,0635")); + ret.add(impostaZona(companyId, "CASTROFILIPPO", 3, "0,0596")); + ret.add(impostaZona(companyId, "COMITINI", 3, "0,0620")); + ret.add(impostaZona(companyId, "FAVARA", 3, "0,0598")); + ret.add(impostaZona(companyId, "GROTTE", 3, "0,0631")); + ret.add(impostaZona(companyId, "LICATA", 3, "0,0644")); + ret.add(impostaZona(companyId, "NARO", 3, "0,0644")); + ret.add(impostaZona(companyId, "PALMA DI MONTECHIARO", 3, "0,0559")); + ret.add(impostaZona(companyId, "RACALMUTO", 3, "0,0631")); + ret.add(impostaZona(companyId, "RAVANUSA", 3, "0,0631")); + ret.add(impostaZona(companyId, "ACQUAVIVA PLATANI", 3, "0,0707")); + ret.add(impostaZona(companyId, "BOMPENSIERE", 3, "0,0661")); + ret.add(impostaZona(companyId, "BUTERA", 3, "0,1016")); + ret.add(impostaZona(companyId, "CALTANISSETTA", 3, "0,0796")); + ret.add(impostaZona(companyId, "CAMPOFRANCO", 3, "0,0679")); + ret.add(impostaZona(companyId, "DELIA", 3, "0,0629")); + ret.add(impostaZona(companyId, "MARIANOPOLI", 3, "0,0780")); + ret.add(impostaZona(companyId, "MAZZARINO", 3, "0,1249")); + ret.add(impostaZona(companyId, "MILENA", 3, "0,0647")); + ret.add(impostaZona(companyId, "MONTEDORO", 3, "0,0656")); + ret.add(impostaZona(companyId, "MUSSOMELI", 3, "0,0766")); + ret.add(impostaZona(companyId, "RIESI", 3, "0,0723")); + ret.add(impostaZona(companyId, "SAN CATALDO", 3, "0,0723")); + ret.add(impostaZona(companyId, "SERRADIFALCO", 3, "0,0676")); + ret.add(impostaZona(companyId, "SOMMATINO", 3, "0,0668")); + ret.add(impostaZona(companyId, "SUTERA", 3, "0,0694")); + ret.add(impostaZona(companyId, "VALLELUNGA PRATAMENO", 3, "0,0922")); + ret.add(impostaZona(companyId, "VILLALBA", 3, "0,0847")); + ret.add(impostaZona(companyId, "BARRAFRANCA", 3, "0,0789")); + ret.add(impostaZona(companyId, "PIETRAPERZIA", 3, "0,0766")); + return ret; + } + + private String aggiungiComune(long companyId, String denominazione, String codiceProvincia, String codiceComune, + String codiceIstat, String codiceBelfiore, boolean provincia, String mailSuap, String mailSue, + ServiceContext serviceContext) throws PortalException, SystemException { + + Comune comune = ComuneLocalServiceUtil.fetchByC_CB(companyId, codiceBelfiore); + if (Validator.isNull(comune)) { + ComuneLocalServiceUtil.addComune(serviceContext.getUserId(), codiceProvincia, codiceComune, codiceIstat, + codiceBelfiore, denominazione, provincia, mailSuap, mailSue, serviceContext); + return "Aggiunto il comune \"" + denominazione + "\""; + } + return "Comune \"" + denominazione + "\" già presente"; + } + + private String impostaZona(long companyId, String nomeComune, long valoreZona, String ag) { + + List comuni = null; + try { + comuni = ComuneLocalServiceUtil.findByCompanyDenominazione(companyId, nomeComune); + } catch (SystemException e) { + return "Errore " + nomeComune + ": " + e.getMessage(); + } + if (Validator.isNull(comuni) || comuni.size() != 1) { + return "Errore " + nomeComune + ": la ricerca del comune ha prodotto " + comuni.size() + " risultati"; + } else { + Comune comune = comuni.get(0); + List territori = null; + try { + territori = TerritorioLocalServiceUtil.getActiveTerritoriByComune(comune.getComuneId()); + } catch (SystemException e) {} + String zona = String.valueOf(valoreZona); + if ((territori.size() == 0) || !territori.get(0).getZona().equals(zona)) { + Territorio vecchioTerritorio = (territori.size() == 0 ? null : territori.get(0)); + Territorio nuovoTerritorio; + try { + nuovoTerritorio = TerritorioLocalServiceUtil.createTerritorio(CounterLocalServiceUtil + .increment(Territorio.class.getName())); + } catch (SystemException e) { + return "Errore " + nomeComune + ": impossibile creare il territorio (" + e.getMessage() + ')'; + } + if (Validator.isNull(vecchioTerritorio)) { + long groupId = getGroupId(comune.getCodiceProvincia()); + if (groupId == 0) { + return "Errore " + nomeComune + ": impossibile trovare groupId"; + } + nuovoTerritorio.setGroupId(groupId); + } else { + nuovoTerritorio.setArticolo61(vecchioTerritorio.getArticolo61()); + nuovoTerritorio.setGroupId(vecchioTerritorio.getGroupId()); + } + Date now = new Date(); + nuovoTerritorio.setAgMax(ag); + nuovoTerritorio.setAgMin(ag); + nuovoTerritorio.setCodiceProvincia(comune.getCodiceProvincia()); + nuovoTerritorio.setCompanyId(companyId); + nuovoTerritorio.setComuneId(comune.getComuneId()); + nuovoTerritorio.setCreateDate(now); + nuovoTerritorio.setDtIni(oggi); + nuovoTerritorio.setModifiedDate(now); + nuovoTerritorio.setUserId(serviceContext.getUserId()); + nuovoTerritorio.setZona(zona); + try { + TerritorioLocalServiceUtil.updateTerritorio(nuovoTerritorio); + } catch (SystemException e) { + return "Errore " + nomeComune + ": impossibile salvare il territorio (" + e.getMessage() + ')'; + } + for (Territorio territorio : territori) { + territorio.setDtFin(oggi); + try { + TerritorioLocalServiceUtil.updateTerritorio(territorio); + } catch (SystemException e) { + return "Errore " + nomeComune + ": impossibile disattivare il territorio (" + e.getMessage() + + ')'; + } + } + return nomeComune + ": creato 1 territorio, disattivati " + territori.size(); + } else { + int aggiornati = 0; + for (Territorio territorio : territori) { + if (!(ag.equals(territorio.getAgMin()) && ag.equals(territorio.getAgMax()))) { + territorio.setAgMin(ag); + territorio.setAgMax(ag); + try { + TerritorioLocalServiceUtil.updateTerritorio(territorio); + } catch (SystemException e) { + return "Errore " + nomeComune + ": impossibile aggiornare il territorio (" + e.getMessage() + + ')'; + } + aggiornati++; + } + } + if (aggiornati > 0) { + return nomeComune + ": aggiornati " + aggiornati + " territori"; + } + } + return nomeComune + ": già aggiornato"; + } + } + + @SuppressWarnings("unchecked") + private long getGroupId(String codiceProvincia) { + + DynamicQuery dq = TerritorioLocalServiceUtil.dynamicQuery(); + dq.add(PropertyFactoryUtil.forName("codiceProvincia").eq(codiceProvincia)); + List territori = null; + try { + territori = TerritorioLocalServiceUtil.dynamicQuery(dq, 0, 1); + } catch (SystemException e) {} + return Validator.isNull(territori) || territori.isEmpty() ? 0 : territori.get(0).getGroupId(); + } +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java index f1489d39..4df6087c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java @@ -195,6 +195,9 @@ public class SchedulerInvioDocumento implements MessageListener { serviceContext.setCompanyId(integrazione.getCompanyId()); serviceContext.setScopeGroupId(integrazione.getGroupId()); serviceContext.setUserId(integrazione.getUserId()); + IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(integrazione + .getIntPraticaId()); + _log.info("Aggiungo controllo pratica numero " + intPratica.getNumeroProgetto()); controlloPratica = ControlloPraticaLocalServiceUtil.addControlloPratica( integrazione.getGroupId(), integrazione.getUserId(), integrazione.getIntPraticaId(), integrazione.getDettPraticaId(), false, @@ -519,8 +522,7 @@ public class SchedulerInvioDocumento implements MessageListener { } } - private void sendToTecnico(Avviso avviso) throws SystemException, PortalException { - } + private void sendToTecnico(Avviso avviso) throws SystemException, PortalException {} private ServiceContext getServiceContext(ControlloPratica controlloPratica) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java index 8328760c..95039ce8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java @@ -380,6 +380,7 @@ public class SchedulerPratiche implements MessageListener { Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); if (WorkflowUtil.needToStartWorkflow(dettPratica)) { boolean updateFlagControlloObbligatorio = true; + _log.info("Aggiungo controllo pratica numero " + intPratica.getNumeroProgetto()); ControlloPratica cp = ControlloPraticaLocalServiceUtil.addControlloPratica(territorio.getGroupId(), userId, intPratica.getIntPraticaId(), dettPratica.getDettPraticaId(), updateFlagControlloObbligatorio, serviceContext); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties index d55e5bf5..f49b591b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties +++ b/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=2799 - build.date=1649693475997 + build.number=2808 + build.date=1652797311299 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp index cf06d664..71453dec 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp @@ -56,8 +56,7 @@ boolean isDisabled = disabledInput && !enabledByIntegrazione; String displayStyle = proceduraC ? "display:none" : StringPool.BLANK; String urlIframeMappe = dettPratica.getUrlMappeFe(request, comune, disabledInput || isGeoEditable); -String originMappe = ConfigurazioneLocalServiceUtil.isProduction() ? - PortalUtil.getPortalURL(request) : "https://sismica.sicilia.it"; +String originMappe = PortalUtil.getPortalURL(request); %> @@ -495,7 +494,7 @@ function duplicati(input) {

<%=LanguageUtil.get(pageContext, "titolo-destinazione")%>

- +
ATTENZIONE <%=LanguageUtil.get(pageContext, "avviso-destinazione")%>
@@ -923,8 +922,8 @@ $('#destinazioneinazione input').on('change', function(){