Sfoglia il codice sorgente

documento attestazione

master 21.08
Mattia Gosetto 3 anni fa
parent
commit
034a513849
  1. 1
      jasper/.settings/org.eclipse.core.resources.prefs
  2. 451
      jasper/attestazione.jrxml
  3. 118
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java
  4. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java
  5. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  6. 105
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp

1
jasper/.settings/org.eclipse.core.resources.prefs

@ -14,5 +14,6 @@ encoding/VIArch\ attivazione.jrxml=UTF-8
encoding/VIArch\ conclusione.jrxml=UTF-8
encoding/accettata_integrazione.jrxml=UTF-8
encoding/annullamento.jrxml=UTF-8
encoding/attestazione.jrxml=UTF-8
encoding/cambio_istruttore.jrxml=UTF-8
encoding/visualizza_fascicolo.jrxml=UTF-8

451
jasper/attestazione.jrxml

@ -0,0 +1,451 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.4.3.final utlizzo versione della libreria JasperReports6.4.3 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Modello A" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="afafe5d8-778e-4527-a33a-8c04000abd71">
<property name="ireport.zoom" value="1.3636363636363653"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="1180"/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<subDataset name="dataset1" whenResourceMissingType="Empty" uuid="a88aaa8a-a8ef-4d30-97a7-683ded039127">
<field name="codiceAllegato" class="java.lang.String"/>
<field name="titoloAllegato" class="java.lang.String"/>
<field name="sha256Allegato" class="java.lang.String"/>
</subDataset>
<parameter name="LOGO_REGIONE" class="java.lang.String"/>
<parameter name="motivazioni" class="java.lang.String"/>
<parameter name="testo_del_documento" class="java.lang.String"/>
<parameter name="LOGO_DIPARTIMENTO" class="java.lang.String"/>
<field name="alCollaudatore" class="java.lang.String"/>
<field name="alDirettoreLavori" class="java.lang.String"/>
<field name="alTitolareDigitale" class="java.lang.String"/>
<field name="committente" class="java.lang.String"/>
<field name="comune" class="java.lang.String"/>
<field name="lavoriDi" class="java.lang.String"/>
<field name="alCommittente" class="java.lang.String"/>
<field name="codiceUnivoco" class="java.lang.String"/>
<field name="dataAvviso" class="java.util.Date"/>
<field name="dataPratica" class="java.util.Date"/>
<field name="numeroProtocollo" class="java.lang.String"/>
<field name="numeroVariante" class="java.lang.String"/>
<field name="sedeGenioCivile" class="java.lang.String"/>
<field name="numeroProgetto" class="java.lang.String"/>
<field name="ubicazione" class="java.lang.String"/>
<field name="allegati" class="java.util.List"/>
<field name="tipoAutorizzazione" class="java.lang.String"/>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="71" splitType="Stretch">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<image>
<reportElement x="0" y="0" width="224" height="68" uuid="69ba1fba-114d-4d87-afcf-2a121decda52">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<imageExpression><![CDATA[$P{LOGO_REGIONE}]]></imageExpression>
</image>
<textField>
<reportElement x="360" y="49" width="189" height="19" uuid="54537172-6b28-41f4-914e-f4fab36cd4e9">
<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 textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Bold" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA["Soprintendenza BB.CC.AA"+"\n"+
"di "+$F{sedeGenioCivile}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="360" y="25" width="191" height="24" uuid="1b70a5b6-ea8f-42f7-926a-6afe5791e1f8">
<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 textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Bold" size="8" isBold="false"/>
</textElement>
<text><![CDATA[Dipartimento dei beni culturali
e dell'identità siciliana]]></text>
</staticText>
<image>
<reportElement x="430" y="0" width="79" height="25" uuid="847628c6-b81f-4230-a9b0-06a8d5d7442c">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<imageExpression><![CDATA[$P{LOGO_DIPARTIMENTO}]]></imageExpression>
</image>
</band>
</pageHeader>
<detail>
<band height="98">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<line>
<reportElement x="0" y="22" width="555" height="1" uuid="9a12dff4-3c78-4e66-b1b6-13836bb2182b"/>
</line>
<staticText>
<reportElement x="1" y="30" width="56" height="13" uuid="9f68e9a8-cba6-4f14-bfd8-00b5bb45ebcb"/>
<textElement>
<font fontName="DejaVu Sans" isBold="true"/>
</textElement>
<text><![CDATA[Oggetto:]]></text>
</staticText>
<textField>
<reportElement x="59" y="4" width="100" height="12" uuid="db3d08ab-28c7-4bb7-9758-f17e9a87c303"/>
<textElement>
<font fontName="DejaVu Sans" size="8"/>
</textElement>
<textFieldExpression><![CDATA[new SimpleDateFormat("dd/MM/yyyy").format($F{dataAvviso})]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="9" y="4" width="48" height="12" uuid="91b20a71-bc61-45b2-b546-829b214db055"/>
<textElement>
<font fontName="DejaVu Sans" size="8" isBold="false" isItalic="false"/>
</textElement>
<text><![CDATA[Data Avviso]]></text>
</staticText>
<staticText>
<reportElement x="59" y="84" width="130" height="14" uuid="2c29296d-097b-4faa-b4d2-7045cef06f6d">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement>
<text><![CDATA[Descrizione]]></text>
</staticText>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="59" y="30" width="491" height="26" uuid="6cb9f8b8-8715-41ba-a4d4-6eabe2e85408">
<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{tipoAutorizzazione}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="183" y="63" width="195" height="14" uuid="8c9f5378-8e8d-4655-84b5-eccad49767d5">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement textAlignment="Center">
<font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement>
<text><![CDATA[ATTESTAZIONE]]></text>
</staticText>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="190" y="84" width="360" height="14" uuid="877d100e-606b-4eea-960e-f889359577e1">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$F{lavoriDi}]]></textFieldExpression>
</textField>
</band>
<band height="49">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<staticText>
<reportElement x="59" y="0" width="130" height="14" uuid="4f9a8fdf-ffa4-40e1-8243-a75cc00f8200">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement>
<text><![CDATA[Ubicazione]]></text>
</staticText>
<staticText>
<reportElement x="59" y="14" width="130" height="14" uuid="3f6043ac-d101-498c-b158-050a7240c012">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement>
<text><![CDATA[Istanza n.]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="190" y="0" width="360" height="14" uuid="ac4495b9-44cc-4024-8f86-834e44616dff">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$F{ubicazione} != null ? $F{ubicazione} : ""]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="190" y="14" width="360" height="14" uuid="cb433646-ff21-4c58-97d7-0cf423a63b23">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$F{numeroProgetto}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="190" y="28" width="360" height="14" uuid="352ff7ee-5039-4b04-8b75-755272041573">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$F{numeroProtocollo}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="59" y="28" width="130" height="14" uuid="65bd3291-92e6-4348-9d4c-79304aa36c0e">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement>
<text><![CDATA[Protocollo]]></text>
</staticText>
</band>
<band height="281">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<textField isBlankWhenNull="true">
<reportElement key="" x="285" y="40" width="268" height="14" uuid="b82a2f48-cea2-4ad2-8b76-c443de8a1fe1">
<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{comune}]]></textFieldExpression>
</textField>
<staticText>
<reportElement key="" x="170" y="10" width="115" height="14" uuid="c0370045-7e64-47e0-9c03-d9259f814713">
<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>
<staticText>
<reportElement x="90" y="40" width="195" height="14" uuid="3f554448-d5dc-4075-b6ed-8e7bd10d7998">
<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="false"/>
</textElement>
<text><![CDATA[al Sindaco / S.U.E. del Comune di ]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement key="" x="285" y="10" width="268" height="14" uuid="f502c7f9-5ac4-43dd-bd91-cc46b395365e">
<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 isBlankWhenNull="true">
<reportElement key="" x="285" y="24" width="268" height="14" uuid="03b513cf-794b-4cb8-92f4-2c81909cd825">
<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>
<reportElement key="" x="170" y="24" width="115" height="14" uuid="2a88b2fd-8fcf-4888-a1a1-82919fe0776a">
<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[c/o il suo delegato]]></text>
</staticText>
<staticText>
<reportElement x="3" y="70" width="548" height="90" uuid="e4fec3f3-6651-4474-af2b-5072d857d07e">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans" isBold="false"/>
</textElement>
<text><![CDATA[Con riferimento all’istanza in oggetto
- visto il Codice dei Beni Culturali e del Paesaggio (D.L.vo n. 42 del 22.01.2004 e ss.mm.ii.);
- visto il Piano Paesaggistico degli Ambiti 14 e 17 ricadenti nella provincia di Siracusa, approvato con D.A. n. 5040 del 20.10.2017 e pubblicato nella G.U.R.S. n. 12 del 16.03.2018;
- esaminata la documentazione allegata all’istanza;]]></text>
</staticText>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="3" y="170" width="548" height="99" uuid="0156b4c7-6c07-4e4a-b8f6-e8ef115f5b1e">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$P{testo_del_documento}]]></textFieldExpression>
</textField>
</band>
<band height="63">
<componentElement>
<reportElement x="3" y="33" width="548" height="30" uuid="1a359757-dc45-45cb-bdf8-215e91905c39">
<property name="com.jaspersoft.studio.unit.CONTENTS.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>
<jr:list xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" printOrder="Vertical">
<datasetRun subDataset="dataset1" uuid="c5c63b6d-60a1-4ab0-8a82-0ac6993df639">
<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{allegati})]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="30" width="548">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="20" y="0" width="519" height="14" uuid="6689d4e1-4145-4de3-9faa-7206aab84bdd">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="DejaVu Sans" size="9"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$F{codiceAllegato}+" - "+$F{titoloAllegato}]]></textFieldExpression>
</textField>
<ellipse>
<reportElement x="11" y="5" width="4" height="4" backcolor="#000000" uuid="775a480f-53f2-43e5-ac27-8384f4986c90">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</ellipse>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="20" y="14" width="519" height="14" uuid="0c265a63-dc21-413a-8a3d-8eec3b770a17">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="DejaVu Sans" size="9"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["SHA256: "+$F{sha256Allegato}]]></textFieldExpression>
</textField>
</jr:listContents>
</jr:list>
</componentElement>
<staticText>
<reportElement x="3" y="0" width="548" height="26" uuid="b1072570-e715-4b6f-bda4-ae4723e17f5d">
<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"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.leftIndent" value="px"/>
<property name="com.jaspersoft.studio.unit.firstLineIndent" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans"/>
<paragraph firstLineIndent="14" leftIndent="0"/>
</textElement>
<text><![CDATA[Viene di seguito riportato l’elenco dei documenti allegati all’istanza ed acquisiti dal sistema informatico “Paesaggistica” della Regione Siciliana.]]></text>
</staticText>
</band>
<band height="46">
<staticText>
<reportElement x="4" y="10" width="547" height="20" uuid="a357f0d4-8217-44d7-b424-b81c836f803a">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right">
<font fontName="DejaVu Sans" size="12" isBold="false"/>
</textElement>
<text><![CDATA[Il sopritendente]]></text>
</staticText>
<staticText>
<reportElement x="4" y="30" width="547" height="10" uuid="e484cc67-3e66-431a-ad1f-bc7fc56c0836">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right">
<font fontName="DejaVu Sans" size="8" isBold="false"/>
</textElement>
<text><![CDATA[Firmato digitalmente]]></text>
</staticText>
</band>
<band height="215">
<staticText>
<reportElement x="4" y="10" width="547" height="190" uuid="1b23fa15-1e45-450e-9644-b07ed159627c">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<font fontName="DejaVu Sans" isBold="false" isItalic="true"/>
</textElement>
<text><![CDATA[Nel rispetto di quanto prescritto dalla L. 241/1990 e ss. mm. ii. e della L.R. 7/2019, si comunica che, per il presente procedimento amministrativo,
- le Unità Operative che si occupano di provvedimenti autorizzativi in materia di Beni Culturali nelle Soprintendenze dell’Isola, ognuna per le proprie competenze, rappresentano l'unità organizzativa responsabile del procedimento sotto il profilo tecnico-scientifico e di ogni atto procedimentale interlocutorio;
- responsabile dell'adozione del provvedimento finale è il Soprintendente;
- ai fini dell’eventuale richiesta di esercizio dei poteri sostitutivi, il responsabile della correttezza e della celerità è il Dirigente Generale del Dipartimento Beni Culturali e dell’Identità Siciliana.
Responsabile della piattaforma telematica è il Dott. Mario Parlavecchio (mparlavecchio@regione.sicilia.it).
Il titolare del trattamento, definito dall’articolo 4, n. 7 del GDPR - Regolamento generale sulla protezione dei dati (UE/2016/679), è il Dipartimento Beni Culturali e dell’Identità Siciliana.
Responsabili del trattamento, definito all’articolo 4, n.8 del GDPR - Regolamento generale sulla protezione dei dati (UE/2016/679), sono le Soprintendenze di Agrigento, Caltanissetta, Catania, Enna, Messina, Palermo, Ragusa, Siracusa, Trapani, e la Soprintendenza del Mare.]]></text>
</staticText>
</band>
</detail>
<pageFooter>
<band height="109" splitType="Stretch">
<staticText>
<reportElement x="4" y="86" width="301" height="23" uuid="89e43c7c-c4e3-456f-8eba-d21332502699">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans" size="8" isBold="true"/>
</textElement>
<text><![CDATA[www.regione.sicilia.it
https://paesaggistica.sicilia.it]]></text>
</staticText>
<line>
<reportElement x="0" y="83" width="555" height="1" uuid="f2f3ee86-58db-4a77-937b-428b7f419b7b">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
</line>
<componentElement>
<reportElement x="183" y="10" width="188" height="50" uuid="4f9aca65-1cf3-4aae-bc48-c9a0517bf888">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<printWhenExpression><![CDATA[$F{codiceUnivoco} != null]]></printWhenExpression>
</reportElement>
<jr:PDF417 xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" moduleWidth="50.0" textPosition="bottom">
<jr:codeExpression><![CDATA[$F{codiceUnivoco}]]></jr:codeExpression>
</jr:PDF417>
</componentElement>
<textField isBlankWhenNull="true">
<reportElement x="8" y="60" width="538" height="20" uuid="17c484f8-1f60-4ac6-bf04-4b1ef031793a">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement textAlignment="Center">
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$F{codiceUnivoco}]]></textFieldExpression>
</textField>
</band>
</pageFooter>
</jasperReport>

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

@ -532,44 +532,44 @@ public class ValidazionePraticaUtil {
List<String> notCompleted = new ArrayList<>();
switch (intPratica.getTipoProcedura()) {
case Constants.PROCEDURA_P1:
case Constants.PROCEDURA_Q1:
case Constants.PROCEDURA_P8:
case Constants.PROCEDURA_Q8:
case Constants.PROCEDURA_P9:
case Constants.PROCEDURA_Q9:
soggettiRichiesti.add(TipoSoggettoUtil.COMMITTENTE);
soggettiRichiesti.add(TipoSoggettoUtil.PROGETTISTA);
break;
case Constants.PROCEDURA_P2:
case Constants.PROCEDURA_P4:
case Constants.PROCEDURA_P5:
case Constants.PROCEDURA_P6:
case Constants.PROCEDURA_P7:
case Constants.PROCEDURA_Q2:
case Constants.PROCEDURA_Q4:
case Constants.PROCEDURA_Q5:
case Constants.PROCEDURA_Q6:
case Constants.PROCEDURA_Q7:
soggettiRichiesti.add(TipoSoggettoUtil.COMMITTENTE);
soggettiRichiesti.add(TipoSoggettoUtil.PROGETTISTA);
soggettiRichiesti.add(TipoSoggettoUtil.DITTA);
soggettiRichiesti.add(TipoSoggettoUtil.DIRETTORE_LAVORI);
soggettiRichiesti.add(TipoSoggettoUtil.COLLAUDATORE);
break;
case Constants.PROCEDURA_P3:
case Constants.PROCEDURA_Q3:
soggettiRichiesti.add(TipoSoggettoUtil.COMMITTENTE);
soggettiRichiesti.add(TipoSoggettoUtil.PROGETTISTA);
soggettiRichiesti.add(TipoSoggettoUtil.ARCHEOLOGO);
break;
case Constants.PROCEDURA_P10:
case Constants.PROCEDURA_Q10:
soggettiRichiesti.add(TipoSoggettoUtil.COMMITTENTE);
break;
case Constants.PROCEDURA_P1:
case Constants.PROCEDURA_Q1:
case Constants.PROCEDURA_P8:
case Constants.PROCEDURA_Q8:
case Constants.PROCEDURA_P9:
case Constants.PROCEDURA_Q9:
soggettiRichiesti.add(TipoSoggettoUtil.COMMITTENTE);
soggettiRichiesti.add(TipoSoggettoUtil.PROGETTISTA);
break;
case Constants.PROCEDURA_P2:
case Constants.PROCEDURA_P4:
case Constants.PROCEDURA_P5:
case Constants.PROCEDURA_P6:
case Constants.PROCEDURA_P7:
case Constants.PROCEDURA_Q2:
case Constants.PROCEDURA_Q4:
case Constants.PROCEDURA_Q5:
case Constants.PROCEDURA_Q6:
case Constants.PROCEDURA_Q7:
soggettiRichiesti.add(TipoSoggettoUtil.COMMITTENTE);
soggettiRichiesti.add(TipoSoggettoUtil.PROGETTISTA);
soggettiRichiesti.add(TipoSoggettoUtil.DITTA);
soggettiRichiesti.add(TipoSoggettoUtil.DIRETTORE_LAVORI);
soggettiRichiesti.add(TipoSoggettoUtil.COLLAUDATORE);
break;
case Constants.PROCEDURA_P3:
case Constants.PROCEDURA_Q3:
soggettiRichiesti.add(TipoSoggettoUtil.COMMITTENTE);
soggettiRichiesti.add(TipoSoggettoUtil.PROGETTISTA);
soggettiRichiesti.add(TipoSoggettoUtil.ARCHEOLOGO);
break;
case Constants.PROCEDURA_P10:
case Constants.PROCEDURA_Q10:
soggettiRichiesti.add(TipoSoggettoUtil.COMMITTENTE);
break;
}
boolean isDelegaCommittente = SoggettiUtil.isTitolareInCommittenti(intPraticaId)
@ -589,41 +589,53 @@ public class ValidazionePraticaUtil {
if (!isDelegaCollaudo) {
notCompleted.add("delega-collaudatore");
}
List<Soggetto> soggettiPratica = SoggettoLocalServiceUtil.getValidTmpByIntPratica(intPraticaId);
boolean dlPresente = false;
boolean collaudatorePresente = false;
boolean dittaPresente = false;
boolean progettistaPresente = false;
for (Soggetto soggetto : soggettiPratica) {
soggettiRichiesti.remove(soggetto.getTipologiaSoggetto());
if(soggetto.getTipologiaSoggetto() == TipoSoggettoUtil.DIRETTORE_LAVORI)
dlPresente = true;
if(soggetto.getTipologiaSoggetto() == TipoSoggettoUtil.COLLAUDATORE)
collaudatorePresente = true;
if(soggetto.getTipologiaSoggetto() == TipoSoggettoUtil.DITTA)
dittaPresente = true;
if(soggetto.getTipologiaSoggetto() == TipoSoggettoUtil.PROGETTISTA)
progettistaPresente = true;
}
if (direttoreLavoriNotRequired) {
soggettiRichiesti.remove(TipoSoggettoUtil.DIRETTORE_LAVORI);
if(Validator.isNotNull(dettPratica.getCodiceFiscalePrincipaleDirettoreLavori()))
notCompleted.add("Rimuovere "+LanguageUtil.get(LocaleUtil.getDefault(), "gc-soggetto-"+TipoSoggettoUtil.DIRETTORE_LAVORI)+" da soggetti censiti");
if(dlPresente)
notCompleted.add("Rimuovere "+LanguageUtil.get(LocaleUtil.getDefault(), "gc-soggetto-"+TipoSoggettoUtil.DIRETTORE_LAVORI)+" da soggetti censiti");
}
if (collaudatoreNotRequired) {
soggettiRichiesti.remove(TipoSoggettoUtil.COLLAUDATORE);
if(Validator.isNotNull(dettPratica.getCodiceFiscaleDelegatoCollaudo()) ||
Validator.isNotNull(dettPratica.getCodiceFiscalePrincipaleCollaudatore()))
notCompleted.add("Rimuovere "+LanguageUtil.get(LocaleUtil.getDefault(), "gc-soggetto-"+TipoSoggettoUtil.COLLAUDATORE)+" da soggetti censiti");
if(collaudatorePresente)
notCompleted.add("Rimuovere "+LanguageUtil.get(LocaleUtil.getDefault(), "gc-soggetto-"+TipoSoggettoUtil.COLLAUDATORE)+" da soggetti censiti");
}
if (dittaNotRequired) {
soggettiRichiesti.remove(TipoSoggettoUtil.DITTA);
if(Validator.isNotNull(dettPratica.getCodiceFiscalePrincipaleDitta()))
notCompleted.add("Rimuovere "+LanguageUtil.get(LocaleUtil.getDefault(), "gc-soggetto-"+TipoSoggettoUtil.DITTA)+" da soggetti censiti");
if(dittaPresente)
notCompleted.add("Rimuovere "+LanguageUtil.get(LocaleUtil.getDefault(), "gc-soggetto-"+TipoSoggettoUtil.DITTA)+" da soggetti censiti");
}
if(Validator.isNotNull(dettPratica.getCodiceFiscalePrincipaleCollaudatore())){
if(collaudatorePresente){
String codFiscaleCollaudatore = dettPratica.getCodiceFiscalePrincipaleCollaudatore();
if(Validator.isNotNull(dettPratica.getCodiceFiscaleDelegatoCollaudo()))
codFiscaleCollaudatore = dettPratica.getCodiceFiscaleDelegatoCollaudo();
if(Validator.isNotNull(dettPratica.getCodiceFiscalePrincipaleProgettista()) &&
(codFiscaleCollaudatore.equals(dettPratica.getCodiceFiscalePrincipaleProgettista()))
)
if(progettistaPresente && codFiscaleCollaudatore.equals(dettPratica.getCodiceFiscalePrincipaleProgettista()))
notCompleted.add("Il collaudatore non può essere il progettista");
if(Validator.isNotNull(dettPratica.getCodiceFiscalePrincipaleDirettoreLavori()) &&
(codFiscaleCollaudatore.equals(dettPratica.getCodiceFiscalePrincipaleDirettoreLavori()))
)
notCompleted.add("Il collaudatore non può essere il direttore lavori");
if(dlPresente && codFiscaleCollaudatore.equals(dettPratica.getCodiceFiscalePrincipaleDirettoreLavori()))
notCompleted.add("Il collaudatore non può essere il direttore lavori");
}
for (String soggetto : soggettiRichiesti) {

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

@ -240,7 +240,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
.replaceAll("\\s*##lavoripubblici(.*?)##\\s*",
dettPratica.getLavoriPubblici() ? StringPool.BLANK : "$1")
.replaceAll("\\s*##A10(.*?)##\\s*",
dettPratica.getTcInterventoOpereEscavazione() ? StringPool.BLANK : "$1")
!dettPratica.getTcNoOpereEscavazione() ? StringPool.BLANK : "$1")
.replace("{{agalto}}", agAlto ? "X" : StringPool.SPACE)
.replace("{{agmedio}}", agMedio ? "X" : StringPool.SPACE)
.replace("{{agricoli}}", agricoli ? "X" : StringPool.SPACE).replace("{{codicefiscale}}", codiceFiscale)

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

@ -13,8 +13,8 @@
##
build.namespace=portos_bo
build.number=3247
build.date=1627641893090
build.number=3249
build.date=1627893517146
build.auto.upgrade=true
##

105
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp

@ -782,19 +782,20 @@ $('#<portlet:namespace/>long, #<portlet:namespace/>lat').on('change', function()
$('#sistemi_costruttivi input').on('change', function() {
var _this = $(this);
if(_this.attr('id')=='<portlet:namespace/>tcInterventiCheckbox'){
if(!_this.is(":checked")){
$('.costruzioni_esistenti ul input[type="checkbox"]').prop("checked", false).attr("disabled", true);
} else {
$('.costruzioni_esistenti ul input[type="checkbox"]').attr("disabled", false).removeClass("disabled");
if(!_this.is(":checked")){
enableDisableChk('.costruzioni_esistenti ul input[type="checkbox"]', 'not_enable', true);
} else {
enableDisableChk('.costruzioni_esistenti ul input[type="checkbox"]', 'not_enable', false);
}
}
//ADT BUG FE ID = 23
if($('#<portlet:namespace/>tc-nuova-costruzioneCheckbox').prop('checked')||
$('#<portlet:namespace/>tcAdeguamentoSismicoCheckbox').prop('checked')||
$('#<portlet:namespace/>tcMiglioramentoSismicoCheckbox').prop('checked')){
$('#<portlet:namespace/>collaudoStaticoCheckbox').prop("checked", false).attr("disabled", true);
enableDisableChk('#<portlet:namespace/>collaudoStaticoCheckbox', 'not_enable', true);
} else if ($('#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox').prop('checked')) {
$('#<portlet:namespace/>collaudoStaticoCheckbox').prop("checked", false).removeAttr('disabled');
enableDisableChk('#<portlet:namespace/>collaudoStaticoCheckbox', 'not_enable', false);
}
//checkIfDisableSistemiCostruttivi();
});
@ -868,86 +869,85 @@ $('#<portlet:namespace/>lavoriPubbliciCheckbox, #<portlet:namespace/>intervFinPu
];
if (_this.is(":checked")){
$.each(toDisable, function(index, val) {
$('#<portlet:namespace/>'+val+'Checkbox').attr('disabled', true).prop('disabled', true).prop('checked', false);
enableDisableChk('#<portlet:namespace/>'+val+'Checkbox', 'not_enable', true);
});
$('.excludeOther[data-cont="viarch"] input[type="checkbox"]').removeAttr('disabled');
$('.excludeOther[data-cont="viarch"] input[type="checkbox"]').prop('disabled', false);
enableDisableChk('.excludeOther[data-cont="viarch"] input[type="checkbox"]', 'not_enable', false);
} else {
$.each(toDisable, function(index, val) {
$('#<portlet:namespace/>'+val+'Checkbox').removeAttr('disabled');
$('#<portlet:namespace/>'+val+'Checkbox').prop('disabled', false);
enableDisableChk('#<portlet:namespace/>'+val+'Checkbox', 'not_enable', false);
});
$('.excludeOther[data-cont="viarch"] input[type="checkbox"]').attr('disabled', true).prop('disabled', true).prop('checked', false);
enableDisableChk('.excludeOther[data-cont="viarch"] input[type="checkbox"]', 'not_enable', true);
}
});
$('.excludeOther input[type="checkbox"]').change(function (e) {
var cont = $(this).parents('.excludeOther').data('cont');
$('.excludeOther[data-cont="'+cont+'"] input[type="checkbox"]').not(this).prop('checked', false).removeAttr('checked');
$.each($('.excludeOther[data-cont="'+cont+'"] input[type="checkbox"]').not(this), function(index, val) {
$(val).prev('input[type="hidden"]').val(false);
});
});
$('#<portlet:namespace/>intervFinPubCheckbox').change(function () {
var _this = $(this);
if (_this.is(":checked")) {
$('#<portlet:namespace/>lavoriPubbliciCheckbox').attr('checked', 'checked').prop('checked', true);
enableDisableChk('#<portlet:namespace/>lavoriPubbliciCheckbox', 'enable', false);
} else {
$('#<portlet:namespace/>lavoriPubbliciCheckbox').removeAttr('checked');
$('#<portlet:namespace/>lavoriPubbliciCheckbox').prop('checked', false);
enableDisableChk('#<portlet:namespace/>lavoriPubbliciCheckbox', 'not_enable', false);
}
});
$('#<portlet:namespace/>tc-no-opere-escavazioneCheckbox').change(function () {
if ($(this).is(":checked")){
$('#<portlet:namespace/>tc-intervento-opere-escavazioneCheckbox').removeAttr('checked');
$('#<portlet:namespace/>tc-intervento-opere-escavazioneCheckbox').prop('checked', false);
enableDisableChk('#<portlet:namespace/>tc-intervento-opere-escavazioneCheckbox', 'not_enable', false);
}
});
$('#<portlet:namespace/>tc-intervento-opere-escavazioneCheckbox').change(function () {
if ($(this).is(":checked")){
$('#<portlet:namespace/>tc-no-opere-escavazioneCheckbox').removeAttr('checked');
$('#<portlet:namespace/>tc-no-opere-escavazioneCheckbox').prop('checked', false);
enableDisableChk('#<portlet:namespace/>tc-no-opere-escavazioneCheckbox', 'not_enable', false);
}
});
$('#<portlet:namespace/>tc-manut-ord-straordCheckbox, #<portlet:namespace/>tc-nuova-costruzione-pertinenzaCheckbox').change(function () {
var _this = $(this);
if (_this.is(":checked")) {
$('#<portlet:namespace/>tc-costruzioni-esistentiCheckbox').prop('checked', true).attr('checked', true);
$('#<portlet:namespace/>tc-costruzioni-esistentiCheckbox').prop('disabled', true).attr('disabled', true);
enableDisableChk('#<portlet:namespace/>tc-no-opere-escavazioneCheckbox', 'enable', true);
}else{
$('#<portlet:namespace/>tc-costruzioni-esistentiCheckbox').prop('checked', false).attr('checked', false);
$('#<portlet:namespace/>tc-costruzioni-esistentiCheckbox').prop('disabled', false).attr('disabled', false);
enableDisableChk('#<portlet:namespace/>tc-no-opere-escavazioneCheckbox', 'not_enable', false);
}
});
$('#<portlet:namespace/>normEsenteBolloCheckbox').change(function () {
var _this = $(this);
if (_this.is(":checked")){
$('#<portlet:namespace/>lavoriPubbliciCheckbox').prop('checked', true).attr('checked', true);
enableDisableChk('#<portlet:namespace/>lavoriPubbliciCheckbox', 'enable', false);
}else{
$('#<portlet:namespace/>lavoriPubbliciCheckbox').prop('checked', false).attr('checked', false);
enableDisableChk('#<portlet:namespace/>lavoriPubbliciCheckbox', 'not_enable', false);
}
});
$('#<portlet:namespace/>collaudoStaticoCheckbox').change(function () {
var _this = $(this);
if (_this.is(":checked")){
$('#<portlet:namespace/>noCollaudoCheckbox').prop('checked', true).attr('checked', true).attr("disabled", true);
$('#<portlet:namespace/>tc-nuova-costruzioneCheckbox').prop("checked", false).attr("disabled", true);
$('#<portlet:namespace/>tcInterventiCheckbox').prop("checked", true).attr("disabled", true);
$('#<portlet:namespace/>tcAdeguamentoSismicoCheckbox').prop("checked", false).attr("disabled", true);
$('#<portlet:namespace/>tcMiglioramentoSismicoCheckbox').prop("checked", false).attr("disabled", true);
enableDisableChk('#<portlet:namespace/>noCollaudoCheckbox', 'enable', true);
enableDisableChk('#<portlet:namespace/>tcInterventiCheckbox', 'enable', true);
enableDisableChk('#<portlet:namespace/>tc-nuova-costruzioneCheckbox', 'not_enable', true);
enableDisableChk('#<portlet:namespace/>tcAdeguamentoSismicoCheckbox', 'not_enable', true);
enableDisableChk('#<portlet:namespace/>tcMiglioramentoSismicoCheckbox', 'not_enable', true);
$('#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox').removeAttr("disabled");
$('#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox').removeClass('disabled');
}else {
$('#<portlet:namespace/>noCollaudoCheckbox').prop('checked', false).attr('checked', false).attr("disabled", false);
enableDisableChk('#<portlet:namespace/>noCollaudoCheckbox', 'not_enable', false);
enableDisableChk('#<portlet:namespace/>tcInterventiCheckbox', 'not_enable', false);
enableDisableChk('#<portlet:namespace/>tcAdeguamentoSismicoCheckbox', 'not_enable', true);
enableDisableChk('#<portlet:namespace/>tcMiglioramentoSismicoCheckbox', 'not_enable', true);
enableDisableChk('#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox', 'not_enable', true);
$('#<portlet:namespace/>tc-nuova-costruzioneCheckbox').removeAttr("disabled");
$('#<portlet:namespace/>tcInterventiCheckbox').prop("checked", false).removeAttr("disabled");
$('#<portlet:namespace/>tcAdeguamentoSismicoCheckbox').prop("checked", false).attr("disabled", true);
$('#<portlet:namespace/>tcMiglioramentoSismicoCheckbox').prop("checked", false).attr("disabled", true);
$('#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox').prop("checked", false).attr("disabled", true);
}
});
function checkCollaudoStatico(){
@ -958,17 +958,18 @@ function checkCollaudoStatico(){
collaudostatico = AUI().one("#<portlet:namespace/>collaudoStaticoCheckbox");
if(collaudostatico.attr("checked") ){
$('#<portlet:namespace/>tc-nuova-costruzioneCheckbox').prop("checked", false).attr("disabled", true);
$('#<portlet:namespace/>tcInterventiCheckbox').prop("checked", true).attr("disabled", true);
$('#<portlet:namespace/>tcAdeguamentoSismicoCheckbox').prop("checked", false).attr("disabled", true);
$('#<portlet:namespace/>tcMiglioramentoSismicoCheckbox').prop("checked", false).attr("disabled", true);
enableDisableChk('#<portlet:namespace/>tc-nuova-costruzioneCheckbox', 'not_enable', true);
enableDisableChk('#<portlet:namespace/>tcInterventiCheckbox', 'enable', true);
enableDisableChk('#<portlet:namespace/>tcAdeguamentoSismicoCheckbox', 'not_enable', true);
enableDisableChk('#<portlet:namespace/>tcMiglioramentoSismicoCheckbox', 'not_enable', true);
$('#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox').removeAttr("disabled");
$('#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox').removeClass('disabled');
}
if(nuovaCostruzione.attr("checked")||
adeguamentoSismico.attr("checked")||
miglioramentoSismico.attr("checked")){
$('#<portlet:namespace/>collaudoStaticoCheckbox').prop("checked", false).attr("disabled", true);
miglioramentoSismico.attr("checked")){
enableDisableChk('#<portlet:namespace/>collaudoStaticoCheckbox', 'not_enable', true);
} else if (interventoLocale.attr("checked")) {
$('#<portlet:namespace/>collaudoStaticoCheckbox').removeAttr('disabled');
}
@ -982,4 +983,24 @@ $("#<portlet:namespace/>interventoVoceP7").on("keypress keyup blur",function (ev
}
});
function enableDisableChk(obj, action, disable){
if(action == 'enable'){
$(obj).prop("checked", true);
$(obj).attr('checked', true);
$(obj).prev('input[type="hidden"]').val("on");
}else{
$(obj).prop("checked", false);
$(obj).attr('checked', false);
$(obj).prev('input[type="hidden"]').val(false);
}
if(disable){
$(obj).attr("disabled", true);
$(obj).prop("disabled", true);
}else{
$(obj).attr("disabled", false);
$(obj).prop("disabled", false);
}
}
</script>
Caricamento…
Annulla
Salva