Sfoglia il codice sorgente

Modelli corretti e workflow aggiornato per Autorizzazione e Richiesta Integrazione

master
Salvatore La Manna 4 anni fa
parent
commit
f89531f636
  1. 123
      jasper/Modello_autorizzazione.jrxml
  2. 162
      jasper/Modello_integrazione.jrxml
  3. 10
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoBeanBuilder.java
  4. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java
  5. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  6. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/util-java.jar
  7. 1
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/persistence/EmailAttachmentPersistenceImpl.java
  8. 1
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/persistence/EmailPersistenceImpl.java
  9. 1
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplatePersistenceImpl.java
  10. 4
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/service.properties
  11. 1
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.classpath
  12. 177
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_tasks/render_form_task.jsp
  13. BIN
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portal-compat-shared.jar

123
jasper/Modello_autorizzazione.jrxml

@ -77,7 +77,7 @@ e dell'identità siciliana]]></text>
</band>
</pageHeader>
<detail>
<band height="135">
<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"/>
@ -103,118 +103,113 @@ e dell'identità siciliana]]></text>
</textElement>
<text><![CDATA[Data Avviso]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="190" y="86" width="360" height="14" uuid="2808d28a-c206-4be3-ab0e-c3ef11061b0f">
<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>
<staticText>
<reportElement x="59" y="86" width="130" height="14" uuid="d2e7d2df-ed9d-4408-a657-1c45846d4011">
<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[Ubicazione]]></text>
</staticText>
<staticText>
<reportElement x="59" y="100" width="130" height="14" uuid="bacf1fde-94f1-48e3-bea5-a2e03e9ee190">
<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>
<text><![CDATA[Descrizione]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="190" y="100" width="360" height="14" uuid="0db22afc-1407-494f-8cd8-8697ba27de22">
<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{numeroProgetto}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{tipoAutorizzazione}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="59" y="114" width="130" height="14" uuid="d191f545-a8e8-4df1-9e97-e9e3747ee25f">
<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>
<textElement textAlignment="Center">
<font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement>
<text><![CDATA[Protocollo]]></text>
<text><![CDATA[AUTORIZZAZIONE]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="190" y="114" width="360" height="14" uuid="546c84ce-d718-4c30-a119-c3fb3d2c97c1">
<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{numeroProtocollo}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{lavoriDi}]]></textFieldExpression>
</textField>
</band>
<band height="49">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<staticText>
<reportElement x="59" y="30" width="130" height="14" uuid="660aee93-961c-46fb-9714-b004de58b0a4">
<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[Tipo di procedimento]]></text>
<text><![CDATA[Ubicazione]]></text>
</staticText>
<staticText>
<reportElement x="59" y="72" width="130" height="14" uuid="2c29296d-097b-4faa-b4d2-7045cef06f6d">
<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[Descrizione]]></text>
<text><![CDATA[Istanza n.]]></text>
</staticText>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="190" y="30" width="360" height="14" uuid="6cb9f8b8-8715-41ba-a4d4-6eabe2e85408">
<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{tipoAutorizzazione}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{ubicazione} != null ? $F{ubicazione} : ""]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="183" y="50" width="195" height="14" uuid="8c9f5378-8e8d-4655-84b5-eccad49767d5">
<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 textAlignment="Center">
<font fontName="DejaVu Sans Bold" isBold="false"/>
<textElement>
<font fontName="DejaVu Sans"/>
</textElement>
<text><![CDATA[AUTORIZZAZIONE]]></text>
</staticText>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="190" y="72" width="360" height="14" uuid="877d100e-606b-4eea-960e-f889359577e1">
<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{lavoriDi}]]></textFieldExpression>
<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="259">
<band height="197">
<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">
@ -300,27 +295,30 @@ e dell'identità siciliana]]></text>
esaminata la documentazione allegata all’istanza;]]></text>
</staticText>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="3" y="140" width="548" height="109" uuid="0156b4c7-6c07-4e4a-b8f6-e8ef115f5b1e">
<reportElement x="3" y="140" width="548" height="50" 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>
<textElement textAlignment="Justified">
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$P{testo_del_documento}]]></textFieldExpression>
</textField>
</band>
<band height="43">
<band height="63">
<componentElement>
<reportElement x="4" y="7" width="547" height="30" uuid="1a359757-dc45-45cb-bdf8-215e91905c39">
<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="547">
<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"/>
@ -350,6 +348,21 @@ esaminata la documentazione allegata all’istanza;]]></text>
</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="250">
<staticText>
@ -358,7 +371,7 @@ esaminata la documentazione allegata all’istanza;]]></text>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement>
<textElement textAlignment="Justified">
<font fontName="DejaVu Sans" size="11" isBold="false"/>
</textElement>
<text><![CDATA[La presente autorizzazione:

162
jasper/Modello_integrazione.jrxml

@ -77,18 +77,11 @@ e dell'identità siciliana]]></text>
</band>
</pageHeader>
<detail>
<band height="135">
<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>
@ -103,163 +96,185 @@ e dell'identità siciliana]]></text>
</textElement>
<text><![CDATA[Data Avviso]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="190" y="86" width="360" height="14" uuid="2808d28a-c206-4be3-ab0e-c3ef11061b0f">
<staticText>
<reportElement x="1" y="30" width="56" height="13" uuid="fb9ba9bb-1c60-421b-8968-467e37f1b64f"/>
<textElement>
<font fontName="DejaVu Sans" isBold="true"/>
</textElement>
<text><![CDATA[Oggetto:]]></text>
</staticText>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="59" y="30" width="491" height="26" uuid="b35caff9-2ceb-404d-b04a-d149b1e64763">
<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{ubicazione} != null ? $F{ubicazione} : ""]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{tipoAutorizzazione}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="59" y="86" width="130" height="14" uuid="d2e7d2df-ed9d-4408-a657-1c45846d4011">
<reportElement x="183" y="63" width="195" height="14" uuid="57ef5bab-9e4d-43a7-ac46-df5e71d9e83b">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<textElement textAlignment="Center">
<font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement>
<text><![CDATA[Ubicazione]]></text>
<text><![CDATA[RICHIESTA DI INTEGRAZIONI]]></text>
</staticText>
<staticText>
<reportElement x="59" y="100" width="130" height="14" uuid="bacf1fde-94f1-48e3-bea5-a2e03e9ee190">
<reportElement x="59" y="84" width="130" height="14" uuid="3290bed7-8581-4580-9ea4-c87cb13eeea7">
<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>
<text><![CDATA[Descrizione]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="190" y="100" width="360" height="14" uuid="0db22afc-1407-494f-8cd8-8697ba27de22">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="190" y="84" width="360" height="14" uuid="011b6793-d08d-45fd-a975-565fc18ad5f0">
<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>
<textFieldExpression><![CDATA[$F{lavoriDi}]]></textFieldExpression>
</textField>
</band>
<band height="49">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<staticText>
<reportElement x="59" y="114" width="130" height="14" uuid="d191f545-a8e8-4df1-9e97-e9e3747ee25f">
<reportElement x="59" y="0" width="130" height="14" uuid="bde321a9-85b1-401f-8d30-11e483891c7b">
<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>
<text><![CDATA[Ubicazione]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="190" y="114" width="360" height="14" uuid="546c84ce-d718-4c30-a119-c3fb3d2c97c1">
<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="30" width="130" height="14" uuid="660aee93-961c-46fb-9714-b004de58b0a4">
<reportElement x="59" y="14" width="130" height="14" uuid="860e2b2d-6fe9-4b4e-a71b-e06ed34aa591">
<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[Tipo di procedimento]]></text>
<text><![CDATA[Istanza n.]]></text>
</staticText>
<staticText>
<reportElement x="59" y="72" width="130" height="14" uuid="2c29296d-097b-4faa-b4d2-7045cef06f6d">
<reportElement x="59" y="28" width="130" height="14" uuid="9da79b62-abb0-40ff-8837-c48b37109201">
<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>
<text><![CDATA[Protocollo]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="190" y="30" width="360" height="14" uuid="6cb9f8b8-8715-41ba-a4d4-6eabe2e85408">
<reportElement x="190" y="0" width="360" height="14" uuid="98421d54-2be4-4b05-b622-33905be5442a">
<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{tipoAutorizzazione}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{ubicazione} != null ? $F{ubicazione} : ""]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="183" y="50" width="195" height="14" uuid="8c9f5378-8e8d-4655-84b5-eccad49767d5">
<textField isBlankWhenNull="true">
<reportElement x="190" y="14" width="360" height="14" uuid="7f0a27ee-f824-458d-acc3-df7f66df7cf3">
<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>
<font fontName="DejaVu Sans"/>
</textElement>
<text><![CDATA[RICHIESTA DI INTEGRAZIONI]]></text>
</staticText>
<textFieldExpression><![CDATA[$F{numeroProgetto}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="190" y="72" width="360" height="14" uuid="877d100e-606b-4eea-960e-f889359577e1">
<reportElement x="190" y="28" width="360" height="14" uuid="1cd97723-1517-4e92-a29c-7ca1218ec38c">
<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>
<textFieldExpression><![CDATA[$F{numeroProtocollo}]]></textFieldExpression>
</textField>
</band>
<band height="252">
<band height="180">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<textField isBlankWhenNull="true">
<reportElement x="385" y="40" width="168" height="14" uuid="b82a2f48-cea2-4ad2-8b76-c443de8a1fe1">
<staticText>
<reportElement x="3" y="70" width="548" height="50" 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,
esaminata la documentazione allegata,
quest’Ufficio richiede la seguente documentazione integrativa, indispensabile per la valutazione dell’istanza:]]></text>
</staticText>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="3" y="130" width="548" height="50" 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>
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$F{comune}]]></textFieldExpression>
<textFieldExpression><![CDATA[$P{testo_del_documento}]]></textFieldExpression>
</textField>
<staticText>
<reportElement key="" x="270" y="10" width="115" height="14" uuid="c0370045-7e64-47e0-9c03-d9259f814713">
<reportElement key="" x="170" y="10" width="115" height="14" uuid="c5e8dd11-e156-44fc-a2e3-40f54e862afe">
<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="190" y="40" width="195" height="14" uuid="3f554448-d5dc-4075-b6ed-8e7bd10d7998">
<textField isBlankWhenNull="true">
<reportElement key="" x="285" y="10" width="268" height="14" uuid="0a142b8d-8d77-4446-8295-2e5e41d1de7a">
<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 Bold" isBold="false"/>
<font fontName="DejaVu Sans"/>
</textElement>
<text><![CDATA[al Sindaco / S.U.E. del Comune di ]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="385" y="10" width="168" height="14" uuid="f502c7f9-5ac4-43dd-bd91-cc46b395365e">
<textFieldExpression><![CDATA[$F{alCommittente}]]></textFieldExpression>
</textField>
<staticText>
<reportElement key="" x="170" y="24" width="115" height="14" uuid="95ca6f04-450f-448e-b8cc-15f6c2744b14">
<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"/>
<font fontName="DejaVu Sans Bold" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{alCommittente}]]></textFieldExpression>
</textField>
<text><![CDATA[c/o il suo delegato]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="385" y="24" width="168" height="14" uuid="03b513cf-794b-4cb8-92f4-2c81909cd825">
<reportElement key="" x="285" y="24" width="268" height="14" uuid="e564fbf9-8b85-4f41-8ace-5ebbb47996a5">
<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"/>
@ -267,38 +282,27 @@ e dell'identità siciliana]]></text>
<textFieldExpression><![CDATA[$F{alTitolareDigitale}]]></textFieldExpression>
</textField>
<staticText>
<reportElement key="" x="270" y="24" width="115" height="14" uuid="2a88b2fd-8fcf-4888-a1a1-82919fe0776a">
<reportElement x="90" y="40" width="195" height="14" uuid="cd0e8394-a66e-438d-a6a5-efe529bedef6">
<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="true"/>
</textElement>
<text><![CDATA[c/o il suo delegato]]></text>
</staticText>
<staticText>
<reportElement x="3" y="70" width="548" height="50" 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"/>
<font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement>
<text><![CDATA[Con riferimento all’istanza in oggetto,
esaminata la documentazione allegata,
quest’Ufficio richiede la seguente documentazione integrativa, indispensabile per la valutazione dell’istanza:]]></text>
<text><![CDATA[al Sindaco / S.U.E. del Comune di ]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="3" y="130" width="548" height="109" uuid="0156b4c7-6c07-4e4a-b8f6-e8ef115f5b1e">
<reportElement key="" x="285" y="40" width="268" height="14" uuid="48b4f26a-ca49-4919-995f-72881a9614c6">
<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[$P{testo_del_documento}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{comune}]]></textFieldExpression>
</textField>
</band>
<band height="60">

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

@ -41,7 +41,6 @@ import java.util.Calendar;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.language.LanguageUtil;
@ -176,6 +175,14 @@ public class ReportAvvisoBeanBuilder {
DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_ANNULLAMENTO_FASCICOLO)) {
docPraticas = DocPraticaLocalServiceUtil.findByIntPratica_Tipologia(intPraticaId,
DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_ANNULLAMENTO_FASCICOLO, -1, -1);
} else if (avviso.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.AUTORIZZATA)
&& (avviso.getControlloPraticaId() != 0)) {
docPraticas = new ArrayList<>();
for (DocPratica doc : DocPraticaLocalServiceUtil.findByIntPratica(intPraticaId)) {
if ((WorkflowConstants.STATUS_APPROVED == doc.getStatus()) && !doc.getRimosso()) {
docPraticas.add(doc);
}
}
} else {
docPraticas = DocPraticaLocalServiceUtil.findByClassPk(avviso.getClassPk());
}
@ -328,6 +335,7 @@ public class ReportAvvisoBeanBuilder {
if (Validator.isNull(parameters.get("motivazioni")))
parameters.put("motivazioni", parameters.get("testo_del_documento"));
}
return bean;
}
}

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

@ -495,10 +495,8 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
public String getJsonListaIstruttori(long controlloPraticaId, Map<String, Serializable> workflowContext)
throws PortalException, SystemException {
_log.info("Inizio attività");
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil
.getControlloPratica(controlloPraticaId);
_log.info("Controllo pratica " + controlloPratica.getControlloPraticaId());
JSONObject jsonObject = JSONFactoryUtil.createJSONObject();
JSONArray jsonArray = JSONFactoryUtil.createJSONArray();

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=2759
build.date=1606818542516
build.number=2761
build.date=1606987208464
build.auto.upgrade=true
##

BIN
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/util-java.jar

File binario non mostrato.

1
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/persistence/EmailAttachmentPersistenceImpl.java

@ -42,6 +42,7 @@ import it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException;
import it.tref.liferay.portos.mailmanager.model.EmailAttachment;
import it.tref.liferay.portos.mailmanager.model.impl.EmailAttachmentImpl;
import it.tref.liferay.portos.mailmanager.model.impl.EmailAttachmentModelImpl;
import it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPersistence;
import java.io.Serializable;

1
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/persistence/EmailPersistenceImpl.java

@ -44,6 +44,7 @@ import it.tref.liferay.portos.mailmanager.NoSuchEmailException;
import it.tref.liferay.portos.mailmanager.model.Email;
import it.tref.liferay.portos.mailmanager.model.impl.EmailImpl;
import it.tref.liferay.portos.mailmanager.model.impl.EmailModelImpl;
import it.tref.liferay.portos.mailmanager.service.persistence.EmailPersistence;
import java.io.Serializable;

1
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplatePersistenceImpl.java

@ -46,6 +46,7 @@ import it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateException;
import it.tref.liferay.portos.mailmanager.model.EmailTemplate;
import it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateImpl;
import it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateModelImpl;
import it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplatePersistence;
import java.io.Serializable;

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

@ -13,8 +13,8 @@
##
build.namespace=portos_Mail
build.number=80
build.date=1606482952219
build.number=81
build.date=1606914570374
build.auto.upgrade=true
##

1
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.classpath

@ -23,6 +23,5 @@
<classpathentry kind="lib" path="docroot/WEB-INF/lib/util-java.jar"/>
<classpathentry kind="lib" path="docroot/WEB-INF/lib/portos-bo-portlet-service.jar"/>
<classpathentry kind="lib" path="docroot/WEB-INF/lib/portos-kaleo-shared.jar"/>
<classpathentry kind="lib" path="docroot/WEB-INF/lib/htmlparser.jar"/>
<classpathentry kind="output" path="docroot/WEB-INF/classes"/>
</classpath>

177
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_tasks/render_form_task.jsp

@ -1,3 +1,4 @@
<%@page import="com.liferay.portal.kernel.util.HtmlUtil"%>
<%@page import="java.io.Serializable"%>
<%@page import="java.nio.file.Files"%>
<%@page import="java.nio.file.Path"%>
@ -22,148 +23,146 @@
<%@page import="com.liferay.portlet.dynamicdatamapping.model.DDMStructure"%>
<%@page import="com.liferay.portlet.dynamicdatamapping.model.DDMTemplate"%>
<%@ include file="/html/portlet/workflow_tasks/init.jsp" %>
<%@ include file="/html/portlet/workflow_tasks/init.jsp"%>
<%
String classPkForCarichiLavoro = (String) renderRequest.getAttribute("classPkForCarichiLavoro");
%>
<c:if test="<%= Validator.isNotNull(classPkForCarichiLavoro) %>">
<c:if test="<%=Validator.isNotNull(classPkForCarichiLavoro)%>">
<div class="container_header_text_attivita">
<liferay-portlet:renderURL portletName='9_WAR_portosboportlet' windowState="<%=LiferayWindowState.POP_UP.toString() %>" var="carichiDiLavoro">
<liferay-portlet:param name="controlloPraticaId" value='<%= (String)renderRequest.getAttribute("classPkForCarichiLavoro") %>'/>
<liferay-portlet:renderURL portletName='9_WAR_portosboportlet'
windowState="<%=LiferayWindowState.POP_UP.toString()%>" var="carichiDiLavoro">
<liferay-portlet:param name="controlloPraticaId"
value='<%=(String) renderRequest.getAttribute("classPkForCarichiLavoro")%>' />
</liferay-portlet:renderURL>
<liferay-ui:icon url="<%=carichiDiLavoro %>" useDialog="true" message="visualizza-carichi-di-lavoro" linkCssClass="btn btn-rounded" iconCssClass="icon-bar-chart"/>
<liferay-ui:icon url="<%=carichiDiLavoro%>" useDialog="true" message="visualizza-carichi-di-lavoro"
linkCssClass="btn btn-rounded" iconCssClass="icon-bar-chart" />
<span>Visualizza Carichi di Lavoro Istruttori</span>
</div>
</c:if>
<%
long ddmTemplateId = (Long) renderRequest.getAttribute("ddmTemplateId");
long ddmStructureId = (Long) renderRequest.getAttribute("ddmStructureId");
Map<String, Serializable> parameters = (Map<String, Serializable>) renderRequest
.getAttribute("parameters");
String prefix = (String) renderRequest.getAttribute("prefix");
String suffix = (String) renderRequest.getAttribute("suffix");
Map<String, List<Map<String, Serializable>>> fieldNameOptions = (Map<String, List<Map<String, Serializable>>>) renderRequest
.getAttribute("fieldNameOptions");
long ddmTemplateId = (Long) renderRequest.getAttribute("ddmTemplateId");
long ddmStructureId = (Long) renderRequest.getAttribute("ddmStructureId");
Map<String, Serializable> parameters = (Map<String, Serializable>) renderRequest.getAttribute("parameters");
String prefix = (String) renderRequest.getAttribute("prefix");
String suffix = (String) renderRequest.getAttribute("suffix");
Map<String, List<Map<String, Serializable>>> fieldNameOptions
= (Map<String, List<Map<String, Serializable>>>) renderRequest.getAttribute("fieldNameOptions");
String redirect = StringPool.BLANK;
String redirect = StringPool.BLANK;
DDLRecord record = null;
DDLRecord record = null;
long recordId = BeanParamUtil.getLong(record, request, "recordId");
long recordId = BeanParamUtil.getLong(record, request, "recordId");
DDLRecordVersion recordVersion = null;
DDLRecordVersion recordVersion = null;
if (record != null) {
recordVersion = record.getLatestRecordVersion();
}
if (record != null) {
recordVersion = record.getLatestRecordVersion();
}
DDMStructure ddmStructure = DDMStructureLocalServiceUtil.getDDMStructure(ddmStructureId);
DDMStructure ddmStructure = DDMStructureLocalServiceUtil.getDDMStructure(ddmStructureId);
Fields fields = null;
Fields fields = null;
if (recordVersion != null) {
fields = StorageEngineUtil.getFields(recordVersion.getDDMStorageId());
}
if (recordVersion != null) {
fields = StorageEngineUtil.getFields(recordVersion.getDDMStorageId());
}
Locale[] availableLocales = new Locale[0];
Locale[] availableLocales = new Locale[0];
if (fields != null) {
Set<Locale> availableLocalesSet = fields.getAvailableLocales();
if (fields != null) {
Set<Locale> availableLocalesSet = fields.getAvailableLocales();
availableLocales = availableLocalesSet.toArray(new Locale[availableLocalesSet.size()]);
}
availableLocales = availableLocalesSet.toArray(new Locale[availableLocalesSet.size()]);
}
String defaultLanguageId = StringPool.BLANK;
String defaultLanguageId = StringPool.BLANK;
if (Validator.isNull(defaultLanguageId)) {
defaultLanguageId = themeDisplay.getLanguageId();
if (Validator.isNull(defaultLanguageId)) {
defaultLanguageId = themeDisplay.getLanguageId();
if (fields != null) {
defaultLanguageId = LocaleUtil.toLanguageId(fields.getDefaultLocale());
if (fields != null) {
defaultLanguageId = LocaleUtil.toLanguageId(fields.getDefaultLocale());
}
}
}
String languageId = defaultLanguageId;
String languageId = defaultLanguageId;
boolean translating = false;
boolean translating = false;
if (!defaultLanguageId.equals(languageId)) {
translating = true;
}
if (!defaultLanguageId.equals(languageId)) {
translating = true;
}
if (translating) {
redirect = currentURL;
}
if (translating) {
redirect = currentURL;
}
long classNameId = PortalUtil.getClassNameId(DDMStructure.class);
long classNameId = PortalUtil.getClassNameId(DDMStructure.class);
long classPK = ddmStructure.getStructureId();
long classPK = ddmStructure.getStructureId();
if (ddmTemplateId > 0) {
classNameId = PortalUtil.getClassNameId(DDMTemplate.class);
if (ddmTemplateId > 0) {
classNameId = PortalUtil.getClassNameId(DDMTemplate.class);
classPK = ddmTemplateId;
}
classPK = ddmTemplateId;
}
%>
<liferay-util:buffer var="html">
<liferay-ddm:html
classNameId="<%= classNameId %>"
classPK="<%= classPK %>"
fields="<%= fields %>"
repeatable="<%= translating ? false : true %>"
requestedLocale="<%= LocaleUtil.fromLanguageId(languageId) %>"
/>
<liferay-ddm:html classNameId="<%=classNameId%>" classPK="<%=classPK%>" fields="<%=fields%>"
repeatable="<%=translating ? false : true%>" requestedLocale="<%=LocaleUtil.fromLanguageId(languageId)%>" />
</liferay-util:buffer>
<%
Log _log = LogFactoryUtil.getLog("kaleo_merda");
String esito = parameters.containsKey("esito") ? parameters.get("esito").toString()
: StringPool.BLANK;
String istruttore = parameters.containsKey("istruttore") ? parameters.get("istruttore")
.toString() : StringPool.BLANK;
String ns = renderResponse.getNamespace();
for (Entry<String, List<Map<String, Serializable>>> entry : fieldNameOptions.entrySet()) {
String name = entry.getKey();
_log.info("name = "+ name);
for (Map<String, Serializable> option : entry.getValue()) {
for (Entry<String, Serializable> x : option.entrySet()) {
_log.info(" - " + x.getKey() + " = " + x.getValue());
}
}
String regexSelect = "(?s)(.*?)(<select.*?\\sname=\"" + ns + name + "_INSTANCE_[^\"]+.*?</select>)(.*)";
for (Entry<String, List<Map<String, Serializable>>> entry : fieldNameOptions.entrySet()) {
String name = entry.getKey();
String regexSelect = "(?s)(.*?)(<select.*?\\sname=\"" + ns + name
+ "_INSTANCE_[^\"]+.*?</select>)(.*)";
if (html.matches(regexSelect)) {
String match = html.replaceAll(regexSelect, "$2");
String select = match.replaceAll("(?s)([?>]*>).*", "$1\n");
for (Map<String, Serializable> option : entry.getValue()) {
select += "<option value=\"" + option.get("value") + "\">" + option.get("label") + "</option>\n";
String value = option.get("value").toString();
select += "<option value=\"" + HtmlUtil.escape(value) + "\"";
if ((name.equals("istruttore") && value.equalsIgnoreCase(istruttore))
|| MapUtil.getBoolean(option, "default")) {
select += " selected=\"selected\"";
}
select += ">" + HtmlUtil.escape(option.get("label").toString()) + "</option>\n";
}
html = html.replaceAll(regexSelect, "$1" + select + "</select>\n" + "$3");
} else {
String regexInput = "(?s)<input(.*?)\\sname=\"" + ns + name
+ "_INSTANCE_[^\"]+\"(.*?)value=\"[^\"]*([^>]+).*?</input>";
+ "_INSTANCE_[^\"]+\"(.*?)value=\"[^\"]*([^>]+).*?</label>";
for (Map<String, Serializable> option : entry.getValue()) {
String replaceInput = "<input$1 name=\"" + prefix + name + suffix + "\"$2value=\"" + option.get("value");
if (MapUtil.getBoolean(option, "default")) {
String value = option.get("value").toString();
String replaceInput = "<input$1 name=\"" + prefix + name + suffix + "\"$2value=\""
+ HtmlUtil.escape(value);
boolean checked = MapUtil.getBoolean(option, "default");
if ((name.equals("esito") && value.equalsIgnoreCase(esito))
|| MapUtil.getBoolean(option, "default")) {
replaceInput += "\" checked=\"checked";
}
replaceInput += "$3>" + option.get("label");
replaceInput += "$3>" + HtmlUtil.escape(option.get("label").toString()) + "</label>";
html = html.replaceFirst(regexInput, replaceInput);
}
}
}
html = html.replaceAll("name=\"" + ns + "(.*?)_INSTANCE_[^\"]+\"", "name=\"" + prefix + "$1" + suffix + "\"");
html = html.replaceAll("name=\"" + ns + "(.*?)_INSTANCE_[^\"]+\"", "name=\"" + prefix + "$1"
+ suffix + "\"");
html = html.replace("name=\"" + ns + "_fieldsDisplay\"", "name=\"_fieldsDisplay\"");
%>
<%= html %>
<%!
private void salva(String name, String str) {
Log _log = LogFactoryUtil.getLog("render_form_task_jsp_salva");
try {
String debugPath = com.liferay.portal.kernel.util.PropsUtil.get("liferay.home") + "/debug";
_log.info("debugPath = " + debugPath);
File debugFile = new File(debugPath);
if (!debugFile.exists())
debugFile.mkdirs();
Path path = Paths.get(debugPath + "/" + name);
Files.write(path, str.getBytes());
} catch (Exception e) {
_log.error("Errore", e);
for (Entry<String, Serializable> p : parameters.entrySet()) {
html = html.replaceAll("(<textarea\\s.*?\\sname=\"" + prefix + p.getKey() + suffix
+ "\"[^>]*>[^<]*)</textarea>", "$1" + HtmlUtil.escape(p.getValue().toString())
+ "</textarea>");
}
}
%>
<%=html%>

BIN
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portal-compat-shared.jar

File binario non mostrato.
Caricamento…
Annulla
Salva