Sfoglia il codice sorgente

Non si rilascia parere + correzioni moduli

master
Salvatore La Manna 4 anni fa
parent
commit
abbc9346d3
  1. 185
      jasper/cambio_istruttore.jrxml
  2. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java
  3. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java
  4. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java
  5. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java
  6. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AsseverazioniUtil.java
  7. 99
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AzioniPraticheUtil.java
  8. 14
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PraticaUtil.java
  9. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java
  10. 30
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowUtil.java
  11. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties
  12. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaImpl.java
  13. 37
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java
  14. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoBeanBuilder.java
  15. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java
  16. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java
  17. 19
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java
  18. 35
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java
  19. 83
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java
  20. 51
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java
  21. 264
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaServiceImpl.java
  22. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/ProtocollazioneUtil.java
  23. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  24. 27
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/asset/controllopratica/full_content.jsp
  25. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/header.jsp
  26. 45
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view.jsp
  27. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivitaistruttore/view_columns.jspf
  28. 2
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/StatoPraticaConstants.java
  29. 4
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/service.properties

185
jasper/cambio_istruttore.jrxml

@ -11,6 +11,7 @@
<field name="sha256Allegato" class="java.lang.String"/> <field name="sha256Allegato" class="java.lang.String"/>
</subDataset> </subDataset>
<parameter name="LOGO_REGIONE" class="java.lang.String"/> <parameter name="LOGO_REGIONE" class="java.lang.String"/>
<parameter name="LOGO_DIPARTIMENTO" class="java.lang.String"/>
<field name="tipo" class="java.lang.String"/> <field name="tipo" class="java.lang.String"/>
<field name="numeroProgetto" class="java.lang.String"/> <field name="numeroProgetto" class="java.lang.String"/>
<field name="lavoriDi" class="java.lang.String"/> <field name="lavoriDi" class="java.lang.String"/>
@ -72,7 +73,7 @@ e dell'identità siciliana]]></text>
</band> </band>
</pageHeader> </pageHeader>
<detail> <detail>
<band height="329"> <band height="138">
<line> <line>
<reportElement x="0" y="13" width="555" height="1" uuid="94b2c91e-bbd3-4d62-b399-34fcba04c0cb"/> <reportElement x="0" y="13" width="555" height="1" uuid="94b2c91e-bbd3-4d62-b399-34fcba04c0cb"/>
</line> </line>
@ -101,40 +102,6 @@ e dell'identità siciliana]]></text>
</textElement> </textElement>
<textFieldExpression><![CDATA[new SimpleDateFormat("dd/MM/yyyy").format($F{dataAvviso})]]></textFieldExpression> <textFieldExpression><![CDATA[new SimpleDateFormat("dd/MM/yyyy").format($F{dataAvviso})]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" x="0" y="268" width="549" height="26" uuid="0af63f5d-3c61-4dea-9c94-90037dbad3cc"/>
<textElement textAlignment="Justified">
<font fontName="DejaVu Sans" isBold="false" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{tipo}.equals("AU") ?
"Ai sensi dell'art. 7 della L. 241/1990 e ss. mm. e dell'art. 11bis della L.R n. 40/2009 e ss. mm. si comunica l'avvio del procedimento amministrativo relativo al rilascio dell'autorizzazione del progetto n. "+$F{numeroProgetto}+" prot. "+$F{numeroProtocollo}+" del "+new SimpleDateFormat("dd/MM/yyyy").format($F{dataPratica})+".\n"+
"Ai sensi dell'art. 94 D.P.R. 380/01, comma 2, l'autorizzazione è rilasciata entro sessanta giorni dalla richiesta e viene trasmessa allo Sportello Unico, subito dopo il rilascio, per i provvedimenti di sua competenza.\n"+
"Il Tecnico istruttore, incaricato per il controllo è "+$F{tecnico}+", che può essere contattato con email: "+$F{tecnicoEmail}+".\n"
:
($F{tipo}.equals("CO") ?
"Ai sensi dell'art. 7 della L. n. 241/1990 e ss. mm. e dell’art. 11 della L.R.T. n. 40/2009 e ss.mm. si comunica l'avvio del procedimento amministrativo relativo al controllo obbligatorio ai sensi dell'art. 169 comma 4 della L.R.T. n. 65/2014 del progetto n. "+$F{numeroProgetto}+" prot. "+$F{numeroProtocollo}+" del "+new SimpleDateFormat("dd/MM/yyyy").format($F{dataPratica})+".\n"+
"Il Tecnico istruttore, incaricato per il controllo è "+$F{tecnico}+", che può essere contattato con email: "+$F{tecnicoEmail}+".\n"+
"Ai sensi dell'art. 170, comma 10, della L.R.T. n. 65/2014 l’esito della verifica del progetto è reso noto entro il termine di sessanta giorni dalla data della presente comunicazione.\n"
:
($F{tipo}.equals("SO") ?
"Ai sensi dell'art. 7 della L. n. 241/1990 e ss. mm. e dell’art. 11 della L.R.T. n. 40/2009 e ss.mm. si comunica l'avvio del procedimento amministrativo relativo al controllo a campione ai sensi dell'art. 169 della L.R.T. n. 65/2014 del progetto n. "+$F{numeroProgetto}+" prot. "+$F{numeroProtocollo}+" del "+new SimpleDateFormat("dd/MM/yyyy").format($F{dataPratica})+".\n"+
"Tale progetto è risultato sorteggiato nella procedura telematica di estrazione effettuata in data "+new SimpleDateFormat("dd/MM/yyyy").format($F{dataSorteggio})+".\n"+
"Il Tecnico istruttore, incaricato per il controllo è "+$F{tecnico}+", che può essere contattato con email: "+$F{tecnicoEmail}+".\n"+
"Ai sensi dell'art. 170, comma 8, della L.R.T. n. 65/2014 l'esito della verifica del progetto è reso noto entro il termine di sessanta giorni dalla data della presente comunicazione.\n"
:
""))]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" x="1" y="296" width="548" height="25" uuid="39a17951-059d-4c3c-b39e-dda7074be109"/>
<textElement textAlignment="Justified">
<font fontName="DejaVu Sans" isBold="true" isItalic="false" isUnderline="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{tipo}.equals("AU") ?
"Si ricorda che i lavori NON potranno essere iniziati prima del rilascio dell'autorizzazione.\n"
:
""]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement x="56" y="19" width="492" height="13" uuid="1d0eab29-aac5-453d-a7a2-9143bc4c9d29"/> <reportElement x="56" y="19" width="492" height="13" uuid="1d0eab29-aac5-453d-a7a2-9143bc4c9d29"/>
<textElement> <textElement>
@ -142,13 +109,6 @@ e dell'identità siciliana]]></text>
</textElement> </textElement>
<textFieldExpression><![CDATA["Riassegnazione Pratica"]]></textFieldExpression> <textFieldExpression><![CDATA["Riassegnazione Pratica"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="238" width="549" height="30" uuid="a1d8f916-22a1-4ce9-9820-f59608002edc"/>
<textElement textAlignment="Justified" markup="html">
<font fontName="DejaVu Sans" isBold="false" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA["Si comunica che è variato il tecnico istruttore incaricato del controllo della pratica. Il nuovo tecnico istruttore è: "+$F{tecnico}+" che può essere contattato con email: "+$F{tecnicoEmail}+". <br> Si comunica inoltre che i termini del procedimento non subiscono variazioni."]]></textFieldExpression>
</textField>
<staticText> <staticText>
<reportElement x="9" y="40" width="82" height="14" uuid="40bed289-5bb3-41cd-bf4f-a7b6db15184d"> <reportElement x="9" y="40" width="82" height="14" uuid="40bed289-5bb3-41cd-bf4f-a7b6db15184d">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
@ -158,15 +118,6 @@ e dell'identità siciliana]]></text>
</textElement> </textElement>
<text><![CDATA[Comune:]]></text> <text><![CDATA[Comune:]]></text>
</staticText> </staticText>
<textField isBlankWhenNull="true">
<reportElement x="381" y="205" width="168" height="14" uuid="3f7a28c8-e281-48e8-9a92-92a7d048beca">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$F{alDirettoreLavori}]]></textFieldExpression>
</textField>
<staticText> <staticText>
<reportElement x="9" y="124" width="82" height="14" uuid="0dd65e67-b472-4b7e-aa76-b46f2883d417"> <reportElement x="9" y="124" width="82" height="14" uuid="0dd65e67-b472-4b7e-aa76-b46f2883d417">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
@ -176,24 +127,6 @@ e dell'identità siciliana]]></text>
</textElement> </textElement>
<text><![CDATA[Lavori di:]]></text> <text><![CDATA[Lavori di:]]></text>
</staticText> </staticText>
<staticText>
<reportElement key="" x="266" y="177" width="115" height="14" uuid="450c0354-114a-4bd1-a135-45ed184e4639">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans Bold" isBold="true"/>
</textElement>
<text><![CDATA[Al Committente]]></text>
</staticText>
<staticText>
<reportElement x="266" y="205" width="115" height="14" uuid="4707b16d-d65c-434f-9907-8e923bedb5de">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement>
<text><![CDATA[Al D.L.]]></text>
</staticText>
<staticText> <staticText>
<reportElement x="9" y="54" width="82" height="14" uuid="30197f9c-24ec-45f9-9f99-78b935f47cab"> <reportElement x="9" y="54" width="82" height="14" uuid="30197f9c-24ec-45f9-9f99-78b935f47cab">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
@ -212,8 +145,8 @@ e dell'identità siciliana]]></text>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{numeroProgetto}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{numeroProgetto}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="91" y="124" width="458" height="46" uuid="98a9d287-24b2-4670-a8b9-8931a65cde39"> <reportElement x="91" y="124" width="458" height="14" uuid="98a9d287-24b2-4670-a8b9-8931a65cde39">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement> </reportElement>
<textElement> <textElement>
@ -248,15 +181,6 @@ e dell'identità siciliana]]></text>
</textElement> </textElement>
<text><![CDATA[Progetto n.]]></text> <text><![CDATA[Progetto n.]]></text>
</staticText> </staticText>
<textField isBlankWhenNull="true">
<reportElement x="381" y="177" width="168" height="14" uuid="5e17af32-d0f2-42fa-92af-b30a9ffaa8b7">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$F{alCommittente}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="91" y="96" width="458" height="14" uuid="3be8fccc-e982-4ff1-957f-69908af69c23"> <reportElement x="91" y="96" width="458" height="14" uuid="3be8fccc-e982-4ff1-957f-69908af69c23">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
@ -276,7 +200,7 @@ e dell'identità siciliana]]></text>
<text><![CDATA[Protocollo n.]]></text> <text><![CDATA[Protocollo n.]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="9" y="110" width="82" height="14" uuid="0d0992b0-e356-4898-b5f8-9ea789bd7fd4"> <reportElement x="9" y="110" width="82" height="14" isRemoveLineWhenBlank="true" uuid="0d0992b0-e356-4898-b5f8-9ea789bd7fd4">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
<printWhenExpression><![CDATA[$F{numeroVariante}!=null && !$F{numeroVariante}.equalsIgnoreCase( "" )]]></printWhenExpression> <printWhenExpression><![CDATA[$F{numeroVariante}!=null && !$F{numeroVariante}.equalsIgnoreCase( "" )]]></printWhenExpression>
</reportElement> </reportElement>
@ -286,7 +210,7 @@ e dell'identità siciliana]]></text>
<text><![CDATA[Variante n.]]></text> <text><![CDATA[Variante n.]]></text>
</staticText> </staticText>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="91" y="110" width="458" height="14" uuid="98f698e9-8a42-4043-8684-f8619ccd6b91"> <reportElement x="91" y="110" width="458" height="14" isRemoveLineWhenBlank="true" uuid="98f698e9-8a42-4043-8684-f8619ccd6b91">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
<printWhenExpression><![CDATA[$F{numeroVariante}!=null && !$F{numeroVariante}.equalsIgnoreCase( "" )]]></printWhenExpression> <printWhenExpression><![CDATA[$F{numeroVariante}!=null && !$F{numeroVariante}.equalsIgnoreCase( "" )]]></printWhenExpression>
</reportElement> </reportElement>
@ -295,46 +219,121 @@ e dell'identità siciliana]]></text>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{numeroVariante}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{numeroVariante}]]></textFieldExpression>
</textField> </textField>
<staticText>
<reportElement x="9" y="68" width="82" height="14" uuid="96238b4d-4d56-4f2f-934d-c230f419ce01">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement>
<text><![CDATA[Ubicazione:]]></text>
</staticText>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="381" y="191" width="168" height="14" uuid="24196966-5738-4ae1-8fd0-01c8f0fe47ef"> <reportElement x="91" y="68" width="458" height="14" uuid="7b94f57f-20d8-47d6-92fc-891e21e0d746">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement> </reportElement>
<textElement> <textElement>
<font fontName="DejaVu Sans"/> <font fontName="DejaVu Sans"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{alTitolareDigitale}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{ubicazione} != null ? $F{ubicazione} : ""]]></textFieldExpression>
</textField>
</band>
<band height="149">
<staticText>
<reportElement key="" x="116" y="14" width="115" height="14" uuid="403fbab7-f127-41f5-9782-2de1914063b3">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans Bold" isBold="true"/>
</textElement>
<text><![CDATA[Al Committente]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="231" y="14" width="318" height="14" uuid="7ac42203-6ced-48de-a90e-443df2ff188e">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$F{alCommittente}]]></textFieldExpression>
</textField> </textField>
<staticText> <staticText>
<reportElement key="" x="266" y="191" width="115" height="14" uuid="bb5008f3-c741-4815-a9a4-139afa4edf2f"> <reportElement key="" x="116" y="28" width="115" height="14" uuid="df9ad57b-eef0-4d28-8f6b-b4bbc2575b13">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement> </reportElement>
<textElement> <textElement>
<font fontName="DejaVu Sans Bold" isBold="true"/> <font fontName="DejaVu Sans Bold" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[c/o il suo delegato]]></text> <text><![CDATA[c/o il suo delegato]]></text>
</staticText> </staticText>
<textField isBlankWhenNull="true">
<reportElement x="231" y="28" width="318" height="14" uuid="94753f2e-c49e-40f9-9f09-6a55f51720b2">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$F{alTitolareDigitale}]]></textFieldExpression>
</textField>
<staticText> <staticText>
<reportElement x="9" y="68" width="82" height="14" uuid="96238b4d-4d56-4f2f-934d-c230f419ce01"> <reportElement x="116" y="42" width="115" height="14" uuid="392b5304-f1b2-4a29-b524-bfd7e605a75f">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement> </reportElement>
<textElement> <textElement>
<font fontName="DejaVu Sans Bold" isBold="false"/> <font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement> </textElement>
<text><![CDATA[Ubicazione:]]></text> <text><![CDATA[Al D.L.]]></text>
</staticText> </staticText>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="91" y="68" width="458" height="14" uuid="7b94f57f-20d8-47d6-92fc-891e21e0d746"> <reportElement x="231" y="42" width="318" height="14" uuid="5ad0be35-d267-44ab-8b1d-14136eb300e6">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement> </reportElement>
<textElement> <textElement>
<font fontName="DejaVu Sans"/> <font fontName="DejaVu Sans"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{ubicazione} != null ? $F{ubicazione} : ""]]></textFieldExpression> <textFieldExpression><![CDATA[$F{alDirettoreLavori}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="70" width="549" height="37" uuid="15383c90-87c7-4b05-8dd5-ddacf3baed96">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Justified" markup="html">
<font fontName="DejaVu Sans" isBold="false" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA["Si comunica che è variato il tecnico istruttore incaricato del controllo della pratica. Il nuovo tecnico istruttore è: "+$F{tecnico}+" che può essere contattato con email: "+$F{tecnicoEmail}+". <br>Si comunica inoltre che i termini del procedimento non subiscono variazioni."]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" x="0" y="121" width="549" height="28" uuid="101af6e3-259e-41e3-9e21-982c9c372249">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<font fontName="DejaVu Sans" isBold="true" isItalic="false" isUnderline="true"/>
</textElement>
<textFieldExpression><![CDATA["Si ricorda che i lavori NON potranno essere iniziati prima del rilascio dell'autorizzazione."]]></textFieldExpression>
</textField> </textField>
</band> </band>
<band height="200"> <band height="179">
<staticText> <staticText>
<reportElement x="4" y="10" width="547" height="190" uuid="9de0f90d-e2a7-4172-af81-c19b0345def3"> <reportElement x="4" y="0" width="547" height="179" uuid="9de0f90d-e2a7-4172-af81-c19b0345def3">
<property name="com.jaspersoft.studio.unit.x" value="px"/> <property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/>
@ -360,8 +359,8 @@ Responsabili del trattamento, definito all’articolo 4, n.8 del GDPR - Regolame
<textElement> <textElement>
<font fontName="DejaVu Sans Bold" size="8" isBold="false"/> <font fontName="DejaVu Sans Bold" size="8" isBold="false"/>
</textElement> </textElement>
<text><![CDATA[www.regione.toscana.it <text><![CDATA[paesaggistica.sicilia.it
https://www327.regione.toscana.it]]></text> https://paesaggistica.sicilia.it/]]></text>
</staticText> </staticText>
<line> <line>
<reportElement x="0" y="99" width="555" height="1" uuid="f2f3ee86-58db-4a77-937b-428b7f419b7b"/> <reportElement x="0" y="99" width="555" height="1" uuid="f2f3ee86-58db-4a77-937b-428b7f419b7b"/>

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java

@ -380,7 +380,7 @@ public interface IntPraticaLocalService extends BaseLocalService,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
public it.tref.liferay.portos.bo.model.IntPratica updateStatoPratica( public it.tref.liferay.portos.bo.model.IntPratica updateStatoPratica(
long intPraticaId, long dettPraticaId, java.lang.String statoPratica) long intPraticaId, java.lang.String statoPratica)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;

8
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java

@ -199,9 +199,7 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
_methodName35 = "updateStatoPratica"; _methodName35 = "updateStatoPratica";
_methodParameterTypes35 = new String[] { _methodParameterTypes35 = new String[] { "long", "java.lang.String" };
"long", "long", "java.lang.String"
};
_methodName36 = "updateIntPraticaSorteggio"; _methodName36 = "updateIntPraticaSorteggio";
@ -1613,7 +1611,7 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
@Override @Override
public it.tref.liferay.portos.bo.model.IntPratica updateStatoPratica( public it.tref.liferay.portos.bo.model.IntPratica updateStatoPratica(
long intPraticaId, long dettPraticaId, java.lang.String statoPratica) long intPraticaId, java.lang.String statoPratica)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null; Object returnObj = null;
@ -1624,8 +1622,6 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
new Object[] { new Object[] {
intPraticaId, intPraticaId,
dettPraticaId,
ClpSerializer.translateInput(statoPratica) ClpSerializer.translateInput(statoPratica)
}); });
} }

5
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java

@ -437,11 +437,10 @@ public class IntPraticaLocalServiceUtil {
} }
public static it.tref.liferay.portos.bo.model.IntPratica updateStatoPratica( public static it.tref.liferay.portos.bo.model.IntPratica updateStatoPratica(
long intPraticaId, long dettPraticaId, java.lang.String statoPratica) long intPraticaId, java.lang.String statoPratica)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
return getService() return getService().updateStatoPratica(intPraticaId, statoPratica);
.updateStatoPratica(intPraticaId, dettPraticaId, statoPratica);
} }
public static it.tref.liferay.portos.bo.model.IntPratica updateIntPraticaSorteggio( public static it.tref.liferay.portos.bo.model.IntPratica updateIntPraticaSorteggio(

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java

@ -470,11 +470,11 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService,
@Override @Override
public it.tref.liferay.portos.bo.model.IntPratica updateStatoPratica( public it.tref.liferay.portos.bo.model.IntPratica updateStatoPratica(
long intPraticaId, long dettPraticaId, java.lang.String statoPratica) long intPraticaId, java.lang.String statoPratica)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
return _intPraticaLocalService.updateStatoPratica(intPraticaId, return _intPraticaLocalService.updateStatoPratica(intPraticaId,
dettPraticaId, statoPratica); statoPratica);
} }
@Override @Override

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

@ -28,6 +28,8 @@ import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.language.LanguageUtil; import com.liferay.portal.kernel.language.LanguageUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.LocaleUtil; import com.liferay.portal.kernel.util.LocaleUtil;
import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
@ -45,6 +47,8 @@ public class AsseverazioniUtil {
public final static String ASSEVERAZIONE_DA_APPLICATIVO = "AP"; public final static String ASSEVERAZIONE_DA_APPLICATIVO = "AP";
public final static String ASSEVERAZIONE_DA_ALLEGATO = "AL"; public final static String ASSEVERAZIONE_DA_ALLEGATO = "AL";
private static final Log _log = LogFactoryUtil.getLog(AsseverazioniUtil.class);
public static boolean hasAsseverazioniAttive(long dettPraticaId) throws SystemException { public static boolean hasAsseverazioniAttive(long dettPraticaId) throws SystemException {
return AsseverazioneLocalServiceUtil.countByDettPratica_InEsito(dettPraticaId, new String[] { return AsseverazioneLocalServiceUtil.countByDettPratica_InEsito(dettPraticaId, new String[] {
@ -256,13 +260,6 @@ public class AsseverazioniUtil {
return false; return false;
} }
public static List<String> getRequiredSubjectsByCodiceDoc(String codiceDoc) {
if (required.containsKey(codiceDoc)) {
return required.get(codiceDoc);
}
return Collections.emptyList();
}
public static boolean allAsseverazioniCompleted(long dettPraticaId) throws SystemException, public static boolean allAsseverazioniCompleted(long dettPraticaId) throws SystemException,
PortalException { PortalException {

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

@ -10,6 +10,7 @@ import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -63,38 +64,71 @@ public class AzioniPraticheUtil {
}; };
@SuppressWarnings("serial") @SuppressWarnings("serial")
public static Map<String, List<String>> STATE_ACTIONS_MAP = new HashMap<String, List<String>>() { private static Map<String, List<String>> STATE_ACTIONS_MAP = new HashMap<String, List<String>>() {
{ {
put(STATE_VIDIMATO, ALL_ACTIONS); put(STATE_VIDIMATO, ALL_ACTIONS);
put(STATE_SOTTOPOSTO_A_PARERE_AUTORIZZAZIONE, put(STATE_SOTTOPOSTO_A_PARERE_AUTORIZZAZIONE, new ArrayList<String>() {
ListUtil.toList(new String[] { ACTION_AGGIUNGI_SOGGETTO, ACTION_RIMUOVI_SOGGETTO, {
ACTION_VARIAZIONE_SOGGETTI, ACTION_ANNULLA })); add(ACTION_AGGIUNGI_SOGGETTO);
add(ACTION_RIMUOVI_SOGGETTO);
add(ACTION_VARIAZIONE_SOGGETTI);
add(ACTION_ANNULLA);
}
});
put(STATE_SOTTOPOSTO_A_PARERE_DEPOSITO, ALL_ACTIONS); put(STATE_SOTTOPOSTO_A_PARERE_DEPOSITO, ALL_ACTIONS);
put(STATE_ANNULLATO, new ArrayList<String>()); put(STATE_ANNULLATO, Collections.<String> emptyList());
put(STATE_NON_CONFORME, new ArrayList<String>()); put(STATE_NON_CONFORME, Collections.<String> emptyList());
put(NON_AUTORIZZATA, new ArrayList<String>()); put(NON_AUTORIZZATA, Collections.<String> emptyList());
put(STATE_INTEGRAZIONE_AUTORIZZAZIONE, put(STATE_INTEGRAZIONE_AUTORIZZAZIONE, new ArrayList<String>() {
ListUtil.toList(new String[] { ACTION_AGGIUNGI_SOGGETTO, ACTION_RIMUOVI_SOGGETTO, {
ACTION_INTEGRAZIONE, ACTION_ANNULLA })); add(ACTION_AGGIUNGI_SOGGETTO);
put(STATE_INTEGRAZIONE_DEPOSITO, add(ACTION_RIMUOVI_SOGGETTO);
ListUtil.toList(new String[] { ACTION_AGGIUNGI_SOGGETTO, ACTION_RIMUOVI_SOGGETTO, add(ACTION_INTEGRAZIONE);
ACTION_INTEGRAZIONE, add(ACTION_ANNULLA);
// ACTION_ANNULLA, ACTION_FL_PARZIALE, }
// ACTION_FL_TOTALE, ACTION_CO_PARZIALE, });
// ACTION_CO_TOTALE})); put(STATE_INTEGRAZIONE_DEPOSITO, new ArrayList<String>() {
ACTION_ANNULLA })); {
put(STATE_COMPILAZIONE, add(ACTION_AGGIUNGI_SOGGETTO);
ListUtil.toList(new String[] { ACTION_AGGIUNGI_SOGGETTO, ACTION_RIMUOVI_SOGGETTO, add(ACTION_RIMUOVI_SOGGETTO);
ACTION_ANNULLA })); add(ACTION_INTEGRAZIONE);
put(STATE_FINE_LAVORI_PARZIALE, add(ACTION_ANNULLA);
ListUtil.toList(new String[] { ACTION_AGGIUNGI_SOGGETTO, ACTION_RIMUOVI_SOGGETTO, }
ACTION_VARIANTE, ACTION_FL_PARZIALE, ACTION_FL_TOTALE, ACTION_CO_PARZIALE })); });
put(STATE_FINE_LAVORI_TOTALE, put(STATE_COMPILAZIONE, new ArrayList<String>() {
ListUtil.toList(new String[] { ACTION_AGGIUNGI_SOGGETTO, ACTION_RIMUOVI_SOGGETTO, {
ACTION_CO_TOTALE, ACTION_CO_PARZIALE })); add(ACTION_AGGIUNGI_SOGGETTO);
put(STATE_COLLAUDO_PARZIALE, add(ACTION_RIMUOVI_SOGGETTO);
ListUtil.toList(new String[] { ACTION_AGGIUNGI_SOGGETTO, ACTION_RIMUOVI_SOGGETTO, add(ACTION_ANNULLA);
ACTION_VARIANTE, ACTION_CO_PARZIALE, ACTION_CO_TOTALE })); }
});
put(STATE_FINE_LAVORI_PARZIALE, new ArrayList<String>() {
{
add(ACTION_AGGIUNGI_SOGGETTO);
add(ACTION_RIMUOVI_SOGGETTO);
add(ACTION_VARIANTE);
add(ACTION_FL_PARZIALE);
add(ACTION_FL_TOTALE);
add(ACTION_CO_PARZIALE);
}
});
put(STATE_FINE_LAVORI_TOTALE, new ArrayList<String>() {
{
add(ACTION_AGGIUNGI_SOGGETTO);
add(ACTION_RIMUOVI_SOGGETTO);
add(ACTION_CO_TOTALE);
add(ACTION_CO_PARZIALE);
}
});
put(STATE_COLLAUDO_PARZIALE, new ArrayList<String>() {
{
add(ACTION_AGGIUNGI_SOGGETTO);
add(ACTION_RIMUOVI_SOGGETTO);
add(ACTION_VARIANTE);
add(ACTION_CO_PARZIALE);
add(ACTION_CO_TOTALE);
}
});
} }
}; };
@ -154,11 +188,7 @@ public class AzioniPraticheUtil {
} }
List<String> actionList = STATE_ACTIONS_MAP.get(status); List<String> actionList = STATE_ACTIONS_MAP.get(status);
if (actionList == null) { if ((actionList == null) || !actionList.contains(action)) {
actionList = new ArrayList<>();
}
if (!actionList.contains(action)) {
return false; return false;
} }
@ -281,6 +311,5 @@ public class AzioniPraticheUtil {
} else { } else {
return false; return false;
} }
} }
} }

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

@ -12,11 +12,15 @@ import org.apache.commons.lang.StringUtils;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; 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.StringPool; import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
public class PraticaUtil { public class PraticaUtil {
private static final Log _log = LogFactoryUtil.getLog(PraticaUtil.class);
public static String getFolderName(long dettPraticaId) { public static String getFolderName(long dettPraticaId) {
return StringUtils.leftPad(String.valueOf(dettPraticaId), 10, '0') + StringPool.UNDERLINE return StringUtils.leftPad(String.valueOf(dettPraticaId), 10, '0') + StringPool.UNDERLINE
@ -132,23 +136,23 @@ public class PraticaUtil {
return hiddens; return hiddens;
} }
public static String getStatoPraticaLabel(String statoPratica, IntPratica intPratica) public static String getStatoPraticaLabel(String statoPratica, long intPraticaId)
throws PortalException, SystemException { throws PortalException, SystemException {
String statoPraticaLabel = StringPool.BLANK; String statoPraticaLabel = StringPool.BLANK;
switch (statoPratica) { switch (statoPratica) {
case StatoPraticaConstants.CONFORME: case StatoPraticaConstants.CONFORME:
if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { if (AzioniPraticheUtil.isDeposito(intPraticaId)) {
statoPraticaLabel = StatoPraticaConstants.getStatusLabel(StatoPraticaConstants.CONFORME); statoPraticaLabel = StatoPraticaConstants.getStatusLabel(StatoPraticaConstants.CONFORME);
} else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { } else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) {
statoPraticaLabel = StatoPraticaConstants.getStatusLabel(StatoPraticaConstants.AUTORIZZATA); statoPraticaLabel = StatoPraticaConstants.getStatusLabel(StatoPraticaConstants.AUTORIZZATA);
} }
break; break;
case StatoPraticaConstants.NON_CONFORME: case StatoPraticaConstants.NON_CONFORME:
if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { if (AzioniPraticheUtil.isDeposito(intPraticaId)) {
statoPraticaLabel = StatoPraticaConstants.getStatusLabel(StatoPraticaConstants.NON_CONFORME); statoPraticaLabel = StatoPraticaConstants.getStatusLabel(StatoPraticaConstants.NON_CONFORME);
} else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { } else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) {
statoPraticaLabel = StatoPraticaConstants statoPraticaLabel = StatoPraticaConstants
.getStatusLabel(StatoPraticaConstants.NON_AUTORIZZATA); .getStatusLabel(StatoPraticaConstants.NON_AUTORIZZATA);
} }

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

@ -29,9 +29,11 @@ import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
import java.util.HashSet;
import java.util.List; import java.util.List;
import java.util.Locale; import java.util.Locale;
import java.util.Map; import java.util.Map;
import java.util.Set;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
@ -55,7 +57,6 @@ import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.LocaleUtil; import com.liferay.portal.kernel.util.LocaleUtil;
import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.UniqueList;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.kernel.workflow.WorkflowConstants; import com.liferay.portal.kernel.workflow.WorkflowConstants;
import com.liferay.portal.model.Company; import com.liferay.portal.model.Company;
@ -865,19 +866,18 @@ public class ValidazionePraticaUtil {
List<String> tipologie) throws SystemException, PortalException { List<String> tipologie) throws SystemException, PortalException {
List<String> notCompleted = new ArrayList<>(); List<String> notCompleted = new ArrayList<>();
List<Soggetto> soggetti = SoggettoLocalServiceUtil.getValidTmpByDettPratica(dettPratica List<Soggetto> soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica(intPratica
.getDettPraticaId()); .getIntPraticaId());
String cfTitolare = intPratica.getUserName(); String cfTitolare = intPratica.getUserName();
long intPraticaId = intPratica.getIntPraticaId(); long intPraticaId = intPratica.getIntPraticaId();
for (String tipologia : tipologie) { for (String tipologia : tipologie) {
List<DocPratica> docs = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia( List<DocPratica> docs = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(
intPraticaId, tipologia, QueryUtil.ALL_POS, QueryUtil.ALL_POS); intPraticaId, tipologia, QueryUtil.ALL_POS, QueryUtil.ALL_POS);
List<String> firmeMancanti = new UniqueList<>(); Set<String> firmeMancanti = new HashSet<>();
for (DocPratica doc : docs) { for (DocPratica doc : docs) {
List<String> firmeObbligatorie = getFirmeObbligatorie(tipologia, dettPratica); List<String> firmeObbligatorie = getFirmeObbligatorie(tipologia, dettPratica);
FirmeBean firmeBean = FirmeUtil.deserialize(doc.getJsonFirmatari()); FirmeBean firmeBean = FirmeUtil.deserialize(doc.getJsonFirmatari());
List<String> firmePresenti = firmeBean.allSignatures(); List<String> firmePresenti = firmeBean.allSignatures();
for (Soggetto soggetto : soggetti) { for (Soggetto soggetto : soggetti) {
if (firmePresenti.contains(soggetto.getCodiceFiscale().toLowerCase())) { if (firmePresenti.contains(soggetto.getCodiceFiscale().toLowerCase())) {
firmeObbligatorie.remove(soggetto.getTipologiaSoggetto()); firmeObbligatorie.remove(soggetto.getTipologiaSoggetto());
@ -1235,7 +1235,7 @@ public class ValidazionePraticaUtil {
return signatures; return signatures;
} }
private static List<String> extractSigns(long companyId, String fileName, byte[] fileBytes) private static Set<String> extractSigns(long companyId, String fileName, byte[] fileBytes)
throws IOException, PortalException, SystemException { throws IOException, PortalException, SystemException {
Company company = CompanyLocalServiceUtil.getCompany(companyId); Company company = CompanyLocalServiceUtil.getCompany(companyId);
@ -1254,7 +1254,7 @@ public class ValidazionePraticaUtil {
if (statusCode == HttpServletResponse.SC_OK || statusCode == HttpServletResponse.SC_CREATED) { if (statusCode == HttpServletResponse.SC_OK || statusCode == HttpServletResponse.SC_CREATED) {
JSONArray arrayFirme = JSONFactoryUtil.createJSONObject(responseBody).getJSONArray("cf"); JSONArray arrayFirme = JSONFactoryUtil.createJSONObject(responseBody).getJSONArray("cf");
List<String> cf = new UniqueList<String>(); Set<String> cf = new HashSet<>();
for (int i = 0; i < arrayFirme.length(); i++) { for (int i = 0; i < arrayFirme.length(); i++) {
cf.add(arrayFirme.getString(i)); cf.add(arrayFirme.getString(i));
} }
@ -1264,7 +1264,7 @@ public class ValidazionePraticaUtil {
_log.warn("P7M REST extractor error. Response: " + new String(responseBody)); _log.warn("P7M REST extractor error. Response: " + new String(responseBody));
} }
return Collections.emptyList(); return Collections.emptySet();
} }
private static List<String> getFirmeObbligatorie(String tipologiaAllegato, DettPratica dettPratica) private static List<String> getFirmeObbligatorie(String tipologiaAllegato, DettPratica dettPratica)

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

@ -23,6 +23,9 @@ import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.json.JSONDeserializer; import com.liferay.portal.kernel.json.JSONDeserializer;
import com.liferay.portal.kernel.json.JSONFactoryUtil; import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.kernel.workflow.WorkflowException; import com.liferay.portal.kernel.workflow.WorkflowException;
import com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil; import com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil;
@ -38,6 +41,8 @@ import com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil;
public class WorkflowUtil { public class WorkflowUtil {
private static final Log _log = LogFactoryUtil.getLog(WorkflowUtil.class);
public static WorkflowTask getLastTask(long companyId, long groupId, Long userId, ControlloPratica bean) public static WorkflowTask getLastTask(long companyId, long groupId, Long userId, ControlloPratica bean)
throws PortalException, SystemException { throws PortalException, SystemException {
@ -250,6 +255,7 @@ public class WorkflowUtil {
put(StatoPraticaConstants.NON_AUTORIZZATA, WorkflowConstants.WORKFLOW_SIGNAL_INVIO); put(StatoPraticaConstants.NON_AUTORIZZATA, WorkflowConstants.WORKFLOW_SIGNAL_INVIO);
put(StatoPraticaConstants.INTEGRAZIONE, WorkflowConstants.WORKFLOW_SIGNAL_INVIO); put(StatoPraticaConstants.INTEGRAZIONE, WorkflowConstants.WORKFLOW_SIGNAL_INVIO);
put(StatoPraticaConstants.PREAVVISO_CONTRARIO, WorkflowConstants.WORKFLOW_SIGNAL_INVIO); put(StatoPraticaConstants.PREAVVISO_CONTRARIO, WorkflowConstants.WORKFLOW_SIGNAL_INVIO);
put(StatoPraticaConstants.NO_PARERE, WorkflowConstants.WORKFLOW_SIGNAL_INVIO);
put(StatoPraticaConstants.ANNULLATA, WorkflowConstants.WORKFLOW_SIGNAL_INVIO); put(StatoPraticaConstants.ANNULLATA, WorkflowConstants.WORKFLOW_SIGNAL_INVIO);
} }
}; };
@ -288,35 +294,19 @@ public class WorkflowUtil {
User istruttore = UserLocalServiceUtil.getUser(Long.valueOf(value)); User istruttore = UserLocalServiceUtil.getUser(Long.valueOf(value));
value = istruttore.getFullName(); value = istruttore.getFullName();
} else { } else {
return "nessuno"; value = "nessuno";
} }
break; break;
case "esito": case "esito":
if (Validator.isNotNull(value) && !"0".equals(value)) { if (Validator.isNotNull(value) && !"0".equals(value)) {
value = "stato-pratica-" + value;
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
if (value.equalsIgnoreCase(StatoPraticaConstants.CONFORME)) {
value = PraticaUtil.getStatoPraticaLabel(StatoPraticaConstants.CONFORME, intPratica);
} else if (value.equalsIgnoreCase(StatoPraticaConstants.NON_CONFORME)) {
value = PraticaUtil.getStatoPraticaLabel(StatoPraticaConstants.NON_CONFORME, intPratica);
} else if (value.equalsIgnoreCase(StatoPraticaConstants.AUTORIZZATA)) {
value = "Autorizzata";
} else if (value.equalsIgnoreCase(StatoPraticaConstants.NON_AUTORIZZATA)) {
value = "Non Autorizzata";
} else if (value.equalsIgnoreCase(StatoPraticaConstants.INTEGRAZIONE)
|| value.equalsIgnoreCase(StatoPraticaConstants.PREAVVISO_CONTRARIO)) {
value = "Richiedi Integrazione";
} else if (value.equalsIgnoreCase(StatoPraticaConstants.ANNULLATA)) {
value = "Annulla";
}
} else { } else {
return "nessuno"; value = "nessuno";
} }
break; break;
default: default:
if (Validator.isNull(value)) { if (Validator.isNull(value)) {
return "-"; value = StringPool.DASH;
} }
break; break;
} }

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

@ -1063,6 +1063,8 @@ label.admingeniocivile.statopratica.nonconforme = Non Conforme
label.admingeniocivile.statopratica.autorizzazione = Autorizzata label.admingeniocivile.statopratica.autorizzazione = Autorizzata
label.admingeniocivile.statopratica.autorizzazionenegata = Non Autorizzata label.admingeniocivile.statopratica.autorizzazionenegata = Non Autorizzata
label.admingeniocivile.statopratica.integrazione = Richiesta Integrazione label.admingeniocivile.statopratica.integrazione = Richiesta Integrazione
label.admingeniocivile.statopratica.preavvisocontrario = Preavviso di Parere Contrario
label.admingeniocivile.statopratica.noparere = Non si rilascia parere
label.admingeniocivile.statopratica.rifiutata = Rifiutata label.admingeniocivile.statopratica.rifiutata = Rifiutata
label.admingeniocivile.statopratica.finelavori = Fine Lavori label.admingeniocivile.statopratica.finelavori = Fine Lavori
label.admingeniocivile.statopratica.collaudo = Collaudo label.admingeniocivile.statopratica.collaudo = Collaudo

6
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaImpl.java

@ -49,6 +49,12 @@ public class IntPraticaImpl extends IntPraticaBaseImpl {
} }
@Override
public void setStatoPratica(String statoPratica) {
_log.info("Progetto " + getNumeroProgetto() + " - setStatoPratica(\"" + statoPratica + "\")");
super.setStatoPratica(statoPratica);
}
public String getTitle(Locale locale, boolean completed) { public String getTitle(Locale locale, boolean completed) {
DettPratica dettPratica = null; DettPratica dettPratica = null;

37
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java

@ -154,10 +154,10 @@ public class FascicoloPortlet extends MVCPortlet {
if (!attivare) { if (!attivare) {
intPratica.setStatoPratica(stato_pratica); intPratica.setStatoPratica(stato_pratica);
IntPraticaLocalServiceUtil.updateStatoPratica(intPraticaId, 0, stato_pratica); IntPraticaLocalServiceUtil.updateStatoPratica(intPraticaId, stato_pratica);
} else { } else {
intPratica.setStatoPratica(StatoPraticaConstants.SOTTOPOSTA_A_PARERE); intPratica.setStatoPratica(StatoPraticaConstants.SOTTOPOSTA_A_PARERE);
IntPraticaLocalServiceUtil.updateStatoPratica(intPraticaId, 0, IntPraticaLocalServiceUtil.updateStatoPratica(intPraticaId,
StatoPraticaConstants.SOTTOPOSTA_A_PARERE); StatoPraticaConstants.SOTTOPOSTA_A_PARERE);
} }
@ -540,8 +540,6 @@ public class FascicoloPortlet extends MVCPortlet {
List<IntPratica> lista = new ArrayList<IntPratica>(); List<IntPratica> lista = new ArrayList<IntPratica>();
// try {
Hits hits = IntPraticaAdvancedSearch.searchProgettiBO(httpRequest, user, -1, -1); Hits hits = IntPraticaAdvancedSearch.searchProgettiBO(httpRequest, user, -1, -1);
for (Document doc : hits.toList()) { for (Document doc : hits.toList()) {
@ -579,7 +577,6 @@ public class FascicoloPortlet extends MVCPortlet {
"label.scadenzegeniocivile.statoPratica"))); "label.scadenzegeniocivile.statoPratica")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
// ADT BUG-ID=15 Sezione Ricerca / Export csv
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale,
"label.scadenzegeniocivile.provincia"))); "label.scadenzegeniocivile.provincia")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
@ -596,8 +593,9 @@ public class FascicoloPortlet extends MVCPortlet {
for (IntPratica intPratica : lista) { for (IntPratica intPratica : lista) {
try { try {
long intPraticaId = intPratica.getIntPraticaId();
DettPratica lastDettPratica = DettPraticaLocalServiceUtil DettPratica lastDettPratica = DettPraticaLocalServiceUtil
.getLastCompletedByIntPratica(intPratica.getIntPraticaId()); .getLastCompletedByIntPratica(intPraticaId);
Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica
.getTerritorioId()); .getTerritorioId());
@ -607,7 +605,7 @@ public class FascicoloPortlet extends MVCPortlet {
territorio.getCodiceProvincia()); territorio.getCodiceProvincia());
boolean sorteggiata = SorteggioLocalServiceUtil boolean sorteggiata = SorteggioLocalServiceUtil
.findByIntPratica(intPratica.getIntPraticaId()) != null; .findByIntPratica(intPraticaId) != null;
sb.append(CSVUtil.encode((sorteggiata) ? "Si" : "No")); sb.append(CSVUtil.encode((sorteggiata) ? "Si" : "No"));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
@ -651,21 +649,17 @@ public class FascicoloPortlet extends MVCPortlet {
} }
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(LanguageUtil.get(locale, sb.append(LanguageUtil.get(
PraticaUtil.getStatoPraticaLabel(intPratica.getStatoPratica(), intPratica))); locale,
PraticaUtil.getStatoPraticaLabel(intPratica.getStatoPratica(),
intPratica.getIntPraticaId())));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
// ADT BUG-ID=15 Sezione Ricerca / Export csv
sb.append(provincia != null ? provincia.getProvincia() : ""); sb.append(provincia != null ? provincia.getProvincia() : "");
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(comune != null ? comune.getDenominazione() : ""); sb.append(comune != null ? comune.getDenominazione() : "");
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
// sb.append("Territorio: "
// ).append(comune.getDenominazione()).append(!lastDettPratica.getLocalita().isEmpty()
// ? "(Loc. "+lastDettPratica.getLocalita()+" ) " :
// "").append(" - ").append(provincia.getProvincia());
// ADT BUG-ID=15 Sezione Ricerca / Export csv - Max 30 chars
int MAX_LENGHT_DESCR_INTERVENTO = 30; int MAX_LENGHT_DESCR_INTERVENTO = 30;
sb.append(lastDettPratica.getDescLongIntervento() == null ? "" : lastDettPratica sb.append(lastDettPratica.getDescLongIntervento() == null ? "" : lastDettPratica
.getDescLongIntervento().length() > MAX_LENGHT_DESCR_INTERVENTO ? lastDettPratica .getDescLongIntervento().length() > MAX_LENGHT_DESCR_INTERVENTO ? lastDettPratica
@ -673,13 +667,6 @@ public class FascicoloPortlet extends MVCPortlet {
.getDescLongIntervento()); .getDescLongIntervento());
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
// Territorio: <strong><%= comune.getDenominazione() %> <%=
// !lastDettPratica.getLocalita().isEmpty() ?
// "(Loc. "+lastDettPratica.getLocalita()+" ) " : "" %>- <%=
// provincia.getProvincia() %></strong><br>
// Localizzazione: <strong><%= lastDettPratica.getVia()
// %></strong><br><br>
// <%= lastDettPratica.getDescLongIntervento() %>
} catch (Throwable e) { } catch (Throwable e) {
_log.error(method + " IntPraticaId: " + intPratica != null ? intPratica.getIntPraticaId() _log.error(method + " IntPraticaId: " + intPratica != null ? intPratica.getIntPraticaId()
: "", e); : "", e);
@ -688,12 +675,6 @@ public class FascicoloPortlet extends MVCPortlet {
} }
} }
// } catch (PortalException e) {
// _log.error(e, e);
// } catch (SystemException e) {
// _log.error(e, e);
// }
return sb.toString(); return sb.toString();
} }

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoBeanBuilder.java

@ -331,7 +331,8 @@ public class ReportAvvisoBeanBuilder {
// ADT:bug id 14: correzione testo del documento di non autorizzazione // ADT:bug id 14: correzione testo del documento di non autorizzazione
if (avviso.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.NON_AUTORIZZATA) if (avviso.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.NON_AUTORIZZATA)
|| avviso.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.NON_CONFORME)) { || avviso.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.NON_CONFORME)
|| avviso.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.NO_PARERE)) {
if (Validator.isNull(parameters.get("motivazioni"))) if (Validator.isNull(parameters.get("motivazioni")))
parameters.put("motivazioni", parameters.get("testo_del_documento")); parameters.put("motivazioni", parameters.get("testo_del_documento"));
} }

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java

@ -616,7 +616,8 @@ public class SchedulerInvioDocumento implements MessageListener {
} else if (tipoDocumento.equals(StatoPraticaConstants.AUTORIZZATA) } else if (tipoDocumento.equals(StatoPraticaConstants.AUTORIZZATA)
|| tipoDocumento.equals(StatoPraticaConstants.NON_AUTORIZZATA) || tipoDocumento.equals(StatoPraticaConstants.NON_AUTORIZZATA)
|| tipoDocumento.equals(StatoPraticaConstants.CONFORME) || tipoDocumento.equals(StatoPraticaConstants.CONFORME)
|| tipoDocumento.equals(StatoPraticaConstants.NON_CONFORME)) { || tipoDocumento.equals(StatoPraticaConstants.NON_CONFORME)
|| tipoDocumento.equals(StatoPraticaConstants.NO_PARERE)) {
long intPraticaId = controlloPratica.getIntPraticaId(); long intPraticaId = controlloPratica.getIntPraticaId();
ServiceContext serviceContext = getServiceContext(controlloPratica); ServiceContext serviceContext = getServiceContext(controlloPratica);
Tempistica tempistica = TempisticaLocalServiceUtil.getTempistica(serviceContext.getCompanyId(), Tempistica tempistica = TempisticaLocalServiceUtil.getTempistica(serviceContext.getCompanyId(),

6
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java

@ -208,9 +208,7 @@ public class IntPraticaLocalServiceClpInvoker {
_methodName216 = "updateStatoPratica"; _methodName216 = "updateStatoPratica";
_methodParameterTypes216 = new String[] { _methodParameterTypes216 = new String[] { "long", "java.lang.String" };
"long", "long", "java.lang.String"
};
_methodName217 = "updateIntPraticaSorteggio"; _methodName217 = "updateIntPraticaSorteggio";
@ -690,7 +688,7 @@ public class IntPraticaLocalServiceClpInvoker {
if (_methodName216.equals(name) && if (_methodName216.equals(name) &&
Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) {
return IntPraticaLocalServiceUtil.updateStatoPratica(((Long)arguments[0]).longValue(), return IntPraticaLocalServiceUtil.updateStatoPratica(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); (java.lang.String)arguments[1]);
} }
if (_methodName217.equals(name) && if (_methodName217.equals(name) &&

19
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java

@ -108,12 +108,12 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
String statoPratica = intPratica.getStatoPratica(); String statoPratica = intPratica.getStatoPratica();
if (AvvisoUtil.isStatoPraticaValidoNuovoAvviso(statoPratica)) { if (AvvisoUtil.isStatoPraticaValidoNuovoAvviso(statoPratica)) {
if (StatoPraticaConstants.CONFORME.equalsIgnoreCase(statoPratica) if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) {
&& AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { if (StatoPraticaConstants.CONFORME.equalsIgnoreCase(statoPratica)) {
statoPratica = StatoPraticaConstants.AUTORIZZATA; statoPratica = StatoPraticaConstants.AUTORIZZATA;
} else if (StatoPraticaConstants.NON_CONFORME.equals(statoPratica) } else if (StatoPraticaConstants.NON_CONFORME.equalsIgnoreCase(statoPratica)) {
&& AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { statoPratica = StatoPraticaConstants.NON_AUTORIZZATA;
statoPratica = StatoPraticaConstants.NON_AUTORIZZATA; }
} }
String propertiesTemplate = null; String propertiesTemplate = null;
@ -948,7 +948,8 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
|| tipoDocumento.equals(StatoPraticaConstants.AUTORIZZATA) || tipoDocumento.equals(StatoPraticaConstants.AUTORIZZATA)
|| tipoDocumento.equals(StatoPraticaConstants.NON_AUTORIZZATA) || tipoDocumento.equals(StatoPraticaConstants.NON_AUTORIZZATA)
|| tipoDocumento.equals(StatoPraticaConstants.CONFORME) || tipoDocumento.equals(StatoPraticaConstants.CONFORME)
|| tipoDocumento.equals(StatoPraticaConstants.NON_CONFORME); || tipoDocumento.equals(StatoPraticaConstants.NON_CONFORME)
|| tipoDocumento.equals(StatoPraticaConstants.NO_PARERE);
avviso.setSignal(signal); avviso.setSignal(signal);
avviso.setTempistica(tempistica); avviso.setTempistica(tempistica);
} }
@ -960,10 +961,12 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.CONFORME)); disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.CONFORME));
disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.NON_CONFORME)); disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.NON_CONFORME));
disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.NO_PARERE));
disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.AUTORIZZATA)); disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.AUTORIZZATA));
disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.NON_AUTORIZZATA)); disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.NON_AUTORIZZATA));
disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.INTEGRAZIONE)); disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.INTEGRAZIONE));
disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.PREAVVISO_CONTRARIO)); disjunction.add(RestrictionsFactoryUtil
.eq("tipoDocumento", StatoPraticaConstants.PREAVVISO_CONTRARIO));
disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.ANNULLATA)); disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.ANNULLATA));
dynamicQuery.add(disjunction); dynamicQuery.add(disjunction);
dynamicQuery.addOrder(OrderFactoryUtil.desc("avvisoId")); dynamicQuery.addOrder(OrderFactoryUtil.desc("avvisoId"));

35
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java

@ -142,7 +142,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
resourceLocalService.addModelResources(entry, serviceContext); resourceLocalService.addModelResources(entry, serviceContext);
// aggiorno int e dett pratica per avvio workflow // aggiorno int e dett pratica per avvio workflow
IntPratica intPratica = intPraticaLocalService.updateStatoPratica(intPraticaId, dettPraticaId, IntPratica intPratica = intPraticaLocalService.updateStatoPratica(intPraticaId,
StatoPraticaConstants.SOTTOPOSTA_A_PARERE); StatoPraticaConstants.SOTTOPOSTA_A_PARERE);
if (updateFlagControlloObbligatorio if (updateFlagControlloObbligatorio
&& Constants.TIPO_PRATICA_DEPOSITO.equals(intPratica.getTipoPratica())) { && Constants.TIPO_PRATICA_DEPOSITO.equals(intPratica.getTipoPratica())) {
@ -436,6 +436,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
break; break;
case StatoPraticaConstants.NON_CONFORME: case StatoPraticaConstants.NON_CONFORME:
case StatoPraticaConstants.NON_AUTORIZZATA: case StatoPraticaConstants.NON_AUTORIZZATA:
case StatoPraticaConstants.NO_PARERE:
ramoWorkflow = "non_approvato"; ramoWorkflow = "non_approvato";
break; break;
case StatoPraticaConstants.INTEGRAZIONE: case StatoPraticaConstants.INTEGRAZIONE:
@ -451,14 +452,11 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
} }
if (updateIntPratica) { if (updateIntPratica) {
intPraticaLocalService.updateStatoPratica(controlloPratica.getIntPraticaId(), intPraticaLocalService.updateStatoPratica(controlloPratica.getIntPraticaId(), esito);
controlloPratica.getDettPraticaId(), esito);
} }
} }
Indexer indexer = IndexerRegistryUtil.getIndexer(ControlloPratica.class); IndexerRegistryUtil.getIndexer(ControlloPratica.class).reindex(controlloPratica);
indexer.reindex(controlloPratica);
return ramoWorkflow; return ramoWorkflow;
} }
@ -472,12 +470,12 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
Map<String, Serializable> parametri = WorkflowUtil.getFormParameters(controlloPratica); Map<String, Serializable> parametri = WorkflowUtil.getFormParameters(controlloPratica);
String esitoScelta = (String) parametri.get("esito"); String esitoScelta = (String) parametri.get("esito");
if (StatoPraticaConstants.CONFORME.equalsIgnoreCase(esitoScelta) if (AzioniPraticheUtil.isAutorizzazione(controlloPratica.getIntPraticaId())) {
&& AzioniPraticheUtil.isAutorizzazione(controlloPratica.getIntPraticaId())) { if (StatoPraticaConstants.CONFORME.equalsIgnoreCase(esitoScelta)) {
esitoScelta = StatoPraticaConstants.AUTORIZZATA; esitoScelta = StatoPraticaConstants.AUTORIZZATA;
} else if (StatoPraticaConstants.NON_CONFORME.equals(esitoScelta) } else if (StatoPraticaConstants.NON_CONFORME.equals(esitoScelta)) {
&& AzioniPraticheUtil.isAutorizzazione(controlloPratica.getIntPraticaId())) { esitoScelta = StatoPraticaConstants.NON_AUTORIZZATA;
esitoScelta = StatoPraticaConstants.NON_AUTORIZZATA; }
} }
return esitoScelta; return esitoScelta;
@ -486,11 +484,14 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
public void aggiornaStatoPerRichiestaIntegrazione(long controlloPraticaId, public void aggiornaStatoPerRichiestaIntegrazione(long controlloPraticaId,
Map<String, Serializable> workflowContext) throws PortalException, SystemException { Map<String, Serializable> workflowContext) throws PortalException, SystemException {
ControlloPratica controlloPratica = controlloPraticaLocalService ControlloPratica controllo = controlloPraticaLocalService.getControlloPratica(controlloPraticaId);
.getControlloPratica(controlloPraticaId); IntPratica pratica = intPraticaLocalService.getIntPratica(controllo.getIntPraticaId());
IntPratica intPratica = intPraticaLocalService.getIntPratica(controlloPratica.getIntPraticaId()); String stato = pratica.getStatoPratica();
intPratica.setStatoPratica(StatoPraticaConstants.INTEGRAZIONE); if (!stato.equalsIgnoreCase(StatoPraticaConstants.PREAVVISO_CONTRARIO)) {
intPraticaLocalService.updateIntPratica(intPratica); stato = StatoPraticaConstants.INTEGRAZIONE;
}
pratica.setStatoPratica(stato);
intPraticaLocalService.updateIntPratica(pratica);
} }
public String getJsonListaIstruttori(long controlloPraticaId, Map<String, Serializable> workflowContext) public String getJsonListaIstruttori(long controlloPraticaId, Map<String, Serializable> workflowContext)

83
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java

@ -748,7 +748,8 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
Boolean tcManutOrdStraord, Boolean tcAltriInterventi, String tcAltriInterventiDesc, Boolean tcManutOrdStraord, Boolean tcAltriInterventi, String tcAltriInterventiDesc,
boolean noCollaudo, boolean tcNuovaCostruzionePertinenza, boolean tcInterventoOpereEscavazione, boolean noCollaudo, boolean tcNuovaCostruzionePertinenza, boolean tcInterventoOpereEscavazione,
boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724,
boolean sanatoriaEdilizia326, boolean normLavoriNoDirettore) throws PortalException, SystemException { boolean sanatoriaEdilizia326, boolean normLavoriNoDirettore) throws PortalException,
SystemException {
Date now = new Date(); Date now = new Date();
@ -900,7 +901,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
dettPratica.setGeoEvidenzeGeologiche(geoEvidenzeGeologiche); dettPratica.setGeoEvidenzeGeologiche(geoEvidenzeGeologiche);
dettPratica.setGeoDtRelazione(geoDtRelazione); dettPratica.setGeoDtRelazione(geoDtRelazione);
dettPratica.setImportoSpeseIstruttoria(importoSpeseIstruttoria); dettPratica.setImportoSpeseIstruttoria(importoSpeseIstruttoria);
dettPratica.setImportoBolli(importoBolli); dettPratica.setImportoBolli(importoBolli);
dettPratica.setPagInterventiRestauroManufatti(pagInterventiRestauroManufatti); dettPratica.setPagInterventiRestauroManufatti(pagInterventiRestauroManufatti);
dettPratica.setPagAltriCasiCulturali(pagAltriCasiCulturali); dettPratica.setPagAltriCasiCulturali(pagAltriCasiCulturali);
dettPratica.setPagLottizzazioni(pagLottizzazioni); dettPratica.setPagLottizzazioni(pagLottizzazioni);
@ -977,13 +978,13 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
dettPratica.setTcManutOrdStraord(tcManutOrdStraord); dettPratica.setTcManutOrdStraord(tcManutOrdStraord);
dettPratica.setTcAltriInterventi(tcAltriInterventi); dettPratica.setTcAltriInterventi(tcAltriInterventi);
dettPratica.setTcAltriInterventiDesc(tcAltriInterventiDesc); dettPratica.setTcAltriInterventiDesc(tcAltriInterventiDesc);
dettPratica.setSanatoriaEdilizia47(sanatoriaEdilizia47); dettPratica.setSanatoriaEdilizia47(sanatoriaEdilizia47);
dettPratica.setSanatoriaEdilizia724(sanatoriaEdilizia724); dettPratica.setSanatoriaEdilizia724(sanatoriaEdilizia724);
dettPratica.setSanatoriaEdilizia326(sanatoriaEdilizia326); dettPratica.setSanatoriaEdilizia326(sanatoriaEdilizia326);
dettPratica.setNormLavoriNoDirettore(normLavoriNoDirettore); dettPratica.setNormLavoriNoDirettore(normLavoriNoDirettore);
dettPratica = dettPraticaPersistence.update(dettPratica); dettPratica = dettPraticaPersistence.update(dettPratica);
resourceLocalService.updateModelResources(dettPratica, serviceContext); resourceLocalService.updateModelResources(dettPratica, serviceContext);
@ -1046,7 +1047,8 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
Boolean tcAltriInterventi, String tcAltriInterventiDesc, boolean noCollaudo, Boolean tcAltriInterventi, String tcAltriInterventiDesc, boolean noCollaudo,
boolean tcNuovaCostruzionePertinenza, boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcNuovaCostruzionePertinenza, boolean tcInterventoOpereEscavazione, boolean tcViarch,
boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724,
boolean sanatoriaEdilizia326, boolean normLavoriNoDirettore) throws PortalException, SystemException { boolean sanatoriaEdilizia326, boolean normLavoriNoDirettore) throws PortalException,
SystemException {
Date now = new Date(); Date now = new Date();
@ -1248,13 +1250,13 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
dettPratica.setTcManutOrdStraord(tcManutOrdStraord); dettPratica.setTcManutOrdStraord(tcManutOrdStraord);
dettPratica.setTcAltriInterventi(tcAltriInterventi); dettPratica.setTcAltriInterventi(tcAltriInterventi);
dettPratica.setTcAltriInterventiDesc(tcAltriInterventiDesc); dettPratica.setTcAltriInterventiDesc(tcAltriInterventiDesc);
dettPratica.setSanatoriaEdilizia326(sanatoriaEdilizia326); dettPratica.setSanatoriaEdilizia326(sanatoriaEdilizia326);
dettPratica.setSanatoriaEdilizia47(sanatoriaEdilizia47); dettPratica.setSanatoriaEdilizia47(sanatoriaEdilizia47);
dettPratica.setSanatoriaEdilizia724(sanatoriaEdilizia724); dettPratica.setSanatoriaEdilizia724(sanatoriaEdilizia724);
dettPratica.setNormLavoriNoDirettore(normLavoriNoDirettore); dettPratica.setNormLavoriNoDirettore(normLavoriNoDirettore);
dettPratica = dettPraticaPersistence.update(dettPratica); dettPratica = dettPraticaPersistence.update(dettPratica);
resourceLocalService.updateModelResources(dettPratica, serviceContext); resourceLocalService.updateModelResources(dettPratica, serviceContext);
@ -1299,9 +1301,9 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, boolean normDpr01Aut, boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, boolean normDpr01Aut,
boolean normDpr02Aut, boolean normArt3com3, boolean normArt3com4, ServiceContext serviceContext, boolean normDpr02Aut, boolean normArt3com3, boolean normArt3com4, ServiceContext serviceContext,
boolean bozza, boolean noCollaudo, boolean tcNuovaCostruzionePertinenza, boolean bozza, boolean noCollaudo, boolean tcNuovaCostruzionePertinenza,
boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25,
boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, boolean normLavoriNoDirettore) boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326,
throws PortalException, SystemException { boolean normLavoriNoDirettore) throws PortalException, SystemException {
Date now = new Date(); Date now = new Date();
@ -1469,11 +1471,11 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
dettPratica.setCodiceFiscaleDelegatoCommittente(codiceFiscaleDelegatoCommittente); dettPratica.setCodiceFiscaleDelegatoCommittente(codiceFiscaleDelegatoCommittente);
dettPratica.setCodiceFiscaleDelegatoFineLavori(codiceFiscaleDelegatoFineLavori); dettPratica.setCodiceFiscaleDelegatoFineLavori(codiceFiscaleDelegatoFineLavori);
dettPratica.setCodiceFiscaleDelegatoCollaudo(codiceFiscaleDelegatoCollaudo); dettPratica.setCodiceFiscaleDelegatoCollaudo(codiceFiscaleDelegatoCollaudo);
dettPratica.setSanatoriaEdilizia47(sanatoriaEdilizia47); dettPratica.setSanatoriaEdilizia47(sanatoriaEdilizia47);
dettPratica.setSanatoriaEdilizia326(sanatoriaEdilizia326); dettPratica.setSanatoriaEdilizia326(sanatoriaEdilizia326);
dettPratica.setSanatoriaEdilizia724(sanatoriaEdilizia724); dettPratica.setSanatoriaEdilizia724(sanatoriaEdilizia724);
dettPratica.setNormLavoriNoDirettore(normLavoriNoDirettore); dettPratica.setNormLavoriNoDirettore(normLavoriNoDirettore);
dettPratica = dettPraticaPersistence.update(dettPratica); dettPratica = dettPraticaPersistence.update(dettPratica);
@ -1527,9 +1529,8 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
boolean normDprg02, boolean normAnr, boolean normArt3com3, boolean normArt3com4, boolean normDprg02, boolean normAnr, boolean normArt3com3, boolean normArt3com4,
boolean normOrd01, boolean normDm04, boolean normDm05, boolean normCI01, boolean normLTC01, boolean normOrd01, boolean normDm04, boolean normDm05, boolean normCI01, boolean normLTC01,
boolean suap, boolean normSismaBonus, String clRischioPreInt, String clRischioPostInt, boolean suap, boolean normSismaBonus, String clRischioPreInt, String clRischioPostInt,
boolean intervFinPub, String intervFinPubDesc, boolean intervFinPub, String intervFinPubDesc, boolean sanatoriaEdilizia47,
boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, boolean normLavoriNoDirettore,
boolean normLavoriNoDirettore,
ServiceContext serviceContext, boolean bozza) { ServiceContext serviceContext, boolean bozza) {
} }
@ -1593,12 +1594,12 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
} }
public DettPratica updateDettPraticaPagamento(long dettPraticaId, String importoSpeseIstruttoria, public DettPratica updateDettPraticaPagamento(long dettPraticaId, String importoSpeseIstruttoria,
String importoBolli, Double pagInterventiRestauroManufatti, String importoBolli, Double pagInterventiRestauroManufatti, Double pagAltriCasiCulturali,
Double pagAltriCasiCulturali, Double pagLottizzazioni, Double pagGrandiStrutture, Double pagLottizzazioni, Double pagGrandiStrutture, Double pagCondotte, Double pagPalificazioni,
Double pagCondotte, Double pagPalificazioni, Double pagImpiantiEolici, Double pagNuoveRealizzazioni, Double pagImpiantiEolici, Double pagNuoveRealizzazioni, Double pagImmobiliPreesistenti,
Double pagImmobiliPreesistenti, Double pagManifestiPubblicitari, Double pagPareriDiMassima, Double pagManifestiPubblicitari, Double pagPareriDiMassima, Double pagAltriCasiPaesaggistici,
Double pagAltriCasiPaesaggistici, Double pagVariantiPareriResi, Double pagRilascioAttestazioni, Double pagVariantiPareriResi, Double pagRilascioAttestazioni, Double pagConsultazioniArchivio,
Double pagConsultazioniArchivio, ServiceContext serviceContext) throws SystemException, PortalException { ServiceContext serviceContext) throws SystemException, PortalException {
Date now = new Date(); Date now = new Date();
@ -1607,7 +1608,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
dettPratica.setModifiedDate(serviceContext.getModifiedDate(now)); dettPratica.setModifiedDate(serviceContext.getModifiedDate(now));
dettPratica.setImportoSpeseIstruttoria(importoSpeseIstruttoria); dettPratica.setImportoSpeseIstruttoria(importoSpeseIstruttoria);
dettPratica.setImportoBolli(importoBolli); dettPratica.setImportoBolli(importoBolli);
dettPratica.setPagInterventiRestauroManufatti(pagInterventiRestauroManufatti); dettPratica.setPagInterventiRestauroManufatti(pagInterventiRestauroManufatti);
dettPratica.setPagAltriCasiCulturali(pagAltriCasiCulturali); dettPratica.setPagAltriCasiCulturali(pagAltriCasiCulturali);
dettPratica.setPagLottizzazioni(pagLottizzazioni); dettPratica.setPagLottizzazioni(pagLottizzazioni);
@ -1623,7 +1624,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
dettPratica.setPagVariantiPareriResi(pagVariantiPareriResi); dettPratica.setPagVariantiPareriResi(pagVariantiPareriResi);
dettPratica.setPagRilascioAttestazioni(pagRilascioAttestazioni); dettPratica.setPagRilascioAttestazioni(pagRilascioAttestazioni);
dettPratica.setPagConsultazioniArchivio(pagConsultazioniArchivio); dettPratica.setPagConsultazioniArchivio(pagConsultazioniArchivio);
dettPratica = dettPraticaPersistence.update(dettPratica); dettPratica = dettPraticaPersistence.update(dettPratica);
resourceLocalService.updateModelResources(dettPratica, serviceContext); resourceLocalService.updateModelResources(dettPratica, serviceContext);
@ -1841,8 +1842,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
DettPratica dettPratica = updateEsito(dettPraticaId, stato); DettPratica dettPratica = updateEsito(dettPraticaId, stato);
long intPraticaId = dettPratica.getIntPraticaId(); long intPraticaId = dettPratica.getIntPraticaId();
intPraticaLocalService.updateStatoPratica(intPraticaId, dettPraticaId, intPraticaLocalService.updateStatoPratica(intPraticaId, StatoPraticaConstants.SOTTOPOSTA_A_PARERE);
StatoPraticaConstants.SOTTOPOSTA_A_PARERE);
ControlloPratica controlloPratica = controlloPraticaLocalService.findByIntPraticaId_Status( ControlloPratica controlloPratica = controlloPraticaLocalService.findByIntPraticaId_Status(
intPraticaId, WorkflowConstants.STATUS_PENDING).get(0); intPraticaId, WorkflowConstants.STATUS_PENDING).get(0);
controlloPraticaLocalService.addPraticheAlControllo(controlloPratica.getControlloPraticaId(), controlloPraticaLocalService.addPraticheAlControllo(controlloPratica.getControlloPraticaId(),
@ -1852,12 +1852,13 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
} }
public DettPratica pagaInvia(long dettPraticaId, Double pagInterventiRestauroManufatti, public DettPratica pagaInvia(long dettPraticaId, Double pagInterventiRestauroManufatti,
Double pagAltriCasiCulturali, Double pagLottizzazioni, Double pagGrandiStrutture, Double pagCondotte, Double pagAltriCasiCulturali, Double pagLottizzazioni, Double pagGrandiStrutture,
Double pagPalificazioni, Double pagImpiantiEolici, Double pagNuoveRealizzazioni, Double pagCondotte, Double pagPalificazioni, Double pagImpiantiEolici,
Double pagImmobiliPreesistenti, Double pagManifestiPubblicitari, Double pagPareriDiMassima, Double pagNuoveRealizzazioni, Double pagImmobiliPreesistenti, Double pagManifestiPubblicitari,
Double pagAltriCasiPaesaggistici, Double pagVariantiPareriResi, Double pagRilascioAttestazioni, Double pagPareriDiMassima, Double pagAltriCasiPaesaggistici, Double pagVariantiPareriResi,
Double pagConsultazioniArchivio, String importoSpeseIstruttoria, String codiceFiscaleCommittente, Double pagRilascioAttestazioni, Double pagConsultazioniArchivio, String importoSpeseIstruttoria,
String currentURL, ServiceContext serviceContext) throws SystemException, PortalException { String codiceFiscaleCommittente, String currentURL, ServiceContext serviceContext)
throws SystemException, PortalException {
DettPratica dettPratica = dettPraticaPersistence.findByPrimaryKey(dettPraticaId); DettPratica dettPratica = dettPraticaPersistence.findByPrimaryKey(dettPraticaId);
@ -1870,12 +1871,12 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
PagamentoConstants.PAGAMENTO_ONERI, importoSpeseIstruttoria, codiceFiscaleCommittente, PagamentoConstants.PAGAMENTO_ONERI, importoSpeseIstruttoria, codiceFiscaleCommittente,
serviceContext); serviceContext);
dettPratica = updateDettPraticaPagamento(dettPratica.getDettPraticaId(), importoSpeseIstruttoria, dettPratica = updateDettPraticaPagamento(dettPratica.getDettPraticaId(), importoSpeseIstruttoria,
importoBolli.toString(), pagInterventiRestauroManufatti, importoBolli.toString(), pagInterventiRestauroManufatti, pagAltriCasiCulturali,
pagAltriCasiCulturali, pagLottizzazioni, pagGrandiStrutture, pagCondotte, pagLottizzazioni, pagGrandiStrutture, pagCondotte, pagPalificazioni, pagImpiantiEolici,
pagPalificazioni, pagImpiantiEolici, pagNuoveRealizzazioni, pagImmobiliPreesistenti, pagNuoveRealizzazioni, pagImmobiliPreesistenti, pagManifestiPubblicitari, pagPareriDiMassima,
pagManifestiPubblicitari, pagPareriDiMassima, pagAltriCasiPaesaggistici, pagAltriCasiPaesaggistici, pagVariantiPareriResi, pagRilascioAttestazioni,
pagVariantiPareriResi, pagRilascioAttestazioni, pagConsultazioniArchivio, serviceContext); pagConsultazioniArchivio, serviceContext);
long intPraticaid = dettPratica.getIntPraticaId(); long intPraticaid = dettPratica.getIntPraticaId();
IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaid); IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaid);
@ -1976,7 +1977,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
IntPratica intPratica = intPraticaLocalService.getIntPratica(dettPratica.getIntPraticaId()); IntPratica intPratica = intPraticaLocalService.getIntPratica(dettPratica.getIntPraticaId());
if (intPratica.getStatus() == WorkflowConstants.STATUS_ANY if (intPratica.getStatus() == WorkflowConstants.STATUS_ANY
|| intPratica.getStatus() == WorkflowConstants.STATUS_INCOMPLETE) { || intPratica.getStatus() == WorkflowConstants.STATUS_INCOMPLETE) {
intPraticaLocalService.updateStatoPratica(dettPratica.getIntPraticaId(), dettPraticaId, intPraticaLocalService.updateStatoPratica(dettPratica.getIntPraticaId(),
StatoPraticaConstants.VIDIMATA); StatoPraticaConstants.VIDIMATA);
} }
return dettPratica; return dettPratica;
@ -2350,7 +2351,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return jsonFields.toString(); return jsonFields.toString();
} }
private String callToVersion(String versioningURL) throws Exception { private String callToVersion(String versioningURL) throws Exception {
return HttpServiceUtil.getUrl(versioningURL); return HttpServiceUtil.getUrl(versioningURL);
} }

51
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java

@ -181,7 +181,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
User user = userLocalService.getUser(serviceContext.getUserId()); User user = userLocalService.getUser(serviceContext.getUserId());
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(territorioId); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(territorioId);
Date now = new Date(); Date now = new Date();
IntPratica intPratica = intPraticaLocalService.createIntPratica(counterLocalService IntPratica intPratica = intPraticaLocalService.createIntPratica(counterLocalService
.increment(IntPratica.class.getName())); .increment(IntPratica.class.getName()));
intPratica.setCompanyId(serviceContext.getCompanyId()); intPratica.setCompanyId(serviceContext.getCompanyId());
@ -944,16 +944,12 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
} }
// TODO rimuovere dettPraticaId public IntPratica updateStatoPratica(long intPraticaId, String statoPratica) throws PortalException,
public IntPratica updateStatoPratica(long intPraticaId, long dettPraticaId, String statoPratica) SystemException {
throws PortalException, SystemException { _log.info("updateStatoPratica(" + intPraticaId + ", \"" + statoPratica + "\")");
IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId);
intPratica.setModifiedDate(new Date()); intPratica.setModifiedDate(new Date());
intPratica.setStatoPratica(statoPratica); intPratica.setStatoPratica(statoPratica);
return intPraticaLocalService.updateIntPratica(intPratica); return intPraticaLocalService.updateIntPratica(intPratica);
} }
@ -1011,8 +1007,6 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
intPratica.setStatus(status); intPratica.setStatus(status);
if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) {
intPratica.setStatoPratica(StatoPraticaConstants.NON_AUTORIZZATA); intPratica.setStatoPratica(StatoPraticaConstants.NON_AUTORIZZATA);
} else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) {
intPratica.setStatoPratica(StatoPraticaConstants.NON_CONFORME);
} else { } else {
// SANATORIA (da capire) // SANATORIA (da capire)
intPratica.setStatoPratica(StatoPraticaConstants.NON_CONFORME); intPratica.setStatoPratica(StatoPraticaConstants.NON_CONFORME);
@ -1064,7 +1058,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
List<Long> ids = soggettoLocalService.findIntPraticaBySoggettoId(soggettoId); List<Long> ids = soggettoLocalService.findIntPraticaBySoggettoId(soggettoId);
if (ids.isEmpty()) { if (ids.isEmpty()) {
return Collections.emptyList(); return Collections.<IntPratica> emptyList();
} }
DynamicQuery dynamicQuery = createQueryArchivio(companyId, soggettoId, ids); DynamicQuery dynamicQuery = createQueryArchivio(companyId, soggettoId, ids);
@ -1150,21 +1144,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
public List<IntPratica> findByCanAddFineLavori(long companyId, String codiceFiscale, int start, int end) public List<IntPratica> findByCanAddFineLavori(long companyId, String codiceFiscale, int start, int end)
throws SystemException, PortalException { throws SystemException, PortalException {
// List<Long> ids =
// new
// ArrayList<>(dettPraticaLocalService.findIntPraticaByCodiceFiscaleDelegatoFineLavori(codiceFiscale));
// if (ids.isEmpty()) {
// return Collections.emptyList();
// }
// ids.removeAll(fineLavoriLocalService.findIntPraticaByFineLavoriParziale(false,
// ids));
//
// if (ids.isEmpty()) {
// return Collections.emptyList();
// }
DynamicQuery dynamicQuery = createQueryFineLavori(companyId, codiceFiscale); DynamicQuery dynamicQuery = createQueryFineLavori(companyId, codiceFiscale);
return intPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end); return intPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end);
} }
@ -1209,20 +1189,6 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
public List<IntPratica> findByCanAddCollaudo(long companyId, String codiceFiscale, int start, int end) public List<IntPratica> findByCanAddCollaudo(long companyId, String codiceFiscale, int start, int end)
throws SystemException, PortalException { throws SystemException, PortalException {
// List<Long> ids = fineLavoriLocalService.findIntPraticaByFineLavori();
// if (ids.isEmpty()) {
// return Collections.emptyList();
// }
//
// System.out.println(ids.size());
//
//
// DynamicQuery dynamicQuery = createQueryCollaudi(companyId,
// codiceFiscale, ids);
// return intPraticaPersistence.findWithDynamicQuery(dynamicQuery,
// start, end);
return intPraticaFinder.canAddCollaudo(codiceFiscale, start, end); return intPraticaFinder.canAddCollaudo(codiceFiscale, start, end);
} }
@ -2067,11 +2033,12 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
public int countIngressiCO(Date dtMin, Date dtMax, long groupId) throws SystemException { public int countIngressiCO(Date dtMin, Date dtMax, long groupId) throws SystemException {
return IntPraticaFinderUtil.countIngressiCO(dtMin, dtMax, groupId); return IntPraticaFinderUtil.countIngressiCO(dtMin, dtMax, groupId);
} }
public Organization getOrganizationByIntPraticaId(long intPraticaId) throws PortalException, SystemException{ public Organization getOrganizationByIntPraticaId(long intPraticaId) throws PortalException,
SystemException {
IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId);
Group group = GroupLocalServiceUtil.getGroup(intPratica.getGroupId()); Group group = GroupLocalServiceUtil.getGroup(intPratica.getGroupId());
Organization organization = OrganizationLocalServiceUtil.getOrganization(group.getOrganizationId()); Organization organization = OrganizationLocalServiceUtil.getOrganization(group.getOrganizationId());
return organization; return organization;
} }

264
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaServiceImpl.java

@ -37,13 +37,14 @@ import com.liferay.portal.service.ServiceContext;
* The implementation of the int pratica remote service. * The implementation of the int pratica remote service.
* *
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun * All custom service methods should be put in this class. Whenever methods are
* ServiceBuilder to copy their definitions into the * added, rerun ServiceBuilder to copy their definitions into the
* {@link it.tref.liferay.portos.bo.service.IntPraticaService} interface. * {@link it.tref.liferay.portos.bo.service.IntPraticaService} interface.
* *
* <p> * <p>
* This is a remote service. Methods of this service are expected to have security checks based on * This is a remote service. Methods of this service are expected to have
* the propagated JAAS credentials because this service can be accessed remotely. * security checks based on the propagated JAAS credentials because this service
* can be accessed remotely.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
@ -51,179 +52,192 @@ import com.liferay.portal.service.ServiceContext;
* @see it.tref.liferay.portos.bo.service.IntPraticaServiceUtil * @see it.tref.liferay.portos.bo.service.IntPraticaServiceUtil
*/ */
public class IntPraticaServiceImpl extends IntPraticaServiceBaseImpl { public class IntPraticaServiceImpl extends IntPraticaServiceBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use
* it.tref.liferay.portos.bo.service.IntPraticaServiceUtil} to access the int pratica remote * {@link it.tref.liferay.portos.bo.service.IntPraticaServiceUtil} to access
* service. * the int pratica remote service.
*/ */
public IntPratica getIntPratica(long intPraticaId) throws PortalException, SystemException { public IntPratica getIntPratica(long intPraticaId) throws PortalException, SystemException {
// TODO: Permessi // TODO: Permessi
return intPraticaLocalService.getIntPratica(intPraticaId); return intPraticaLocalService.getIntPratica(intPraticaId);
} }
public void deleteIntPratica(long intPraticaId, long userId) throws PortalException, SystemException { public void deleteIntPratica(long intPraticaId, long userId) throws PortalException, SystemException {
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
if (ValidazionePraticaUtil.canDeletePratica(intPraticaId, userId)) { if (ValidazionePraticaUtil.canDeletePratica(intPraticaId, userId)) {
intPraticaLocalService.deleteIntPratica(intPratica); intPraticaLocalService.deleteIntPratica(intPratica);
} else { } else {
throw new SystemException("impossibile cancellare la int pratica"); throw new SystemException("impossibile cancellare la int pratica");
} }
} }
// public void pagaInvia(long intPraticaId, int pagAdeguamentoSismico, int pagAltro, int // public void pagaInvia(long intPraticaId, int pagAdeguamentoSismico, int
// pagMiglioramentoSismico, // pagAltro, int
// int pagNuovaCostruzione, boolean pagNuoveCostruzioni, boolean pagRiparazioneInterventoLocale, // pagMiglioramentoSismico,
// boolean pagVarianti, String importoSpeseIstruttoria, String codiceFiscaleCommittente, String // int pagNuovaCostruzione, boolean pagNuoveCostruzioni, boolean
// currentUrl, // pagRiparazioneInterventoLocale,
// ServiceContext serviceContext) throws PortalException, SystemException { // boolean pagVarianti, String importoSpeseIstruttoria, String
// // codiceFiscaleCommittente, String
// // currentUrl,
// intPraticaLocalService.pagaInvia(intPraticaId, pagAdeguamentoSismico, pagAltro, // ServiceContext serviceContext) throws PortalException, SystemException {
// pagMiglioramentoSismico, //
// pagNuovaCostruzione, pagNuoveCostruzioni, pagRiparazioneInterventoLocale, pagVarianti, //
// importoSpeseIstruttoria, // intPraticaLocalService.pagaInvia(intPraticaId, pagAdeguamentoSismico,
// codiceFiscaleCommittente, currentUrl, serviceContext); // pagAltro,
// // pagMiglioramentoSismico,
// } // pagNuovaCostruzione, pagNuoveCostruzioni, pagRiparazioneInterventoLocale,
// pagVarianti,
// importoSpeseIstruttoria,
// codiceFiscaleCommittente, currentUrl, serviceContext);
//
// }
public void sospendiPratica(long intPraticaId, boolean sospesa) throws PortalException, SystemException {
public void sospendiPratica(long intPraticaId, boolean sospesa) throws PortalException, SystemException { IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); IntPraticaPermission.check(getPermissionChecker(), territorio.getGroupId(),
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); ActionKeys.SOSPENDI_FASCICOLO);
intPraticaLocalService.sospendiPratica(intPraticaId, sospesa);
IntPraticaPermission.check(getPermissionChecker(), territorio.getGroupId(), ActionKeys.SOSPENDI_FASCICOLO); }
intPraticaLocalService.sospendiPratica(intPraticaId, sospesa);
} public void cambiaTitolare(long intPraticaId, long soggettoId, ServiceContext serviceContext)
throws PortalException, SystemException {
public void cambiaTitolare(long intPraticaId, long soggettoId, ServiceContext serviceContext) throws PortalException, IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
SystemException { Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); IntPraticaPermission.check(getPermissionChecker(), territorio.getGroupId(),
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); ActionKeys.CAMBIO_TITOLARE);
intPraticaLocalService.cambiaTitolare(intPraticaId, soggettoId, serviceContext);
}
IntPraticaPermission.check(getPermissionChecker(), territorio.getGroupId(), ActionKeys.CAMBIO_TITOLARE); public void updateStatoPratica(long intPraticaId, String statoPratica) throws PortalException,
intPraticaLocalService.cambiaTitolare(intPraticaId, soggettoId, serviceContext); SystemException {
}
public void updateStatoPratica(long intPraticaId, String statoPratica) throws PortalException, SystemException { IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); IntPraticaPermission.check(getPermissionChecker(), territorio.getGroupId(), ActionKeys.CAMBIO_STATO);
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); intPraticaLocalService.updateStatoPratica(intPraticaId, statoPratica);
}
IntPraticaPermission.check(getPermissionChecker(), territorio.getGroupId(), ActionKeys.CAMBIO_STATO); public List<IntPratica> search(List<Long> groupIds, int start, int end) throws SystemException {
intPraticaLocalService.updateStatoPratica(intPraticaId, 0l, statoPratica);
}
public List<IntPratica> search(List<Long> groupIds, int start, int end) throws SystemException { // TODO Modificare tramite Indexer
// TODO Aggiungere controllo permessi
// TODO Modificare tramite Indexer return intPraticaLocalService.search(groupIds, start, end);
// TODO Aggiungere controllo permessi
return intPraticaLocalService.search(groupIds, start, end); }
} public int countSearch(List<Long> groupIds) throws SystemException {
public int countSearch(List<Long> groupIds) throws SystemException { // TODO Modificare tramite Indexer
// TODO Aggiungere controllo permessi
// TODO Modificare tramite Indexer return intPraticaLocalService.countSearch(groupIds);
// TODO Aggiungere controllo permessi
return intPraticaLocalService.countSearch(groupIds); }
} public List<IntPratica> findByCompanyIdSoggettoProgetti(long companyId, long soggettoId)
throws SystemException, PortalException {
public List<IntPratica> findByCompanyIdSoggettoProgetti(long companyId, long soggettoId) throws SystemException, return intPraticaLocalService.findByCompanyIdSoggettoProgetti(companyId, soggettoId);
PortalException { }
return intPraticaLocalService.findByCompanyIdSoggettoProgetti(companyId, soggettoId); public int countByCompanyIdSoggettoProgetti(long companyId, long soggettoId) throws SystemException,
} PortalException {
public int countByCompanyIdSoggettoProgetti(long companyId, long soggettoId) throws SystemException, PortalException { return intPraticaLocalService.countByCompanyIdSoggettoProgetti(companyId, soggettoId);
}
return intPraticaLocalService.countByCompanyIdSoggettoProgetti(companyId, soggettoId); public List<IntPratica> findByCompanyIdSoggettoArchivio(long companyId, long soggettoId)
} throws SystemException, PortalException {
public List<IntPratica> findByCompanyIdSoggettoArchivio(long companyId, long soggettoId) throws SystemException, return intPraticaLocalService.findByCompanyIdSoggettoArchivio(companyId, soggettoId);
PortalException { }
return intPraticaLocalService.findByCompanyIdSoggettoArchivio(companyId, soggettoId); public int countByCompanyIdSoggettoArchivio(long companyId, long soggettoId) throws SystemException,
} PortalException {
public int countByCompanyIdSoggettoArchivio(long companyId, long soggettoId) throws SystemException, PortalException { return intPraticaLocalService.countByCompanyIdSoggettoArchivio(companyId, soggettoId);
}
return intPraticaLocalService.countByCompanyIdSoggettoArchivio(companyId, soggettoId); public List<IntPratica> findByCompanyIdSoggettoAltriProgetti(long companyId, long soggettoId, int start,
} int end) throws SystemException, PortalException {
public List<IntPratica> findByCompanyIdSoggettoAltriProgetti(long companyId, long soggettoId, int start, int end) return intPraticaLocalService.findByCompanyIdSoggettoAltriProgetti(companyId, soggettoId, start, end);
throws SystemException, PortalException { }
return intPraticaLocalService.findByCompanyIdSoggettoAltriProgetti(companyId, soggettoId, start, end); public int countByCompanyIdSoggettoAltriProgetti(long companyId, long soggettoId) throws SystemException,
} PortalException {
public int countByCompanyIdSoggettoAltriProgetti(long companyId, long soggettoId) throws SystemException, return intPraticaLocalService.countByCompanyIdSoggettoAltriProgetti(companyId, soggettoId);
PortalException { }
return intPraticaLocalService.countByCompanyIdSoggettoAltriProgetti(companyId, soggettoId); public List<IntPratica> findByCanAddFineLavori(long companyId, String codiceFiscale, int start, int end)
} throws SystemException, PortalException {
public List<IntPratica> findByCanAddFineLavori(long companyId, String codiceFiscale, int start, int end) return intPraticaLocalService.findByCanAddFineLavori(companyId, codiceFiscale, start, end);
throws SystemException, PortalException { }
return intPraticaLocalService.findByCanAddFineLavori(companyId, codiceFiscale, start, end); public int countByCanAddFineLavori(long companyId, String codiceFiscale) throws SystemException,
} PortalException {
public int countByCanAddFineLavori(long companyId, String codiceFiscale) throws SystemException, PortalException { return intPraticaLocalService.countByCanAddFineLavori(companyId, codiceFiscale);
}
return intPraticaLocalService.countByCanAddFineLavori(companyId, codiceFiscale); public List<IntPratica> findByCanAddCollaudo(long companyId, String codiceFiscale, int start, int end)
} throws SystemException, PortalException {
public List<IntPratica> findByCanAddCollaudo(long companyId, String codiceFiscale, int start, int end) return intPraticaLocalService.findByCanAddCollaudo(companyId, codiceFiscale, start, end);
throws SystemException, PortalException { }
return intPraticaLocalService.findByCanAddCollaudo(companyId, codiceFiscale, start, end); public int countByCanAddCollaudo(long companyId, String codiceFiscale) throws SystemException,
} PortalException {
public int countByCanAddCollaudo(long companyId, String codiceFiscale) throws SystemException, PortalException { return intPraticaLocalService.countByCanAddCollaudo(companyId, codiceFiscale);
}
return intPraticaLocalService.countByCanAddCollaudo(companyId, codiceFiscale); public FileEntry allegaFileAnnullamento(long intPraticaId, byte[] content, String sourceFileName,
} String jsonFirmatari, ServiceContext serviceContext) throws SystemException, PortalException,
IOException {
public FileEntry allegaFileAnnullamento(long intPraticaId, byte[] content, String sourceFileName, return intPraticaLocalService.allegaFileAnnullamento(intPraticaId, content, sourceFileName,
String jsonFirmatari, ServiceContext serviceContext) throws SystemException, PortalException, IOException { jsonFirmatari, serviceContext);
}
return intPraticaLocalService.allegaFileAnnullamento(intPraticaId, content, sourceFileName,jsonFirmatari, serviceContext); public void completeAnnullamento(long intPraticaId, long userId) throws PortalException, SystemException {
}
public void completeAnnullamento(long intPraticaId, long userId) throws PortalException, SystemException { if (!AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_ANNULLA)
|| !ValidazionePraticaUtil.praticaCanAbort(intPraticaId, userId)) {
throw new SystemException("error.annullamento.add.file.not.allowed");
}
intPraticaLocalService.completeAnnullamento(intPraticaId);
}
if (!AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_ANNULLA) public void cambiaIstruttore(long intPraticaId, long controlloPraticaId, long istruttoreId)
|| !ValidazionePraticaUtil.praticaCanAbort(intPraticaId, userId)) { throws PortalException, SystemException {
throw new SystemException("error.annullamento.add.file.not.allowed");
}
intPraticaLocalService.completeAnnullamento(intPraticaId);
}
public void cambiaIstruttore(long intPraticaId, long controlloPraticaId, long istruttoreId) throws PortalException, intPraticaLocalService.cambiaIstruttore(intPraticaId, controlloPraticaId, istruttoreId);
SystemException { }
intPraticaLocalService.cambiaIstruttore(intPraticaId, controlloPraticaId, istruttoreId); public String geosisma(long intPraticaId) throws PortalException, SystemException {
}
public String geosisma(long intPraticaId) throws PortalException, SystemException { JSONObject json = JSONFactoryUtil.createJSONObject();
JSONObject json = JSONFactoryUtil.createJSONObject(); IntPratica intPratica = intPraticaLocalService.fetchIntPratica(intPraticaId);
if (Validator.isNotNull(intPratica)) {
json.put("intPraticaId", intPratica.getIntPraticaId());
}
IntPratica intPratica = intPraticaLocalService.fetchIntPratica(intPraticaId); return json.toString();
if (Validator.isNotNull(intPratica)) { }
json.put("intPraticaId", intPratica.getIntPraticaId());
}
return json.toString();
}
} }

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/ProtocollazioneUtil.java

@ -235,7 +235,7 @@ public class ProtocollazioneUtil {
public static List<OggettoProtocollo> searchProtocolli(HttpServletRequest request, long companyId, public static List<OggettoProtocollo> searchProtocolli(HttpServletRequest request, long companyId,
long userId) { long userId) {
List<OggettoProtocollo> result = Collections.emptyList(); List<OggettoProtocollo> result = Collections.<OggettoProtocollo>emptyList();
String ufficioIds = ""; String ufficioIds = "";

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.namespace=portos_bo
build.number=2775 build.number=2800
build.date=1607527945037 build.date=1607692123061
build.auto.upgrade=true build.auto.upgrade=true
## ##

27
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/asset/controllopratica/full_content.jsp

@ -96,19 +96,22 @@ List<ParereGeologo> pareriGeologo = ParereGeologoLocalServiceUtil.findByIntPrati
<h4 class="title_date_workflow">Dettagli dati inseriti nel Workflow</h4> <h4 class="title_date_workflow">Dettagli dati inseriti nel Workflow</h4>
<ul class="list-workflow"> <ul class="list-workflow">
<% <%
if( parametri.isEmpty()){ if (parametri.isEmpty()) {
out.print("<li><strong>Nessun dato inserito</strong></li>"); out.print("<li><strong>Nessun dato inserito</strong></li>");
}else { } else {
for(Entry<String, Serializable> entry: parametri.entrySet()){ for (Entry<String, Serializable> entry : parametri.entrySet()) {
String key = entry.getKey(); String key = entry.getKey();
if (key.equals("ingloba_variante")){ if (key.equals("ingloba_variante")) {
String value = entry.getValue().toString(); String value = entry.getValue().toString();
out.print("<li><strong>"+value+"</strong></li>"); out.print("<li><strong>"+value+"</strong></li>");
}else{ } else {
String value = entry.getValue().toString(); String value = entry.getValue().toString();
out.print("<li><strong>"+LanguageUtil.get(pageContext, key)+":</strong> "+LanguageUtil.get(pageContext, WorkflowUtil.adjustWorkflowContextValue(key, value, intPratica.getIntPraticaId()))+" </li>"); out.print("<li><strong>" + LanguageUtil.get(pageContext, key) + ":</strong> "
} + LanguageUtil.get(pageContext,
} WorkflowUtil.adjustWorkflowContextValue(key, value, intPratica.getIntPraticaId()))
+ " </li>");
}
}
} }
%> %>
</ul> </ul>

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/header.jsp

@ -79,7 +79,7 @@
<div class="col-sm-2 col-md-2">Stato:</div> <div class="col-sm-2 col-md-2">Stato:</div>
<div class="col-sm-4 col-md-4"> <div class="col-sm-4 col-md-4">
<strong><%=LanguageUtil.get(pageContext, <strong><%=LanguageUtil.get(pageContext,
PraticaUtil.getStatoPraticaLabel(intPratica.getStatoPratica(), intPratica))%></strong> PraticaUtil.getStatoPraticaLabel(intPratica.getStatoPratica(), intPratica.getIntPraticaId()))%></strong>
</div> </div>
</div> </div>

45
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view.jsp

@ -95,8 +95,6 @@ String orderByType = ParamUtil.getString(request, "orderByType", "asc");
String orderByCol = ParamUtil.getString(request, "orderByCol", "nome"); String orderByCol = ParamUtil.getString(request, "orderByCol", "nome");
String keywords = StringPool.BLANK; String keywords = StringPool.BLANK;
String dtSorteggioNullo = "2020-03-05 11:12:18.006";
%> %>
<liferay-ui:success key="success-sospesa" message="message-success-pratica-sospesa"/> <liferay-ui:success key="success-sospesa" message="message-success-pratica-sospesa"/>
<liferay-ui:success key="success-ripresa" message="message-success-pratica-ripresa"/> <liferay-ui:success key="success-ripresa" message="message-success-pratica-ripresa"/>
@ -194,15 +192,17 @@ String dtSorteggioNullo = "2020-03-05 11:12:18.006";
className="it.tref.liferay.portos.bo.model.IntPratica" className="it.tref.liferay.portos.bo.model.IntPratica"
modelVar="intPratica" modelVar="intPratica"
> >
<% <%
DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId()); long intPraticaId = intPratica.getIntPraticaId();
DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId);
Log _log = LogFactoryUtil.getLog("fascicolo/view.jsp"); Log _log = LogFactoryUtil.getLog("fascicolo/view.jsp");
if (lastDettPratica == null) if (lastDettPratica == null) {
_log.info("intPraticaId=" + intPratica.getIntPraticaId() + ", lastDettPratica null"); _log.info("intPraticaId=" + intPraticaId + ", lastDettPratica null");
}
%> %>
<liferay-portlet:renderURL var="viewURL" > <liferay-portlet:renderURL var="viewURL" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolo/view_fascicolo.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolo/view_fascicolo.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPratica.getIntPraticaId()) %>" /> <liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="backURL" value="<%= iteratorURL.toString() %>" /> <liferay-portlet:param name="backURL" value="<%= iteratorURL.toString() %>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
@ -219,9 +219,9 @@ String dtSorteggioNullo = "2020-03-05 11:12:18.006";
Le pratiche sottoposte a parere sono quelle che hanno Le pratiche sottoposte a parere sono quelle che hanno
statoPratica == 'SP', non quelle in status di workflow = pending statoPratica == 'SP', non quelle in status di workflow = pending
--> -->
<c:if test="<%= intPratica.getStatoPratica().equalsIgnoreCase(\"SP\") %>"> <c:if test="<%= intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.SOTTOPOSTA_A_PARERE) %>">
<span class="display-inline-block bordered-2x border-circle bg-green txt-bold tooltip-info" title="Sottoposta a parere" style="padding: 5px;margin-right:5px;"> <span class="display-inline-block bordered-2x border-circle bg-green txt-bold tooltip-info" title="Sottoposta a parere" style="padding: 5px;margin-right:5px;">
SP <%= StatoPraticaConstants.SOTTOPOSTA_A_PARERE %>
</span> </span>
</c:if> </c:if>
<c:if test="<%=StatoPraticaConstants.INTEGRAZIONE.equals(intPratica.getStatoPratica()) %>"> <c:if test="<%=StatoPraticaConstants.INTEGRAZIONE.equals(intPratica.getStatoPratica()) %>">
@ -232,20 +232,11 @@ String dtSorteggioNullo = "2020-03-05 11:12:18.006";
</div> </div>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Sorteggiata"> <liferay-ui:search-container-column-text name="Sorteggiata">
<% Sorteggio sorteggio = SorteggioLocalServiceUtil.findByIntPratica(intPratica.getIntPraticaId()); %> <% Sorteggio sorteggio = SorteggioLocalServiceUtil.findByIntPratica(intPraticaId); %>
<c:if test="<%= sorteggio != null %>"> <c:if test="<%= sorteggio != null %>">
<c:choose> <span title="Sorteggiata ed estratta">
<c:when test="<%= new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\").format(sorteggio.getDtSorteggio()).equals(dtSorteggioNullo) %>"> <i class="relative fa fa-check-square txt-green" style="font-size:33px"></i>
<span title="Sorteggio non valido ed annullato per doppia esecuzione"> </span>
<i class="relative fa fa-check-square txt-gray" style="font-size:33px"></i>
</span>
</c:when>
<c:otherwise>
<span title="Sorteggiata ed estratta">
<i class="relative fa fa-check-square txt-green" style="font-size:33px"></i>
</span>
</c:otherwise>
</c:choose>
</c:if> </c:if>
<c:if test="<%= (intPratica.getDtSorteggio() != null) && (sorteggio == null) %>"> <c:if test="<%= (intPratica.getDtSorteggio() != null) && (sorteggio == null) %>">
<span title="Sorteggiata e non estratta"> <span title="Sorteggiata e non estratta">
@ -302,11 +293,11 @@ String dtSorteggioNullo = "2020-03-05 11:12:18.006";
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Stato Pratica" cssClass="text-nowrap text-center middle-aligned"> <liferay-ui:search-container-column-text name="Stato Pratica" cssClass="text-nowrap text-center middle-aligned">
<strong><%= LanguageUtil.get(pageContext, PraticaUtil.getStatoPraticaLabel(intPratica.getStatoPratica(), intPratica)) %></strong> <strong><%= LanguageUtil.get(pageContext, PraticaUtil.getStatoPraticaLabel(intPratica.getStatoPratica(), intPraticaId)) %></strong>
<span class="text-center display-block" style="margin-top:5px"> <span class="text-center display-block" style="margin-top:5px">
<% <%
List<Avviso> avvisi = AvvisoLocalServiceUtil.findByIntPratica(intPratica.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS, OrderByComparatorFactoryUtil.create("portos_bo_Avviso", "createDate", false)); List<Avviso> avvisi = AvvisoLocalServiceUtil.findByIntPratica(intPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, OrderByComparatorFactoryUtil.create("portos_bo_Avviso", "createDate", false));
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
if(!avvisi.isEmpty()){ if(!avvisi.isEmpty()){
sb.append("<ul class='avvisi-tooltip'>"); sb.append("<ul class='avvisi-tooltip'>");
@ -319,7 +310,7 @@ String dtSorteggioNullo = "2020-03-05 11:12:18.006";
%> %>
<liferay-portlet:renderURL var="fascicoloAvvisiURL"> <liferay-portlet:renderURL var="fascicoloAvvisiURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolo/view_fascicolo.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolo/view_fascicolo.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPratica.getIntPraticaId())%>" /> <liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<a class="btn status-icon tooltip-info btn-action" title="<%= HtmlUtil.escapeAttribute(sb.toString()) %>" <a class="btn status-icon tooltip-info btn-action" title="<%= HtmlUtil.escapeAttribute(sb.toString()) %>"
href="<%= fascicoloAvvisiURL.toString()+"#_"+PortletKeys.FASCICOLO+"_tab=_"+PortletKeys.FASCICOLO+"_page_avvisi" %>"> href="<%= fascicoloAvvisiURL.toString()+"#_"+PortletKeys.FASCICOLO+"_tab=_"+PortletKeys.FASCICOLO+"_page_avvisi" %>">
@ -331,8 +322,8 @@ String dtSorteggioNullo = "2020-03-05 11:12:18.006";
} }
%> %>
<% <%
int variantiCount = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPratica.getIntPraticaId(), Arrays.asList(TipoIntegrazioneUtil.VARIANTE)); int variantiCount = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(TipoIntegrazioneUtil.VARIANTE));
int integrazioniCount = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPratica.getIntPraticaId(), Arrays.asList(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)); int integrazioniCount = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE));
%> %>
<c:if test="<%= variantiCount > 0 %>"> <c:if test="<%= variantiCount > 0 %>">
<span class="btn status-icon tooltip-info btn-action" title="Varianti Presentate"> <span class="btn status-icon tooltip-info btn-action" title="Varianti Presentate">

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivitaistruttore/view_columns.jspf

@ -54,7 +54,7 @@ if(collaudatori != null && !collaudatori.isEmpty()){
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Stato Pratica"> <liferay-ui:search-container-column-text name="Stato Pratica">
<%= LanguageUtil.get(pageContext, PraticaUtil.getStatoPraticaLabel(intPratica.getStatoPratica(), intPratica)) %> <%= LanguageUtil.get(pageContext, PraticaUtil.getStatoPraticaLabel(intPratica.getStatoPratica(), intPratica.getIntPraticaId())) %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Committenti"> <liferay-ui:search-container-column-text name="Committenti">

2
liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/StatoPraticaConstants.java

@ -52,6 +52,8 @@ public class StatoPraticaConstants {
put(FINE_LAVORI, "label.admingeniocivile.statopratica.finelavori"); put(FINE_LAVORI, "label.admingeniocivile.statopratica.finelavori");
put(FINE_LAVORI_PARZIALE, "label.admingeniocivile.statopratica.finelavoriparziale"); put(FINE_LAVORI_PARZIALE, "label.admingeniocivile.statopratica.finelavoriparziale");
put(INTEGRAZIONE, "label.admingeniocivile.statopratica.integrazione"); put(INTEGRAZIONE, "label.admingeniocivile.statopratica.integrazione");
put(PREAVVISO_CONTRARIO, "label.admingeniocivile.statopratica.preavvisocontrario");
put(NO_PARERE, "label.admingeniocivile.statopratica.noparere");
put(NON_AUTORIZZATA, "label.admingeniocivile.statopratica.autorizzazionenegata"); put(NON_AUTORIZZATA, "label.admingeniocivile.statopratica.autorizzazionenegata");
put(NON_CONFORME, "label.admingeniocivile.statopratica.nonconforme"); put(NON_CONFORME, "label.admingeniocivile.statopratica.nonconforme");
put(RIFIUTATA, "label.admingeniocivile.statopratica.rifiutata"); put(RIFIUTATA, "label.admingeniocivile.statopratica.rifiutata");

4
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/service.properties

@ -13,8 +13,8 @@
## ##
build.namespace=Kaleo build.namespace=Kaleo
build.number=13 build.number=14
build.date=1607528045052 build.date=1607618436751
build.auto.upgrade=true build.auto.upgrade=true
## ##

Caricamento…
Annulla
Salva