Sfoglia il codice sorgente

Delega committente

master 22.07
Salvatore La Manna 2 anni fa
parent
commit
99abb87f7c
  1. 307
      jasper/vidimazione_fl.jrxml
  2. 10
      liferay-plugins-sdk-6.2/build.ture.properties
  3. 10
      liferay-plugins-sdk-6.2/build.ture.properties.save
  4. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml
  5. 49
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriClp.java
  6. 21
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriModel.java
  7. 14
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriSoap.java
  8. 38
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriWrapper.java
  9. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalService.java
  10. 10
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceClp.java
  11. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceUtil.java
  12. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceWrapper.java
  13. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriService.java
  14. 10
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriServiceClp.java
  15. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriServiceUtil.java
  16. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriServiceWrapper.java
  17. 21
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalService.java
  18. 165
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceClp.java
  19. 26
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceUtil.java
  20. 30
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceWrapper.java
  21. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java
  22. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties
  23. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql
  24. 15
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql
  25. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml
  26. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml
  27. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml
  28. 39
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties
  29. 25
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/startup/DatabaseUpdateAction.java
  30. 10
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriCacheModel.java
  31. 44
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriModelImpl.java
  32. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java
  33. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriLocalServiceClpInvoker.java
  34. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriServiceClpInvoker.java
  35. 44
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoLocalServiceClpInvoker.java
  36. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/FineLavoriServiceSoap.java
  37. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java
  38. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriLocalServiceImpl.java
  39. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriServiceImpl.java
  40. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java
  41. 255
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoLocalServiceImpl.java
  42. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java
  43. 83
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/delega.html
  44. 29
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/delegawrapper.html
  45. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  46. 1363
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java
  47. 103
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/SoggettiPraticaPortlet.java
  48. 3
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/asseverazione_actions.jsp
  49. 178
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_collaudo.jsp
  50. 362
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_fine-lavori.jsp
  51. 44
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_inizio_lavori.jsp
  52. 107
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/fascicolo_action.jsp
  53. 1
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/save_actions.jspf
  54. 3
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp
  55. 299
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fine-lavori_calcolo.jsp
  56. 312
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fine-lavori_calcolo_old.jsp
  57. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/edit_soggetto.jsp
  58. 137
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/genera_delega.jsp
  59. 32
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/view.jsp
  60. 14
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/init.jsp
  61. 65
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/edit.jsp
  62. 30
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/email_action.jsp
  63. 16
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/email_history_popup_button.jsp
  64. 3
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/init.jsp
  65. 166
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/view.jsp
  66. BIN
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/velocity.jar
  67. 4
      liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/src/service.properties
  68. 2
      liferay-plugins-sdk-6.2/shared/portos-audit-shared/.classpath
  69. 8
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/.classpath
  70. 2
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/PagamentoConstants.java
  71. 2
      liferay-plugins-sdk-6.2/shared/portos-firma-shared/.classpath
  72. 2
      liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/.classpath
  73. 4
      liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.classpath
  74. 2
      liferay-plugins-sdk-6.2/shared/portos-report-shared/.classpath
  75. 2
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.classpath

307
jasper/vidimazione_fl.jrxml

@ -11,67 +11,113 @@
<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"/>
<field name="alCollaudatore" class="java.lang.String"/>
<field name="allegati" class="java.util.List"/> <field name="allegati" class="java.util.List"/>
<field name="alTitolareDigitale" class="java.lang.String"/> <field name="collaudatore" class="java.lang.String"/>
<field name="alCommittente" class="java.lang.String"/>
<field name="alDirettoreLavori" class="java.lang.String"/>
<field name="codiceUnivoco" class="java.lang.String"/> <field name="codiceUnivoco" class="java.lang.String"/>
<field name="committente" class="java.lang.String"/> <field name="committente" class="java.lang.String"/>
<field name="comune" class="java.lang.String"/> <field name="comune" class="java.lang.String"/>
<field name="dataAvviso" class="java.util.Date"/> <field name="dataAvviso" class="java.util.Date"/>
<field name="dataPratica" class="java.util.Date"/> <field name="dataPratica" class="java.util.Date"/>
<field name="direttoreLavori" class="java.lang.String"/>
<field name="lavoriDi" class="java.lang.String"/> <field name="lavoriDi" class="java.lang.String"/>
<field name="numeroProgetto" class="java.lang.String"/> <field name="numeroProgetto" class="java.lang.String"/>
<field name="numeroProtocollo" class="java.lang.String"/> <field name="numeroProtocollo" class="java.lang.String"/>
<field name="parziale" class="java.lang.Boolean"/>
<field name="parzialeNumero" class="java.lang.String"/>
<field name="sedeGenioCivile" class="java.lang.String"/> <field name="sedeGenioCivile" class="java.lang.String"/>
<field name="tecnicoEmail" class="java.lang.String"/> <field name="titolareDigitale" class="java.lang.String"/>
<field name="tecnico" class="java.lang.String"/>
<field name="tipo" class="java.lang.String"/>
<field name="ubicazione" class="java.lang.String"/> <field name="ubicazione" class="java.lang.String"/>
<pageHeader> <pageHeader>
<band height="75" splitType="Stretch"> <band height="108" splitType="Stretch">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
<frame>
<reportElement x="0" y="12" width="550" height="96" uuid="0748dd11-8305-4de4-bdd1-d0833a900836">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<box>
<pen lineWidth="1.0"/>
</box>
<image> <image>
<reportElement x="0" y="0" width="224" height="68" uuid="69ba1fba-114d-4d87-afcf-2a121decda52"/> <reportElement x="5" y="5" width="224" height="68" uuid="630678b8-5688-4e7b-8664-65b0190343b7">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<imageExpression><![CDATA[$P{LOGO_REGIONE}]]></imageExpression> <imageExpression><![CDATA[$P{LOGO_REGIONE}]]></imageExpression>
</image> </image>
<textField> <staticText>
<reportElement x="285" y="50" width="269" height="25" uuid="a329da1c-ce69-4c4e-8461-34eb44195739"> <reportElement x="275" y="5" width="270" height="25" uuid="279ad7c4-043c-4548-8d6a-7b95bc04885a">
<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 textAlignment="Center" verticalAlignment="Middle"> <textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Bold" size="9" isBold="false"/> <font fontName="DejaVu Sans Bold" size="9" isBold="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA["Sede di "+$F{sedeGenioCivile}]]></textFieldExpression> <text><![CDATA[Dipartimento Regionale Tecnico]]></text>
</textField> </staticText>
<staticText> <staticText>
<reportElement x="285" y="0" width="270" height="25" uuid="fc65b94e-03de-4043-8de7-16b29fff3c4f"> <reportElement x="275" y="30" width="270" height="25" uuid="805e8d9e-e36c-4240-867a-6a3d14dd25b6">
<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 textAlignment="Center" verticalAlignment="Middle"> <textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Bold" size="9" isBold="false"/> <font fontName="DejaVu Sans Bold" size="9" isBold="false"/>
</textElement> </textElement>
<text><![CDATA[Dipartimento Regionale Tecnico]]></text> <text><![CDATA[Ufficio del Genio Civile]]></text>
</staticText> </staticText>
<staticText> <textField>
<reportElement x="285" y="25" width="269" height="25" uuid="f1e093e1-71e5-4a60-94d0-5a80e51b1e60"> <reportElement x="275" y="55" width="270" height="25" uuid="c0185a25-c091-490f-8a9b-e70e0944f1dc">
<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 textAlignment="Center" verticalAlignment="Middle"> <textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Bold" size="9" isBold="false"/> <font fontName="DejaVu Sans Bold" size="9" isBold="false"/>
</textElement> </textElement>
<text><![CDATA[Genio Civile]]></text> <textFieldExpression><![CDATA["Sede di "+$F{sedeGenioCivile}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="60" y="80" width="100" height="12" uuid="a2e04340-e746-43fe-aded-1a19d391be58">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans" size="8"/>
</textElement>
<textFieldExpression><![CDATA[new SimpleDateFormat("dd/MM/yyyy").format($F{dataAvviso})]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="5" y="80" width="53" height="12" uuid="95144916-aa63-42c0-ac37-dd359765e965">
<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" size="8" isBold="false" isItalic="false"/>
</textElement>
<text><![CDATA[Data Avviso:]]></text>
</staticText>
</frame>
<staticText>
<reportElement x="0" y="0" width="550" height="12" uuid="13cad1fa-cc24-43d2-8a33-6b9e05de1715">
<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"/>
</reportElement>
<textElement markup="html">
<font fontName="DejaVu Sans" size="8"/>
</textElement>
<text><![CDATA[AVVISO DI VIDIMAZIONE FINE LAVORI]]></text>
</staticText> </staticText>
</band> </band>
</pageHeader> </pageHeader>
<detail> <detail>
<band height="398"> <band height="149">
<line>
<reportElement x="0" y="13" width="555" height="1" uuid="94b2c91e-bbd3-4d62-b399-34fcba04c0cb"/>
</line>
<staticText> <staticText>
<reportElement x="0" y="19" width="56" height="13" uuid="2bb6962b-397c-4592-ab9b-f49f30c26032"/> <reportElement x="0" y="19" width="56" height="13" uuid="2bb6962b-397c-4592-ab9b-f49f30c26032"/>
<textElement> <textElement>
@ -80,242 +126,257 @@
<text><![CDATA[Oggetto:]]></text> <text><![CDATA[Oggetto:]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="56" y="19" width="492" height="26" uuid="78d30ce8-19a2-45c0-a5ef-0b2b99805f29"/> <reportElement x="56" y="19" width="492" height="37" uuid="78d30ce8-19a2-45c0-a5ef-0b2b99805f29">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement> <textElement>
<font fontName="DejaVu Sans" isBold="true"/> <font fontName="DejaVu Sans" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[RELAZIONE DI ULTIMAZIONE DEI LAVORI, Art. 93 D.P.R. n. 380/2001]]></text> <text><![CDATA[Zone Sismiche – D.P.R. n° 380/2001 e ss. mm. ii.
- Relazione a strutture ultimate, art. 65 D.P.R. n. 380/2001
- Dichiarazione di regolare esecuzione, art. 67, commi 8-bis e 8-ter]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="56" y="47" width="272" height="14" uuid="a906354d-7715-4d0e-9986-435b43df854f"> <reportElement x="0" y="70" width="555" height="14" uuid="a906354d-7715-4d0e-9986-435b43df854f">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" 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.y" value="px"/>
</reportElement> </reportElement>
<textElement> <textElement textAlignment="Center">
<font fontName="DejaVu Sans Bold" isBold="false" isUnderline="true"/> <font fontName="DejaVu Sans Bold" isBold="false" isUnderline="true"/>
</textElement> </textElement>
<text><![CDATA[ATTESTAZIONE DEPOSITO FINE LAVORI]]></text> <text><![CDATA[ATTESTAZIONE DEPOSITO FINE LAVORI]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="8" y="0" width="48" height="10" uuid="cf3a9429-2047-45c9-980a-7ac93d430de0"> <reportElement x="9" y="121" width="82" height="14" uuid="db348311-9894-42af-ae4e-727d96f8aa08">
<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" size="8" isBold="false" isItalic="false"/> <font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement> </textElement>
<text><![CDATA[Data Avviso]]></text> <text><![CDATA[Comune:]]></text>
</staticText> </staticText>
<textField>
<reportElement x="61" y="0" width="100" height="10" uuid="e8e8a449-23ae-48da-aa8d-84423c088646">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans" size="8"/>
</textElement>
<textFieldExpression><![CDATA[new SimpleDateFormat("dd/MM/yyyy").format($F{dataAvviso})]]></textFieldExpression>
</textField>
<staticText> <staticText>
<reportElement x="9" y="121" width="82" height="14" uuid="db348311-9894-42af-ae4e-727d96f8aa08"> <reportElement x="9" y="135" width="82" height="14" uuid="cd8b9b56-a673-4708-9b8e-a6ae50dfbccd">
<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 Bold" isBold="false"/> <font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement> </textElement>
<text><![CDATA[Comune:]]></text> <text><![CDATA[Committente:]]></text>
</staticText> </staticText>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="381" y="254" width="168" height="14" uuid="d880d447-9438-4750-be22-4b0b5bef3e63"> <reportElement x="91" y="121" width="458" height="14" uuid="6f2cb684-6534-4cc9-acd4-9c5fd6a677b1">
<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{alDirettoreLavori}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{comune}]]></textFieldExpression>
</textField> </textField>
<staticText> <textField isBlankWhenNull="true">
<reportElement x="9" y="149" width="82" height="14" uuid="1937bfdd-32f4-4b4b-9e53-a1fb3d923925"> <reportElement x="91" y="135" width="458" height="14" uuid="5ec2ddc5-2a0b-4440-afb4-bef9e6102856">
<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 Bold" isBold="false"/> <font fontName="DejaVu Sans"/>
</textElement> </textElement>
<text><![CDATA[Lavori di:]]></text> <textFieldExpression><![CDATA[$F{committente}]]></textFieldExpression>
</staticText> </textField>
</band>
<band height="14">
<staticText> <staticText>
<reportElement key="" x="266" y="226" width="115" height="14" uuid="4cae4c79-8532-4cbb-9d81-bde3f93c21b1"> <reportElement x="9" y="0" width="82" height="14" uuid="d50b7d6b-d36a-41d2-b415-4f09ec47a690">
<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"/>
</reportElement> </reportElement>
<textElement> <textElement>
<font fontName="DejaVu Sans Bold" isBold="true"/> <font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement> </textElement>
<text><![CDATA[Al Committente]]></text> <text><![CDATA[Lavori di:]]></text>
</staticText> </staticText>
<staticText> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="266" y="254" width="115" height="14" uuid="9fe19eb8-bac2-4382-9120-ef8652c2617a"> <reportElement x="91" y="0" width="458" height="14" uuid="09fab2fa-30c5-4480-abfa-50dfa51b68fc">
<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"/>
</reportElement> </reportElement>
<textElement> <textElement>
<font fontName="DejaVu Sans Bold" isBold="false"/> <font fontName="DejaVu Sans"/>
</textElement> </textElement>
<text><![CDATA[Al D.L.]]></text> <textFieldExpression><![CDATA[$F{lavoriDi}]]></textFieldExpression>
</staticText> </textField>
</band>
<band height="247">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<staticText> <staticText>
<reportElement x="9" y="135" width="82" height="14" uuid="cd8b9b56-a673-4708-9b8e-a6ae50dfbccd"> <reportElement key="" x="100" y="63" width="115" height="14" uuid="51d2357a-699a-4365-8878-9932addf3060">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement> </reportElement>
<textElement> <textElement>
<font fontName="DejaVu Sans Bold" isBold="false"/> <font fontName="DejaVu Sans Bold" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[Committente:]]></text> <text><![CDATA[Al Committente]]></text>
</staticText> </staticText>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="91" y="177" width="458" height="14" uuid="59326b1c-3092-45ab-ba73-d188ee32f184"> <reportElement x="215" y="63" width="334" height="14" uuid="137552fd-e658-4f57-a1fa-a7d07176df61">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$F{numeroProgetto}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="91" y="149" width="458" height="14" uuid="64e8a0c4-3120-4359-9419-0c31feb752ba">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" 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.y" value="px"/>
</reportElement> </reportElement>
<textElement> <textElement>
<font fontName="DejaVu Sans"/> <font fontName="DejaVu Sans"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{lavoriDi}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{committente}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <staticText>
<reportElement x="91" y="121" width="458" height="14" uuid="6f2cb684-6534-4cc9-acd4-9c5fd6a677b1"> <reportElement key="" x="100" y="77" width="115" height="14" uuid="34eecc96-bf07-43f8-8c8b-0d35e8f32b95">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement> </reportElement>
<textElement> <textElement>
<font fontName="DejaVu Sans"/> <font fontName="DejaVu Sans Bold" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{comune}]]></textFieldExpression> <text><![CDATA[c/o il suo delegato]]></text>
</textField> </staticText>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="91" y="135" width="458" height="14" uuid="5ec2ddc5-2a0b-4440-afb4-bef9e6102856"> <reportElement x="215" y="77" width="334" height="14" uuid="1bee535a-c6b4-43cf-8101-db34f443d28f">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" 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.y" value="px"/>
</reportElement> </reportElement>
<textElement> <textElement>
<font fontName="DejaVu Sans"/> <font fontName="DejaVu Sans"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{committente}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{titolareDigitale}]]></textFieldExpression>
</textField> </textField>
<staticText> <staticText>
<reportElement x="9" y="177" width="82" height="14" uuid="7a2a67be-5d54-4aa9-b690-799f437cb642"> <reportElement x="100" y="91" width="115" height="14" uuid="14f184a1-772f-4a89-acc9-8608fc354bbc">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement> </reportElement>
<textElement> <textElement>
<font fontName="DejaVu Sans Bold" isBold="false"/> <font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement> </textElement>
<text><![CDATA[Progetto n.]]></text> <text><![CDATA[Al D.LL.]]></text>
</staticText> </staticText>
<textField isBlankWhenNull="true"> <staticText>
<reportElement x="381" y="226" width="168" height="14" uuid="f9c28d14-b419-47e8-8c47-a936d86fee32"> <reportElement x="9" y="0" width="82" height="14" uuid="c8d0a4a5-fae9-48f8-890c-e4ce3f595504">
<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"/>
</reportElement> </reportElement>
<textElement> <textElement>
<font fontName="DejaVu Sans"/> <font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{alCommittente}]]></textFieldExpression> <text><![CDATA[Ubicazione:]]></text>
</textField> </staticText>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="91" y="191" width="458" height="14" uuid="eebebb00-ee6a-490c-ba75-5fafadc9043d"> <reportElement x="91" y="0" width="458" height="14" uuid="a86599da-cb4d-4c94-b7a0-9a67e6b31f19">
<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"/>
</reportElement> </reportElement>
<textElement> <textElement>
<font fontName="DejaVu Sans"/> <font fontName="DejaVu Sans"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{numeroProtocollo}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{ubicazione} != null ? $F{ubicazione} : ""]]></textFieldExpression>
</textField> </textField>
<staticText> <staticText>
<reportElement x="9" y="191" width="82" height="14" uuid="75c195a3-8c3e-4aef-ada3-41361d35dffa"> <reportElement x="9" y="14" width="82" height="14" uuid="d90054c7-916c-4ea6-914f-0cd04de3b3f0">
<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"/>
</reportElement> </reportElement>
<textElement> <textElement>
<font fontName="DejaVu Sans Bold" isBold="false"/> <font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement> </textElement>
<text><![CDATA[Protocollo n.]]></text> <text><![CDATA[Progetto n.]]></text>
</staticText> </staticText>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="381" y="240" width="168" height="14" uuid="7c7cdd0e-ed24-4b4f-b405-32ff24b0150c"> <reportElement x="91" y="14" width="458" height="14" uuid="10dd52e0-a31a-433e-ad7b-65e00f59028a">
<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"/>
</reportElement> </reportElement>
<textElement> <textElement>
<font fontName="DejaVu Sans"/> <font fontName="DejaVu Sans"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{alTitolareDigitale}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{numeroProgetto}]]></textFieldExpression>
</textField> </textField>
<staticText> <staticText>
<reportElement key="" x="266" y="240" width="115" height="14" uuid="c7bfa3ec-5129-4a9e-9be8-74c7287d34ba"> <reportElement x="9" y="28" width="82" height="14" uuid="9f0139ea-04cf-47dc-8373-d9b5cc24401e">
<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"/>
</reportElement> </reportElement>
<textElement> <textElement>
<font fontName="DejaVu Sans Bold" isBold="true"/> <font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement> </textElement>
<text><![CDATA[c/o il suo delegato]]></text> <text><![CDATA[Protocollo n.]]></text>
</staticText> </staticText>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="381" y="268" width="168" height="14" isRemoveLineWhenBlank="true" uuid="4e4c5e60-7f2e-4459-b4cb-f7343e77dad3"> <reportElement x="91" y="28" width="458" height="14" uuid="049d22f3-e405-42b1-931e-5d763a2bc742">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
<printWhenExpression><![CDATA[!"".equalsIgnoreCase( $F{alCollaudatore} ) && $F{alCollaudatore}!=null]]></printWhenExpression> <property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement> </reportElement>
<textElement> <textElement>
<font fontName="DejaVu Sans"/> <font fontName="DejaVu Sans"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{alCollaudatore}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{numeroProtocollo}]]></textFieldExpression>
</textField> </textField>
<staticText> <textField isBlankWhenNull="true">
<reportElement x="266" y="268" width="115" height="14" isRemoveLineWhenBlank="true" uuid="43505d3a-dbf3-4da8-8518-a8a175b6b4c6"> <reportElement x="215" y="91" width="334" height="14" uuid="aba07ff4-f812-4624-a3b0-8c85099e279c">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
<printWhenExpression><![CDATA[!"".equalsIgnoreCase( $F{alCollaudatore} ) && $F{alCollaudatore}!=null]]></printWhenExpression> <property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement> </reportElement>
<textElement> <textElement>
<font fontName="DejaVu Sans Bold" isBold="false"/> <font fontName="DejaVu Sans"/>
</textElement> </textElement>
<text><![CDATA[Al Collaudatore]]></text> <textFieldExpression><![CDATA[$F{direttoreLavori}]]></textFieldExpression>
</staticText> </textField>
<staticText> <staticText>
<reportElement x="9" y="163" width="82" height="14" uuid="b51c76f6-33b6-4a2b-b261-b382e5ffb7d6"> <reportElement x="100" y="105" width="115" height="14" isRemoveLineWhenBlank="true" uuid="a95fbfeb-28c8-4712-8494-8a5d9dfaeb32">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<printWhenExpression><![CDATA[!"".equalsIgnoreCase( $F{collaudatore} ) && $F{collaudatore}!=null]]></printWhenExpression>
</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 Collaudatore]]></text>
</staticText> </staticText>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="91" y="163" width="458" height="14" uuid="0ecba67a-e48b-4fcd-8522-feebc5761ee9"> <reportElement x="215" y="105" width="334" height="14" isRemoveLineWhenBlank="true" uuid="33df7bfd-a07f-4553-95b5-52c4d30e08eb">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" 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.y" value="px"/>
<printWhenExpression><![CDATA[!"".equalsIgnoreCase( $F{collaudatore} ) && $F{collaudatore}!=null]]></printWhenExpression>
</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{collaudatore}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="56" y="62" width="272" height="14" uuid="3deb06c4-0dad-4222-bd6a-eaf9a62d8af0">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<printWhenExpression><![CDATA[$F{parziale}]]></printWhenExpression>
</reportElement>
<textElement>
<font fontName="DejaVu Sans Bold" isBold="false" isUnderline="false"/>
</textElement>
<textFieldExpression><![CDATA["[parziale n°" + $F{parzialeNumero} + "]"]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement stretchType="RelativeToTallestObject" x="0" y="285" width="548" height="65" uuid="122c39b6-f0c9-45b0-816c-4fdde45c8623"/> <reportElement stretchType="RelativeToTallestObject" x="0" y="132" width="548" height="65" uuid="32a5d4f3-4499-49d3-8252-4454f1d46da9"/>
<textElement textAlignment="Justified"> <textElement textAlignment="Justified">
<font fontName="DejaVu Sans"/> <font fontName="DejaVu Sans"/>
</textElement> </textElement>
<textFieldExpression><![CDATA["Vista la richiesta di deposito della relazione di Fine Lavori e Certifcato di Rispondenza "+($F{parziale} == true ? "[parziale n° "+$F{parzialeNumero}+"]": "") +" ,\n"+ <textFieldExpression><![CDATA["Vista la richiesta di deposito della relazione a strutture ultimate / dichiarazione di regolare esecuzione, trasmessa in data" + new SimpleDateFormat("dd/MM/yyy").format($F{dataPratica}) +
"trasmessa in data "+new SimpleDateFormat("dd/MM/yyy").format($F{dataPratica})+" relativa alla pratica "+$F{numeroProgetto}+", si comunica che è stata vidimata e acquisita dal sistema regionale\n"+ " relativa al progetto n. " + $F{numeroProgetto} +
"Sismica-Sicilia, con n° protocollo " + $F{numeroProtocollo}]]></textFieldExpression> ", si comunica che è stata vidimata e acquisita dal sistema regionale Sismica-Sicilia, con n° protocollo " + $F{numeroProtocollo} +
"\nLa stessa è da intendersi depositata ai sensi dell’art. 65 del DPR 380/2001 e ss.mm. e ii. per le opere disciplinate dal “Capo II - Disciplina delle opere di conglomerato cementizio " +
"armato, normale e precompresso ed a struttura metallica” e ai sensi dell’art. 67, commi 8-bis e 8-ter, nel caso di dichiarazione di regolare esecuzione o per le rimanenti tipologie strutturali." +
"\nIl presente documento viene generato automaticamente dal sistema informatico SISMICA della Regione Siciliana."]]></textFieldExpression>
</textField> </textField>
<staticText> <staticText>
<reportElement stretchType="RelativeToTallestObject" x="3" y="360" width="548" height="30" uuid="d2f2dc73-ea35-4995-9f1c-a767e34a93a3"/> <reportElement stretchType="RelativeToTallestObject" x="3" y="207" width="548" height="30" uuid="410373e1-0cd1-451f-b490-7d1a7cdb57ae"/>
<textElement textAlignment="Justified"> <textElement textAlignment="Justified">
<font fontName="DejaVu Sans"/> <font fontName="DejaVu Sans"/>
</textElement> </textElement>
@ -374,7 +435,7 @@ depositata:]]></text>
<font fontName="DejaVu Sans Bold" size="8" isBold="false"/> <font fontName="DejaVu Sans Bold" size="8" isBold="false"/>
</textElement> </textElement>
<text><![CDATA[www.regione.sicilia.it <text><![CDATA[www.regione.sicilia.it
https://sismica.lavoripubblici.sicilia.it]]></text> https://sismica.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"/>

10
liferay-plugins-sdk-6.2/build.ture.properties

@ -1,11 +1,11 @@
# Managed by Liferay IDE (remove this comment to prevent future updates) # Managed by Liferay IDE (remove this comment to prevent future updates)
app.server.tomcat.lib.global.dir = /media/esterno/lavoro/liferay/portali/sismica/tomcat-7.0.62/lib/ext app.server.tomcat.lib.global.dir = /home/ture/liferay/portali/sismica/tomcat-7.0.62/lib/ext
app.server.tomcat.deploy.dir = /media/esterno/lavoro/liferay/portali/sismica/tomcat-7.0.62/webapps app.server.tomcat.deploy.dir = /home/ture/liferay/portali/sismica/tomcat-7.0.62/webapps
app.server.parent.dir = /media/esterno/lavoro/liferay/portali/sismica app.server.parent.dir = /home/ture/liferay/portali/sismica
app.server.tomcat.dir = /media/esterno/lavoro/liferay/portali/sismica/tomcat-7.0.62 app.server.tomcat.dir = /home/ture/liferay/portali/sismica/tomcat-7.0.62
app.server.type = tomcat app.server.type = tomcat
app.server.tomcat.portal.dir = /media/esterno/lavoro/liferay/portali/sismica/tomcat-7.0.62/webapps/ROOT app.server.tomcat.portal.dir = /home/ture/liferay/portali/sismica/tomcat-7.0.62/webapps/ROOT
javac.encoding = UTF-8 javac.encoding = UTF-8
ext.work.dir = /home/ture/liferay/src/work ext.work.dir = /home/ture/liferay/src/work
app.server.dir = /home/ture/liferay/src/work/liferay-portal-6.2-ce-ga6/tomcat-7.0.62 app.server.dir = /home/ture/liferay/src/work/liferay-portal-6.2-ce-ga6/tomcat-7.0.62

10
liferay-plugins-sdk-6.2/build.ture.properties.save

@ -1,9 +1,9 @@
app.server.tomcat.lib.global.dir = /media/esterno/lavoro/liferay/portali/sismica/tomcat-7.0.62/lib/ext app.server.tomcat.lib.global.dir = /home/ture/liferay/portali/sismica/tomcat-7.0.62/lib/ext
app.server.tomcat.deploy.dir = /media/esterno/lavoro/liferay/portali/sismica/tomcat-7.0.62/webapps app.server.tomcat.deploy.dir = /home/ture/liferay/portali/sismica/tomcat-7.0.62/webapps
app.server.parent.dir = /media/esterno/lavoro/liferay/portali/sismica app.server.parent.dir = /home/ture/liferay/portali/sismica
app.server.tomcat.dir = /media/esterno/lavoro/liferay/portali/sismica/tomcat-7.0.62 app.server.tomcat.dir = /home/ture/liferay/portali/sismica/tomcat-7.0.62
app.server.type = tomcat app.server.type = tomcat
app.server.tomcat.portal.dir = /media/esterno/lavoro/liferay/portali/sismica/tomcat-7.0.62/webapps/ROOT app.server.tomcat.portal.dir = /home/ture/liferay/portali/sismica/tomcat-7.0.62/webapps/ROOT
javac.encoding = UTF-8 javac.encoding = UTF-8
ext.work.dir=/home/ture/liferay/src/work ext.work.dir=/home/ture/liferay/src/work
app.server.dir=/home/ture/liferay/src/work/liferay-portal-6.2-ce-ga6/tomcat-7.0.62 app.server.dir=/home/ture/liferay/src/work/liferay-portal-6.2-ce-ga6/tomcat-7.0.62

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml

@ -704,6 +704,7 @@
<column name="dataEffettuazione" type="Date" /> <column name="dataEffettuazione" type="Date" />
<column name="dataFineLavori" type="Date" /> <column name="dataFineLavori" type="Date" />
<column name="normEsenteBollo" type="boolean" /> <column name="normEsenteBollo" type="boolean" />
<column name="normEsenteDirittiFissi" type="boolean" />
<column name="normEsenteCollaudo" type="boolean" /> <column name="normEsenteCollaudo" type="boolean" />
<column name="comunicazioneDirettoreLavori" type="String" /> <column name="comunicazioneDirettoreLavori" type="String" />
<column name="pagamentoId" type="long" /> <column name="pagamentoId" type="long" />
@ -711,6 +712,7 @@
<column name="causalePagamento" type="String" /> <column name="causalePagamento" type="String" />
<column name="mezzoPagamento" type="String" /> <column name="mezzoPagamento" type="String" />
<column name="importoBolli" type="String" /> <column name="importoBolli" type="String" />
<column name="richiestaAttestazione" type="boolean" />
<!-- Finder --> <!-- Finder -->
<finder return-type="FineLavori" name="Protocollo"> <finder return-type="FineLavori" name="Protocollo">

49
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriClp.java

@ -103,6 +103,7 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
attributes.put("causalePagamento", getCausalePagamento()); attributes.put("causalePagamento", getCausalePagamento());
attributes.put("mezzoPagamento", getMezzoPagamento()); attributes.put("mezzoPagamento", getMezzoPagamento());
attributes.put("importoBolli", getImportoBolli()); attributes.put("importoBolli", getImportoBolli());
attributes.put("richiestaAttestazione", getRichiestaAttestazione());
return attributes; return attributes;
} }
@ -267,6 +268,13 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
if (importoBolli != null) { if (importoBolli != null) {
setImportoBolli(importoBolli); setImportoBolli(importoBolli);
} }
Boolean richiestaAttestazione = (Boolean)attributes.get(
"richiestaAttestazione");
if (richiestaAttestazione != null) {
setRichiestaAttestazione(richiestaAttestazione);
}
} }
@Override @Override
@ -912,6 +920,35 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
} }
} }
@Override
public boolean getRichiestaAttestazione() {
return _richiestaAttestazione;
}
@Override
public boolean isRichiestaAttestazione() {
return _richiestaAttestazione;
}
@Override
public void setRichiestaAttestazione(boolean richiestaAttestazione) {
_richiestaAttestazione = richiestaAttestazione;
if (_fineLavoriRemoteModel != null) {
try {
Class<?> clazz = _fineLavoriRemoteModel.getClass();
Method method = clazz.getMethod("setRichiestaAttestazione",
boolean.class);
method.invoke(_fineLavoriRemoteModel, richiestaAttestazione);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override @Override
public java.lang.String getTitle(java.util.Locale locale) { public java.lang.String getTitle(java.util.Locale locale) {
try { try {
@ -1070,6 +1107,7 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
clone.setCausalePagamento(getCausalePagamento()); clone.setCausalePagamento(getCausalePagamento());
clone.setMezzoPagamento(getMezzoPagamento()); clone.setMezzoPagamento(getMezzoPagamento());
clone.setImportoBolli(getImportoBolli()); clone.setImportoBolli(getImportoBolli());
clone.setRichiestaAttestazione(getRichiestaAttestazione());
return clone; return clone;
} }
@ -1122,7 +1160,7 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
@Override @Override
public String toString() { public String toString() {
StringBundler sb = new StringBundler(53); StringBundler sb = new StringBundler(55);
sb.append("{uuid="); sb.append("{uuid=");
sb.append(getUuid()); sb.append(getUuid());
@ -1176,6 +1214,8 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
sb.append(getMezzoPagamento()); sb.append(getMezzoPagamento());
sb.append(", importoBolli="); sb.append(", importoBolli=");
sb.append(getImportoBolli()); sb.append(getImportoBolli());
sb.append(", richiestaAttestazione=");
sb.append(getRichiestaAttestazione());
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
@ -1183,7 +1223,7 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
@Override @Override
public String toXmlString() { public String toXmlString() {
StringBundler sb = new StringBundler(82); StringBundler sb = new StringBundler(85);
sb.append("<model><model-name>"); sb.append("<model><model-name>");
sb.append("it.tref.liferay.portos.bo.model.FineLavori"); sb.append("it.tref.liferay.portos.bo.model.FineLavori");
@ -1293,6 +1333,10 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
"<column><column-name>importoBolli</column-name><column-value><![CDATA["); "<column><column-name>importoBolli</column-name><column-value><![CDATA[");
sb.append(getImportoBolli()); sb.append(getImportoBolli());
sb.append("]]></column-value></column>"); sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>richiestaAttestazione</column-name><column-value><![CDATA[");
sb.append(getRichiestaAttestazione());
sb.append("]]></column-value></column>");
sb.append("</model>"); sb.append("</model>");
@ -1326,6 +1370,7 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
private String _causalePagamento; private String _causalePagamento;
private String _mezzoPagamento; private String _mezzoPagamento;
private String _importoBolli; private String _importoBolli;
private boolean _richiestaAttestazione;
private BaseModel<?> _fineLavoriRemoteModel; private BaseModel<?> _fineLavoriRemoteModel;
private Class<?> _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class; private Class<?> _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class;
} }

21
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriModel.java

@ -502,6 +502,27 @@ public interface FineLavoriModel extends BaseModel<FineLavori>,
*/ */
public void setImportoBolli(String importoBolli); public void setImportoBolli(String importoBolli);
/**
* Returns the richiesta attestazione of this fine lavori.
*
* @return the richiesta attestazione of this fine lavori
*/
public boolean getRichiestaAttestazione();
/**
* Returns <code>true</code> if this fine lavori is richiesta attestazione.
*
* @return <code>true</code> if this fine lavori is richiesta attestazione; <code>false</code> otherwise
*/
public boolean isRichiestaAttestazione();
/**
* Sets whether this fine lavori is richiesta attestazione.
*
* @param richiestaAttestazione the richiesta attestazione of this fine lavori
*/
public void setRichiestaAttestazione(boolean richiestaAttestazione);
@Override @Override
public boolean isNew(); public boolean isNew();

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

@ -57,6 +57,7 @@ public class FineLavoriSoap implements Serializable {
soapModel.setCausalePagamento(model.getCausalePagamento()); soapModel.setCausalePagamento(model.getCausalePagamento());
soapModel.setMezzoPagamento(model.getMezzoPagamento()); soapModel.setMezzoPagamento(model.getMezzoPagamento());
soapModel.setImportoBolli(model.getImportoBolli()); soapModel.setImportoBolli(model.getImportoBolli());
soapModel.setRichiestaAttestazione(model.getRichiestaAttestazione());
return soapModel; return soapModel;
} }
@ -338,6 +339,18 @@ public class FineLavoriSoap implements Serializable {
_importoBolli = importoBolli; _importoBolli = importoBolli;
} }
public boolean getRichiestaAttestazione() {
return _richiestaAttestazione;
}
public boolean isRichiestaAttestazione() {
return _richiestaAttestazione;
}
public void setRichiestaAttestazione(boolean richiestaAttestazione) {
_richiestaAttestazione = richiestaAttestazione;
}
private String _uuid; private String _uuid;
private long _fineLavoriId; private long _fineLavoriId;
private long _companyId; private long _companyId;
@ -364,4 +377,5 @@ public class FineLavoriSoap implements Serializable {
private String _causalePagamento; private String _causalePagamento;
private String _mezzoPagamento; private String _mezzoPagamento;
private String _importoBolli; private String _importoBolli;
private boolean _richiestaAttestazione;
} }

38
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriWrapper.java

@ -77,6 +77,7 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
attributes.put("causalePagamento", getCausalePagamento()); attributes.put("causalePagamento", getCausalePagamento());
attributes.put("mezzoPagamento", getMezzoPagamento()); attributes.put("mezzoPagamento", getMezzoPagamento());
attributes.put("importoBolli", getImportoBolli()); attributes.put("importoBolli", getImportoBolli());
attributes.put("richiestaAttestazione", getRichiestaAttestazione());
return attributes; return attributes;
} }
@ -241,6 +242,13 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
if (importoBolli != null) { if (importoBolli != null) {
setImportoBolli(importoBolli); setImportoBolli(importoBolli);
} }
Boolean richiestaAttestazione = (Boolean)attributes.get(
"richiestaAttestazione");
if (richiestaAttestazione != null) {
setRichiestaAttestazione(richiestaAttestazione);
}
} }
/** /**
@ -856,6 +864,36 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
_fineLavori.setImportoBolli(importoBolli); _fineLavori.setImportoBolli(importoBolli);
} }
/**
* Returns the richiesta attestazione of this fine lavori.
*
* @return the richiesta attestazione of this fine lavori
*/
@Override
public boolean getRichiestaAttestazione() {
return _fineLavori.getRichiestaAttestazione();
}
/**
* Returns <code>true</code> if this fine lavori is richiesta attestazione.
*
* @return <code>true</code> if this fine lavori is richiesta attestazione; <code>false</code> otherwise
*/
@Override
public boolean isRichiestaAttestazione() {
return _fineLavori.isRichiestaAttestazione();
}
/**
* Sets whether this fine lavori is richiesta attestazione.
*
* @param richiestaAttestazione the richiesta attestazione of this fine lavori
*/
@Override
public void setRichiestaAttestazione(boolean richiestaAttestazione) {
_fineLavori.setRichiestaAttestazione(richiestaAttestazione);
}
@Override @Override
public boolean isNew() { public boolean isNew() {
return _fineLavori.isNew(); return _fineLavori.isNew();

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

@ -325,7 +325,8 @@ public interface FineLavoriLocalService extends BaseLocalService,
boolean completata, java.util.Date dataFineLavori, boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo, java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori) java.lang.String comunicazioneDirettoreLavori,
boolean richiestaAttestazione)
throws com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchFineLavoriException; it.tref.liferay.portos.bo.NoSuchFineLavoriException;

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

@ -141,7 +141,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService {
_methodParameterTypes24 = new String[] { _methodParameterTypes24 = new String[] {
"long", "long", "long", "boolean", "boolean", "java.util.Date", "long", "long", "long", "boolean", "boolean", "java.util.Date",
"java.lang.String", "boolean", "boolean", "java.lang.String" "java.lang.String", "boolean", "boolean", "java.lang.String",
"boolean"
}; };
_methodName25 = "getLastEditable"; _methodName25 = "getLastEditable";
@ -1028,7 +1029,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService {
boolean completata, java.util.Date dataFineLavori, boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo, java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori) java.lang.String comunicazioneDirettoreLavori,
boolean richiestaAttestazione)
throws com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchFineLavoriException { it.tref.liferay.portos.bo.NoSuchFineLavoriException {
Object returnObj = null; Object returnObj = null;
@ -1055,7 +1057,9 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService {
normEsenteCollaudo, normEsenteCollaudo,
ClpSerializer.translateInput(comunicazioneDirettoreLavori) ClpSerializer.translateInput(comunicazioneDirettoreLavori),
richiestaAttestazione
}); });
} }
catch (Throwable t) { catch (Throwable t) {

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

@ -350,13 +350,15 @@ public class FineLavoriLocalServiceUtil {
boolean completata, java.util.Date dataFineLavori, boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo, java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori) java.lang.String comunicazioneDirettoreLavori,
boolean richiestaAttestazione)
throws com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchFineLavoriException { it.tref.liferay.portos.bo.NoSuchFineLavoriException {
return getService() return getService()
.updateFineLavori(userId, fineLavoriId, intPraticaId, .updateFineLavori(userId, fineLavoriId, intPraticaId,
parziale, completata, dataFineLavori, codiceFiscaleDelegato, parziale, completata, dataFineLavori, codiceFiscaleDelegato,
normEsenteBollo, normEsenteCollaudo, comunicazioneDirettoreLavori); normEsenteBollo, normEsenteCollaudo, comunicazioneDirettoreLavori,
richiestaAttestazione);
} }
public static it.tref.liferay.portos.bo.model.FineLavori getLastEditable( public static it.tref.liferay.portos.bo.model.FineLavori getLastEditable(

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

@ -373,13 +373,14 @@ public class FineLavoriLocalServiceWrapper implements FineLavoriLocalService,
boolean completata, java.util.Date dataFineLavori, boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo, java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori) java.lang.String comunicazioneDirettoreLavori,
boolean richiestaAttestazione)
throws com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchFineLavoriException { it.tref.liferay.portos.bo.NoSuchFineLavoriException {
return _fineLavoriLocalService.updateFineLavori(userId, fineLavoriId, return _fineLavoriLocalService.updateFineLavori(userId, fineLavoriId,
intPraticaId, parziale, completata, dataFineLavori, intPraticaId, parziale, completata, dataFineLavori,
codiceFiscaleDelegato, normEsenteBollo, normEsenteCollaudo, codiceFiscaleDelegato, normEsenteBollo, normEsenteCollaudo,
comunicazioneDirettoreLavori); comunicazioneDirettoreLavori, richiestaAttestazione);
} }
@Override @Override

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

@ -96,7 +96,8 @@ public interface FineLavoriService extends BaseService, InvokableService {
boolean completata, java.util.Date dataFineLavori, boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo, java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori) java.lang.String comunicazioneDirettoreLavori,
boolean richiestaAttestazione)
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;

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

@ -62,7 +62,8 @@ public class FineLavoriServiceClp implements FineLavoriService {
_methodParameterTypes8 = new String[] { _methodParameterTypes8 = new String[] {
"long", "long", "long", "boolean", "boolean", "java.util.Date", "long", "long", "long", "boolean", "boolean", "java.util.Date",
"java.lang.String", "boolean", "boolean", "java.lang.String" "java.lang.String", "boolean", "boolean", "java.lang.String",
"boolean"
}; };
_methodName9 = "getLastEditable"; _methodName9 = "getLastEditable";
@ -347,7 +348,8 @@ public class FineLavoriServiceClp implements FineLavoriService {
boolean completata, java.util.Date dataFineLavori, boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo, java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori) java.lang.String comunicazioneDirettoreLavori,
boolean richiestaAttestazione)
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;
@ -374,7 +376,9 @@ public class FineLavoriServiceClp implements FineLavoriService {
normEsenteCollaudo, normEsenteCollaudo,
ClpSerializer.translateInput(comunicazioneDirettoreLavori) ClpSerializer.translateInput(comunicazioneDirettoreLavori),
richiestaAttestazione
}); });
} }
catch (Throwable t) { catch (Throwable t) {

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

@ -103,13 +103,15 @@ public class FineLavoriServiceUtil {
boolean completata, java.util.Date dataFineLavori, boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo, java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori) java.lang.String comunicazioneDirettoreLavori,
boolean richiestaAttestazione)
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()
.updateFineLavori(userId, fineLavoriId, intPraticaId, .updateFineLavori(userId, fineLavoriId, intPraticaId,
parziale, completata, dataFineLavori, codiceFiscaleDelegato, parziale, completata, dataFineLavori, codiceFiscaleDelegato,
normEsenteBollo, normEsenteCollaudo, comunicazioneDirettoreLavori); normEsenteBollo, normEsenteCollaudo, comunicazioneDirettoreLavori,
richiestaAttestazione);
} }
public static it.tref.liferay.portos.bo.model.FineLavori getLastEditable( public static it.tref.liferay.portos.bo.model.FineLavori getLastEditable(

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

@ -102,13 +102,14 @@ public class FineLavoriServiceWrapper implements FineLavoriService,
boolean completata, java.util.Date dataFineLavori, boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo, java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori) java.lang.String comunicazioneDirettoreLavori,
boolean richiestaAttestazione)
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 _fineLavoriService.updateFineLavori(userId, fineLavoriId, return _fineLavoriService.updateFineLavori(userId, fineLavoriId,
intPraticaId, parziale, completata, dataFineLavori, intPraticaId, parziale, completata, dataFineLavori,
codiceFiscaleDelegato, normEsenteBollo, normEsenteCollaudo, codiceFiscaleDelegato, normEsenteBollo, normEsenteCollaudo,
comunicazioneDirettoreLavori); comunicazioneDirettoreLavori, richiestaAttestazione);
} }
@Override @Override

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

@ -804,4 +804,25 @@ public interface SoggettoLocalService extends BaseLocalService,
public java.util.List<it.tref.liferay.portos.bo.model.Soggetto> getSoggettiByIntPraticaId_DtRimozioneNull( public java.util.List<it.tref.liferay.portos.bo.model.Soggetto> getSoggettiByIntPraticaId_DtRimozioneNull(
long intPraticaId) long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.lang.String getDelegaPlaceholder();
public long savePdfDelega(javax.portlet.PortletRequest request)
throws com.itextpdf.text.DocumentException,
com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public byte[] getPdfDelega(javax.portlet.PortletRequest request)
throws com.itextpdf.text.DocumentException,
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.lang.String getAnteprimaDelega(
javax.portlet.PortletRequest request)
throws com.liferay.portal.kernel.exception.SystemException,
java.io.IOException;
} }

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

@ -580,6 +580,22 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService {
_methodName99 = "getSoggettiByIntPraticaId_DtRimozioneNull"; _methodName99 = "getSoggettiByIntPraticaId_DtRimozioneNull";
_methodParameterTypes99 = new String[] { "long" }; _methodParameterTypes99 = new String[] { "long" };
_methodName100 = "getDelegaPlaceholder";
_methodParameterTypes100 = new String[] { };
_methodName101 = "savePdfDelega";
_methodParameterTypes101 = new String[] { "javax.portlet.PortletRequest" };
_methodName102 = "getPdfDelega";
_methodParameterTypes102 = new String[] { "javax.portlet.PortletRequest" };
_methodName103 = "getAnteprimaDelega";
_methodParameterTypes103 = new String[] { "javax.portlet.PortletRequest" };
} }
@Override @Override
@ -4569,6 +4585,147 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService {
return (java.util.List<it.tref.liferay.portos.bo.model.Soggetto>)ClpSerializer.translateOutput(returnObj); return (java.util.List<it.tref.liferay.portos.bo.model.Soggetto>)ClpSerializer.translateOutput(returnObj);
} }
@Override
public java.lang.String getDelegaPlaceholder() {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName100,
_methodParameterTypes100, new Object[] { });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (java.lang.String)ClpSerializer.translateOutput(returnObj);
}
@Override
public long savePdfDelega(javax.portlet.PortletRequest request)
throws com.itextpdf.text.DocumentException,
com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName101,
_methodParameterTypes101,
new Object[] { ClpSerializer.translateInput(request) });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.itextpdf.text.DocumentException) {
throw (com.itextpdf.text.DocumentException)t;
}
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)t;
}
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t;
}
if (t instanceof java.io.IOException) {
throw (java.io.IOException)t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return ((Long)returnObj).longValue();
}
@Override
public byte[] getPdfDelega(javax.portlet.PortletRequest request)
throws com.itextpdf.text.DocumentException,
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName102,
_methodParameterTypes102,
new Object[] { ClpSerializer.translateInput(request) });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.itextpdf.text.DocumentException) {
throw (com.itextpdf.text.DocumentException)t;
}
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t;
}
if (t instanceof java.io.IOException) {
throw (java.io.IOException)t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (byte[])ClpSerializer.translateOutput(returnObj);
}
@Override
public java.lang.String getAnteprimaDelega(
javax.portlet.PortletRequest request)
throws com.liferay.portal.kernel.exception.SystemException,
java.io.IOException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName103,
_methodParameterTypes103,
new Object[] { ClpSerializer.translateInput(request) });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t;
}
if (t instanceof java.io.IOException) {
throw (java.io.IOException)t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (java.lang.String)ClpSerializer.translateOutput(returnObj);
}
private InvokableLocalService _invokableLocalService; private InvokableLocalService _invokableLocalService;
private String _methodName0; private String _methodName0;
private String[] _methodParameterTypes0; private String[] _methodParameterTypes0;
@ -4768,4 +4925,12 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService {
private String[] _methodParameterTypes98; private String[] _methodParameterTypes98;
private String _methodName99; private String _methodName99;
private String[] _methodParameterTypes99; private String[] _methodParameterTypes99;
private String _methodName100;
private String[] _methodParameterTypes100;
private String _methodName101;
private String[] _methodParameterTypes101;
private String _methodName102;
private String[] _methodParameterTypes102;
private String _methodName103;
private String[] _methodParameterTypes103;
} }

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

@ -1106,6 +1106,32 @@ public class SoggettoLocalServiceUtil {
.getSoggettiByIntPraticaId_DtRimozioneNull(intPraticaId); .getSoggettiByIntPraticaId_DtRimozioneNull(intPraticaId);
} }
public static java.lang.String getDelegaPlaceholder() {
return getService().getDelegaPlaceholder();
}
public static long savePdfDelega(javax.portlet.PortletRequest request)
throws com.itextpdf.text.DocumentException,
com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException {
return getService().savePdfDelega(request);
}
public static byte[] getPdfDelega(javax.portlet.PortletRequest request)
throws com.itextpdf.text.DocumentException,
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException {
return getService().getPdfDelega(request);
}
public static java.lang.String getAnteprimaDelega(
javax.portlet.PortletRequest request)
throws com.liferay.portal.kernel.exception.SystemException,
java.io.IOException {
return getService().getAnteprimaDelega(request);
}
public static void clearService() { public static void clearService() {
_service = null; _service = null;
} }

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

@ -1157,6 +1157,36 @@ public class SoggettoLocalServiceWrapper implements SoggettoLocalService,
return _soggettoLocalService.getSoggettiByIntPraticaId_DtRimozioneNull(intPraticaId); return _soggettoLocalService.getSoggettiByIntPraticaId_DtRimozioneNull(intPraticaId);
} }
@Override
public java.lang.String getDelegaPlaceholder() {
return _soggettoLocalService.getDelegaPlaceholder();
}
@Override
public long savePdfDelega(javax.portlet.PortletRequest request)
throws com.itextpdf.text.DocumentException,
com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException {
return _soggettoLocalService.savePdfDelega(request);
}
@Override
public byte[] getPdfDelega(javax.portlet.PortletRequest request)
throws com.itextpdf.text.DocumentException,
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException {
return _soggettoLocalService.getPdfDelega(request);
}
@Override
public java.lang.String getAnteprimaDelega(
javax.portlet.PortletRequest request)
throws com.liferay.portal.kernel.exception.SystemException,
java.io.IOException {
return _soggettoLocalService.getAnteprimaDelega(request);
}
/** /**
* @deprecated As of 6.1.0, replaced by {@link #getWrappedService} * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
*/ */

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

@ -495,6 +495,7 @@ public class ValidazionePraticaUtil {
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
long intPraticaId = dettPratica.getIntPraticaId(); long intPraticaId = dettPratica.getIntPraticaId();
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId);
List<String> notCompleted = new ArrayList<>(); List<String> notCompleted = new ArrayList<>();
boolean titolare = SoggettiUtil.isTitolareInSoggetti(intPraticaId); boolean titolare = SoggettiUtil.isTitolareInSoggetti(intPraticaId);
if (!titolare) { if (!titolare) {
@ -584,7 +585,7 @@ public class ValidazionePraticaUtil {
if (!collaudatoreNotRequired && !collaudatore) { if (!collaudatoreNotRequired && !collaudatore) {
notCompleted.add("gc-soggetto-" + TipoSoggettoUtil.COLLAUDATORE + "-not-present"); notCompleted.add("gc-soggetto-" + TipoSoggettoUtil.COLLAUDATORE + "-not-present");
} else if (dettPratica.getNormLavoriInProprio() && (dettPratica.getTcInCA() || dettPratica.getTcInAcciaio()) } else if (dettPratica.getNormLavoriInProprio() && (dettPratica.getTcInCA() || dettPratica.getTcInAcciaio())
&& (numeroCollaudatori < 3)) { && (numeroCollaudatori < 3) && !Constants.PROCEDURA_C.equalsIgnoreCase(intPratica.getTipoProcedura())) {
notCompleted.add("gc-terna-collaudatori-not-present"); notCompleted.add("gc-terna-collaudatori-not-present");
} }
if (!committente) { if (!committente) {
@ -970,11 +971,11 @@ public class ValidazionePraticaUtil {
} }
} else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A29)) { } else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A29)) {
if (!signatures.contains(dettPratica.getUserName().toLowerCase())) { if (!signatures.contains(dettPratica.getUserName().toLowerCase())) {
notCompleted.add("A29 firma del titolare digitale richiesta"); List<String> firmeCommittenti = getSignaturePerSubject(intPraticaId, signatures,
TipoSoggettoUtil.COMMITTENTE, doc.getClassPk());
if (firmeCommittenti.isEmpty()) {
notCompleted.add("A29 firma del titolare digitale o del committente richiesta");
} }
if (!isAllRequiredValid(codiceDoc, intPraticaId, signatures, TipoSoggettoUtil.getAllSubjects(),
doc)) {
notCompleted.add(codiceDoc + " firme obbligatorie mancanti");
} }
} else if (isEnoughOne && signatures.isEmpty()) { } else if (isEnoughOne && signatures.isEmpty()) {
// Return false if one sign is enought but there are no signs for this subjectType // Return false if one sign is enought but there are no signs for this subjectType

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

@ -153,6 +153,10 @@ IX_3F61CC23=portos_bo_InfoFascicolo.UUID_G
IX_3FD1AC67=portos_bo_InfoFascicolo.Uuid IX_3FD1AC67=portos_bo_InfoFascicolo.Uuid
IX_B49E6161=portos_bo_InfoFascicolo.Uuid_C IX_B49E6161=portos_bo_InfoFascicolo.Uuid_C
IX_91DD4F35=portos_bo_InizioLavori.UUID_G
IX_140D0D15=portos_bo_InizioLavori.Uuid
IX_564567F3=portos_bo_InizioLavori.Uuid_C
IX_9929E083=portos_bo_IntPratica.C_Group IX_9929E083=portos_bo_IntPratica.C_Group
IX_E75F8D41=portos_bo_IntPratica.C_UserId IX_E75F8D41=portos_bo_IntPratica.C_UserId
IX_779B836B=portos_bo_IntPratica.P IX_779B836B=portos_bo_IntPratica.P

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql

@ -149,6 +149,10 @@ create index IX_3FD1AC67 on portos_bo_InfoFascicolo (uuid_);
create index IX_B49E6161 on portos_bo_InfoFascicolo (uuid_, companyId); create index IX_B49E6161 on portos_bo_InfoFascicolo (uuid_, companyId);
create unique index IX_3F61CC23 on portos_bo_InfoFascicolo (uuid_, groupId); create unique index IX_3F61CC23 on portos_bo_InfoFascicolo (uuid_, groupId);
create index IX_140D0D15 on portos_bo_InizioLavori (uuid_);
create index IX_564567F3 on portos_bo_InizioLavori (uuid_, companyId);
create unique index IX_91DD4F35 on portos_bo_InizioLavori (uuid_, groupId);
create index IX_9929E083 on portos_bo_IntPratica (companyId, groupId); create index IX_9929E083 on portos_bo_IntPratica (companyId, groupId);
create index IX_E75F8D41 on portos_bo_IntPratica (companyId, userId); create index IX_E75F8D41 on portos_bo_IntPratica (companyId, userId);
create index IX_779B836B on portos_bo_IntPratica (status, dtPratica); create index IX_779B836B on portos_bo_IntPratica (status, dtPratica);

15
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql

@ -508,7 +508,8 @@ create table portos_bo_FineLavori (
codicePagamento VARCHAR(75) null, codicePagamento VARCHAR(75) null,
causalePagamento VARCHAR(75) null, causalePagamento VARCHAR(75) null,
mezzoPagamento VARCHAR(75) null, mezzoPagamento VARCHAR(75) null,
importoBolli VARCHAR(75) null importoBolli VARCHAR(75) null,
richiestaAttestazione BOOLEAN
); );
create table portos_bo_HistoryWorkflowAction ( create table portos_bo_HistoryWorkflowAction (
@ -553,6 +554,18 @@ create table portos_bo_InfoFascicolo (
alreadyImported BOOLEAN alreadyImported BOOLEAN
); );
create table portos_bo_InizioLavori (
inizioLavoriId LONG not null primary key,
companyId LONG,
userId LONG,
userName VARCHAR(75) null,
createDate DATE null,
modifiedDate DATE null,
groupId LONG,
intPraticaId LONG,
dataInizioLavori DATE null
);
create table portos_bo_IntPratica ( create table portos_bo_IntPratica (
uuid_ VARCHAR(75) null, uuid_ VARCHAR(75) null,
intPraticaId LONG not null primary key, intPraticaId LONG not null primary key,

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml

@ -562,6 +562,7 @@
<property name="causalePagamento" type="com.liferay.portal.dao.orm.hibernate.StringType" /> <property name="causalePagamento" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="mezzoPagamento" type="com.liferay.portal.dao.orm.hibernate.StringType" /> <property name="mezzoPagamento" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="importoBolli" type="com.liferay.portal.dao.orm.hibernate.StringType" /> <property name="importoBolli" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="richiestaAttestazione" type="com.liferay.portal.dao.orm.hibernate.BooleanType" />
</class> </class>
<class name="it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionImpl" table="portos_bo_HistoryWorkflowAction"> <class name="it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionImpl" table="portos_bo_HistoryWorkflowAction">
<cache usage="read-write" /> <cache usage="read-write" />

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml

@ -616,6 +616,7 @@
<field name="causalePagamento" type="String" /> <field name="causalePagamento" type="String" />
<field name="mezzoPagamento" type="String" /> <field name="mezzoPagamento" type="String" />
<field name="importoBolli" type="String" /> <field name="importoBolli" type="String" />
<field name="richiestaAttestazione" type="boolean" />
</model> </model>
<model name="it.tref.liferay.portos.bo.model.HistoryWorkflowAction"> <model name="it.tref.liferay.portos.bo.model.HistoryWorkflowAction">
<field name="historyWorkflowActionId" type="long" /> <field name="historyWorkflowActionId" type="long" />

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml

@ -711,6 +711,7 @@
<basic name="causalePagamento" /> <basic name="causalePagamento" />
<basic name="mezzoPagamento" /> <basic name="mezzoPagamento" />
<basic name="importoBolli" /> <basic name="importoBolli" />
<basic name="richiestaAttestazione" />
<transient name="modelAttributes" /> <transient name="modelAttributes" />
<transient name="primaryKey" /> <transient name="primaryKey" />
<transient name="primaryKeyObj" /> <transient name="primaryKeyObj" />

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

@ -70,7 +70,7 @@ label-asseverazione-tipologia-02 = Committente
label-asseverazione-tipologia-03 = Direttore Lavori label-asseverazione-tipologia-03 = Direttore Lavori
label-asseverazione-tipologia-04 = Ditta label-asseverazione-tipologia-04 = Ditta
label-asseverazione-tipologia-05 = Geologo label-asseverazione-tipologia-05 = Geologo
label-asseverazione-tipologia-06 = Progettista label-asseverazione-tipologia-06 = Progettista / Tecnico Verificatore
label-asseverazione-status-AS = Assegnata label-asseverazione-status-AS = Assegnata
label-asseverazione-status-ES = Eseguita label-asseverazione-status-ES = Eseguita
@ -85,14 +85,19 @@ gc-soggetto-02 = Committente
gc-soggetto-03 = Direttore Lavori gc-soggetto-03 = Direttore Lavori
gc-soggetto-04 = Ditta Costruttrice gc-soggetto-04 = Ditta Costruttrice
gc-soggetto-05 = Geologo gc-soggetto-05 = Geologo
gc-soggetto-06 = Progettista gc-soggetto-06 = Progettista / Tecnico Verificatore
delega-soggetto-01 = Collaudatore
delega-soggetto-03 = Direttore Lavori
delega-soggetto-05 = Geologo
delega-soggetto-06 = Progettista
gc-soggetti-01 = Collaudatori gc-soggetti-01 = Collaudatori
gc-soggetti-02 = Committenti gc-soggetti-02 = Committenti
gc-soggetti-03 = Direttori Lavori gc-soggetti-03 = Direttori Lavori
gc-soggetti-04 = Ditte Costruttrici gc-soggetti-04 = Ditte Costruttrici
gc-soggetti-05 = Geologi gc-soggetti-05 = Geologi
gc-soggetti-06 = Progettisti gc-soggetti-06 = Progettisti / Tecnici Verificatori
gc-soggetto-00-not-present = Titolare Digitale non presente tra i soggetti gc-soggetto-00-not-present = Titolare Digitale non presente tra i soggetti
gc-soggetto-01-not-present = Collaudatore non presente tra i soggetti gc-soggetto-01-not-present = Collaudatore non presente tra i soggetti
@ -100,7 +105,7 @@ gc-soggetto-02-not-present = Committente non presente tra i soggetti
gc-soggetto-03-not-present = Direttore Lavori non presente tra i soggetti gc-soggetto-03-not-present = Direttore Lavori non presente tra i soggetti
gc-soggetto-04-not-present = Ditta non presente tra i soggetti gc-soggetto-04-not-present = Ditta non presente tra i soggetti
gc-soggetto-05-not-present = Geologo non presente tra i soggetti gc-soggetto-05-not-present = Geologo non presente tra i soggetti
gc-soggetto-06-not-present = Progettista non presente tra i soggetti gc-soggetto-06-not-present = Progettista / Tecnico Verificatore non presente tra i soggetti
gc-terna-collaudatori-not-present = È necessario censire i tre collaudatori della terna gc-terna-collaudatori-not-present = È necessario censire i tre collaudatori della terna
gc-soggetto-01-principale-not-present = Collaudatore principale non selezionato gc-soggetto-01-principale-not-present = Collaudatore principale non selezionato
@ -108,7 +113,7 @@ gc-soggetto-02-principale-not-present = Committente principale non selezionato
gc-soggetto-03-principale-not-present = Direttore Lavori principale non selezionato gc-soggetto-03-principale-not-present = Direttore Lavori principale non selezionato
gc-soggetto-04-principale-not-present = Ditta principale non selezionato gc-soggetto-04-principale-not-present = Ditta principale non selezionato
gc-soggetto-05-principale-not-present = Geologo principale non selezionato gc-soggetto-05-principale-not-present = Geologo principale non selezionato
gc-soggetto-06-principale-not-present = Progettista principale non selezionato gc-soggetto-06-principale-not-present = Progettista / Tecnico Verificatore principale non selezionato
gc-soggetti-not-completed = Alcuni soggetti non validi gc-soggetti-not-completed = Alcuni soggetti non validi
@ -832,7 +837,7 @@ label-documenti-tipologia-A15 = Relazione Modellazione Sismica
label-documenti-tipologia-A15-old = Certificazione del rispetto delle norme tecniche (in bollo) redatta dal tecnico rilevatore (solo per opere conformi) label-documenti-tipologia-A15-old = Certificazione del rispetto delle norme tecniche (in bollo) redatta dal tecnico rilevatore (solo per opere conformi)
label-documenti-tipologia-A16-old = Certificato di collaudo statico in bollo (se dovuto) label-documenti-tipologia-A16-old = Certificato di collaudo statico in bollo (se dovuto)
label-documenti-tipologia-A17 = Terna Collaudatori label-documenti-tipologia-A17 = Terna Collaudatori
label-documenti-tipologia-A29 = Dichiarazione impresa label-documenti-tipologia-A29 = Dichiarazioni del committente e/o del titolare digitale su lavori in economia
label-documenti-tipologia-A98 = Delega al titolare digitale e lettere di incarico ai professionisti label-documenti-tipologia-A98 = Delega al titolare digitale e lettere di incarico ai professionisti
label-documenti-tipologia-A99 = Altri label-documenti-tipologia-A99 = Altri
label-documenti-tipologia-dnf = Pratica non firmata label-documenti-tipologia-dnf = Pratica non firmata
@ -850,7 +855,7 @@ label-documenti-tipologia-Afl = Altri
label-documenti-tipologia-111VS = Documento Variazione Soggetto - Portos 1 label-documenti-tipologia-111VS = Documento Variazione Soggetto - Portos 1
label-documenti-tipologia-APM = Ricevuta Pagamento Manuale label-documenti-tipologia-APM = Ricevuta Pagamento Manuale
label-documenti-tipologia-AGL = Giornale dei Lavori / Relazione a strutture ultimate - Fine Lavori label-documenti-tipologia-AGL = Certificato di regolare esecuzione / Relazione a strutture ultimate
label-documenti-tipologia-ACC = Certificato Calcestruzzo label-documenti-tipologia-ACC = Certificato Calcestruzzo
label-documenti-tipologia-ACA = Certificato Acciaio label-documenti-tipologia-ACA = Certificato Acciaio
label-documenti-tipologia-ACL = Certificato Legno label-documenti-tipologia-ACL = Certificato Legno
@ -937,14 +942,22 @@ text-pagamento-manuale-oneri = text-pagamento-manuale-iris
text-pagamento-manuale-bolli = text-pagamento-manuale-bolli text-pagamento-manuale-bolli = text-pagamento-manuale-bolli
sostituisci-pagamento-oneri = Cambia modalità pagamento Spese Istruttoria sostituisci-pagamento-oneri = Cambia modalità pagamento Spese Istruttoria
sostituisci-pagamento-bolli = Cambia modalità pagamento Bolli sostituisci-pagamento-bolli = Cambia modalità pagamento Bolli
text-pagamento-completato-spese = Pagamento Spese Istruttoria <strong class="txt-green">completato</strong> text-pagamento-completato-spese = Pagamento Spese Istruttoria <strong class="txt-green">completato</strong>
text-pagamento-nonpagabile-spese = Pagamento Spese Istruttoria <strong class="txt-red">non pagabile</strong> text-pagamento-nonpagabile-spese = Pagamento Spese Istruttoria <strong class="txt-red">non pagabile</strong>
text-pagamento-rifiutato-spese = Pagamento Spese Istruttoria <strong class="txt-red">rifiutato</strong> text-pagamento-rifiutato-spese = Pagamento Spese Istruttoria <strong class="txt-red">rifiutato</strong>
text-pagamento-annullato-spese = Pagamento Spese Istruttoria <strong class="txt-red">annullato</strong>. Contattare il supporto.. text-pagamento-annullato-spese = Pagamento Spese Istruttoria <strong class="txt-red">annullato</strong>. Contattare il supporto.
text-pagamento-completato-bolli = Pagamento Bolli <strong class="txt-green">completato</strong> text-pagamento-completato-bolli = Pagamento Bolli <strong class="txt-green">completato</strong>
text-pagamento-nonpagabile-bolli = Pagamento Bolli <strong class="txt-red">non pagabile</strong> text-pagamento-nonpagabile-bolli = Pagamento Bolli <strong class="txt-red">non pagabile</strong>
text-pagamento-rifiutato-bolli = Pagamento Bolli <strong class="txt-red">rifiutato</strong> text-pagamento-rifiutato-bolli = Pagamento Bolli <strong class="txt-red">rifiutato</strong>
text-pagamento-annullato-bolli = Pagamento Bolli <strong class="txt-red">annullato</strong>. Contattare il supporto.. text-pagamento-annullato-bolli = Pagamento Bolli <strong class="txt-red">annullato</strong>. Contattare il supporto.
text-pagamento-completato-diritti-fissi = Pagamento Diritti Fissi <strong class="txt-green">completato</strong>
text-pagamento-nonpagabile-diritti-fissi = Pagamento Diritti Fissi <strong class="txt-red">non pagabile</strong>
text-pagamento-rifiutato-diritti-fissi = Pagamento Diritti Fissi <strong class="txt-red">rifiutato</strong>
text-pagamento-annullato-diritti-fissi = Pagamento Diritti Fissi <strong class="txt-red">annullato</strong>. Contattare il supporto.
text-rigenera-pagamento = Rigenera text-rigenera-pagamento = Rigenera
text-rigenera-pagamento-admin = Rigenera text-rigenera-pagamento-admin = Rigenera
text-annulla-pagamento-admin = Annulla text-annulla-pagamento-admin = Annulla
@ -973,21 +986,21 @@ fl-data-fine = Data effettuazione fine lavori
fl-data-fine-early = Data effettuazione fine lavori non può essere antecedente la data di inizio lavori fl-data-fine-early = Data effettuazione fine lavori non può essere antecedente la data di inizio lavori
fl-esente-bollo = esente da bollo ai sensi di D.P.R. 26/10/1972 n. 642 e s.m.i. fl-esente-bollo = esente da bollo ai sensi di D.P.R. 26/10/1972 n. 642 e s.m.i.
fl-dichiaraz-direttore = Il sottoscritto {0} {1}, in qualità di Direttore dei lavori principale dichiara che in data sopra indicata sono state ultimate le opere relative al progetto in oggetto.<br>Le opere sono state realizzate secondo il progetto autorizzato / depositato ed i materiali utilizzati sono conformi a quanto dichiarato<br>Con la presente si certifica altresì che le opere realizzate sono conformi alle prescrizioni antisismiche della vigente normativa nonchè, laddove previsto, alle prescrizioni relative alle opere di conglomerato cementizio armato, normale e precompresso, ed a struttura metallica di cui alla parte II, capo II, del D.P.R. 380/01. fl-dichiaraz-direttore = Il sottoscritto {0} {1}, in qualità di Direttore dei lavori principale dichiara che in data sopra indicata sono state ultimate le opere relative al progetto in oggetto.<br>Le opere sono state realizzate secondo il progetto autorizzato / depositato ed i materiali utilizzati sono conformi a quanto dichiarato<br>Con la presente si certifica altresì che le opere realizzate sono conformi alle prescrizioni antisismiche della vigente normativa nonchè, laddove previsto, alle prescrizioni relative alle opere di conglomerato cementizio armato, normale e precompresso, ed a struttura metallica di cui alla parte II, capo II, del D.P.R. 380/01.
fl-firma-direttore = Relazione di Fine Lavori e Certificato di Rispondenza, ai sensi dell'art. 93 del D.P.R. 380/2001 sottoscritti dal Direttore dei Lavori {0} {1} - {2} ai sensi del D.Lgs. 82/2005. fl-firma-direttore = Relazione di Fine Lavori e Certificato di Rispondenza, ai sensi dell''art. 93 del D.P.R. 380/2001 sottoscritti dal Direttore dei Lavori {0} {1} - {2} ai sensi del D.Lgs. 82/2005.
fl-varianti = Durante il corso dei lavori sono state presentate le seguenti varianti e/o integrazioni al progetto fl-varianti = Durante il corso dei lavori sono state presentate le seguenti varianti e/o integrazioni al progetto
fl-table-variante = Variante fl-table-variante = Variante
fl-table-integrazione = Integrazioni fl-table-integrazione = Integrazioni
fl-table-parziale = Fine lavori parziale fl-table-parziale = Fine lavori parziale
fl-allegati = Allegati fl-allegati = Allegati
fl-altro = Il Direttore dei lavori comunica inoltre: fl-altro = Il Direttore dei lavori comunica inoltre:
#fl-collaudo = Trattandosi di opere di riparazione/intervento locale eseguite ai sensi del punto 8.4.3 del D.M. 14.01.2008 il sottoscritto Direttore dei Lavori dichiara, sotto la sua responsabilità, che non si procederà ad effettuare il collaudo delle opere
#bug id #1
fl-collaudo = Trattandosi di opere di riparazione/intervento locale eseguite ai sensi del punto 8.4 del D.M. 17.01.2018 il sottoscritto Direttore dei Lavori dichiara, sotto la sua responsabilità, che non si procederà ad effettuare il collaudo delle opere fl-collaudo = Trattandosi di opere di riparazione/intervento locale eseguite ai sensi del punto 8.4 del D.M. 17.01.2018 il sottoscritto Direttore dei Lavori dichiara, sotto la sua responsabilità, che non si procederà ad effettuare il collaudo delle opere
fl-parziale-not-possibile = Fine Lavori Parziale non possibile fl-parziale-not-possibile = Fine Lavori Parziale non possibile
no-varianti-integrazioni = Nessuna Variante o Integrazione presentata al momento no-varianti-integrazioni = Nessuna Variante o Integrazione presentata al momento
no-fine-lavori-parziali = Nessuna Fine Lavori Parziale presentata al momento no-fine-lavori-parziali = Nessuna Fine Lavori Parziale presentata al momento
fl-attestazione = Si chiede il rilascio dell’attestazione di deposito degli atti
fl-attestazione-note = Il rilascio dell’attestazione non deve essere richiesto per interventi e nuove costruzioni con struttura diversa da cemento armato e acciaio che richiedono il deposito del collaudo
## Collaudo ## ## Collaudo ##
col = Collaudo col = Collaudo
@ -995,7 +1008,7 @@ col-tipo = Tipologia Collaudo
col-prov = Provincia col-prov = Provincia
col-comune = Comune col-comune = Comune
col-sismica = Zona sismica col-sismica = Zona sismica
col-pericolosita = Fascia paricolosità col-pericolosita = Fascia pericolosità
col-range = Range Ag col-range = Range Ag
col-desc-interv = Descrizione Intervento col-desc-interv = Descrizione Intervento
col-commit = Committente/i col-commit = Committente/i

25
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/startup/DatabaseUpdateAction.java

@ -50,11 +50,11 @@ public class DatabaseUpdateAction extends SimpleAction {
"geoPericolositaIdraulica", "geoFattibilitaIdraulica", "geoFattibilitaGeologica" }; "geoPericolositaIdraulica", "geoFattibilitaIdraulica", "geoFattibilitaGeologica" };
for (String column : columns) { for (String column : columns) {
int righe = s.executeUpdate("UPDATE " + DettPraticaImpl.TABLE_NAME + " SET " + column int righe = s.executeUpdate("UPDATE " + DettPraticaImpl.TABLE_NAME + " SET " + column + "='NA' "
+ "='NA' " + "WHERE " + column + "='0'"); + "WHERE " + column + "='0'");
if (righe > 0) { if (righe > 0) {
_log.info("Aggiornate " + righe + " righe in " + DettPraticaImpl.TABLE_NAME _log.info("Aggiornate " + righe + " righe in " + DettPraticaImpl.TABLE_NAME + ", colonna "
+ ", colonna " + column); + column);
} }
} }
@ -102,6 +102,11 @@ public class DatabaseUpdateAction extends SimpleAction {
s.executeUpdate("ALTER TABLE " + FineLavoriImpl.TABLE_NAME + " DROP COLUMN oldDettPraticaId"); s.executeUpdate("ALTER TABLE " + FineLavoriImpl.TABLE_NAME + " DROP COLUMN oldDettPraticaId");
} }
if (!hasColumn(FineLavoriImpl.TABLE_NAME, "richiestaAttestazione")) {
_log.info("Aggiornamento a v3 di " + FineLavoriImpl.TABLE_NAME);
s.executeUpdate("ALTER TABLE " + FineLavoriImpl.TABLE_NAME + " ADD COLUMN richiestaAttestazione BOOL");
}
if (hasColumn(CollaudoImpl.TABLE_NAME, "oldDettPraticaId")) { if (hasColumn(CollaudoImpl.TABLE_NAME, "oldDettPraticaId")) {
_log.info("Aggiornamento a v2 di " + CollaudoImpl.TABLE_NAME); _log.info("Aggiornamento a v2 di " + CollaudoImpl.TABLE_NAME);
s.executeUpdate("ALTER TABLE " + CollaudoImpl.TABLE_NAME + " DROP COLUMN oldDettPraticaId"); s.executeUpdate("ALTER TABLE " + CollaudoImpl.TABLE_NAME + " DROP COLUMN oldDettPraticaId");
@ -119,14 +124,12 @@ public class DatabaseUpdateAction extends SimpleAction {
if (!hasColumn(AsseverazioneImpl.TABLE_NAME, "dichiarazioni")) { if (!hasColumn(AsseverazioneImpl.TABLE_NAME, "dichiarazioni")) {
_log.info("Aggiornamento a v2 di " + AsseverazioneImpl.TABLE_NAME); _log.info("Aggiornamento a v2 di " + AsseverazioneImpl.TABLE_NAME);
s.executeUpdate("ALTER TABLE " + AsseverazioneImpl.TABLE_NAME s.executeUpdate("ALTER TABLE " + AsseverazioneImpl.TABLE_NAME + " ADD COLUMN dichiarazioni TEXT NULL");
+ " ADD COLUMN dichiarazioni TEXT NULL");
} }
if (!hasColumn(DelegaImpl.TABLE_NAME, "dichiarazioni")) { if (!hasColumn(DelegaImpl.TABLE_NAME, "dichiarazioni")) {
_log.info("Aggiornamento a v2 di " + DelegaImpl.TABLE_NAME); _log.info("Aggiornamento a v2 di " + DelegaImpl.TABLE_NAME);
s.executeUpdate("ALTER TABLE " + DelegaImpl.TABLE_NAME s.executeUpdate("ALTER TABLE " + DelegaImpl.TABLE_NAME + " ADD COLUMN dichiarazioni TEXT NULL");
+ " ADD COLUMN dichiarazioni TEXT NULL");
} }
if (!hasColumn(IntPraticaImpl.TABLE_NAME, "inLavorazioneSue")) { if (!hasColumn(IntPraticaImpl.TABLE_NAME, "inLavorazioneSue")) {
@ -134,7 +137,6 @@ public class DatabaseUpdateAction extends SimpleAction {
s.executeUpdate("ALTER TABLE " + IntPraticaImpl.TABLE_NAME + " ADD COLUMN inLavorazioneSue BOOL"); s.executeUpdate("ALTER TABLE " + IntPraticaImpl.TABLE_NAME + " ADD COLUMN inLavorazioneSue BOOL");
} }
if (!hasColumn(DettPraticaImpl.TABLE_NAME, "contestoPaesaggistico")) { if (!hasColumn(DettPraticaImpl.TABLE_NAME, "contestoPaesaggistico")) {
_log.info("Aggiornamento a v7 di " + IntPraticaImpl.TABLE_NAME); _log.info("Aggiornamento a v7 di " + IntPraticaImpl.TABLE_NAME);
s.executeUpdate("ALTER TABLE " + DettPraticaImpl.TABLE_NAME + " ADD COLUMN contestoPaesaggistico TEXT"); s.executeUpdate("ALTER TABLE " + DettPraticaImpl.TABLE_NAME + " ADD COLUMN contestoPaesaggistico TEXT");
@ -149,7 +151,6 @@ public class DatabaseUpdateAction extends SimpleAction {
_log.info("Aggiornamento a v7 di " + IntPraticaImpl.TABLE_NAME); _log.info("Aggiornamento a v7 di " + IntPraticaImpl.TABLE_NAME);
s.executeUpdate("ALTER TABLE " + DettPraticaImpl.TABLE_NAME + " ADD COLUMN vincoli TEXT"); s.executeUpdate("ALTER TABLE " + DettPraticaImpl.TABLE_NAME + " ADD COLUMN vincoli TEXT");
} }
} catch (SQLException e) { } catch (SQLException e) {
_log.error("Errore di accesso al database: ", e); _log.error("Errore di accesso al database: ", e);
throw new ActionException(e); throw new ActionException(e);
@ -165,10 +166,10 @@ public class DatabaseUpdateAction extends SimpleAction {
} }
private boolean hasColumn(String table, String column) { private boolean hasColumn(String table, String column) {
boolean result = true; boolean result = true;
ResultSet rs = null;
try { try {
rs = s.executeQuery("SELECT " + column + " FROM " + table + " WHERE false"); ResultSet rs = s.executeQuery("SELECT " + column + " FROM " + table + " WHERE false");
rs.getMetaData().getColumnName(1); rs.getMetaData().getColumnName(1);
DataAccess.cleanUp(rs); DataAccess.cleanUp(rs);
} catch (SQLException e) { } catch (SQLException e) {

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

@ -38,7 +38,7 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
Externalizable { Externalizable {
@Override @Override
public String toString() { public String toString() {
StringBundler sb = new StringBundler(53); StringBundler sb = new StringBundler(55);
sb.append("{uuid="); sb.append("{uuid=");
sb.append(uuid); sb.append(uuid);
@ -92,6 +92,8 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
sb.append(mezzoPagamento); sb.append(mezzoPagamento);
sb.append(", importoBolli="); sb.append(", importoBolli=");
sb.append(importoBolli); sb.append(importoBolli);
sb.append(", richiestaAttestazione=");
sb.append(richiestaAttestazione);
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
@ -216,6 +218,8 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
fineLavoriImpl.setImportoBolli(importoBolli); fineLavoriImpl.setImportoBolli(importoBolli);
} }
fineLavoriImpl.setRichiestaAttestazione(richiestaAttestazione);
fineLavoriImpl.resetOriginalValues(); fineLavoriImpl.resetOriginalValues();
return fineLavoriImpl; return fineLavoriImpl;
@ -249,6 +253,7 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
causalePagamento = objectInput.readUTF(); causalePagamento = objectInput.readUTF();
mezzoPagamento = objectInput.readUTF(); mezzoPagamento = objectInput.readUTF();
importoBolli = objectInput.readUTF(); importoBolli = objectInput.readUTF();
richiestaAttestazione = objectInput.readBoolean();
} }
@Override @Override
@ -338,6 +343,8 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
else { else {
objectOutput.writeUTF(importoBolli); objectOutput.writeUTF(importoBolli);
} }
objectOutput.writeBoolean(richiestaAttestazione);
} }
public String uuid; public String uuid;
@ -366,4 +373,5 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
public String causalePagamento; public String causalePagamento;
public String mezzoPagamento; public String mezzoPagamento;
public String importoBolli; public String importoBolli;
public boolean richiestaAttestazione;
} }

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

@ -92,9 +92,10 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
{ "codicePagamento", Types.VARCHAR }, { "codicePagamento", Types.VARCHAR },
{ "causalePagamento", Types.VARCHAR }, { "causalePagamento", Types.VARCHAR },
{ "mezzoPagamento", Types.VARCHAR }, { "mezzoPagamento", Types.VARCHAR },
{ "importoBolli", Types.VARCHAR } { "importoBolli", Types.VARCHAR },
{ "richiestaAttestazione", Types.BOOLEAN }
}; };
public static final String TABLE_SQL_CREATE = "create table portos_bo_FineLavori (uuid_ VARCHAR(75) null,fineLavoriId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,protocollo VARCHAR(75) null,dtProtocollo DATE null,parziale BOOLEAN,completata BOOLEAN,gestita BOOLEAN,numero LONG,codiceFiscaleDelegato VARCHAR(75) null,dataEffettuazione DATE null,dataFineLavori DATE null,normEsenteBollo BOOLEAN,normEsenteCollaudo BOOLEAN,comunicazioneDirettoreLavori STRING null,pagamentoId LONG,codicePagamento VARCHAR(75) null,causalePagamento VARCHAR(75) null,mezzoPagamento VARCHAR(75) null,importoBolli VARCHAR(75) null)"; public static final String TABLE_SQL_CREATE = "create table portos_bo_FineLavori (uuid_ VARCHAR(75) null,fineLavoriId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,protocollo VARCHAR(75) null,dtProtocollo DATE null,parziale BOOLEAN,completata BOOLEAN,gestita BOOLEAN,numero LONG,codiceFiscaleDelegato VARCHAR(75) null,dataEffettuazione DATE null,dataFineLavori DATE null,normEsenteBollo BOOLEAN,normEsenteCollaudo BOOLEAN,comunicazioneDirettoreLavori STRING null,pagamentoId LONG,codicePagamento VARCHAR(75) null,causalePagamento VARCHAR(75) null,mezzoPagamento VARCHAR(75) null,importoBolli VARCHAR(75) null,richiestaAttestazione BOOLEAN)";
public static final String TABLE_SQL_DROP = "drop table portos_bo_FineLavori"; public static final String TABLE_SQL_DROP = "drop table portos_bo_FineLavori";
public static final String ORDER_BY_JPQL = " ORDER BY fineLavori.fineLavoriId ASC"; public static final String ORDER_BY_JPQL = " ORDER BY fineLavori.fineLavoriId ASC";
public static final String ORDER_BY_SQL = " ORDER BY portos_bo_FineLavori.fineLavoriId ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_FineLavori.fineLavoriId ASC";
@ -159,6 +160,7 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
model.setCausalePagamento(soapModel.getCausalePagamento()); model.setCausalePagamento(soapModel.getCausalePagamento());
model.setMezzoPagamento(soapModel.getMezzoPagamento()); model.setMezzoPagamento(soapModel.getMezzoPagamento());
model.setImportoBolli(soapModel.getImportoBolli()); model.setImportoBolli(soapModel.getImportoBolli());
model.setRichiestaAttestazione(soapModel.getRichiestaAttestazione());
return model; return model;
} }
@ -250,6 +252,7 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
attributes.put("causalePagamento", getCausalePagamento()); attributes.put("causalePagamento", getCausalePagamento());
attributes.put("mezzoPagamento", getMezzoPagamento()); attributes.put("mezzoPagamento", getMezzoPagamento());
attributes.put("importoBolli", getImportoBolli()); attributes.put("importoBolli", getImportoBolli());
attributes.put("richiestaAttestazione", getRichiestaAttestazione());
return attributes; return attributes;
} }
@ -414,6 +417,13 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
if (importoBolli != null) { if (importoBolli != null) {
setImportoBolli(importoBolli); setImportoBolli(importoBolli);
} }
Boolean richiestaAttestazione = (Boolean)attributes.get(
"richiestaAttestazione");
if (richiestaAttestazione != null) {
setRichiestaAttestazione(richiestaAttestazione);
}
} }
@JSON @JSON
@ -871,6 +881,22 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
_importoBolli = importoBolli; _importoBolli = importoBolli;
} }
@JSON
@Override
public boolean getRichiestaAttestazione() {
return _richiestaAttestazione;
}
@Override
public boolean isRichiestaAttestazione() {
return _richiestaAttestazione;
}
@Override
public void setRichiestaAttestazione(boolean richiestaAttestazione) {
_richiestaAttestazione = richiestaAttestazione;
}
@Override @Override
public StagedModelType getStagedModelType() { public StagedModelType getStagedModelType() {
return new StagedModelType(PortalUtil.getClassNameId( return new StagedModelType(PortalUtil.getClassNameId(
@ -934,6 +960,7 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
fineLavoriImpl.setCausalePagamento(getCausalePagamento()); fineLavoriImpl.setCausalePagamento(getCausalePagamento());
fineLavoriImpl.setMezzoPagamento(getMezzoPagamento()); fineLavoriImpl.setMezzoPagamento(getMezzoPagamento());
fineLavoriImpl.setImportoBolli(getImportoBolli()); fineLavoriImpl.setImportoBolli(getImportoBolli());
fineLavoriImpl.setRichiestaAttestazione(getRichiestaAttestazione());
fineLavoriImpl.resetOriginalValues(); fineLavoriImpl.resetOriginalValues();
@ -1162,12 +1189,14 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
fineLavoriCacheModel.importoBolli = null; fineLavoriCacheModel.importoBolli = null;
} }
fineLavoriCacheModel.richiestaAttestazione = getRichiestaAttestazione();
return fineLavoriCacheModel; return fineLavoriCacheModel;
} }
@Override @Override
public String toString() { public String toString() {
StringBundler sb = new StringBundler(53); StringBundler sb = new StringBundler(55);
sb.append("{uuid="); sb.append("{uuid=");
sb.append(getUuid()); sb.append(getUuid());
@ -1221,6 +1250,8 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
sb.append(getMezzoPagamento()); sb.append(getMezzoPagamento());
sb.append(", importoBolli="); sb.append(", importoBolli=");
sb.append(getImportoBolli()); sb.append(getImportoBolli());
sb.append(", richiestaAttestazione=");
sb.append(getRichiestaAttestazione());
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
@ -1228,7 +1259,7 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
@Override @Override
public String toXmlString() { public String toXmlString() {
StringBundler sb = new StringBundler(82); StringBundler sb = new StringBundler(85);
sb.append("<model><model-name>"); sb.append("<model><model-name>");
sb.append("it.tref.liferay.portos.bo.model.FineLavori"); sb.append("it.tref.liferay.portos.bo.model.FineLavori");
@ -1338,6 +1369,10 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
"<column><column-name>importoBolli</column-name><column-value><![CDATA["); "<column><column-name>importoBolli</column-name><column-value><![CDATA[");
sb.append(getImportoBolli()); sb.append(getImportoBolli());
sb.append("]]></column-value></column>"); sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>richiestaAttestazione</column-name><column-value><![CDATA[");
sb.append(getRichiestaAttestazione());
sb.append("]]></column-value></column>");
sb.append("</model>"); sb.append("</model>");
@ -1388,6 +1423,7 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
private String _causalePagamento; private String _causalePagamento;
private String _mezzoPagamento; private String _mezzoPagamento;
private String _importoBolli; private String _importoBolli;
private boolean _richiestaAttestazione;
private long _columnBitmask; private long _columnBitmask;
private FineLavori _escapedModel; private FineLavori _escapedModel;
} }

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

@ -133,9 +133,11 @@ public class SchedulerPratiche implements MessageListener {
PrincipalThreadLocal.setName(user.getUserId()); PrincipalThreadLocal.setName(user.getUserId());
PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(user); PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(user);
PermissionThreadLocal.setPermissionChecker(permissionChecker); PermissionThreadLocal.setPermissionChecker(permissionChecker);
if (!fineLavori.isParziale() && fineLavori.isRichiestaAttestazione()) {
creaAvvisoVidimazione(fineLavori.getCompanyId(), fineLavori.getGroupId(), creaAvvisoVidimazione(fineLavori.getCompanyId(), fineLavori.getGroupId(),
fineLavori.getUserId(), fineLavori.getIntPraticaId(), fineLavori.getUserId(), fineLavori.getIntPraticaId(),
fineLavori.getFineLavoriId(), FineLavori.class.getName()); fineLavori.getFineLavoriId(), FineLavori.class.getName());
}
fineLavori.setGestita(true); fineLavori.setGestita(true);
FineLavoriLocalServiceUtil.updateFineLavori(fineLavori); FineLavoriLocalServiceUtil.updateFineLavori(fineLavori);
} catch (Exception e) { } catch (Exception e) {

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

@ -150,7 +150,8 @@ public class FineLavoriLocalServiceClpInvoker {
_methodParameterTypes186 = new String[] { _methodParameterTypes186 = new String[] {
"long", "long", "long", "boolean", "boolean", "java.util.Date", "long", "long", "long", "boolean", "boolean", "java.util.Date",
"java.lang.String", "boolean", "boolean", "java.lang.String" "java.lang.String", "boolean", "boolean", "java.lang.String",
"boolean"
}; };
_methodName187 = "getLastEditable"; _methodName187 = "getLastEditable";
@ -457,7 +458,8 @@ public class FineLavoriLocalServiceClpInvoker {
(java.util.Date)arguments[5], (java.lang.String)arguments[6], (java.util.Date)arguments[5], (java.lang.String)arguments[6],
((Boolean)arguments[7]).booleanValue(), ((Boolean)arguments[7]).booleanValue(),
((Boolean)arguments[8]).booleanValue(), ((Boolean)arguments[8]).booleanValue(),
(java.lang.String)arguments[9]); (java.lang.String)arguments[9],
((Boolean)arguments[10]).booleanValue());
} }
if (_methodName187.equals(name) && if (_methodName187.equals(name) &&

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

@ -62,7 +62,8 @@ public class FineLavoriServiceClpInvoker {
_methodParameterTypes167 = new String[] { _methodParameterTypes167 = new String[] {
"long", "long", "long", "boolean", "boolean", "java.util.Date", "long", "long", "long", "boolean", "boolean", "java.util.Date",
"java.lang.String", "boolean", "boolean", "java.lang.String" "java.lang.String", "boolean", "boolean", "java.lang.String",
"boolean"
}; };
_methodName168 = "getLastEditable"; _methodName168 = "getLastEditable";
@ -168,7 +169,8 @@ public class FineLavoriServiceClpInvoker {
(java.util.Date)arguments[5], (java.lang.String)arguments[6], (java.util.Date)arguments[5], (java.lang.String)arguments[6],
((Boolean)arguments[7]).booleanValue(), ((Boolean)arguments[7]).booleanValue(),
((Boolean)arguments[8]).booleanValue(), ((Boolean)arguments[8]).booleanValue(),
(java.lang.String)arguments[9]); (java.lang.String)arguments[9],
((Boolean)arguments[10]).booleanValue());
} }
if (_methodName168.equals(name) && if (_methodName168.equals(name) &&

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

@ -590,6 +590,22 @@ public class SoggettoLocalServiceClpInvoker {
_methodName273 = "getSoggettiByIntPraticaId_DtRimozioneNull"; _methodName273 = "getSoggettiByIntPraticaId_DtRimozioneNull";
_methodParameterTypes273 = new String[] { "long" }; _methodParameterTypes273 = new String[] { "long" };
_methodName274 = "getDelegaPlaceholder";
_methodParameterTypes274 = new String[] { };
_methodName275 = "savePdfDelega";
_methodParameterTypes275 = new String[] { "javax.portlet.PortletRequest" };
_methodName276 = "getPdfDelega";
_methodParameterTypes276 = new String[] { "javax.portlet.PortletRequest" };
_methodName277 = "getAnteprimaDelega";
_methodParameterTypes277 = new String[] { "javax.portlet.PortletRequest" };
} }
public Object invokeMethod(String name, String[] parameterTypes, public Object invokeMethod(String name, String[] parameterTypes,
@ -1440,6 +1456,26 @@ public class SoggettoLocalServiceClpInvoker {
return SoggettoLocalServiceUtil.getSoggettiByIntPraticaId_DtRimozioneNull(((Long)arguments[0]).longValue()); return SoggettoLocalServiceUtil.getSoggettiByIntPraticaId_DtRimozioneNull(((Long)arguments[0]).longValue());
} }
if (_methodName274.equals(name) &&
Arrays.deepEquals(_methodParameterTypes274, parameterTypes)) {
return SoggettoLocalServiceUtil.getDelegaPlaceholder();
}
if (_methodName275.equals(name) &&
Arrays.deepEquals(_methodParameterTypes275, parameterTypes)) {
return SoggettoLocalServiceUtil.savePdfDelega((javax.portlet.PortletRequest)arguments[0]);
}
if (_methodName276.equals(name) &&
Arrays.deepEquals(_methodParameterTypes276, parameterTypes)) {
return SoggettoLocalServiceUtil.getPdfDelega((javax.portlet.PortletRequest)arguments[0]);
}
if (_methodName277.equals(name) &&
Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) {
return SoggettoLocalServiceUtil.getAnteprimaDelega((javax.portlet.PortletRequest)arguments[0]);
}
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
} }
@ -1645,4 +1681,12 @@ public class SoggettoLocalServiceClpInvoker {
private String[] _methodParameterTypes272; private String[] _methodParameterTypes272;
private String _methodName273; private String _methodName273;
private String[] _methodParameterTypes273; private String[] _methodParameterTypes273;
private String _methodName274;
private String[] _methodParameterTypes274;
private String _methodName275;
private String[] _methodParameterTypes275;
private String _methodName276;
private String[] _methodParameterTypes276;
private String _methodName277;
private String[] _methodParameterTypes277;
} }

7
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/FineLavoriServiceSoap.java

@ -144,13 +144,14 @@ public class FineLavoriServiceSoap {
boolean completata, java.util.Date dataFineLavori, boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo, java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori) java.lang.String comunicazioneDirettoreLavori,
throws RemoteException { boolean richiestaAttestazione) throws RemoteException {
try { try {
it.tref.liferay.portos.bo.model.FineLavori returnValue = FineLavoriServiceUtil.updateFineLavori(userId, it.tref.liferay.portos.bo.model.FineLavori returnValue = FineLavoriServiceUtil.updateFineLavori(userId,
fineLavoriId, intPraticaId, parziale, completata, fineLavoriId, intPraticaId, parziale, completata,
dataFineLavori, codiceFiscaleDelegato, normEsenteBollo, dataFineLavori, codiceFiscaleDelegato, normEsenteBollo,
normEsenteCollaudo, comunicazioneDirettoreLavori); normEsenteCollaudo, comunicazioneDirettoreLavori,
richiestaAttestazione);
return it.tref.liferay.portos.bo.model.FineLavoriSoap.toSoapModel(returnValue); return it.tref.liferay.portos.bo.model.FineLavoriSoap.toSoapModel(returnValue);
} }

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

@ -399,7 +399,8 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
} }
@Override @Override
public void aggiornaStatoPerRichiestaIntegrazione(long controlloPraticaId, Map<String, Serializable> workflowContext) public void
aggiornaStatoPerRichiestaIntegrazione(long controlloPraticaId, Map<String, Serializable> workflowContext)
throws PortalException, SystemException { throws PortalException, SystemException {
ControlloPratica controlloPratica = getControlloPratica(controlloPraticaId); ControlloPratica controlloPratica = getControlloPratica(controlloPraticaId);

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

@ -132,8 +132,8 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
@Indexable(type = IndexableType.REINDEX) @Indexable(type = IndexableType.REINDEX)
public FineLavori updateFineLavori(long userId, long fineLavoriId, long intPraticaId, boolean parziale, public FineLavori updateFineLavori(long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, Date dataFineLavori, String codiceFiscaleDelegato, boolean normEsenteBollo, boolean completata, Date dataFineLavori, String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo, String comunicazioneDirettoreLavori) throws NoSuchFineLavoriException, boolean normEsenteCollaudo, String comunicazioneDirettoreLavori, boolean richiestaAttestazione)
SystemException { throws NoSuchFineLavoriException, SystemException {
FineLavori fineLavori = fineLavoriPersistence.findByPrimaryKey(fineLavoriId); FineLavori fineLavori = fineLavoriPersistence.findByPrimaryKey(fineLavoriId);
fineLavori.setParziale(parziale); fineLavori.setParziale(parziale);
@ -143,6 +143,7 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
fineLavori.setNormEsenteBollo(normEsenteBollo); fineLavori.setNormEsenteBollo(normEsenteBollo);
fineLavori.setNormEsenteCollaudo(normEsenteCollaudo); fineLavori.setNormEsenteCollaudo(normEsenteCollaudo);
fineLavori.setComunicazioneDirettoreLavori(comunicazioneDirettoreLavori); fineLavori.setComunicazioneDirettoreLavori(comunicazioneDirettoreLavori);
fineLavori.setRichiestaAttestazione(richiestaAttestazione);
fineLavori = fineLavoriPersistence.update(fineLavori); fineLavori = fineLavoriPersistence.update(fineLavori);
return fineLavori; return fineLavori;
} }

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

@ -73,13 +73,14 @@ public class FineLavoriServiceImpl extends FineLavoriServiceBaseImpl {
@Override @Override
public FineLavori updateFineLavori(long userId, long fineLavoriId, long intPraticaId, boolean parziale, public FineLavori updateFineLavori(long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, Date dataFineLavori, String codiceFiscaleDelegato, boolean normEsenteBollo, boolean completata, Date dataFineLavori, String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo, String comunicazioneDirettoreLavori) throws PortalException, SystemException { boolean normEsenteCollaudo, String comunicazioneDirettoreLavori, boolean richiestaAttestazione)
throws PortalException, SystemException {
FineLavori fineLavori = getFineLavori(fineLavoriId); FineLavori fineLavori = getFineLavori(fineLavoriId);
if (fineLavori.getUserId() == userId) { if (fineLavori.getUserId() == userId) {
fineLavori = fineLavoriLocalService.updateFineLavori(userId, fineLavoriId, intPraticaId, parziale, fineLavori = fineLavoriLocalService.updateFineLavori(userId, fineLavoriId, intPraticaId, parziale,
completata, dataFineLavori, codiceFiscaleDelegato, normEsenteBollo, normEsenteCollaudo, completata, dataFineLavori, codiceFiscaleDelegato, normEsenteBollo, normEsenteCollaudo,
comunicazioneDirettoreLavori); comunicazioneDirettoreLavori, richiestaAttestazione);
} }
return fineLavori; return fineLavori;
} }

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

@ -212,7 +212,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
try { try {
lista = intPraticaPersistence.findWithDynamicQuery(dq); lista = intPraticaPersistence.findWithDynamicQuery(dq);
} catch (SystemException e) { } catch (SystemException e) {
_log.error("Errore durante la selezione di mappe sorteggiabili.", e); _log.error("Errore durante la selezione di pratiche sorteggiabili.", e);
} }
HashMap<Long, String> territoriProvince = new HashMap<Long, String>(); HashMap<Long, String> territoriProvince = new HashMap<Long, String>();
for (IntPratica pratica : lista) { for (IntPratica pratica : lista) {

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

@ -8,17 +8,45 @@
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
import it.tref.liferay.portos.bo.NoSuchProvinciaException;
import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.DocPratica;
import it.tref.liferay.portos.bo.model.Provincia;
import it.tref.liferay.portos.bo.model.Soggetto; import it.tref.liferay.portos.bo.model.Soggetto;
import it.tref.liferay.portos.bo.service.base.SoggettoLocalServiceBaseImpl; import it.tref.liferay.portos.bo.service.base.SoggettoLocalServiceBaseImpl;
import it.tref.liferay.portos.bo.shared.util.DocumentiPraticaUtil; import it.tref.liferay.portos.bo.shared.util.DocumentiPraticaUtil;
import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil;
import it.tref.liferay.portos.bo.util.SoggettiUtil; import it.tref.liferay.portos.bo.util.SoggettiUtil;
import it.tref.liferay.portos.bo.util.WorkflowConstants; import it.tref.liferay.portos.bo.util.WorkflowConstants;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Locale;
import java.util.Scanner;
import javax.portlet.PortletRequest;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.PageSize;
import com.itextpdf.text.pdf.PdfWriter;
import com.itextpdf.tool.xml.Pipeline;
import com.itextpdf.tool.xml.XMLWorker;
import com.itextpdf.tool.xml.XMLWorkerHelper;
import com.itextpdf.tool.xml.html.TagProcessorFactory;
import com.itextpdf.tool.xml.html.Tags;
import com.itextpdf.tool.xml.parser.XMLParser;
import com.itextpdf.tool.xml.pipeline.css.CSSResolver;
import com.itextpdf.tool.xml.pipeline.css.CssResolverPipeline;
import com.itextpdf.tool.xml.pipeline.end.PdfWriterPipeline;
import com.itextpdf.tool.xml.pipeline.html.HtmlPipeline;
import com.itextpdf.tool.xml.pipeline.html.HtmlPipelineContext;
import com.liferay.portal.kernel.dao.orm.Disjunction; import com.liferay.portal.kernel.dao.orm.Disjunction;
import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.dao.orm.OrderFactoryUtil; import com.liferay.portal.kernel.dao.orm.OrderFactoryUtil;
@ -26,13 +54,22 @@ import com.liferay.portal.kernel.dao.orm.ProjectionFactoryUtil;
import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
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.log.Log; 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.repository.model.FileEntry;
import com.liferay.portal.kernel.util.ContentTypes;
import com.liferay.portal.kernel.util.HtmlUtil;
import com.liferay.portal.kernel.util.OrderByComparator; import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.ParamUtil;
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;
import com.liferay.portal.model.User; import com.liferay.portal.model.User;
import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.ServiceContextFactory;
import com.liferay.portlet.documentlibrary.model.DLFolder;
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil;
import com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil;
/** /**
* The implementation of the soggetto local service. * The implementation of the soggetto local service.
@ -54,7 +91,8 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
* it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil} to access the soggetto local service. * it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil} to access the soggetto local service.
*/ */
public static final Log _log = LogFactoryUtil.getLog(SoggettoLocalServiceImpl.class); private static final Log _log = LogFactoryUtil.getLog(SoggettoLocalServiceImpl.class);
private static final SimpleDateFormat SDF = new SimpleDateFormat("dd/MM/yyyy");
@Override @Override
public Soggetto addSoggetto(long userId, long dettPraticaId, long intPraticaId, String nome, String cognome, public Soggetto addSoggetto(long userId, long dettPraticaId, long intPraticaId, String nome, String cognome,
@ -329,7 +367,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
Soggetto ret = super.deleteSoggetto(soggetto); Soggetto ret = super.deleteSoggetto(soggetto);
long intPraticaId = soggetto.getIntPraticaId(); long intPraticaId = soggetto.getIntPraticaId();
long idSoggetto = soggetto.getSoggettoId(); long idSoggetto = soggetto.getSoggettoId();
List<Soggetto> soggettiIntPratica = soggettoLocalService.findByIntPratica(intPraticaId); List<Soggetto> soggettiIntPratica = findByIntPratica(intPraticaId);
for (Soggetto sgt : soggettiIntPratica) { for (Soggetto sgt : soggettiIntPratica) {
long sostituitoDa = sgt.getSostituitoDa(); long sostituitoDa = sgt.getSostituitoDa();
if (Validator.isNotNull(sostituitoDa) && sostituitoDa > 0 && idSoggetto == sostituitoDa) { if (Validator.isNotNull(sostituitoDa) && sostituitoDa > 0 && idSoggetto == sostituitoDa) {
@ -1117,7 +1155,8 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
} }
@Override @Override
public int countByUserId_CodiceFiscale_TipologiaSoggetto(long userId, String codiceFiscale, String tipologiaSoggetto) public int
countByUserId_CodiceFiscale_TipologiaSoggetto(long userId, String codiceFiscale, String tipologiaSoggetto)
throws SystemException { throws SystemException {
return soggettoPersistence.countByUserId_CodiceFiscale_TipologiaSoggetto(userId, codiceFiscale, return soggettoPersistence.countByUserId_CodiceFiscale_TipologiaSoggetto(userId, codiceFiscale,
@ -1128,7 +1167,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
public List<Long> findIntPraticaBySoggettoId(long soggettoId) throws PortalException, SystemException { public List<Long> findIntPraticaBySoggettoId(long soggettoId) throws PortalException, SystemException {
User user = userLocalService.getUser(soggettoId); User user = userLocalService.getUser(soggettoId);
DynamicQuery dynamicQuerySoggetti = soggettoLocalService.dynamicQuery(); DynamicQuery dynamicQuerySoggetti = dynamicQuery();
dynamicQuerySoggetti.add(RestrictionsFactoryUtil.ilike("codiceFiscale", user.getScreenName())); dynamicQuerySoggetti.add(RestrictionsFactoryUtil.ilike("codiceFiscale", user.getScreenName()));
dynamicQuerySoggetti.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil dynamicQuerySoggetti.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil
.property("intPraticaId"))); .property("intPraticaId")));
@ -1182,7 +1221,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
if (!SoggettiUtil.hasSoggettoPrincipale(dettPraticaId, soggetto.getTipologiaSoggetto())) { if (!SoggettiUtil.hasSoggettoPrincipale(dettPraticaId, soggetto.getTipologiaSoggetto())) {
updatePrincipale(dettPraticaId, soggetto.getCodiceFiscale(), soggetto.getTipologiaSoggetto()); updatePrincipale(dettPraticaId, soggetto.getCodiceFiscale(), soggetto.getTipologiaSoggetto());
} }
return soggettoLocalService.updateSoggetto(soggetto); return updateSoggetto(soggetto);
} }
@Override @Override
@ -1195,7 +1234,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
if (SoggettiUtil.isSoggettoPrincipale(soggetto.getSoggettoId(), dettPraticaIdRimozione)) { if (SoggettiUtil.isSoggettoPrincipale(soggetto.getSoggettoId(), dettPraticaIdRimozione)) {
updatePrincipale(dettPraticaIdRimozione, StringPool.BLANK, soggetto.getTipologiaSoggetto()); updatePrincipale(dettPraticaIdRimozione, StringPool.BLANK, soggetto.getTipologiaSoggetto());
} }
return soggettoLocalService.updateSoggetto(soggetto); return updateSoggetto(soggetto);
} }
@Override @Override
@ -1204,7 +1243,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
Soggetto soggetto = invalidaSoggetto(soggettoId, dettPraticaIdRimozione); Soggetto soggetto = invalidaSoggetto(soggettoId, dettPraticaIdRimozione);
soggetto.setSostituitoDa(sostituitoDa); soggetto.setSostituitoDa(sostituitoDa);
return soggettoLocalService.updateSoggetto(soggetto); return updateSoggetto(soggetto);
} }
@Override @Override
@ -1230,7 +1269,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
if (!SoggettiUtil.hasSoggettoPrincipale(soggetto.getDettPraticaId(), soggetto.getTipologiaSoggetto())) { if (!SoggettiUtil.hasSoggettoPrincipale(soggetto.getDettPraticaId(), soggetto.getTipologiaSoggetto())) {
updatePrincipale(soggetto.getDettPraticaId(), soggetto.getCodiceFiscale(), soggetto.getTipologiaSoggetto()); updatePrincipale(soggetto.getDettPraticaId(), soggetto.getCodiceFiscale(), soggetto.getTipologiaSoggetto());
} }
soggetto = soggettoLocalService.updateSoggetto(soggetto); soggetto = updateSoggetto(soggetto);
return soggetto; return soggetto;
} }
@ -1238,9 +1277,203 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
@Override @Override
public List<Soggetto> getSoggettiByIntPraticaId_DtRimozioneNull(long intPraticaId) throws SystemException { public List<Soggetto> getSoggettiByIntPraticaId_DtRimozioneNull(long intPraticaId) throws SystemException {
DynamicQuery dynamicQuery = soggettoLocalService.dynamicQuery(); DynamicQuery dynamicQuery = dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtDataRimozione")); dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtDataRimozione"));
return soggettoLocalService.dynamicQuery(dynamicQuery); return dynamicQuery(dynamicQuery);
}
@Override
public String getDelegaPlaceholder() {
return "__________________________________________________";
}
@Override
public long savePdfDelega(PortletRequest request) throws DocumentException, PortalException, SystemException,
IOException {
ServiceContext serviceContext = ServiceContextFactory.getInstance(request);
byte[] pdf = getPdfDelega(request);
DLFolder folder = DLFolderLocalServiceUtil.getFolder(serviceContext.getThemeDisplay().getCompanyGroupId(), 0L,
"Allegati");
Soggetto committente = fetchSoggetto(ParamUtil.getLong(request, "committenteId"));
String name = "Delega_" + committente.getDescrizioneCompleta().replace(' ', '_') + (new Date()).getTime()
+ ".pdf";
FileEntry entry = DLAppLocalServiceUtil.addFileEntry(serviceContext.getUserId(), folder.getRepositoryId(),
folder.getFolderId(), name, ContentTypes.APPLICATION_PDF, name, name, StringPool.BLANK, pdf,
serviceContext);
return entry.getFileEntryId();
}
@Override
public byte[] getPdfDelega(PortletRequest request) throws DocumentException, IOException, SystemException {
InputStream is = getClass().getClassLoader().getResourceAsStream("/resource/asseverazioni/delegawrapper.html");
Scanner scanner = new Scanner(is);
StringBuffer buffer = new StringBuffer();
while (scanner.hasNext()) {
buffer.append(scanner.nextLine());
}
scanner.close();
is.close();
String html = buffer.toString().replace("{{html}}", getAnteprimaDelega(request));
ByteArrayOutputStream os = new ByteArrayOutputStream();
Document pdf = new Document(PageSize.A4);
PdfWriter writer = PdfWriter.getInstance(pdf, os);
writer.setPdfVersion(PdfWriter.VERSION_1_7);
pdf.open();
TagProcessorFactory factory = Tags.getHtmlTagProcessorFactory();
HtmlPipelineContext context = new HtmlPipelineContext(null);
context.setTagFactory(factory);
CSSResolver resolver = XMLWorkerHelper.getInstance().getDefaultCssResolver(true);
Pipeline<?> pipeline = new CssResolverPipeline(resolver, new HtmlPipeline(context, new PdfWriterPipeline(pdf,
writer)));
XMLWorker worker = new XMLWorker(pipeline, true);
XMLParser parser = new XMLParser(worker);
parser.parse(new StringReader(html));
pdf.close();
return os.toByteArray();
}
@Override
public String getAnteprimaDelega(PortletRequest request) throws IOException, SystemException {
long committenteId = ParamUtil.getLong(request, "committenteId");
Soggetto committente = fetchSoggetto(committenteId);
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
DettPratica dettPratica = dettPraticaLocalService.fetchDettPratica(dettPraticaId);
Soggetto titolare = getValidByIntPratica_CodiceFiscale(dettPratica.getIntPraticaId(),
dettPratica.getCodiceFiscaleDelegatoCommittente()).get(0);
InputStream input = getClass().getClassLoader().getResourceAsStream("/resource/asseverazioni/delega.html");
if (Validator.isNull(input)) {
return null;
}
Scanner scanner = new Scanner(input);
StringBuffer buffer = new StringBuffer();
while (scanner.hasNext()) {
buffer.append(scanner.nextLine());
}
scanner.close();
input.close();
String nome;
String comuneNascita;
String dataNascita;
Comune comune;
String residenzaCommittente;
String via;
String civico;
if (Validator.isNull(committente.getDenominazione())) {
nome = HtmlUtil.escape(committente.getNome() + ' ' + committente.getCognome());
comuneNascita = HtmlUtil.escape(committente.getComuneNascita() + " (" + committente.getProvinciaNascita()
+ ')');
dataNascita = SDF.format(committente.getDataNascita());
comune = comuneLocalService.fetchComune(Long.parseLong(committente.getComune()));
via = HtmlUtil.escape(committente.getVia());
civico = HtmlUtil.escape(committente.getNumeroCivico());
} else {
nome = HtmlUtil.escape(committente.getLegaleRap());
comuneNascita = HtmlUtil.escape(committente.getComuneNascitaRap() + " ("
+ committente.getProvinciaNascitaRap() + ')');
dataNascita = SDF.format(committente.getDataNascitaRap());
comune = comuneLocalService.fetchComune(Long.parseLong(committente.getComuneRap()));
via = HtmlUtil.escape(committente.getViaRap());
civico = HtmlUtil.escape(committente.getNumeroCivicoRap());
}
try {
Provincia provincia = provinciaLocalService.findByC_C(comune.getCompanyId(), comune.getCodiceProvincia());
residenzaCommittente = comune.getDenominazione() + " (" + provincia.getSigla() + ')';
} catch (NoSuchProvinciaException e) {
residenzaCommittente = comune.getDenominazione();
}
comune = comuneLocalService.fetchComune(Long.parseLong(titolare.getComune()));
String residenzaTitolare;
try {
Provincia provincia = provinciaLocalService.findByC_C(comune.getCompanyId(), comune.getCodiceProvincia());
residenzaTitolare = comune.getDenominazione() + " (" + provincia.getSigla() + ')';
} catch (NoSuchProvinciaException e) {
residenzaTitolare = comune.getDenominazione();
}
String diCommittente = Validator.isNull(ParamUtil.getString(request, "dicommittente")) ? getDelegaPlaceholder()
: HtmlUtil.escape(ParamUtil.getString(request, "dicommittente"));
String niCommittente = Validator.isNull(ParamUtil.getString(request, "nicommittente")) ? getDelegaPlaceholder()
: HtmlUtil.escape(ParamUtil.getString(request, "nicommittente"));
String riCommittente = Validator.isNull(ParamUtil.getString(request, "ricommittente")) ? getDelegaPlaceholder()
: HtmlUtil.escape(ParamUtil.getString(request, "ricommittente"));
String descrizioneLavori = Validator.isNull(dettPratica.getDescLongIntervento()) ? getDelegaPlaceholder()
: HtmlUtil.escape(dettPratica.getDescLongIntervento());
String delega = buffer
.toString()
.replace("{{nomecommittente}}", nome)
.replace("{{cfcommittente}}", committente.getCodiceFiscale().toUpperCase())
.replace("{{lncommittente}}", comuneNascita)
.replace("{{dncommittente}}", dataNascita)
.replace("{{lrcommittente}}", residenzaCommittente)
.replace("{{ircommittente}}", via)
.replace("{{nccommitttente}}", civico)
.replace("{{dicommittente}}", diCommittente)
.replace("{{nicommittente}}", niCommittente)
.replace("{{ricommittente}}", riCommittente)
.replace("{{nometitolare}}", HtmlUtil.escape(titolare.getNome() + ' ' + titolare.getCognome()))
.replace("{{cftitolare}}", titolare.getCodiceFiscale().toUpperCase())
.replace("{{lntitolare}}",
HtmlUtil.escape(titolare.getComuneNascita() + " (" + titolare.getProvinciaNascita() + ')'))
.replace("{{dntitolare}}", SDF.format(titolare.getDataNascita()))
.replace("{{lrtitolare}}", residenzaTitolare)
.replace("{{irtitolare}}", HtmlUtil.escape(titolare.getVia()))
.replace("{{nctitolare}}", HtmlUtil.escape(titolare.getNumeroCivico()))
.replace("{{descrizione}}", descrizioneLavori);
if (request.getParameterMap().containsKey("coniugio")) {
delega = delega.replaceAll("<coniugiooff>.*</coniugiooff>", StringPool.BLANK).replaceAll(
"<coniugioon>(.*)</coniugioon>", "$1");
boolean coniugio = ParamUtil.getBoolean(request, "coniugio");
if (coniugio) {
delega = delega
.replaceAll("<noconiugio>.*</noconiugio>", StringPool.BLANK)
.replaceAll("<siconiugio>(.*)</siconiugio>", "$1")
.replace(
"{{coniugio}}",
HtmlUtil.escape(ParamUtil.getString(request, "relazioni")
.replace(StringPool.RETURN, StringPool.BLANK)
.replace(StringPool.NEW_LINE, StringPool.COMMA_AND_SPACE)));
} else {
delega = delega.replaceAll("<siconiugio>.*</siconiugio>", StringPool.BLANK).replaceAll(
"<noconiugio>(.*)</noconiugio>", "$1");
}
} else {
delega = delega.replaceAll("<coniugioon>.*</coniugioon>", StringPool.BLANK).replaceAll(
"<coniugiooff>(.*)</coniugiooff>", "$1");
}
if (dettPratica.getNormSismaBonus()) {
delega = delega.replaceAll("<sismabonus>(.*?)</sismabonus>", "$1");
} else {
delega = delega.replaceAll("<sismabonus>.*?</sismabonus>", StringPool.BLANK);
}
StringBuilder professionisti = new StringBuilder();
for (Soggetto soggetto : findByIntPratica(dettPratica.getIntPraticaId())) {
if (!soggetto.isRimosso()) {
switch (soggetto.getTipologiaSoggetto()) {
case TipoSoggettoUtil.PROGETTISTA:
case TipoSoggettoUtil.GEOLOGO:
case TipoSoggettoUtil.DIRETTORE_LAVORI:
case TipoSoggettoUtil.COLLAUDATORE:
professionisti.append(LanguageUtil.get(Locale.ITALIAN,
"delega-soggetto-" + soggetto.getTipologiaSoggetto()));
if (Validator.isNotNull(soggetto.getAmbitoProfessione())) {
professionisti.append(' ');
if ("ambitoProf-altro".equalsIgnoreCase(soggetto.getAmbitoProfessione())) {
professionisti.append(soggetto.getAmbitoAttivita());
} else {
professionisti.append(soggetto.getAmbitoProfessione());
}
}
professionisti.append(": ").append(HtmlUtil.escape(soggetto.getNome())).append(' ')
.append(HtmlUtil.escape(soggetto.getCognome())).append(" (")
.append(HtmlUtil.escape(soggetto.getCodiceFiscale().toUpperCase())).append(")<br />");
}
}
}
delega = delega.replace("{{professionisti}}", professionisti);
return delega;
} }
} }

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java

@ -5954,6 +5954,7 @@ public class FineLavoriPersistenceImpl extends BasePersistenceImpl<FineLavori>
fineLavoriImpl.setCausalePagamento(fineLavori.getCausalePagamento()); fineLavoriImpl.setCausalePagamento(fineLavori.getCausalePagamento());
fineLavoriImpl.setMezzoPagamento(fineLavori.getMezzoPagamento()); fineLavoriImpl.setMezzoPagamento(fineLavori.getMezzoPagamento());
fineLavoriImpl.setImportoBolli(fineLavori.getImportoBolli()); fineLavoriImpl.setImportoBolli(fineLavori.getImportoBolli());
fineLavoriImpl.setRichiestaAttestazione(fineLavori.isRichiestaAttestazione());
return fineLavoriImpl; return fineLavoriImpl;
} }

83
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/delega.html

@ -0,0 +1,83 @@
<p>
DPR 380/2001, art. 93<br />
L.R. 1/2019, art. 36, c.1<br />
Legge 190/2012, art. 1, comma 9 lettera “e”<br />
<sismabonus>
L.R. 23/2021, art. 31 comma 5<br />
</sismabonus>
D. Lgs. 101/2018
</p>
<h1 class="text-center">DELEGA E AFFIDAMENTO INCARICHI PROFESSIONALI</h1>
<p>
Il sottoscritto <b>{{nomecommittente}}</b>, C.F. <b>{{cfcommittente}}</b>, nato a <b>{{lncommittente}}</b> il
<b>{{dncommittente}}</b> e residente in <b>{{lrcommittente}}</b> indirizzo <b>{{ircommittente}}</b>
<b>{{nccommitttente}}</b>, documento di identità <b>{{dicommittente}}</b> numero <b>{{nicommittente}}</b> rilasciato
da <b>{{ricommittente}}</b>, nella qualità di committente dei lavori,
</p>
<h1 class="text-center">DELEGA</h1>
<p>
l’intermediario <b>{{nometitolare}}</b> codice fiscale <b>{{cftitolare}}</b> nato a <b>{{lntitolare}}</b> il
<b>{{dntitolare}}</b> e residente in <b>{{lrtitolare}}</b> indirizzo <b>{{irtitolare}}</b><b>{{nctitolare}}</b>
alla trasmissione della denuncia prevista dagli artt. 65 e 93 del DPR 380/2001 per i lavori di
<b>{{descrizione}}</b> attraverso la piattaforma informatica “SISMICA” della Regione Sicilia
</p>
<p>
Il sottoscritto contestualmente dichiara:
</p>
<ul>
<li>
ai sensi dell'art. 36, comma 1, della L.R. n° 1 del 22.01.2019, di avere affidato la progettazione e
l’esecuzione dei lavori ai seguenti professionisti:<br />
{{professionisti}}
</li>
<li>
che il progetto strutturale esecutivo possiede i requisiti di completezza indicata nelle NTC 2018, con riguardo
anche alle indagini specialistiche ritenute necessarie alla realizzazione dell'opera;
</li>
<li>
ai sensi dell'art. 1, comma 9 lettera “e”, della legge n° 190/2012:<br />
<coniugiooff>
[&nbsp;] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del convivente, entro
il 2° grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla trattazione del
procedimento.<br />
[&nbsp;] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti
dipendenti dell'Ufficio del Genio Civile:<br />
________________________________________<br />
________________________________________
</coniugiooff>
<coniugioon>
<noconiugio>
di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del convivente, entro il 2°
grado, con i dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla trattazione del
procedimento.
</noconiugio>
<siconiugio>
di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti dipendenti
dell'Ufficio del Genio Civile: {{coniugio}}.
</siconiugio>
</coniugioon>
</li>
<sismabonus>
<li>
trattandosi di intervento da realizzare in regime di agevolazione fiscale ai sensi degli artt 119 e 121 del
D.L. n.34/2020, convertito con modificazioni dalla Legge n.77/2020, di essere debitore nei confronti dei
professionisti incaricati delle rispettive spettanze pattuite per contratto o per atto equipollente e di
assumersi l’impegno a corrispondere le spettanze dovute anche nel caso in cui la procedura si dovesse
interrompere per sua iniziativa, ai sensi e per gli effetti di cui al comma 5 dell’art. 31 della L.R. n.
23/2021;
</li>
</sismabonus>
<li>
di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le
modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti
di cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati
personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita.
</li>
</ul>
<p>
Si allega la fotocopia del documento d’identità sopra indicato.<br /><br />
</p>
<p>
Data ________________________________________
</p>
<div class="firma">Firma del delegante<br /><br />________________________________________</div>

29
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/delegawrapper.html

@ -0,0 +1,29 @@
<html>
<head>
<style>
.text-center {
text-align: center;
}
.text-right {
text-align: right;
}
.firma {
text-align: center;
width: 670px;
padding-left: 300px;
}
h1 {
font-size: 20px;
margin-bottom: 0;
}
li, p {
font-size: 14px;
margin: 0 0 4px 0;
line-height: 21px;
}
</style>
</head>
<body>
{{html}}
</body>
</html>

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=2809 build.number=2837
build.date=1652801248548 build.date=1658222378941
build.auto.upgrade=true build.auto.upgrade=true
## ##

1363
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java

File diff soppresso perché troppo grande Load Diff

103
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/SoggettiPraticaPortlet.java

@ -3,23 +3,30 @@ package it.tref.liferay.portos.fe.portlet;
import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.DocPratica;
import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.model.Provincia; import it.tref.liferay.portos.bo.model.Provincia;
import it.tref.liferay.portos.bo.model.Soggetto; import it.tref.liferay.portos.bo.model.Soggetto;
import it.tref.liferay.portos.bo.model.SoggettoSoap; import it.tref.liferay.portos.bo.model.SoggettoSoap;
import it.tref.liferay.portos.bo.model.Territorio;
import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil; import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaServiceUtil;
import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil; import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.SoggettoServiceUtil; import it.tref.liferay.portos.bo.service.SoggettoServiceUtil;
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.bean.FirmeBean; import it.tref.liferay.portos.bo.shared.bean.FirmeBean;
import it.tref.liferay.portos.bo.shared.util.FirmeUtil; import it.tref.liferay.portos.bo.shared.util.FirmeUtil;
import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil;
import it.tref.liferay.portos.bo.util.ValidazionePraticaUtil; import it.tref.liferay.portos.bo.util.ValidazionePraticaUtil;
import it.tref.liferay.portos.mailmanager.shared.messaging.util.MailManagerUtil;
import it.tref.liferay.portos.mailmanager.shared.model.FileAttachment;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Date; import java.util.Date;
@ -41,8 +48,10 @@ import com.liferay.portal.kernel.json.JSONSerializer;
import com.liferay.portal.kernel.log.Log; 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.repository.model.FileEntry; import com.liferay.portal.kernel.repository.model.FileEntry;
import com.liferay.portal.kernel.servlet.HttpHeaders;
import com.liferay.portal.kernel.servlet.SessionErrors; import com.liferay.portal.kernel.servlet.SessionErrors;
import com.liferay.portal.kernel.upload.UploadPortletRequest; import com.liferay.portal.kernel.upload.UploadPortletRequest;
import com.liferay.portal.kernel.util.ContentTypes;
import com.liferay.portal.kernel.util.DateFormatFactoryUtil; import com.liferay.portal.kernel.util.DateFormatFactoryUtil;
import com.liferay.portal.kernel.util.FileUtil; import com.liferay.portal.kernel.util.FileUtil;
import com.liferay.portal.kernel.util.HttpUtil; import com.liferay.portal.kernel.util.HttpUtil;
@ -335,16 +344,60 @@ public class SoggettiPraticaPortlet extends MVCPortlet {
} }
@Override @Override
public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, public void serveResource(ResourceRequest request, ResourceResponse response) throws IOException, PortletException {
PortletException {
String id = resourceRequest.getResourceID();
try { try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(resourceRequest); ServiceContext serviceContext = ServiceContextFactory.getInstance(request);
if ("compilaSoggetti".equals(id)) { long companyId = serviceContext.getCompanyId();
long userId = ParamUtil.getLong(resourceRequest, "userId", 0L); String id = request.getResourceID();
String codiceFiscale = ParamUtil.getString(resourceRequest, "codiceFiscale"); if ("inviaMailDelega".equals(id)) {
String tipologiaSoggetto = ParamUtil.getString(resourceRequest, "tipologiaSoggetto"); JSONObject result = JSONFactoryUtil.createJSONObject();
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(dettPraticaId);
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(dettPratica.getIntPraticaId());
Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.fetchComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.findByC_C(comune.getCompanyId(),
comune.getCodiceProvincia());
Soggetto committente = SoggettoLocalServiceUtil.fetchSoggetto(ParamUtil.getLong(request,
"committenteId"));
Soggetto titolare = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(
dettPratica.getIntPraticaId(), dettPratica.getCodiceFiscaleDelegatoCommittente()).get(0);
String[] to = { committente.getEmail() };
String[] cc = {};
String[] ccn = {};
JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
templateVariables.put("receiver", committente.getNome() + ' ' + committente.getCognome());
templateVariables.put("titolareDigitale", titolare.getNome() + ' ' + titolare.getCognome());
templateVariables.put("titolareDigitaleMail", titolare.getEmail());
templateVariables.put("intervento", dettPratica.getDescLongIntervento());
templateVariables.put("comune", comune.getDenominazione());
templateVariables.put("provincia", provincia.getProvincia());
List<FileAttachment> fileAttachments = new ArrayList<>();
FileAttachment fileAttachment = new FileAttachment();
fileAttachment.setFileEntryId(SoggettoLocalServiceUtil.savePdfDelega(request));
fileAttachment.generateFile();
fileAttachments.add(fileAttachment);
MailManagerUtil.sendMailByTemplatName(DettPratica.class.getName(), dettPraticaId,
"INVIO-DELEGA-COMMITTENTE", to, cc, ccn, templateVariables, fileAttachments, serviceContext);
result.put("message", "Email inviata con successo a " + committente.getEmail());
writeJSON(request, response, result);
} else if ("delegaPdf".equals(id)) {
byte[] pdf = SoggettoLocalServiceUtil.getPdfDelega(request);
response.setContentType(ContentTypes.APPLICATION_PDF);
Soggetto committente = SoggettoLocalServiceUtil.fetchSoggetto(ParamUtil.getLong(request,
"committenteId"));
response.addProperty(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"Delega_"
+ committente.getDescrizioneCompleta().replace(' ', '_') + ".pdf\"");
response.setContentLength(pdf.length);
OutputStream os = response.getPortletOutputStream();
os.write(pdf);
os.flush();
os.close();
} else if ("compilaSoggetti".equals(id)) {
long userId = ParamUtil.getLong(request, "userId", 0L);
String codiceFiscale = ParamUtil.getString(request, "codiceFiscale");
String tipologiaSoggetto = ParamUtil.getString(request, "tipologiaSoggetto");
JSONArray jsonSoggetti = JSONFactoryUtil.createJSONArray(); JSONArray jsonSoggetti = JSONFactoryUtil.createJSONArray();
if (Validator.isNotNull(userId) && Validator.isNotNull(codiceFiscale) if (Validator.isNotNull(userId) && Validator.isNotNull(codiceFiscale)
&& Validator.isNotNull(tipologiaSoggetto)) { && Validator.isNotNull(tipologiaSoggetto)) {
@ -364,35 +417,35 @@ public class SoggettiPraticaPortlet extends MVCPortlet {
jsonSoggetti.put(serialized); jsonSoggetti.put(serialized);
} }
} }
writeJSON(resourceRequest, resourceResponse, jsonSoggetti); writeJSON(request, response, jsonSoggetti);
} else if ("province".equals(id)) { } else if ("province".equals(id)) {
JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); JSONArray array = JSONFactoryUtil.createJSONArray();
List<Provincia> province = ProvinciaLocalServiceUtil.findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, List<Provincia> province = ProvinciaLocalServiceUtil.findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS,
OrderByComparatorFactoryUtil.create("portos_bo_Provincia", "provincia", true)); OrderByComparatorFactoryUtil.create("portos_bo_Provincia", "provincia", true));
for (Provincia provincia : province) { for (Provincia provincia : province) {
JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); JSONObject object = JSONFactoryUtil.createJSONObject();
jsonObject.put("provinciaId", provincia.getCodiceProvincia()); object.put("provinciaId", provincia.getCodiceProvincia());
jsonObject.put("descLong", provincia.getSigla() + "- " + provincia.getProvincia()); object.put("descLong", provincia.getSigla() + " - " + provincia.getProvincia());
jsonArray.put(jsonObject); array.put(object);
} }
writeJSON(resourceRequest, resourceResponse, jsonArray); writeJSON(request, response, array);
} else if ("comuni".equals(id)) { } else if ("comuni".equals(id)) {
String codiceProvincia = ParamUtil.getString(resourceRequest, "provinciaId"); String codiceProvincia = ParamUtil.getString(request, "provinciaId");
JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); JSONArray array = JSONFactoryUtil.createJSONArray();
if (Validator.isNotNull(codiceProvincia) && Validator.isNotNull(codiceProvincia)) { if (Validator.isNotNull(codiceProvincia) && Validator.isNotNull(codiceProvincia)) {
List<Comune> comuni = ComuneLocalServiceUtil.findByCompanyIdCodiceProvincia( List<Comune> comuni = ComuneLocalServiceUtil.findByCompanyIdCodiceProvincia(companyId,
serviceContext.getCompanyId(), codiceProvincia, QueryUtil.ALL_POS, QueryUtil.ALL_POS, codiceProvincia, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
OrderByComparatorFactoryUtil.create("portos_bo_Comune", "denominazione", true)); OrderByComparatorFactoryUtil.create("portos_bo_Comune", "denominazione", true));
for (Comune comune : comuni) { for (Comune comune : comuni) {
JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); JSONObject object = JSONFactoryUtil.createJSONObject();
jsonObject.put("comuneId", comune.getComuneId()); object.put("comuneId", comune.getComuneId());
jsonObject.put("descLong", comune.getDenominazione()); object.put("descLong", comune.getDenominazione());
jsonArray.put(jsonObject); array.put(object);
} }
} }
writeJSON(resourceRequest, resourceResponse, jsonArray); writeJSON(request, response, array);
} else { } else {
super.serveResource(resourceRequest, resourceResponse); super.serveResource(request, response);
} }
} catch (Exception e) { } catch (Exception e) {
_log.error(e, e); _log.error(e, e);

3
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/asseverazione_actions.jsp

@ -151,7 +151,8 @@ String random = StringUtil.randomId().toString();
String downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(), themeDisplay, "&download=true"); String downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(), themeDisplay, "&download=true");
%> %>
<span class="tooltip-info" title="Download"> <span class="tooltip-info" title="Download">
<liferay-ui:icon id='<%=renderResponse.getNamespace()+"download_base_"+asseverazione.getAsseverazioneId() %>' linkCssClass="btn btn-primary btn-action" iconCssClass="fa fa-download" url="<%=downloadUrl%>"/> <liferay-ui:icon id='<%=renderResponse.getNamespace()+"download_base_"+asseverazione.getAsseverazioneId() %>'
linkCssClass="btn btn-primary btn-action" iconCssClass="fa fa-download" url="<%=downloadUrl%>"/>
</span> </span>
</c:if> </c:if>

178
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_collaudo.jsp

@ -1,11 +1,9 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.util.AzioniPraticheUtil"%> <%@page import="it.tref.liferay.portos.bo.util.AzioniPraticheUtil"%>
<%@page import="com.liferay.portal.kernel.util.HttpUtil"%> <%@page import="com.liferay.portal.kernel.util.HttpUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.FineLavoriServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.FineLavoriServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.FineLavori"%> <%@page import="it.tref.liferay.portos.bo.model.FineLavori"%>
<%@page import="com.liferay.portal.kernel.servlet.ServletContextPool"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil"%>
@ -13,9 +11,7 @@
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%> <%@page import="it.tref.liferay.portos.bo.model.Soggetto"%>
<%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%> <%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Comune"%> <%@page import="it.tref.liferay.portos.bo.model.Comune"%>
@ -23,50 +19,38 @@
<%@page import="it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.TerritorioServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Territorio"%> <%@page import="it.tref.liferay.portos.bo.model.Territorio"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.IntPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%> <%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@ include file="/html/fascicolofe/init.jsp" %> <%@ include file="/html/fascicolofe/init.jsp" %>
<% <%
String backURL = ParamUtil.getString(request, "backURL"); String backURL = ParamUtil.getString(request, "backURL");
long collaudoId = ParamUtil.getLong(request, "collaudoId",0l); long collaudoId = ParamUtil.getLong(request, "collaudoId", 0L);
Collaudo collaudo = CollaudoLocalServiceUtil.fetchCollaudo(collaudoId); Collaudo collaudo = CollaudoLocalServiceUtil.fetchCollaudo(collaudoId);
if (Validator.isNull(collaudo)) { if (Validator.isNull(collaudo)) {
long intPraticaIdParam = ParamUtil.getLong(request, "intPraticaId"); long intPraticaIdParam = ParamUtil.getLong(request, "intPraticaId");
collaudo = CollaudoLocalServiceUtil.getLastEditable(intPraticaIdParam); collaudo = CollaudoLocalServiceUtil.getLastEditable(intPraticaIdParam);
collaudoId = collaudo.getCollaudoId(); collaudoId = collaudo.getCollaudoId();
} }
boolean openVerifyUrl = ParamUtil.getBoolean(request, "openVerifyUrl"); boolean openVerifyUrl = ParamUtil.getBoolean(request, "openVerifyUrl");
boolean showHistory = ParamUtil.getBoolean(request, "showHistory", true);
long intPraticaId = collaudo.getIntPraticaId(); long intPraticaId = collaudo.getIntPraticaId();
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId);
DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
if (dettPratica == null) { if (dettPratica == null) {
dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId); dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
} }
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
Soggetto collaudatore = null; Soggetto collaudatore = null;
List<Soggetto> collaudatori = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(intPraticaId, dettPratica.getCodiceFiscaleDelegatoCollaudo()); List<Soggetto> collaudatori = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(intPraticaId, dettPratica.getCodiceFiscaleDelegatoCollaudo());
if (!collaudatori.isEmpty()) { if (!collaudatori.isEmpty()) {
collaudatore = collaudatori.get(0); collaudatore = collaudatori.get(0);
} }
String formName = "fmCollaudo"; String formName = "fmCollaudo";
boolean disabledEditing = collaudo.getCompletata(); boolean disabledEditing = collaudo.getCompletata();
request.setAttribute("bean.collaudo", collaudo); request.setAttribute("bean.collaudo", collaudo);
%> %>
<liferay-portlet:actionURL name="saveCollaudo" var="saveCollaudoURL"> <liferay-portlet:actionURL name="saveCollaudo" var="saveCollaudoURL">
<liferay-portlet:param name="collaudoId" value="<%=String.valueOf(collaudo.getCollaudoId()) %>" /> <liferay-portlet:param name="collaudoId" value="<%=String.valueOf(collaudo.getCollaudoId()) %>" />
<liferay-portlet:param name="backURL" value="<%=backURL %>" /> <liferay-portlet:param name="backURL" value="<%=backURL %>" />
@ -77,10 +61,9 @@
<aui:model-context bean="<%= collaudo %>" model="<%=Collaudo.class %>"></aui:model-context> <aui:model-context bean="<%= collaudo %>" model="<%=Collaudo.class %>"></aui:model-context>
<aui:input type="hidden" name="bozza" /> <aui:input type="hidden" name="bozza" />
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-xs-9 col-sm-9 col-md-9 col-lg-9"> <div class="col-xs-9">
<% <%
String label = StringPool.BLANK; String label = StringPool.BLANK;
if (disabledEditing) { if (disabledEditing) {
@ -93,36 +76,23 @@
%> %>
<liferay-ui:header <liferay-ui:header
title='<%= LanguageUtil.get(pageContext, label) + " #" + dettPratica.getTitle() %>' title='<%= LanguageUtil.get(pageContext, label) + " #" + dettPratica.getTitle() %>'
localizeTitle="<%= false %>" localizeTitle="false"
backURL="<%= backURL %>" backURL="<%= backURL %>" />
/>
</div> </div>
<c:if test="<%= !disabledEditing %>"> <c:if test="<%= !disabledEditing %>">
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3"> <div class="col-xs-3">
<div class="pull-right"> <div class="pull-right">
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true"
cssClass="inline_toolbar">
<liferay-ui:icon <liferay-ui:icon iconCssClass="fa fa-save" message="salva-bozza"
iconCssClass="fa fa-save" url="javascript:saveCollaudo(true);" linkCssClass="btn" />
message="salva-bozza" <liferay-ui:icon iconCssClass="fa fa-check-square" message="salva-conferma"
url="javascript:saveCollaudo(true);" url="javascript:saveCollaudo(false);" linkCssClass="btn btn-primary" />
linkCssClass="btn"
/>
<liferay-ui:icon
iconCssClass="fa fa-check-square"
message="salva-conferma"
url="javascript:saveCollaudo(false);"
linkCssClass="btn btn-primary"
/>
</liferay-ui:icon-menu> </liferay-ui:icon-menu>
</div> </div>
</div> </div>
</c:if> </c:if>
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="module-group"> <div class="module-group">
@ -180,7 +150,9 @@
</div> </div>
<div class="col-sm-6 col-md-3"> <div class="col-sm-6 col-md-3">
<% <%
List<Soggetto> committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(intPraticaId, TipoSoggettoUtil.COMMITTENTE); List<Soggetto> committenti = SoggettoLocalServiceUtil
.findByIntPratica_TipologiaSoggetto(intPraticaId,
TipoSoggettoUtil.COMMITTENTE);
if (!committenti.isEmpty()) { if (!committenti.isEmpty()) {
%> %>
<ul> <ul>
@ -203,10 +175,9 @@
</div> </div>
<div class="col-sm-6 col-md-3"> <div class="col-sm-6 col-md-3">
<c:if test="<%= Validator.isNotNull(collaudatore) %>"> <c:if test="<%= Validator.isNotNull(collaudatore) %>">
<aui:input name="collaudatore" value="<%= collaudatore.getCodiceFiscale() %>" type="hidden" /> <aui:input name="collaudatore" value="<%= collaudatore.getCodiceFiscale() %>"
<strong> type="hidden" />
<%= collaudatore.getDescrizioneCompleta() %> <strong><%= collaudatore.getDescrizioneCompleta() %></strong>
</strong>
</c:if> </c:if>
</div> </div>
</div> </div>
@ -215,7 +186,8 @@
<%= LanguageUtil.get(pageContext, "col-tipo-dom") %> <%= LanguageUtil.get(pageContext, "col-tipo-dom") %>
</div> </div>
<div class="col-sm-6 col-md-3"> <div class="col-sm-6 col-md-3">
<strong><%= LanguageUtil.get(pageContext, "tipo-pratica-"+intPratica.getTipoPratica()) %></strong> <strong><%= LanguageUtil.get(pageContext, "tipo-pratica-"
+ intPratica.getTipoPratica()) %></strong>
</div> </div>
<div class="col-sm-6 col-md-3"> <div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-data-invio-fl") %> <%= LanguageUtil.get(pageContext, "col-data-invio-fl") %>
@ -236,11 +208,17 @@
</div> </div>
<div class="col-sm-6 col-md-3"> <div class="col-sm-6 col-md-3">
<aui:select label="" name="tipoCollaudo" disabled="<%= disabledEditing %>"> <aui:select label="" name="tipoCollaudo" disabled="<%= disabledEditing %>">
<c:if test="<%=AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_CO_PARZIALE)%>"> <c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPraticaId,
<aui:option label='Parziale' value="<%= true %>" selected="<%= Validator.isNotNull(collaudo) && collaudo.getParziale() %>"/> AzioniPraticheUtil.ACTION_CO_PARZIALE)%>">
<aui:option label='Parziale' value="true"
selected="<%= Validator.isNotNull(collaudo)
&& collaudo.getParziale() %>" />
</c:if> </c:if>
<c:if test="<%=AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_CO_TOTALE)%>"> <c:if test="<%=AzioniPraticheUtil.isAllowedAction(intPraticaId,
<aui:option label='Totale' value="<%= false %>" selected="<%= Validator.isNotNull(collaudo) && !collaudo.getParziale() %>"/> AzioniPraticheUtil.ACTION_CO_TOTALE)%>">
<aui:option label='Totale' value="false"
selected="<%= Validator.isNotNull(collaudo)
&& !collaudo.getParziale() %>" />
</c:if> </c:if>
</aui:select> </aui:select>
</div> </div>
@ -248,17 +226,20 @@
<%= LanguageUtil.get(pageContext, "col-data-fine") %> <%= LanguageUtil.get(pageContext, "col-data-fine") %>
</div> </div>
<div class="col-sm-6 col-md-3"> <div class="col-sm-6 col-md-3">
<liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/common/input_date_time.jsp"
servletContext="<%= application %>">
<liferay-util:param name="field" value="dataCollaudo" /> <liferay-util:param name="field" value="dataCollaudo" />
<liferay-util:param name="formName" value="<%= formName %>" /> <liferay-util:param name="formName" value="<%= formName %>" />
<liferay-util:param name="bean" value="bean.collaudo" /> <liferay-util:param name="bean" value="bean.collaudo" />
<liferay-util:param name="disabled" value="<%= String.valueOf(disabledEditing) %>" /> <liferay-util:param name="disabled"
value="<%= String.valueOf(disabledEditing) %>" />
</liferay-util:include> </liferay-util:include>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<aui:input name="normEsenteBollo" label="col-esente-bollo" disabled="<%= disabledEditing %>"/> <aui:input name="normEsenteBollo" label="col-esente-bollo"
disabled="<%= disabledEditing %>" />
</div> </div>
</div> </div>
<hr> <hr>
@ -266,7 +247,9 @@
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<c:if test="<%= Validator.isNotNull(collaudatore) %>"> <c:if test="<%= Validator.isNotNull(collaudatore) %>">
<p> <p>
<%= MessageFormat.format(LanguageUtil.get(pageContext, "col-dichiaraz-collaudatore"), collaudatore.getNome(), collaudatore.getCognome()) %> <%= MessageFormat.format(
LanguageUtil.get(pageContext, "col-dichiaraz-collaudatore"),
collaudatore.getNome(), collaudatore.getCognome()) %>
</p> </p>
</c:if> </c:if>
</div> </div>
@ -282,26 +265,21 @@
<liferay-ui:search-container emptyResultsMessage="no-varianti-integrazioni"> <liferay-ui:search-container emptyResultsMessage="no-varianti-integrazioni">
<liferay-ui:search-container-results <liferay-ui:search-container-results
results="<%= DettPraticaServiceUtil.findCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(new String[]{TipoIntegrazioneUtil.VARIANTE, TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE}))%>" results="<%= DettPraticaServiceUtil.findCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(new String[]{TipoIntegrazioneUtil.VARIANTE, TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE}))%>"
total="<%= DettPraticaServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(new String[]{TipoIntegrazioneUtil.VARIANTE, TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE})) %>" total="<%= DettPraticaServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(new String[]{TipoIntegrazioneUtil.VARIANTE, TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE})) %>" />
/>
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.DettPratica" <liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.DettPratica"
modelVar="dettPraticaExtra"> modelVar="dettPraticaExtra">
<% <%
String tipoIntegrazione = Validator.isNotNull(dettPraticaExtra.getTipoIntegrazione()) ? LanguageUtil.get(pageContext, "label-integrazione-"+dettPraticaExtra.getTipoIntegrazione()) : ""; String tipoIntegrazione = Validator.isNotNull(dettPraticaExtra.getTipoIntegrazione()) ? LanguageUtil.get(pageContext, "label-integrazione-"+dettPraticaExtra.getTipoIntegrazione()) : "";
%> %>
<liferay-ui:search-container-column-text name="Data" cssClass="text-nowrap" value='<%= Validator.isNotNull(dettPraticaExtra.getDataEffettuazione()) ? dateFormatDate.format(dettPraticaExtra.getDataEffettuazione()) : ""%>' /> <liferay-ui:search-container-column-text name="Data" cssClass="text-nowrap" value='<%= Validator.isNotNull(dettPraticaExtra.getDataEffettuazione()) ? dateFormatDate.format(dettPraticaExtra.getDataEffettuazione()) : ""%>' />
<liferay-ui:search-container-column-text name="n-progetto" cssClass="text-nowrap"> <liferay-ui:search-container-column-text name="n-progetto" cssClass="text-nowrap">
<%= intPratica.getTitle(locale, true) %> <%= intPratica.getTitle(locale, true) %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Tipo Pratica" cssClass="text-nowrap"> <liferay-ui:search-container-column-text name="Tipo Pratica" cssClass="text-nowrap">
<%= tipoIntegrazione %> <%= tipoIntegrazione %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" /> <liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container> </liferay-ui:search-container>
</div> </div>
</div> </div>
@ -310,21 +288,16 @@
<liferay-ui:search-container emptyResultsMessage="no-fine-lavori"> <liferay-ui:search-container emptyResultsMessage="no-fine-lavori">
<liferay-ui:search-container-results <liferay-ui:search-container-results
results='<%= FineLavoriLocalServiceUtil.findByIntPraticaId(intPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null) %>' results='<%= FineLavoriLocalServiceUtil.findByIntPraticaId(intPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null) %>'
total='<%= FineLavoriLocalServiceUtil.countByIntPraticaId(intPraticaId) %>' total='<%= FineLavoriLocalServiceUtil.countByIntPraticaId(intPraticaId) %>' />
/>
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.FineLavori" <liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.FineLavori"
modelVar="fineLavori"> modelVar="fineLavori">
<liferay-ui:search-container-column-text name="Data" cssClass="text-nowrap" value='<%= Validator.isNotNull(fineLavori.getDataFineLavori()) ? dateFormatDate.format(fineLavori.getDataFineLavori()) : ""%>' /> <liferay-ui:search-container-column-text name="Data" cssClass="text-nowrap" value='<%= Validator.isNotNull(fineLavori.getDataFineLavori()) ? dateFormatDate.format(fineLavori.getDataFineLavori()) : ""%>' />
<liferay-ui:search-container-column-text name="n-progetto" cssClass="text-nowrap"> <liferay-ui:search-container-column-text name="n-progetto" cssClass="text-nowrap">
<%= intPratica.getTitle(locale,true) %> <%= intPratica.getTitle(locale,true) %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Tipo Pratica" cssClass="text-nowrap" value='<%= "Fine Lavori "+(fineLavori.getParziale() ? "Parziale" : "Totale") %>'></liferay-ui:search-container-column-text> <liferay-ui:search-container-column-text name="Tipo Pratica" cssClass="text-nowrap" value='<%= "Fine Lavori "+(fineLavori.getParziale() ? "Parziale" : "Totale") %>'></liferay-ui:search-container-column-text>
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" /> <liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container> </liferay-ui:search-container>
</div> </div>
</div> </div>
@ -332,22 +305,23 @@
<div class="col-sm-12 col-md-12 container-collaudi__dettagli"> <div class="col-sm-12 col-md-12 container-collaudi__dettagli">
<liferay-ui:search-container emptyResultsMessage="no-collaudi-parziali"> <liferay-ui:search-container emptyResultsMessage="no-collaudi-parziali">
<liferay-ui:search-container-results <liferay-ui:search-container-results
results='<%= CollaudoLocalServiceUtil.findByIntPraticaId_Parziale_leCollaudoId(collaudoId, intPraticaId, true, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null) %>' results='<%= CollaudoLocalServiceUtil
total='<%= CollaudoLocalServiceUtil.countByIntPraticaId_Parziale_leCollaudoId(collaudoId, intPraticaId, true) %>' .findByIntPraticaId_Parziale_leCollaudoId(collaudoId,
/> intPraticaId, true, QueryUtil.ALL_POS,
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.Collaudo" QueryUtil.ALL_POS, null) %>'
modelVar="collaudoParziale"> total='<%= CollaudoLocalServiceUtil
.countByIntPraticaId_Parziale_leCollaudoId(collaudoId,
<liferay-ui:search-container-column-text name="Data" cssClass="text-nowrap" value='<%= Validator.isNotNull(collaudoParziale.getDataCollaudo()) ? dateFormatDate.format(collaudoParziale.getDataCollaudo()) : ""%>' /> intPraticaId, true) %>' />
<liferay-ui:search-container-row modelVar="collaudoParziale"
className="it.tref.liferay.portos.bo.model.Collaudo">
<liferay-ui:search-container-column-text name="Data"
cssClass="text-nowrap" value='<%= Validator.isNotNull(collaudoParziale.getDataCollaudo()) ? dateFormatDate.format(collaudoParziale.getDataCollaudo()) : ""%>' />
<liferay-ui:search-container-column-text name="n-progetto" cssClass="text-nowrap"> <liferay-ui:search-container-column-text name="n-progetto" cssClass="text-nowrap">
<%= intPratica.getTitle(locale, true) %> <%= intPratica.getTitle(locale, true) %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Tipo Pratica" cssClass="text-nowrap" value='<%= "Collaudo "+(collaudoParziale.getParziale() ? "Parziale" : "Totale") %>'></liferay-ui:search-container-column-text> <liferay-ui:search-container-column-text name="Tipo Pratica" cssClass="text-nowrap" value='<%= "Collaudo "+(collaudoParziale.getParziale() ? "Parziale" : "Totale") %>'></liferay-ui:search-container-column-text>
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" /> <liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container> </liferay-ui:search-container>
</div> </div>
</div> </div>
@ -359,10 +333,10 @@
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<aui:input name="noteCollaudo" label="" type="textarea" disabled="<%= disabledEditing %>"/> <aui:input name="noteCollaudo" label="" type="textarea"
disabled="<%= disabledEditing %>" />
</div> </div>
</div> </div>
</div> </div>
</liferay-ui:panel> </liferay-ui:panel>
</div> </div>
@ -383,11 +357,9 @@
var modalName = event._event.details[0].windowName; var modalName = event._event.details[0].windowName;
var modalWin = Liferay.Util.Window.getById(modalName); var modalWin = Liferay.Util.Window.getById(modalName);
modalWin.after('visibleChange', function (event) { modalWin.after('visibleChange', function (event) {
if(event.prevVal){ if (event.prevVal && allegatiEdit) {
if(allegatiEdit){
Liferay.Portlet.refresh("#p_p_id_<%= PortletKeys.ALLEGATI %>_INSTANCE_<%= comingFrom %>_"); Liferay.Portlet.refresh("#p_p_id_<%= PortletKeys.ALLEGATI %>_INSTANCE_<%= comingFrom %>_");
} }
}
}); });
modalWin.after('hide', function (event) { modalWin.after('hide', function (event) {
if (allegatiEdit) { if (allegatiEdit) {
@ -404,20 +376,17 @@
allegatiEdit = true; allegatiEdit = true;
}); });
Liferay.on('allegati-<%= comingFrom %>-ready', function (event) { Liferay.on('allegati-<%= comingFrom %>-ready', function (event) {
if(allegatiEdit){
allegatiEdit = false; allegatiEdit = false;
}
}); });
</aui:script> </aui:script>
<liferay-portlet:runtime portletName='<%= PortletKeys.ALLEGATI + "_INSTANCE_" + comingFrom %>'
<liferay-portlet:runtime portletName='<%=PortletKeys.ALLEGATI+"_INSTANCE_"+comingFrom %>' queryString='<%="&classPk="+collaudo.getCollaudoId()+"&className="+Collaudo.class.getName()+"&comingFrom="+comingFrom+"&disabled="+disabledEditing+"&inBO="+disabledEditing%>' ></liferay-portlet:runtime> queryString='<%= "&classPk=" + collaudo.getCollaudoId() + "&className=" + Collaudo.class.getName()
+ "&comingFrom=" + comingFrom + "&disabled=" + disabledEditing + "&inBO="
+ disabledEditing %>' />
</div> </div>
</div> </div>
</div> </div>
</aui:form> </aui:form>
<c:if test="<%= openVerifyUrl %>"> <c:if test="<%= openVerifyUrl %>">
<liferay-portlet:renderURL var="verifyRenderURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:renderURL var="verifyRenderURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_collaudo.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_collaudo.jsp" />
@ -425,27 +394,23 @@
<liferay-portlet:param name="collaudoId" value="<%= String.valueOf(collaudoId)%>" /> <liferay-portlet:param name="collaudoId" value="<%= String.valueOf(collaudoId)%>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<aui:script use="aui-base"> <aui:script use="aui-base">
Liferay.Util.openWindow( Liferay.Util.openWindow({
{
id: '<portlet:namespace />openVerificaCollaudo', id: '<portlet:namespace />openVerificaCollaudo',
title: 'Verifica Collaudo', title: 'Verifica Collaudo',
uri: '<%=verifyRenderURL%>' uri: '<%=verifyRenderURL%>',
} });
);
</aui:script> </aui:script>
</c:if> </c:if>
<liferay-portlet:renderURL var="editEntryURL" copyCurrentRenderParameters="true" /> <liferay-portlet:renderURL var="editEntryURL" copyCurrentRenderParameters="true" />
<% <%
String refreshURL = HttpUtil.removeParameter(editEntryURL.toString(), "_"+PortletKeys.FASCICOLOFE+"_openVerifyUrl"); String refreshURL = HttpUtil.removeParameter(editEntryURL.toString(),
"_" + PortletKeys.FASCICOLOFE + "_openVerifyUrl");
%> %>
<aui:script use="aui-base"> <aui:script use="aui-base">
var verifyPopupReady = false; var verifyPopupReady = false;
Liferay.on('popupReady',function (event) { Liferay.on('popupReady',function (event) {
var modalName = event._event.details[0].windowName; var modalName = event._event.details[0].windowName;
var modalWin = Liferay.Util.Window.getById(modalName); var modalWin = Liferay.Util.Window.getById(modalName);
modalWin.after('visibleChange', function (event) { modalWin.after('visibleChange', function (event) {
if (event.prevVal && verifyPopupReady) { if (event.prevVal && verifyPopupReady) {
window.location.href = "<%= refreshURL %>" window.location.href = "<%= refreshURL %>"
@ -466,16 +431,9 @@
verifyPopupReady = true; verifyPopupReady = true;
}); });
</aui:script> </aui:script>
<script type="text/javascript"> <script type="text/javascript">
Liferay.provide(window, 'saveCollaudo', function (bozza) {
Liferay.provide(
window,
'saveCollaudo',
function(bozza) {
AUI().one('#<portlet:namespace />bozza').set('value',bozza); AUI().one('#<portlet:namespace />bozza').set('value',bozza);
submitForm(document.<portlet:namespace /><%= formName %>); submitForm(document.<portlet:namespace /><%= formName %>);
}, }, ['aui-base']);
['aui-base']
);
</script> </script>

362
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_fine-lavori.jsp

@ -1,85 +1,66 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.AzioniPraticheUtil"%>
<%@page import="com.liferay.portal.kernel.util.HttpUtil"%> <%@page import="com.liferay.portal.kernel.util.HttpUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Comune"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.FineLavori"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.Provincia"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%>
<%@page import="it.tref.liferay.portos.bo.model.Territorio"%>
<%@page import="it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.FineLavoriServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.FineLavoriServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.FineLavori"%> <%@page import="it.tref.liferay.portos.bo.service.IntPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.servlet.ServletContextPool"%> <%@page import="it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.util.AzioniPraticheUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%>
<%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Comune"%>
<%@page import="it.tref.liferay.portos.bo.model.Provincia"%>
<%@page import="it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.TerritorioServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Territorio"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@ include file="/html/fascicolofe/init.jsp" %> <%@ include file="/html/fascicolofe/init.jsp" %>
<% <%
String backURL = ParamUtil.getString(request, "backURL"); String backURL = ParamUtil.getString(request, "backURL");
long fineLavoriId = ParamUtil.getLong(request, "fineLavoriId",0l); long fineLavoriId = ParamUtil.getLong(request, "fineLavoriId", 0L);
FineLavori fineLavori = FineLavoriLocalServiceUtil.fetchFineLavori(fineLavoriId); FineLavori fineLavori = FineLavoriLocalServiceUtil.fetchFineLavori(fineLavoriId);
if (Validator.isNull(fineLavori)) { if (Validator.isNull(fineLavori)) {
long intPraticaIdParam = ParamUtil.getLong(request, "intPraticaId"); long intPraticaIdParam = ParamUtil.getLong(request, "intPraticaId");
fineLavori = FineLavoriServiceUtil.getLastEditable(intPraticaIdParam); fineLavori = FineLavoriServiceUtil.getLastEditable(intPraticaIdParam);
fineLavoriId = fineLavori.getFineLavoriId(); fineLavoriId = fineLavori.getFineLavoriId();
} }
boolean openVerifyUrl = ParamUtil.getBoolean(request, "openVerifyUrl"); boolean openVerifyUrl = ParamUtil.getBoolean(request, "openVerifyUrl");
boolean showHistory = ParamUtil.getBoolean(request, "showHistory", true);
long intPraticaId = fineLavori.getIntPraticaId(); long intPraticaId = fineLavori.getIntPraticaId();
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId);
DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
if (dettPratica == null) { if (dettPratica == null) {
dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId); dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
} }
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
Soggetto direttoreLavori = null; Soggetto direttoreLavori = null;
List<Soggetto> direttori = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(intPraticaId, dettPratica.getCodiceFiscaleDelegatoFineLavori()); List<Soggetto> direttori = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(intPraticaId,
dettPratica.getCodiceFiscaleDelegatoFineLavori());
if (!direttori.isEmpty()) { if (!direttori.isEmpty()) {
direttoreLavori = direttori.get(0); direttoreLavori = direttori.get(0);
} }
String fmName = "fmFineLavori";
String formName = "fmFineLavori";
boolean disabledEditing = fineLavori.getCompletata(); boolean disabledEditing = fineLavori.getCompletata();
request.setAttribute("bean.fineLavori", fineLavori); request.setAttribute("bean.fineLavori", fineLavori);
boolean isNewFineLavori = ParamUtil.getBoolean(request, "isNewFineLavori");
%> %>
<liferay-portlet:actionURL name="saveFineLavori" var="saveFineLavoriURL" > <liferay-portlet:actionURL name="saveFineLavori" var="saveFineLavoriURL" >
<liferay-portlet:param name="fineLavoriId" value="<%=String.valueOf(fineLavori.getFineLavoriId()) %>"/> <liferay-portlet:param name="fineLavoriId" value="<%= String.valueOf(fineLavoriId) %>"/>
<liferay-portlet:param name="backURL" value="<%= backURL %>"/> <liferay-portlet:param name="backURL" value="<%= backURL %>"/>
<liferay-portlet:param name="successURL" value="<%= currentURL %>"/> <liferay-portlet:param name="successURL" value="<%= currentURL %>"/>
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<aui:form name="<%= fmName %>" onSubmit="preventDefault();" action="<%= saveFineLavoriURL %>">
<aui:form name="<%= formName %>" onSubmit="preventDefault();" action="<%= saveFineLavoriURL %>"> <aui:model-context bean="<%= fineLavori %>" model="<%= FineLavori.class %>" />
<aui:model-context bean="<%= fineLavori %>" model="<%=FineLavori.class %>"></aui:model-context>
<aui:input type="hidden" name="bozza" /> <aui:input type="hidden" name="bozza" />
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-xs-9 col-sm-9 col-md-9 col-lg-9"> <div class="col-xs-9">
<% <%
String label = StringPool.BLANK; String label = StringPool.BLANK;
if (disabledEditing) { if (disabledEditing) {
@ -90,40 +71,35 @@
label = "edit-fine-lavori"; label = "edit-fine-lavori";
} }
%> %>
<liferay-ui:header <liferay-ui:header title='<%= LanguageUtil.get(pageContext, label) + " #" + dettPratica.getTitle() %>'
title='<%= LanguageUtil.get(pageContext, label)+" #"+dettPratica.getTitle() %>' localizeTitle="false" backURL="<%= backURL %>" />
localizeTitle="<%= false %>"
backURL="<%= backURL %>"
/>
</div> </div>
<c:if test="<%= !disabledEditing %>"> <c:if test="<%= !disabledEditing %>">
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3"> <div class="col-xs-3">
<div class="pull-right" > <div class="pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true"
cssClass="inline_toolbar" >
<liferay-ui:icon <liferay-ui:icon iconCssClass="fa fa-save" message="salva-bozza"
iconCssClass="fa fa-save" url="javascript:saveFineLavori(true);" linkCssClass="btn" />
message="salva-bozza" <liferay-ui:icon iconCssClass="fa fa-check-square" message="salva-conferma"
url="javascript:saveFineLavori(true);" url="javascript:saveFineLavori(false);" linkCssClass="btn btn-primary" />
linkCssClass="btn"
/>
<liferay-ui:icon
iconCssClass="fa fa-check-square"
message="salva-conferma"
url="javascript:saveFineLavori(false);"
linkCssClass="btn btn-primary"
/>
</liferay-ui:icon-menu> </liferay-ui:icon-menu>
</div> </div>
</div> </div>
</c:if> </c:if>
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="module-group"> <div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="Inizio lavori">
<div class="container-fluid">
<div class="row">
<div class="col-xs-12">
<%= dateFormatDate.format(dettPratica.getDataInizioLavoriOpera()) %>
</div>
</div>
</div>
</liferay-ui:panel>
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fl"> <liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fl">
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
@ -159,7 +135,8 @@
<%= LanguageUtil.get(pageContext, "fl-range") %> <%= LanguageUtil.get(pageContext, "fl-range") %>
</div> </div>
<div class="col-sm-6 col-md-3"> <div class="col-sm-6 col-md-3">
<strong><%= BeanPropertiesUtil.getString(territorio, "agMin") %> - <%= BeanPropertiesUtil.getString(territorio, "agMax") %></strong> <strong><%= BeanPropertiesUtil.getString(territorio, "agMin") %> -
<%= BeanPropertiesUtil.getString(territorio, "agMax") %></strong>
</div> </div>
</div> </div>
<hr> <hr>
@ -178,7 +155,9 @@
</div> </div>
<div class="col-sm-6 col-md-3"> <div class="col-sm-6 col-md-3">
<% <%
List<Soggetto> committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(intPraticaId, TipoSoggettoUtil.COMMITTENTE); List<Soggetto> committenti = SoggettoLocalServiceUtil
.findByIntPratica_TipologiaSoggetto(intPraticaId,
TipoSoggettoUtil.COMMITTENTE);
if (!committenti.isEmpty()) { if (!committenti.isEmpty()) {
%> %>
<ul> <ul>
@ -201,7 +180,8 @@
</div> </div>
<div class="col-sm-6 col-md-3"> <div class="col-sm-6 col-md-3">
<c:if test="<%= Validator.isNotNull(direttoreLavori) %>"> <c:if test="<%= Validator.isNotNull(direttoreLavori) %>">
<aui:input name="direttoreLavori" value="<%= direttoreLavori.getCodiceFiscale() %>" type="hidden" /> <aui:input name="direttoreLavori" value="<%= direttoreLavori.getCodiceFiscale() %>"
type="hidden" />
<strong> <strong>
<%= direttoreLavori.getDescrizioneCompleta() %> <%= direttoreLavori.getDescrizioneCompleta() %>
</strong> </strong>
@ -213,7 +193,8 @@
<%= LanguageUtil.get(pageContext, "fl-tipo-dom") %> <%= LanguageUtil.get(pageContext, "fl-tipo-dom") %>
</div> </div>
<div class="col-sm-6 col-md-3"> <div class="col-sm-6 col-md-3">
<strong><%= LanguageUtil.get(pageContext, "tipo-pratica-"+intPratica.getTipoPratica()) %></strong> <strong><%= LanguageUtil.get(pageContext, "tipo-pratica-"
+ intPratica.getTipoPratica()) %></strong>
</div> </div>
</div> </div>
<hr> <hr>
@ -222,17 +203,22 @@
<%= LanguageUtil.get(pageContext, "fl-tipo") %> <%= LanguageUtil.get(pageContext, "fl-tipo") %>
</div> </div>
<div class="col-sm-6 col-md-3"> <div class="col-sm-6 col-md-3">
<aui:select label="" name="tipoFineLavori" showEmptyOption="true" disabled="<%= disabledEditing %>" > <aui:select label="" name="tipoFineLavori" showEmptyOption="true"
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_PARZIALE)%>"> disabled="<%= disabledEditing %>" >
<aui:option label='Parziale' value="<%= true %>" selected="<%= Validator.isNotNull(fineLavori) && fineLavori.getParziale() %>"/> <c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(),
AzioniPraticheUtil.ACTION_FL_PARZIALE) %>">
<aui:option label='Parziale' value="true" selected="<%= Validator.isNotNull(fineLavori)
&& fineLavori.getParziale() %>"/>
</c:if> </c:if>
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_TOTALE)%>"> <c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(),
<aui:option label='Totale' value="<%= false %>" selected="<%= Validator.isNotNull(fineLavori) && !fineLavori.getParziale() %>"/> AzioniPraticheUtil.ACTION_FL_TOTALE)%>">
<aui:option label='Totale' value="false" selected="<%= Validator.isNotNull(fineLavori)
&& !fineLavori.getParziale() %>"/>
</c:if> </c:if>
<c:if test="<%= !AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_PARZIALE) && <c:if test="<%= !AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_PARZIALE) &&
!AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_TOTALE) %>"> !AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_TOTALE) %>">
<aui:option label='Parziale' disabled="<%= true %>" value="<%= true %>" selected="<%= Validator.isNotNull(fineLavori) && fineLavori.getParziale() %>"/> <aui:option label='Parziale' disabled="true" value="true" selected="<%= Validator.isNotNull(fineLavori) && fineLavori.getParziale() %>"/>
<aui:option label='Totale' disabled="<%= true %>" value="<%= false %>" selected="<%= Validator.isNotNull(fineLavori) && !fineLavori.getParziale() %>"/> <aui:option label='Totale' disabled="true" value="false" selected="<%= Validator.isNotNull(fineLavori) && !fineLavori.getParziale() %>"/>
</c:if> </c:if>
</aui:select> </aui:select>
</div> </div>
@ -242,13 +228,20 @@
<div class="col-sm-6 col-md-3"> <div class="col-sm-6 col-md-3">
<liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>">
<liferay-util:param name="field" value="dataFineLavori" /> <liferay-util:param name="field" value="dataFineLavori" />
<liferay-util:param name="formName" value="<%= formName %>" /> <liferay-util:param name="fmName" value="<%= fmName %>" />
<liferay-util:param name="bean" value="bean.fineLavori" /> <liferay-util:param name="bean" value="bean.fineLavori" />
<liferay-util:param name="disabled" value="<%= String.valueOf(disabledEditing) %>" /> <liferay-util:param name="disabled" value="<%= String.valueOf(disabledEditing) %>" />
</liferay-util:include> </liferay-util:include>
</div> </div>
</div> </div>
<hr> <hr>
<div class="row">
<div class="col-xs-12">
<aui:input name="richiestaAttestazione" label="fl-attestazione" />
* <%= LanguageUtil.get(pageContext, "fl-attestazione-note") %>
</div>
</div>
<hr>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<aui:input name="normEsenteBollo" label="fl-esente-bollo" disabled="<%= disabledEditing %>"/> <aui:input name="normEsenteBollo" label="fl-esente-bollo" disabled="<%= disabledEditing %>"/>
@ -264,99 +257,35 @@
<div class="col-sm-12 col-md-12 container-varianti-integrazioni__dettagli"> <div class="col-sm-12 col-md-12 container-varianti-integrazioni__dettagli">
<liferay-ui:search-container emptyResultsMessage="no-varianti-integrazioni"> <liferay-ui:search-container emptyResultsMessage="no-varianti-integrazioni">
<liferay-ui:search-container-results <liferay-ui:search-container-results
results="<%= DettPraticaServiceUtil.findCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(new String[]{TipoIntegrazioneUtil.VARIANTE, TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE}))%>" results="<%= DettPraticaServiceUtil
total="<%= DettPraticaServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(new String[]{TipoIntegrazioneUtil.VARIANTE, TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE})) %>" .findCompletedByIntPraticaAndTipoPratica(intPraticaId,
Arrays.asList(TipoIntegrazioneUtil.VARIANTE,
TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)) %>"
total="<%= DettPraticaServiceUtil.countCompletedByIntPraticaAndTipoPratica(
intPraticaId, Arrays.asList(TipoIntegrazioneUtil.VARIANTE,
TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)) %>"
/> />
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.DettPratica" <liferay-ui:search-container-row modelVar="dettPraticaExtra"
modelVar="dettPraticaExtra"> className="it.tref.liferay.portos.bo.model.DettPratica">
<% <%
String tipoIntegrazione = Validator.isNotNull(dettPraticaExtra.getTipoIntegrazione()) ? LanguageUtil.get(pageContext, "label-integrazione-"+dettPraticaExtra.getTipoIntegrazione()) : ""; String tipoIntegrazione = Validator.isNull(dettPraticaExtra
.getTipoIntegrazione()) ? StringPool.BLANK : LanguageUtil.get(
pageContext,
"label-integrazione-" + dettPraticaExtra.getTipoIntegrazione());
%> %>
<liferay-ui:search-container-column-text name="Data" cssClass="text-nowrap"
<liferay-ui:search-container-column-text name="Data" cssClass="text-nowrap" value='<%= Validator.isNotNull(dettPraticaExtra.getDataEffettuazione()) ? dateFormatDate.format(dettPraticaExtra.getDataEffettuazione()) : ""%>' /> value='<%= Validator.isNull(dettPraticaExtra.getDataEffettuazione())
? StringPool.BLANK
: dateFormatDate.format(dettPraticaExtra
.getDataEffettuazione()) %>' />
<liferay-ui:search-container-column-text name="n-progetto" cssClass="text-nowrap"> <liferay-ui:search-container-column-text name="n-progetto" cssClass="text-nowrap">
<%= intPratica.getTitle(locale,true) %> <%= intPratica.getTitle(locale,true) %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Tipo Pratica" cssClass="text-nowrap"> <liferay-ui:search-container-column-text name="Tipo Pratica" cssClass="text-nowrap">
<%= tipoIntegrazione %> <%= tipoIntegrazione %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<%-- <c:if test="<%= showHistory %>">
<liferay-ui:search-container-column-text>
<%
String buttonId = "dettagliButton_"+index;
String contentId = "dettagliContent_"+index;
String titleId = "Dettagli "+tipoIntegrazione+" #"+dettPraticaExtra.getDettPraticaId();
%>
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon
id='<%=buttonId %>'
iconCssClass="fa fa-info-circle"
message="detail"
url="javascript:void(0)"
linkCssClass="btn btn-action"
/>
</liferay-ui:icon-menu>
<div id="<portlet:namespace /><%= contentId %>" class="hide" >
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12">
<%
if(dettPraticaExtra.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)){
%>
<liferay-util:include page="/html/fascicolo/navigator/view_dettagli_varianti.jsp" servletContext='<%= ServletContextPool.get("portos-bo-portlet") %>'>
<liferay-util:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaExtra.getDettPraticaId()) %>"></liferay-util:param>
</liferay-util:include>
<%
} else if(dettPraticaExtra.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)){
%>
<liferay-util:include page="/html/fascicolo/navigator/view_dettagli_varianti.jsp" servletContext='<%= ServletContextPool.get("portos-bo-portlet") %>'>
<liferay-util:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaExtra.getDettPraticaId()) %>"></liferay-util:param>
</liferay-util:include>
<%
}
%>
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_soggetti">
<liferay-util:include page="/html/soggettipratica/view_valida_fino.jsp" servletContext='<%= application %>'>
<liferay-util:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaExtra.getDettPraticaId()) %>"></liferay-util:param>
<liferay-util:param name="comingFrom" value="page_va_soggetti"></liferay-util:param>
</liferay-util:include>
</liferay-ui:panel>
</div>
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_allegati">
<div class="container-fluid">
<liferay-util:include page="/html/allegatipratica/view_accordion.jsp" servletContext='<%= application %>'>
<liferay-util:param name="classPk" value="<%= String.valueOf(dettPraticaExtra.getDettPraticaId()) %>"/>
<liferay-util:param name="className" value="<%=DettPratica.class.getName() %>"/>
<liferay-util:param name="comingFrom" value="page_va_allegati"/>
<liferay-util:param name="full" value="false"/>
</liferay-util:include>
</div>
</liferay-ui:panel>
</div>
</div>
</div>
</div>
</div>
<liferay-util:include page="/html/common/confirm_window.jsp" servletContext="<%= application %>" >
<liferay-util:param name="titolo" value="<%= titleId %>"></liferay-util:param>
<liferay-util:param name="buttonId" value="<%=buttonId%>"></liferay-util:param>
<liferay-util:param name="contentDiv" value="<%=contentId%>"></liferay-util:param>
<liferay-util:param name="width" value="900"></liferay-util:param>
</liferay-util:include>
</liferay-ui:search-container-column-text>
</c:if> --%>
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" /> <liferay-ui:search-iterator paginate="false>" />
</liferay-ui:search-container> </liferay-ui:search-container>
</div> </div>
</div> </div>
@ -364,22 +293,29 @@
<div class="col-sm-12 col-md-12 container-fine-lavori__dettagli"> <div class="col-sm-12 col-md-12 container-fine-lavori__dettagli">
<liferay-ui:search-container emptyResultsMessage="no-fine-lavori-parziali"> <liferay-ui:search-container emptyResultsMessage="no-fine-lavori-parziali">
<liferay-ui:search-container-results <liferay-ui:search-container-results
results='<%= FineLavoriLocalServiceUtil.findByIntPraticaId_Parziale_leFineLavoriId(fineLavoriId, intPraticaId, true, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null) %>' results='<%= FineLavoriLocalServiceUtil
total='<%= FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale_leFineLavoriId(fineLavoriId, intPraticaId, true) %>' .findByIntPraticaId_Parziale_leFineLavoriId(fineLavoriId,
/> intPraticaId, true, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
null) %>'
total='<%= FineLavoriLocalServiceUtil
.countByIntPraticaId_Parziale_leFineLavoriId(fineLavoriId,
intPraticaId, true) %>' />
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.FineLavori" <liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.FineLavori"
modelVar="fineLavoriParziale"> modelVar="fineLavoriParziale">
<liferay-ui:search-container-column-text name="Data" cssClass="text-nowrap"
<liferay-ui:search-container-column-text name="Data" cssClass="text-nowrap" value='<%= Validator.isNotNull(fineLavoriParziale.getDataEffettuazione()) ? dateFormatDate.format(fineLavoriParziale.getDataEffettuazione()) : ""%>' /> value='<%= Validator.isNull(fineLavoriParziale.getDataEffettuazione())
? StringPool.BLANK
<liferay-ui:search-container-column-text name="n-progetto" cssClass="text-nowrap"> : dateFormatDate.format(fineLavoriParziale
.getDataEffettuazione()) %>' />
<liferay-ui:search-container-column-text name="n-progetto"
cssClass="text-nowrap">
<%= intPratica.getTitle(locale, true) %> <%= intPratica.getTitle(locale, true) %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Tipo Pratica"
<liferay-ui:search-container-column-text name="Tipo Pratica" cssClass="text-nowrap" value='<%= "Fine Lavori "+ (fineLavoriParziale.getParziale() ? "Parziale" : "Totale") %>'></liferay-ui:search-container-column-text> cssClass="text-nowrap" value='<%= "Fine Lavori " + (fineLavoriParziale
.getParziale() ? "Parziale" : "Totale") %>' />
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" /> <liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container> </liferay-ui:search-container>
</div> </div>
</div> </div>
@ -387,7 +323,9 @@
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<c:if test="<%= Validator.isNotNull(direttoreLavori) %>"> <c:if test="<%= Validator.isNotNull(direttoreLavori) %>">
<p> <p>
<%= MessageFormat.format(LanguageUtil.get(pageContext, "fl-dichiaraz-direttore"), direttoreLavori.getNome(), direttoreLavori.getCognome()) %> <%= MessageFormat.format(LanguageUtil.get(pageContext,
"fl-dichiaraz-direttore"), direttoreLavori.getNome(),
direttoreLavori.getCognome()) %>
</p> </p>
</c:if> </c:if>
</div> </div>
@ -395,23 +333,28 @@
<hr> <hr>
<div class="row altro_check"> <div class="row altro_check">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<aui:input name="altro_checkbox" label="fl-altro" type="checkbox" disabled="<%= disabledEditing %>" checked="<%= Validator.isNotNull(fineLavori.getComunicazioneDirettoreLavori()) && !disabledEditing %>"/> <aui:input name="altro_checkbox" label="fl-altro" type="checkbox"
disabled="<%= disabledEditing %>" checked="<%= Validator.isNotNull(fineLavori
.getComunicazioneDirettoreLavori()) && !disabledEditing %>"/>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<aui:input name="comunicazioneDirettoreLavori" label="" type="textarea" disabled="<%= disabledEditing %>"/> <aui:input name="comunicazioneDirettoreLavori" label="" type="textarea"
disabled="<%= disabledEditing %>"/>
</div> </div>
</div> </div>
<hr> <hr>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<c:if test="<%= !dettPratica.getCollaudoStatico() %>"> <c:if test="<%= !dettPratica.getCollaudoStatico() %>">
<liferay-util:include page="/html/common/help_message.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/common/help_message.jsp"
<liferay-util:param name="message" value="Selezione disabilitata perché la pratica prevede l\'esecuzione del collaudo statico"></liferay-util:param> servletContext="<%= application %>">
<liferay-util:param name="message" value="Selezione disabilitata perché la pratica prevede l\'esecuzione del collaudo statico" />
</liferay-util:include> </liferay-util:include>
</c:if> </c:if>
<aui:input name="normEsenteCollaudo" label="fl-collaudo" disabled="<%= disabledEditing || !dettPratica.getCollaudoStatico() %>"/> <aui:input name="normEsenteCollaudo" label="fl-collaudo" disabled="<%= disabledEditing
|| !dettPratica.getCollaudoStatico() %>"/>
</div> </div>
</div> </div>
</div> </div>
@ -424,7 +367,9 @@
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<c:if test="<%= Validator.isNotNull(direttoreLavori) %>"> <c:if test="<%= Validator.isNotNull(direttoreLavori) %>">
<p> <p>
<%= MessageFormat.format(LanguageUtil.get(pageContext, "fl-firma-direttore"), direttoreLavori.getNome(), direttoreLavori.getCognome(), direttoreLavori.getCodiceFiscale()) %> <%= MessageFormat.format(LanguageUtil.get(pageContext, "fl-firma-direttore"),
direttoreLavori.getNome(), direttoreLavori.getCognome(),
direttoreLavori.getCodiceFiscale()) %>
</p> </p>
</c:if> </c:if>
</div> </div>
@ -446,18 +391,24 @@
modalWin.after('visibleChange', function (event) { modalWin.after('visibleChange', function (event) {
if (event.prevVal) { if (event.prevVal) {
if (allegatiEdit) { if (allegatiEdit) {
Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_<%=comingFrom%>_"); Liferay.Portlet.refresh(
"#p_p_id_<%= PortletKeys.ALLEGATI %>_INSTANCE_<%= comingFrom %>_"
);
} }
} }
}); });
modalWin.after('hide', function (event) { modalWin.after('hide', function (event) {
if (allegatiEdit) { if (allegatiEdit) {
Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_<%=comingFrom%>_"); Liferay.Portlet.refresh(
"#p_p_id_<%= PortletKeys.ALLEGATI %>_INSTANCE_<%= comingFrom %>_"
);
} }
}); });
modalWin.after('destroy', function (event) { modalWin.after('destroy', function (event) {
if (allegatiEdit) { if (allegatiEdit) {
Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_<%=comingFrom%>_"); Liferay.Portlet.refresh(
"#p_p_id_<%= PortletKeys.ALLEGATI %>_INSTANCE_<%= comingFrom %>_"
);
} }
}); });
}); });
@ -465,20 +416,16 @@
allegatiEdit = true; allegatiEdit = true;
}); });
Liferay.on('allegati-<%= comingFrom %>-ready', function (event) { Liferay.on('allegati-<%= comingFrom %>-ready', function (event) {
if(allegatiEdit){
allegatiEdit = false; allegatiEdit = false;
}
}); });
</aui:script> </aui:script>
<liferay-portlet:runtime portletName='<%= PortletKeys.ALLEGATI + "_INSTANCE_" + comingFrom %>'
<liferay-portlet:runtime portletName='<%=PortletKeys.ALLEGATI+"_INSTANCE_"+comingFrom %>' queryString='<%="&classPk="+fineLavori.getFineLavoriId()+"&className="+FineLavori.class.getName()+"&comingFrom="+comingFrom+"&disabled="+disabledEditing+"&inBO="+disabledEditing%>' ></liferay-portlet:runtime> queryString='<%= "&classPk=" + fineLavori.getFineLavoriId() + "&className="
+ FineLavori.class.getName() + "&comingFrom=" + comingFrom + "&disabled="
+ disabledEditing + "&inBO=" + disabledEditing %>' />
</div> </div>
</div> </div>
</div> </div>
</aui:form> </aui:form>
<c:if test="<%= openVerifyUrl %>"> <c:if test="<%= openVerifyUrl %>">
<liferay-portlet:renderURL var="verifyRenderURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:renderURL var="verifyRenderURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
@ -487,48 +434,22 @@
<liferay-portlet:param name="fineLavoriId" value="<%= String.valueOf(fineLavoriId) %>" /> <liferay-portlet:param name="fineLavoriId" value="<%= String.valueOf(fineLavoriId) %>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<aui:script use="aui-base"> <aui:script use="aui-base">
Liferay.Util.openWindow( Liferay.Util.openWindow({
{
id: '<portlet:namespace />openVerificaFineLavori', id: '<portlet:namespace />openVerificaFineLavori',
title: 'Verifica Fine Lavori', title: 'Verifica Fine Lavori',
uri: '<%=verifyRenderURL%>' uri: '<%= verifyRenderURL %>',
} });
);
</aui:script> </aui:script>
</c:if> </c:if>
<liferay-portlet:renderURL var="editEntryURL" copyCurrentRenderParameters="true" /> <liferay-portlet:renderURL var="editEntryURL" copyCurrentRenderParameters="true" />
<% <%
String refreshURL = HttpUtil.removeParameter(editEntryURL.toString(), "_" + PortletKeys.FASCICOLOFE + "_openVerifyUrl"); String refreshURL = HttpUtil.removeParameter(editEntryURL.toString(), "_" + PortletKeys.FASCICOLOFE + "_openVerifyUrl");
%> %>
<aui:script use="aui-base"> <aui:script use="aui-base">
/* SDB: disabilitato. Il checkbox arriva disabilitato se il dettPratica da cui si fa il fine lavori ha collaudo statico false.
* se sarà necessario questo listener disabilita il checkbox al momento che viene dececcato.
*/
if(false){
AUI().one('#<portlet:namespace />normEsenteCollaudoCheckbox').on('click', function(event){
if(confirm("ATTENZIONE:\n rimuovendo la selezione non sarà possibile riattivarla in queste fase.")){
if (!this.attr('checked')){
this.addClass('disabled');
this.set('disabled', true);
}
} else {
this.set('checked',true);
this.set('value',true);
Liferay.Util.updateCheckboxValue(this);
}
});
}
var verifyPopupReady = false; var verifyPopupReady = false;
Liferay.on('popupReady',function (event) { Liferay.on('popupReady',function (event) {
var modalName = event._event.details[0].windowName; var modalName = event._event.details[0].windowName;
var modalWin = Liferay.Util.Window.getById(modalName); var modalWin = Liferay.Util.Window.getById(modalName);
modalWin.after('visibleChange', function (event) { modalWin.after('visibleChange', function (event) {
if (event.prevVal && verifyPopupReady) { if (event.prevVal && verifyPopupReady) {
window.location.href = "<%= refreshURL %>" window.location.href = "<%= refreshURL %>"
@ -548,15 +469,12 @@
Liferay.on('verifyPopup-ready', function (event) { Liferay.on('verifyPopup-ready', function (event) {
verifyPopupReady = true; verifyPopupReady = true;
}); });
Liferay.provide( Liferay.provide(
window, window,
'saveFineLavori', 'saveFineLavori',
function (bozza) { function (bozza) {
AUI().one('#<portlet:namespace />bozza').set('value', bozza); AUI().one('#<portlet:namespace />bozza').set('value', bozza);
submitForm(document.<portlet:namespace /><%= formName %>); submitForm(document.<portlet:namespace /><%= fmName %>);
}, },
['aui-base'] ['aui-base']
); );

44
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_inizio_lavori.jsp

@ -0,0 +1,44 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/html/fascicolofe/init.jsp"%>
<%
String backURL = ParamUtil.getString(request, "backURL");
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
String fmName = "fmInizioLavori";
%>
<liferay-portlet:actionURL name="salvaInizioLavori" var="salvaInizioLavoriURL" >
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>"/>
<liferay-portlet:param name="backURL" value="<%= backURL %>"/>
<liferay-portlet:param name="successURL" value="<%= currentURL %>"/>
</liferay-portlet:actionURL>
<aui:form name="<%= fmName %>" action="<%= salvaInizioLavoriURL %>">
<div class="container-fluid">
<div class="row">
<div class="col-xs-12">
<div style="display:inline-block">
Data inizio lavori
<liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>">
<liferay-util:param name="field" value="dataInizioLavoriOpera" />
<liferay-util:param name="fmName" value="<%= fmName %>" />
</liferay-util:include>
</div>
<div style="display:inline-block">
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true"
cssClass="inline_toolbar" >
<liferay-ui:icon iconCssClass="fa fa-check-square" message="salva-conferma"
url="javascript:saveFineLavori();" linkCssClass="btn btn-primary" />
</liferay-ui:icon-menu>
</div>
</div>
</div>
</div>
</aui:form>
<aui:script use="aui-base">
Liferay.provide(
window,
'saveFineLavori',
function () {
submitForm(document.<portlet:namespace /><%= fmName %>);
},
['aui-base']
);
</aui:script>

107
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/fascicolo_action.jsp

@ -2,6 +2,7 @@
<%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%> <%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%>
<%@page import="it.tref.liferay.portos.bo.model.Delega"%> <%@page import="it.tref.liferay.portos.bo.model.Delega"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
@ -34,7 +35,8 @@ if (searchContainer != null) {
long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
} }
String intPraticaIdString = String.valueOf(intPratica.getIntPraticaId()); long intPraticaId = intPratica.getIntPraticaId();
String intPraticaIdString = String.valueOf(intPraticaId);
String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdString; String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdString;
%> %>
<liferay-ui:icon-menu icon="" showWhenSingleIcon="true" showExpanded="<%= showExpanded %>"> <liferay-ui:icon-menu icon="" showWhenSingleIcon="true" showExpanded="<%= showExpanded %>">
@ -58,7 +60,7 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
<liferay-ui:icon iconCssClass="fa fa-eye" message="view" url="<%= viewEntryURL %>" /> <liferay-ui:icon iconCssClass="fa fa-eye" message="view" url="<%= viewEntryURL %>" />
</c:if> </c:if>
<c:if test="<%= isProgetti %>"> <c:if test="<%= isProgetti %>">
<c:if test="<%= ValidazionePraticaUtil.canEditPratica(intPratica.getIntPraticaId()) %>"> <c:if test="<%= ValidazionePraticaUtil.canEditPratica(intPraticaId) %>">
<portlet:renderURL var="editEntryURL"> <portlet:renderURL var="editEntryURL">
<portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" /> <portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" />
<portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" /> <portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
@ -66,7 +68,7 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
</portlet:renderURL> </portlet:renderURL>
<liferay-ui:icon iconCssClass="fa fa-edit" message="edit" url="<%=editEntryURL%>" /> <liferay-ui:icon iconCssClass="fa fa-edit" message="edit" url="<%=editEntryURL%>" />
</c:if> </c:if>
<c:if test="<%= ValidazionePraticaUtil.canDeletePratica(intPratica.getIntPraticaId(), <c:if test="<%= ValidazionePraticaUtil.canDeletePratica(intPraticaId,
user.getUserId()) %>"> user.getUserId()) %>">
<portlet:actionURL name="deleteFascicolo" var="deleteFascicoloURL"> <portlet:actionURL name="deleteFascicolo" var="deleteFascicoloURL">
<portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" /> <portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
@ -76,9 +78,9 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
</c:if> </c:if>
<% <%
DettPratica variazioniSoggetto = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica( DettPratica variazioniSoggetto = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(
intPratica.getIntPraticaId(), Arrays.<String> asList(TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO)); intPraticaId, Arrays.<String> asList(TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO));
%> %>
<c:if test="<%= AzioniPraticheUtil.canAddVariazioneSoggetti(intPratica.getIntPraticaId()) <c:if test="<%= AzioniPraticheUtil.canAddVariazioneSoggetti(intPraticaId)
&& Validator.isNull(variazioniSoggetto) %>"> && Validator.isNull(variazioniSoggetto) %>">
<liferay-portlet:renderURL var="editUsersUrl" > <liferay-portlet:renderURL var="editUsersUrl" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp"/>
@ -90,9 +92,8 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
<liferay-ui:icon iconCssClass="fa fa-users" message="add-change-users" <liferay-ui:icon iconCssClass="fa fa-users" message="add-change-users"
url="<%= addGestioneUtentiURL %>" /> url="<%= addGestioneUtentiURL %>" />
</c:if> </c:if>
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), <c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_AGGIUNGI_SOGGETTO)
AzioniPraticheUtil.ACTION_AGGIUNGI_SOGGETTO) && ValidazionePraticaUtil.canEditUsers(intPraticaId) %>">
&& ValidazionePraticaUtil.canEditUsers(intPratica.getIntPraticaId()) %>">
<c:if test="<%= Validator.isNotNull(variazioniSoggetto) %>"> <c:if test="<%= Validator.isNotNull(variazioniSoggetto) %>">
<liferay-portlet:renderURL var="editGestioneUtentiURL"> <liferay-portlet:renderURL var="editGestioneUtentiURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" />
@ -110,9 +111,8 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
url="<%= deleteGestioneUtentiURL %>" /> url="<%= deleteGestioneUtentiURL %>" />
</c:if> </c:if>
</c:if> </c:if>
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), <c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_ANNULLA)
AzioniPraticheUtil.ACTION_ANNULLA) && ValidazionePraticaUtil.praticaCanAbort(intPraticaId, user.getUserId())
&& ValidazionePraticaUtil.praticaCanAbort(intPratica.getIntPraticaId(), user.getUserId())
&& !intPratica.getSospesa() %>"> && !intPratica.getSospesa() %>">
<% <%
Map<String,Object> dataMap = new HashMap<String, Object>(); Map<String,Object> dataMap = new HashMap<String, Object>();
@ -127,7 +127,7 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
<liferay-ui:icon iconCssClass="fa fa-window-close-o" message="abort-fascicolo" <liferay-ui:icon iconCssClass="fa fa-window-close-o" message="abort-fascicolo"
url="<%= abortFascicoloURL %>" useDialog="true" data="<%= dataMap %>"/> url="<%= abortFascicoloURL %>" useDialog="true" data="<%= dataMap %>"/>
</c:if> </c:if>
<c:if test="<%= AzioniPraticheUtil.canPrintFascicolo(intPratica.getIntPraticaId()) %>"> <c:if test="<%= AzioniPraticheUtil.canPrintFascicolo(intPraticaId) %>">
<liferay-portlet:resourceURL var="stampaFascicoloURL" id="stampaFascicolo" > <liferay-portlet:resourceURL var="stampaFascicoloURL" id="stampaFascicolo" >
<portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" /> <portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
</liferay-portlet:resourceURL> </liferay-portlet:resourceURL>
@ -135,16 +135,15 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
target="_blank" /> target="_blank" />
</c:if> </c:if>
<% <%
boolean canAddVariante = ValidazionePraticaUtil.praticaCanAddVariante(intPratica.getIntPraticaId()); boolean canAddVariante = ValidazionePraticaUtil.praticaCanAddVariante(intPraticaId);
boolean canEditVariante = ValidazionePraticaUtil.praticaCanEditVariante(intPratica.getIntPraticaId()); boolean canEditVariante = ValidazionePraticaUtil.praticaCanEditVariante(intPraticaId);
boolean canDeleteVariante = ValidazionePraticaUtil.praticaCanDeleteVariante(intPratica.getIntPraticaId()); boolean canDeleteVariante = ValidazionePraticaUtil.praticaCanDeleteVariante(intPraticaId);
%> %>
<c:if test="<%= intPratica.getUserId() == user.getUserId() && (canAddVariante || canEditVariante <c:if test="<%= intPratica.getUserId() == user.getUserId() && (canAddVariante || canEditVariante
|| canDeleteVariante) %>"> || canDeleteVariante) %>">
<c:if test="<%= !intPratica.getSospesa() %>"> <c:if test="<%= !intPratica.getSospesa() %>">
<div class="separator"></div> <div class="separator"></div>
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), <c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_VARIANTE)
AzioniPraticheUtil.ACTION_VARIANTE)
&& canAddVariante %>"> && canAddVariante %>">
<liferay-portlet:renderURL var="editUrl" > <liferay-portlet:renderURL var="editUrl" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp"/>
@ -177,18 +176,17 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
</c:if> </c:if>
</c:if> </c:if>
<% <%
boolean canAddIntegrazione = ValidazionePraticaUtil.praticaCanAddIntegrazione(intPratica.getIntPraticaId()); boolean canAddIntegrazione = ValidazionePraticaUtil.praticaCanAddIntegrazione(intPraticaId);
boolean canEditIntegrazione = ValidazionePraticaUtil.praticaCanEditIntegrazione(intPratica.getIntPraticaId()); boolean canEditIntegrazione = ValidazionePraticaUtil.praticaCanEditIntegrazione(intPraticaId);
boolean canDeleteIntegrazione = ValidazionePraticaUtil.praticaCanDeleteIntegrazione( boolean canDeleteIntegrazione = ValidazionePraticaUtil.praticaCanDeleteIntegrazione(intPraticaId);
intPratica.getIntPraticaId());
%> %>
<c:if test="<%= intPratica.getUserId() == user.getUserId() && (canAddIntegrazione || canEditIntegrazione <c:if test="<%= intPratica.getUserId() == user.getUserId() && (canAddIntegrazione || canEditIntegrazione
|| canDeleteIntegrazione) %>"> || canDeleteIntegrazione) %>">
<c:if test="<%= !intPratica.getSospesa() %>"> <c:if test="<%= !intPratica.getSospesa() %>">
<div class="separator"></div> <div class="separator"></div>
</c:if> </c:if>
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), <c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_INTEGRAZIONE)
AzioniPraticheUtil.ACTION_INTEGRAZIONE) && canAddIntegrazione %>"> && canAddIntegrazione %>">
<liferay-portlet:renderURL var="editUrl" > <liferay-portlet:renderURL var="editUrl" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
@ -222,18 +220,30 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
</c:if> </c:if>
</c:if> </c:if>
<c:if test="<%= isProgetti || isAltriProgetti || isDeleghe %>"> <c:if test="<%= isProgetti || isAltriProgetti || isDeleghe %>">
<c:if test="<%= ValidazionePraticaUtil.praticaCanAddFineLavori(intPratica.getIntPraticaId(), <c:if test="<%= ValidazionePraticaUtil.praticaCanAddFineLavori(intPraticaId,user.getScreenName())
user.getScreenName()) || ValidazionePraticaUtil.praticaCanEditFineLavori(intPraticaId, user.getScreenName()) %>">
|| ValidazionePraticaUtil.praticaCanEditFineLavori(intPratica.getIntPraticaId(),
user.getScreenName()) %>">
<c:if test="<%= !intPratica.getSospesa() %>"> <c:if test="<%= !intPratica.getSospesa() %>">
<div class="separator"></div> <div class="separator"></div>
<c:if test="<%= (AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), <%
DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId);
%>
<c:choose>
<c:when test="<%= Validator.isNull(dettPratica.getDataInizioLavoriOpera()) %>">
<liferay-portlet:renderURL var="addInizioLavoriURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_inizio_lavori.jsp"/>
<liferay-portlet:param name="backURL" value="<%= redirect %>" />
<liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<liferay-portlet:param name="dettPraticaId"
value="<%= String.valueOf(dettPratica.getDettPraticaId()) %>" />
</liferay-portlet:renderURL>
<liferay-ui:icon iconCssClass="fa fa-plus" message="Comunica inizio lavori"
url="<%= addInizioLavoriURL %>" />
</c:when>
<c:otherwise>
<c:if test="<%= (AzioniPraticheUtil.isAllowedAction(intPraticaId,
AzioniPraticheUtil.ACTION_FL_PARZIALE) AzioniPraticheUtil.ACTION_FL_PARZIALE)
|| AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), || AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_FL_TOTALE))
AzioniPraticheUtil.ACTION_FL_TOTALE)) && ValidazionePraticaUtil.praticaCanAddFineLavori(intPraticaId, user.getScreenName()) %>">
&& ValidazionePraticaUtil.praticaCanAddFineLavori(intPratica.getIntPraticaId(),
user.getScreenName()) %>">
<liferay-portlet:renderURL var="editUrl" > <liferay-portlet:renderURL var="editUrl" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fine-lavori.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fine-lavori.jsp"/>
<liferay-portlet:param name="backURL" value="<%= redirect %>" /> <liferay-portlet:param name="backURL" value="<%= redirect %>" />
@ -241,24 +251,22 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
<liferay-portlet:actionURL name="addFineLavori" var="addFineLavoriURL"> <liferay-portlet:actionURL name="addFineLavori" var="addFineLavoriURL">
<liferay-portlet:param name="successURL" value="<%= editUrl %>"/> <liferay-portlet:param name="successURL" value="<%= editUrl %>"/>
<liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" /> <liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<liferay-portlet:param name="isNewFineLavori" value="true" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-ui:icon iconCssClass="fa fa-plus" message="add-fine-lavori" <liferay-ui:icon iconCssClass="fa fa-plus" message="add-fine-lavori"
url="<%= addFineLavoriURL %>" /> url="<%= addFineLavoriURL %>" />
</c:if> </c:if>
</c:otherwise>
</c:choose>
</c:if> </c:if>
<c:if test="<%= ValidazionePraticaUtil.praticaCanEditFineLavori(intPratica.getIntPraticaId(), <c:if test="<%= ValidazionePraticaUtil.praticaCanEditFineLavori(intPraticaId, user.getScreenName()) %>">
user.getScreenName()) %>">
<liferay-portlet:renderURL var="editFineLavoriURL" > <liferay-portlet:renderURL var="editFineLavoriURL" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fine-lavori.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fine-lavori.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" /> <liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<liferay-portlet:param name="backURL" value="<%= redirect %>" /> <liferay-portlet:param name="backURL" value="<%= redirect %>" />
<liferay-portlet:param name="isNewFineLavori" value="false" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-ui:icon iconCssClass="fa fa-edit" message="edit-fine-lavori" url="<%= editFineLavoriURL %>" /> <liferay-ui:icon iconCssClass="fa fa-edit" message="edit-fine-lavori" url="<%= editFineLavoriURL %>" />
</c:if> </c:if>
<c:if test="<%= ValidazionePraticaUtil.praticaCanDeleteFineLavori(intPratica.getIntPraticaId(), <c:if test="<%= ValidazionePraticaUtil.praticaCanDeleteFineLavori(intPraticaId, user.getScreenName()) %>">
user.getScreenName()) %>">
<liferay-portlet:actionURL name="deleteFineLavori" var="deleteFineLavoriURL"> <liferay-portlet:actionURL name="deleteFineLavori" var="deleteFineLavoriURL">
<liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" /> <liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<liferay-portlet:param name="backURL" value="<%= redirect %>" /> <liferay-portlet:param name="backURL" value="<%= redirect %>" />
@ -269,20 +277,15 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
url="<%= deleteFineLavoriURL %>" /> url="<%= deleteFineLavoriURL %>" />
</c:if> </c:if>
</c:if> </c:if>
<c:if test="<%= ValidazionePraticaUtil.praticaCanAddCollaudo(intPratica.getIntPraticaId(), <c:if test="<%= ValidazionePraticaUtil.praticaCanAddCollaudo(intPraticaId, user.getScreenName())
user.getScreenName()) || ValidazionePraticaUtil.praticaCanEditCollaudo(intPraticaId, user.getScreenName())
|| ValidazionePraticaUtil.praticaCanEditCollaudo(intPratica.getIntPraticaId(), user.getScreenName()) || ValidazionePraticaUtil.praticaCanDeleteCollaudo(intPraticaId, user.getScreenName()) %>">
|| ValidazionePraticaUtil.praticaCanDeleteCollaudo(intPratica.getIntPraticaId(),
user.getScreenName()) %>">
<c:if test="<%= !intPratica.getSospesa() %>"> <c:if test="<%= !intPratica.getSospesa() %>">
<div class="separator"></div> <div class="separator"></div>
</c:if> </c:if>
<c:if test="<%= (AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), <c:if test="<%= (AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_CO_PARZIALE)
AzioniPraticheUtil.ACTION_CO_PARZIALE) || AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_CO_TOTALE))
|| AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), && ValidazionePraticaUtil.praticaCanAddCollaudo(intPraticaId, user.getScreenName()) %>">
AzioniPraticheUtil.ACTION_CO_TOTALE))
&& ValidazionePraticaUtil.praticaCanAddCollaudo(intPratica.getIntPraticaId(),
user.getScreenName())%>">
<liferay-portlet:renderURL var="editUrl" > <liferay-portlet:renderURL var="editUrl" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_collaudo.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_collaudo.jsp"/>
<liferay-portlet:param name="backURL" value="<%= redirect %>" /> <liferay-portlet:param name="backURL" value="<%= redirect %>" />
@ -293,8 +296,7 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-ui:icon iconCssClass="fa fa-plus" message="add-collaudo" url="<%= addCollaudoURL %>" /> <liferay-ui:icon iconCssClass="fa fa-plus" message="add-collaudo" url="<%= addCollaudoURL %>" />
</c:if> </c:if>
<c:if test="<%= ValidazionePraticaUtil.praticaCanEditCollaudo(intPratica.getIntPraticaId(), <c:if test="<%= ValidazionePraticaUtil.praticaCanEditCollaudo(intPraticaId, user.getScreenName()) %>">
user.getScreenName()) %>">
<liferay-portlet:renderURL var="editCollaudoURL" > <liferay-portlet:renderURL var="editCollaudoURL" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_collaudo.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_collaudo.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" /> <liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
@ -302,8 +304,7 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-ui:icon iconCssClass="fa fa-edit" message="edit-collaudo" url="<%= editCollaudoURL %>" /> <liferay-ui:icon iconCssClass="fa fa-edit" message="edit-collaudo" url="<%= editCollaudoURL %>" />
</c:if> </c:if>
<c:if test="<%= ValidazionePraticaUtil.praticaCanDeleteCollaudo(intPratica.getIntPraticaId(), <c:if test="<%= ValidazionePraticaUtil.praticaCanDeleteCollaudo(intPraticaId, user.getScreenName()) %>">
user.getScreenName()) %>">
<liferay-portlet:actionURL name="deleteCollaudo" var="deleteCollaudoURL"> <liferay-portlet:actionURL name="deleteCollaudo" var="deleteCollaudoURL">
<liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" /> <liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<liferay-portlet:param name="backURL" value="<%= redirect %>" /> <liferay-portlet:param name="backURL" value="<%= redirect %>" />

1
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/save_actions.jspf

@ -37,7 +37,6 @@ String script =
+ "if (el_relazioni.length) {" + "if (el_relazioni.length) {"
+ "var el_coniugio = $('input[name=_" + PortletKeys.FASCICOLOFE + "_{{prefix}}Coniugio]');" + "var el_coniugio = $('input[name=_" + PortletKeys.FASCICOLOFE + "_{{prefix}}Coniugio]');"
+ "var el_coniugiochk = $('input[name=_" + PortletKeys.FASCICOLOFE + "_{{prefix}}Coniugio]:checked');" + "var el_coniugiochk = $('input[name=_" + PortletKeys.FASCICOLOFE + "_{{prefix}}Coniugio]:checked');"
+ "console.log('length: ' + el_relazioni.length);"
+ "var err_coniugio = (el_coniugiochk.length == 0);" + "var err_coniugio = (el_coniugiochk.length == 0);"
+ "var err_relazioni = ((el_relazioni.val().replace(/\\s*/g, '').length < 10) && (el_coniugiochk.val() == 1));" + "var err_relazioni = ((el_relazioni.val().replace(/\\s*/g, '').length < 10) && (el_coniugiochk.val() == 1));"
+ "el_coniugio.parent().css({color:(err_coniugio ? '#a94442' : '#333')});" + "el_coniugio.parent().css({color:(err_coniugio ? '#a94442' : '#333')});"

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

@ -57,6 +57,9 @@ boolean isDisabled = disabledInput && !enabledByIntegrazione;
String displayStyle = proceduraC ? "display:none" : StringPool.BLANK; String displayStyle = proceduraC ? "display:none" : StringPool.BLANK;
String urlIframeMappe = dettPratica.getUrlMappeFe(request, comune, disabledInput || isGeoEditable); String urlIframeMappe = dettPratica.getUrlMappeFe(request, comune, disabledInput || isGeoEditable);
String originMappe = PortalUtil.getPortalURL(request); String originMappe = PortalUtil.getPortalURL(request);
if (!ConfigurazioneLocalServiceUtil.isProduction()) {
originMappe = "https://sismica.sicilia.it";
}
%> %>
<liferay-util:include page="/html/fascicolofe/navigator/header.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/fascicolofe/navigator/header.jsp" servletContext="<%= application %>">

299
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fine-lavori_calcolo.jsp

@ -1,41 +1,29 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.FineLavoriServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.FineLavori"%> <%@page import="it.tref.liferay.portos.bo.model.FineLavori"%>
<%@page import="com.liferay.portal.kernel.util.LocaleUtil"%>
<%@page import="java.util.Locale"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Pagamento"%> <%@page import="it.tref.liferay.portos.bo.model.Pagamento"%>
<%@page import="java.text.NumberFormat"%> <%@page import="it.tref.liferay.portos.bo.service.FineLavoriServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%> <%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%> <%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="java.math.BigDecimal"%> <%@page import="java.math.BigDecimal"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> <%@page import="java.text.NumberFormat"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@ include file="/html/fascicolofe/init.jsp" %> <%@ include file="/html/fascicolofe/init.jsp" %>
<% <%
long intPraticaId = ParamUtil.getLong(request, "intPraticaId",0l); long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0L);
long fineLavoriId = ParamUtil.getLong(request, "fineLavoriId",0l); long fineLavoriId = ParamUtil.getLong(request, "fineLavoriId", 0L);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(fineLavoriId); FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(fineLavoriId);
if (fineLavori == null) { if (fineLavori == null) {
fineLavori = FineLavoriServiceUtil.getLastEditable(intPraticaId); fineLavori = FineLavoriServiceUtil.getLastEditable(intPraticaId);
} }
String formName = "fmpaga"; String formName = "fmpaga";
String buttonId = "fmbutton"; String buttonId = "fmbutton";
long companyId = company.getCompanyId(); long companyId = company.getCompanyId();
boolean disabledInput = Validator.isNotNull(fineLavori.getPagamentoId()); boolean disabledInput = Validator.isNotNull(fineLavori.getPagamentoId());
boolean pagamentoIsPagato = false; boolean pagamentoIsPagato = false;
boolean pagamentoIsPending = false; boolean pagamentoIsPending = false;
boolean pagamentoNonPagabile = false; boolean pagamentoNonPagabile = false;
@ -44,189 +32,149 @@
Pagamento pagamento = null; Pagamento pagamento = null;
if (Validator.isNotNull(fineLavori.getPagamentoId())) { if (Validator.isNotNull(fineLavori.getPagamentoId())) {
pagamento = PagamentoLocalServiceUtil.getPagamento(fineLavori.getPagamentoId()); pagamento = PagamentoLocalServiceUtil.getPagamento(fineLavori.getPagamentoId());
pagamentoIsPagato = pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA); pagamentoIsPagato = pagamento.getUtilizzata().equals(PagamentoConstants.UTILIZZATA_PAGATA);
pagamentoIsPending = pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO); pagamentoIsPending = pagamento.getUtilizzata().equals(PagamentoConstants.UTILIZZATA_IN_CORSO);
pagamentoNonPagabile = pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE); pagamentoNonPagabile = pagamento.getUtilizzata().equals(PagamentoConstants.UTILIZZATA_NON_PAGABILE);
pagamentoRifiutato = pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA); pagamentoRifiutato = pagamento.getUtilizzata().equals(PagamentoConstants.UTILIZZATA_RIFIUTATA);
pagamentoAnnullato = pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO); pagamentoAnnullato = pagamento.getUtilizzata().equals(PagamentoConstants.UTILIZZATA_ANNULLATO);
} }
String formRicevutaPagamento = "fmRicevuta"; String formRicevutaPagamento = "fmRicevuta";
//String formSostituisciPagamento = "fmSostituisci";
String currentCompleteUrl = PortalUtil.getCurrentCompleteURL(request); String currentCompleteUrl = PortalUtil.getCurrentCompleteURL(request);
%> %>
<liferay-portlet:renderURL var="verifyURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:renderURL var="verifyURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fine-lavori.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fine-lavori.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="fineLavoriId" value="<%= String.valueOf(fineLavoriId) %>" /> <liferay-portlet:param name="fineLavoriId" value="<%= String.valueOf(fineLavoriId) %>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-portlet:renderURL var="verifyPagamentoURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:renderURL var="verifyPagamentoURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fine-lavori_calcolo.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fine-lavori_calcolo.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="fineLavoriId" value="<%= String.valueOf(fineLavoriId) %>" /> <liferay-portlet:param name="fineLavoriId" value="<%= String.valueOf(fineLavoriId) %>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<div class="container-fluid clearfix root-calc"> <div class="container-fluid clearfix root-calc">
<h2 class="title-fascicolo pull-left">Calcolo importo</h2> <h2 class="title-fascicolo pull-left">Calcolo importo</h2>
<div class="pull-right" > <div class="pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true"
<c:if test="<%= !PagamentiCommonUtil.pagamentiCompleted(fineLavori.getFineLavoriId(), FineLavori.class.getName()) %>"> cssClass="inline_toolbar" >
<liferay-ui:icon <c:if test="<%= !PagamentiCommonUtil.pagamentiCompleted(fineLavori.getFineLavoriId(),
iconCssClass="fa fa-chevron-left" FineLavori.class.getName()) %>">
message="go-back" <liferay-ui:icon iconCssClass="fa fa-chevron-left" message="go-back" url="<%= verifyURL %>"
url="<%=verifyURL %>" linkCssClass="btn" />
linkCssClass="btn"
/>
</c:if> </c:if>
</liferay-ui:icon-menu> </liferay-ui:icon-menu>
</div> </div>
</div> </div>
<liferay-util:include page="/html/common/help_message.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/common/help_message.jsp" servletContext="<%= application %>">
<liferay-util:param name="message" value="help_message_calcolo_importo"></liferay-util:param> <liferay-util:param name="message" value="help_message_calcolo_importo" />
</liferay-util:include> </liferay-util:include>
<div class="container-fluid"> <div class="container-fluid">
<div class="row header-calcolo"> <div class="row header-calcolo">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 padding_15"> <div class="col-xs-12 padding_15">
<%= intPratica.getTitle(false) %> <%= intPratica.getTitle(false) %>
<strong> <strong>
<%= Validator.isNotNull(intPratica) ? " - "+LanguageUtil.get(pageContext, "tipo-pratica-"+intPratica.getTipoPratica()) : "" %> - <%= LanguageUtil.get(pageContext, "tipo-pratica-" + intPratica.getTipoPratica()) %>
</strong> </strong>
</div> </div>
</div> </div>
</div> </div>
<c:if test="<%= Validator.isNotNull(pagamento) && !fineLavori.getNormEsenteBollo() %>"> <c:if test="<%= Validator.isNotNull(pagamento) && !fineLavori.getNormEsenteBollo() %>">
<div class="container-fluid clearfix calcolo-importo"> <div class="container-fluid clearfix calcolo-importo">
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 padding_15"> <div class="col-xs-12 padding_15">
<div class="module-group"> <div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="label-pagamento-bolli"> <liferay-ui:panel extended="false" defaultState="open" collapsible="false"
title="label-pagamento-bolli">
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<c:if test="<%= pagamentoIsPagato || pagamentoIsPending %>"> <c:if test="<%= pagamentoIsPagato || pagamentoIsPending %>">
<c:if test="<%= pagamentoIsPagato %>"> <c:if test="<%= pagamentoIsPagato %>">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 padding_15"> <div class="col-xs-12 padding_15"><span>
<span><%= LanguageUtil.get(pageContext, "text-pagamento-completato-bolli") %></span> <%= LanguageUtil.get(pageContext, "text-pagamento-completato-bolli") %>
</div> </span></div>
</c:if> </c:if>
<c:if test="<%= pagamentoIsPending %>"> <c:if test="<%= pagamentoIsPending %>">
<liferay-portlet:actionURL name="allegatoFilePagamento" var="allegatoFilePagamentoURL"> <liferay-portlet:actionURL name="allegatoFilePagamento"
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fine-lavori_calcolo.jsp"/> var="allegatoFilePagamentoURL">
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/> <liferay-portlet:param name="mvcPath"
<liferay-portlet:param name="fineLavoriId" value="<%= String.valueOf(fineLavoriId) %>" /> value="/html/fascicolofe/verify_fine-lavori_calcolo.jsp" />
<liferay-portlet:param name="pagamentoId" value='<%= String.valueOf(pagamento.getPagamentoId()) %>'/> <liferay-portlet:param name="intPraticaId"
value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="fineLavoriId"
value="<%= String.valueOf(fineLavoriId) %>" />
<liferay-portlet:param name="pagamentoId"
value='<%= String.valueOf(pagamento.getPagamentoId()) %>'/>
<liferay-portlet:param name="redirect" value="<%=verifyPagamentoURL %>"/> <liferay-portlet:param name="redirect" value="<%=verifyPagamentoURL %>"/>
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<c:if test="<%= !PagamentiCommonUtil.irisIsEnable(companyId)
<c:if test="<%= !PagamentiCommonUtil.irisIsEnable(companyId) || pagamento.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE) %>"> || pagamento.getMezzo().equalsIgnoreCase(
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15"> PagamentoConstants.MEZZO_MANUALE) %>">
<span><%= LanguageUtil.get(pageContext, "text-pagamento-manuale-bolli") %></span> <div class="col-xs-10 padding_15"><span>
<c:if test="<%= (pagamentoIsPending && pagamento.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE) && <%= LanguageUtil.get(pageContext, "text-pagamento-manuale-bolli") %>
</span>
<c:if test="<%= (pagamentoIsPending && pagamento.getMezzo()
.equals(PagamentoConstants.MEZZO_MANUALE) &&
PagamentiCommonUtil.irisIsEnable(companyId) ) %>"> PagamentiCommonUtil.irisIsEnable(companyId) ) %>">
<liferay-util:include page="/html/fascicolofe/pagamenti/replace_payment.jsp" servletContext="<%= application %>" > <liferay-util:include servletContext="<%= application %>"
<liferay-util:param name="pagamentoId" value='<%= String.valueOf(pagamento.getPagamentoId()) %>'></liferay-util:param> page="/html/fascicolofe/pagamenti/replace_payment.jsp" >
<liferay-util:param name="verifyPagamentoURL" value='<%= verifyPagamentoURL %>'></liferay-util:param> <liferay-util:param name="pagamentoId"
value='<%= String.valueOf(pagamento.getPagamentoId()) %>' />
<liferay-util:param name="verifyPagamentoURL"
value='<%= verifyPagamentoURL %>' />
</liferay-util:include> </liferay-util:include>
<%-- <liferay-portlet:actionURL name="sostituisciPagamento" var="sostituisciPagamentoBolliURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_calcolo.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="fineLavoriId" value="<%= String.valueOf(fineLavoriId) %>" />
<liferay-portlet:param name="pagamentoId" value='<%= String.valueOf(pagamento.getPagamentoId()) %>'/>
<liferay-portlet:param name="codiceFiscaleCommittente" value='<%= pagamento.getCodiceFiscaleCommittente() %>'/>
<liferay-portlet:param name="url" value="<%= currentCompleteUrl %>"/>
<liferay-portlet:param name="redirect" value="<%=verifyPagamentoURL %>"/>
</liferay-portlet:actionURL>
<div>
<aui:form name='<%= formSostituisciPagamento+"_bolli" %>' enctype="multipart/form-data" method="post" action="<%= sostituisciPagamentoBolliURL %>">
<c:if test="<%= PagamentiCommonUtil.irisIsEnable(companyId)%>">
<aui:input type="hidden" name="mezzo" value="<%= PagamentoConstants.MEZZO_IRIS %>" />
</c:if>
<c:if test="<%= !PagamentiCommonUtil.irisIsEnable(companyId)%>">
<aui:input type="hidden" name="mezzo" value="<%= PagamentoConstants.MEZZO_MANUALE %>" />
</c:if>
<aui:button-row>
<aui:button type="submit" value="sostituisci-pagamento-bolli" icon="icon-retweet" iconAlign="left"/>
</aui:button-row>
</aui:form>
</div> --%>
</c:if> </c:if>
</div> </div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 padding_15 total-row"> <div class="col-xs-2 padding_15 total-row">
<aui:form name="<%= formRicevutaPagamento %>" enctype="multipart/form-data" method="post" action="<%= allegatoFilePagamentoURL %>"> <aui:form name="<%= formRicevutaPagamento %>"
enctype="multipart/form-data" method="post"
action="<%= allegatoFilePagamentoURL %>">
<div> <div>
<aui:input type="file" name="docFile" label="Ricevuta Pagamento"> <aui:input type="file" name="docFile"
<aui:validator name="required" errorMessage="File Richiesto" /> label="Ricevuta Pagamento">
<aui:validator name="acceptFiles" errorMessage="Errore... Formati supportati: pdf,p7m">'p7m,pdf'</aui:validator> <aui:validator name="required"
errorMessage="File Richiesto" />
<aui:validator name="acceptFiles"
errorMessage="Errore... Formati supportati: pdf,p7m">'p7m,pdf'</aui:validator>
</aui:input> </aui:input>
</div> </div>
<aui:button-row> <aui:button-row>
<aui:button type="submit" value="upload-file" /> <aui:button type="submit" value="upload-file" />
</aui:button-row> </aui:button-row>
</aui:form> </aui:form>
</div> </div>
</c:if> </c:if>
<c:if test="<%= PagamentiCommonUtil.irisIsEnable(companyId) && pagamento.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_IRIS) && <c:if test="<%= PagamentiCommonUtil.irisIsEnable(companyId)
Validator.isNotNull(pagamento.getUrl())%>"> && pagamento.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_IRIS)
<liferay-util:include page="/html/fascicolofe/pagamenti/confirm_iris.jsp" servletContext="<%= application %>" > && Validator.isNotNull(pagamento.getUrl())%>">
<liferay-util:param name="pagamentoId" value='<%= String.valueOf(pagamento.getPagamentoId()) %>'></liferay-util:param> <liferay-util:include page="/html/fascicolofe/pagamenti/confirm_iris.jsp"
servletContext="<%= application %>" >
<liferay-util:param name="pagamentoId"
value='<%= String.valueOf(pagamento.getPagamentoId()) %>' />
</liferay-util:include> </liferay-util:include>
<%-- <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15">
<span><%= LanguageUtil.get(pageContext, "text-pagamento-iris") %></span>
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 padding_15 total-row">
<c:set var="pagamentoBolliUrl" value="<%=pagamento.getUrl()%>"/>
<aui:button value="go-to-iris" cssClass="btn btn-primary" onClick="window.open('${pagamentoBolliUrl}','_blank')"/>
</div> --%>
</c:if> </c:if>
</c:if> </c:if>
</c:if> </c:if>
<c:if test="<%= pagamentoNonPagabile || pagamentoRifiutato %>"> <c:if test="<%= pagamentoNonPagabile || pagamentoRifiutato %>">
<c:if test="<%= pagamentoNonPagabile %>"> <c:if test="<%= pagamentoNonPagabile %>">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15"> <div class="col-xs-10 padding_15">
<span><%= LanguageUtil.get(pageContext, "text-pagamento-nonpagabile-bolli") %></span> <span><%= LanguageUtil.get(pageContext,
"text-pagamento-nonpagabile-bolli") %></span>
</div> </div>
</c:if> </c:if>
<c:if test="<%= pagamentoRifiutato %>"> <c:if test="<%= pagamentoRifiutato %>">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15"> <div class="col-xs-10 padding_15">
<span><%= LanguageUtil.get(pageContext, "text-pagamento-rifiutato-bolli") %></span> <span><%= LanguageUtil.get(pageContext,
"text-pagamento-rifiutato-bolli") %></span>
</div> </div>
</c:if> </c:if>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 padding_15"> <div class="col-xs-2 padding_15">
<liferay-util:include page="/html/fascicolofe/pagamenti/replace_payment.jsp" servletContext="<%= application %>" > <liferay-util:include page="/html/fascicolofe/pagamenti/replace_payment.jsp"
<liferay-util:param name="pagamentoId" value='<%= String.valueOf(pagamento.getPagamentoId()) %>'></liferay-util:param> servletContext="<%= application %>" >
<liferay-util:param name="verifyPagamentoURL" value='<%= verifyPagamentoURL %>'></liferay-util:param> <liferay-util:param name="pagamentoId"
value='<%= String.valueOf(pagamento.getPagamentoId()) %>' />
<liferay-util:param name="verifyPagamentoURL"
value='<%= verifyPagamentoURL %>' />
</liferay-util:include> </liferay-util:include>
</div> </div>
<%-- <div class="col-xs-12 col-sm-6 col-md-4 col-lg-4 col-lg-4 padding_15">
<liferay-portlet:actionURL name="sostituisciPagamento" var="sostituisciPagamentoBolliRifiutatoURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_calcolo.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="fineLavoriId" value="<%= String.valueOf(fineLavoriId) %>" />
<liferay-portlet:param name="pagamentoId" value='<%= String.valueOf(pagamento.getPagamentoId()) %>'/>
<liferay-portlet:param name="codiceFiscaleCommittente" value='<%= pagamento.getCodiceFiscaleCommittente() %>'/>
<liferay-portlet:param name="url" value="<%= currentCompleteUrl %>"/>
<liferay-portlet:param name="redirect" value="<%=verifyPagamentoURL %>"/>
</liferay-portlet:actionURL>
<aui:form name='<%= formSostituisciPagamento+"_bolli_rifiutato" %>' method="post" action="<%= sostituisciPagamentoBolliRifiutatoURL %>">
<c:if test="<%= PagamentiCommonUtil.irisIsEnable(companyId)%>">
<aui:input type="hidden" name="mezzo" value="<%= PagamentoConstants.MEZZO_IRIS %>" />
</c:if>
<c:if test="<%= !PagamentiCommonUtil.irisIsEnable(companyId)%>">
<aui:input type="hidden" name="mezzo" value="<%= PagamentoConstants.MEZZO_MANUALE %>" />
</c:if>
<aui:button-row>
<aui:button type="submit" value="sostituisci-pagamento-bolli" icon="icon-retweet" iconAlign="left"/>
</aui:button-row>
</aui:form>
</div> --%>
</c:if> </c:if>
<c:if test="<%= pagamentoAnnullato %>"> <c:if test="<%= pagamentoAnnullato %>">
<span><%= LanguageUtil.get(pageContext, "text-pagamento-annullato-bolli") %></span> <span><%= LanguageUtil.get(pageContext, "text-pagamento-annullato-bolli") %></span>
@ -239,7 +187,6 @@
</div> </div>
</div> </div>
</c:if> </c:if>
<c:if test="<%= PagamentiCommonUtil.pagamentiCompleted(fineLavori.getFineLavoriId(), FineLavori.class.getName()) %>"> <c:if test="<%= PagamentiCommonUtil.pagamentiCompleted(fineLavori.getFineLavoriId(), FineLavori.class.getName()) %>">
<liferay-util:include page="/html/fascicolofe/completed_fascicolo.jsp" servletContext="<%= application %>" > <liferay-util:include page="/html/fascicolofe/completed_fascicolo.jsp" servletContext="<%= application %>" >
<liferay-util:param name="classPk" value="<%=String.valueOf(fineLavori.getFineLavoriId())%>" /> <liferay-util:param name="classPk" value="<%=String.valueOf(fineLavori.getFineLavoriId())%>" />
@ -247,11 +194,9 @@
</liferay-util:include> </liferay-util:include>
<div class="separator" style="margin: 30px 0 40px 0"></div> <div class="separator" style="margin: 30px 0 40px 0"></div>
</c:if> </c:if>
<c:if test="<%= PagamentiCommonUtil.pagamentiInitialized(fineLavori.getFineLavoriId(), FineLavori.class.getName()) %>"> <c:if test="<%= PagamentiCommonUtil.pagamentiInitialized(fineLavori.getFineLavoriId(), FineLavori.class.getName()) %>">
<h2 class="pagamento_riepilogo text-center txt-bold">Riepilogo</h2> <h2 class="pagamento_riepilogo text-center txt-bold">Riepilogo</h2>
</c:if> </c:if>
<liferay-portlet:actionURL name="pagaInvia" var="pagaInviaURL" > <liferay-portlet:actionURL name="pagaInvia" var="pagaInviaURL" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fine-lavori_calcolo.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fine-lavori_calcolo.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
@ -259,37 +204,41 @@
<liferay-portlet:param name="url" value="<%= currentCompleteUrl %>"/> <liferay-portlet:param name="url" value="<%= currentCompleteUrl %>"/>
<liferay-portlet:param name="redirect" value="<%=verifyPagamentoURL %>"/> <liferay-portlet:param name="redirect" value="<%=verifyPagamentoURL %>"/>
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<aui:form name="<%= formName %>" enctype="multipart/form-data" method="post" action="<%= pagaInviaURL %>"> <aui:form name="<%= formName %>" enctype="multipart/form-data" method="post" action="<%= pagaInviaURL %>">
<div class="container-fluid clearfix calcolo-importo"> <div class="container-fluid clearfix calcolo-importo">
<div class="row"> <div class="row">
<div class="col-md-6 col-sm-6 col-xs-12"> <div class="col-sm-6 col-xs-12">
<aui:select label="gc-soggetto-02" name="codiceFiscaleCommittente" showEmptyOption="true" required="true" showRequiredLabel="true" disabled="<%= disabledInput %>" > <aui:select label="gc-soggetto-02" name="codiceFiscaleCommittente" showEmptyOption="true"
required="true" showRequiredLabel="true" disabled="<%= disabledInput %>" >
<% <%
List<Soggetto> committenti = SoggettoLocalServiceUtil.getValidByIntPratica_TipologiaSoggetto(intPraticaId, TipoSoggettoUtil.COMMITTENTE); List<Soggetto> committenti = SoggettoLocalServiceUtil.getValidByIntPratica_TipologiaSoggetto(
intPraticaId, TipoSoggettoUtil.COMMITTENTE);
for (Soggetto committente : committenti) { for (Soggetto committente : committenti) {
%> %>
<aui:option label='<%= committente.getDescrizioneCompleta() %>' value="<%= committente.getCodiceFiscale() %>" <aui:option label='<%= committente.getDescrizioneCompleta() %>'
selected="<%= Validator.isNotNull(pagamento) && committente.getCodiceFiscale().equalsIgnoreCase(pagamento.getCodiceFiscaleCommittente()) %>"/> value="<%= committente.getCodiceFiscale() %>"
selected="<%= (committenti.size() == 1) || (Validator.isNotNull(pagamento)
&& committente.getCodiceFiscale().equalsIgnoreCase(
pagamento.getCodiceFiscaleCommittente())) %>" />
<% <%
} }
%> %>
</aui:select> </aui:select>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 padding_15"> <div class="col-xs-12 padding_15">
<div class="module-group"> <div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="label-pagamenti-spese-bolli"> <liferay-ui:panel extended="false" defaultState="open" collapsible="false"
title="label-pagamenti-spese-bolli">
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-md-12 col-sm-12 col-xs-12 container-norm_esente_bollo"> <div class="col-xs-12 container-norm_esente_bollo">
<aui:input cssClass="refresh-input" disabled="true" <aui:input cssClass="refresh-input" disabled="true"
name="normEsenteBollo" label="norm-esente-bollo" name="normEsenteBollo" label="norm-esente-bollo"
bean="<%= fineLavori %>" model="<%= FineLavori.class %>" /> bean="<%= fineLavori %>" model="<%= FineLavori.class %>" />
</div> </div>
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15"> <div class="col-xs-10 padding_15">
<div class="row container-price__row"> <div class="row container-price__row">
<c:if test="<%= fineLavori.isNormEsenteBollo() %>"> <c:if test="<%= fineLavori.isNormEsenteBollo() %>">
<ol style="list-style-type: none; width:100%"> <ol style="list-style-type: none; width:100%">
@ -300,18 +249,21 @@
</c:if> </c:if>
</div> </div>
</div> </div>
<div class="col-xs-2 padding_15 total-row">
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 padding_15 total-row">
<div class="total-row__label">Totale importo</div> <div class="total-row__label">Totale importo</div>
<% <%
BigDecimal importoBollo = null; BigDecimal importoBollo = null;
if (Validator.isNotNull(pagamento)) { if (Validator.isNotNull(pagamento)) {
importoBollo = new BigDecimal(pagamento.getImporto()); importoBollo = new BigDecimal(pagamento.getImporto());
} else { } else {
importoBollo = fineLavori.isNormEsenteBollo() ? new BigDecimal("0.00") : PagamentiCommonUtil.getImportoBolli(companyId, fineLavori.getFineLavoriId(), FineLavori.class.getName(), TipoIntegrazioneUtil.FINE_LAVORI); importoBollo = fineLavori.isNormEsenteBollo() ? new BigDecimal("0.00")
: PagamentiCommonUtil.getImportoBolli(companyId,
fineLavori.getFineLavoriId(), FineLavori.class.getName(),
TipoIntegrazioneUtil.FINE_LAVORI);
} }
%> %>
<div class="total-row__value"><strong> <%= NumberFormat.getCurrencyInstance(LocaleUtil.getSiteDefault()).format(importoBollo) %></strong></div> <div class="total-row__value"><strong> <%= NumberFormat.getCurrencyInstance(
LocaleUtil.getSiteDefault()).format(importoBollo) %></strong></div>
</div> </div>
</div> </div>
</div> </div>
@ -319,33 +271,23 @@
</div> </div>
</div> </div>
</div> </div>
<c:if test="<%= Validator.isNull(pagamento) %>"> <c:if test="<%= Validator.isNull(pagamento) %>">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-right"> <div class="pull-right">
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true"
<liferay-ui:icon cssClass="inline_toolbar" >
iconCssClass="fa fa-close" <liferay-ui:icon iconCssClass="fa fa-close" message="cancel" url="<%= verifyURL %>"
message="cancel" linkCssClass="btn" />
url="<%=verifyURL %>" <liferay-ui:icon id="<%=buttonId %>" iconCssClass="fa fa-credit-card"
linkCssClass="btn" message="Paga e invia" url="#" linkCssClass="btn btn-primary" />
/>
<liferay-ui:icon
id="<%=buttonId %>"
iconCssClass="fa fa-credit-card"
message="Paga e invia"
url="#"
linkCssClass="btn btn-primary"
/>
</liferay-ui:icon-menu> </liferay-ui:icon-menu>
</div> </div>
</div> </div>
</div> </div>
<div id='<%= renderResponse.getNamespace() + "saveAndCloseDiv" %>' class="hide" > <div id='<%= renderResponse.getNamespace() + "saveAndCloseDiv" %>' class="hide" >
<% <%
String paymentConfirmText = ""; String paymentConfirmText = StringPool.BLANK;
if (PagamentiCommonUtil.irisIsEnable(companyId)) { if (PagamentiCommonUtil.irisIsEnable(companyId)) {
paymentConfirmText = LanguageUtil.get(pageContext, "label-confirm-payment-iris"); paymentConfirmText = LanguageUtil.get(pageContext, "label-confirm-payment-iris");
} else { } else {
@ -355,15 +297,14 @@
<span style="min-height:70px"><%= paymentConfirmText %></span> <span style="min-height:70px"><%= paymentConfirmText %></span>
</div> </div>
<liferay-util:include page="/html/common/submit_window.jsp" servletContext="<%= application %>" > <liferay-util:include page="/html/common/submit_window.jsp" servletContext="<%= application %>" >
<liferay-util:param name="formName" value="<%= formName %>"></liferay-util:param> <liferay-util:param name="formName" value="<%= formName %>" />
<liferay-util:param name="titolo" value="Attenzione"></liferay-util:param> <liferay-util:param name="titolo" value="Attenzione" />
<liferay-util:param name="buttonId" value="<%=buttonId %>"></liferay-util:param> <liferay-util:param name="buttonId" value="<%= buttonId %>" />
<liferay-util:param name="buttonConferma" value="Conferma"></liferay-util:param> <liferay-util:param name="buttonConferma" value="Conferma" />
<liferay-util:param name="width" value="500"></liferay-util:param> <liferay-util:param name="width" value="500" />
<liferay-util:param name="height" value="280"></liferay-util:param> <liferay-util:param name="height" value="280" />
<liferay-util:param name="externalForm" value="true"></liferay-util:param> <liferay-util:param name="externalForm" value="true" />
</liferay-util:include> </liferay-util:include>
</c:if> </c:if>
</div> </div>
</aui:form> </aui:form>

312
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fine-lavori_calcolo_old.jsp

@ -0,0 +1,312 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.model.FineLavori"%>
<%@page import="it.tref.liferay.portos.bo.model.Pagamento"%>
<%@page import="it.tref.liferay.portos.bo.service.FineLavoriServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="java.math.BigDecimal"%>
<%@page import="java.text.NumberFormat"%>
<%@ include file="/html/fascicolofe/init.jsp" %>
<%
long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0L);
long fineLavoriId = ParamUtil.getLong(request, "fineLavoriId", 0L);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(fineLavoriId);
if (fineLavori == null) {
fineLavori = FineLavoriServiceUtil.getLastEditable(intPraticaId);
}
String formName = "fmpaga";
String buttonId = "fmbutton";
long companyId = company.getCompanyId();
boolean disabledInput = Validator.isNotNull(fineLavori.getPagamentoId());
boolean pagamentoIsPagato = false;
boolean pagamentoIsPending = false;
boolean pagamentoNonPagabile = false;
boolean pagamentoRifiutato = false;
boolean pagamentoAnnullato = false;
Pagamento pagamento = null;
if (Validator.isNotNull(fineLavori.getPagamentoId())) {
pagamento = PagamentoLocalServiceUtil.getPagamento(fineLavori.getPagamentoId());
pagamentoIsPagato = pagamento.getUtilizzata().equals(PagamentoConstants.UTILIZZATA_PAGATA);
pagamentoIsPending = pagamento.getUtilizzata().equals(PagamentoConstants.UTILIZZATA_IN_CORSO);
pagamentoNonPagabile = pagamento.getUtilizzata().equals(PagamentoConstants.UTILIZZATA_NON_PAGABILE);
pagamentoRifiutato = pagamento.getUtilizzata().equals(PagamentoConstants.UTILIZZATA_RIFIUTATA);
pagamentoAnnullato = pagamento.getUtilizzata().equals(PagamentoConstants.UTILIZZATA_ANNULLATO);
}
String formRicevutaPagamento = "fmRicevuta";
String currentCompleteUrl = PortalUtil.getCurrentCompleteURL(request);
%>
<liferay-portlet:renderURL var="verifyURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fine-lavori.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="fineLavoriId" value="<%= String.valueOf(fineLavoriId) %>" />
</liferay-portlet:renderURL>
<liferay-portlet:renderURL var="verifyPagamentoURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fine-lavori_calcolo.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="fineLavoriId" value="<%= String.valueOf(fineLavoriId) %>" />
</liferay-portlet:renderURL>
<div class="container-fluid clearfix root-calc">
<h2 class="title-fascicolo pull-left">Calcolo importo</h2>
<div class="pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true"
cssClass="inline_toolbar" >
<c:if test="<%= !PagamentiCommonUtil.pagamentiCompleted(fineLavori.getFineLavoriId(),
FineLavori.class.getName()) %>">
<liferay-ui:icon iconCssClass="fa fa-chevron-left" message="go-back" url="<%= verifyURL %>"
linkCssClass="btn" />
</c:if>
</liferay-ui:icon-menu>
</div>
</div>
<liferay-util:include page="/html/common/help_message.jsp" servletContext="<%= application %>">
<liferay-util:param name="message" value="help_message_calcolo_importo" />
</liferay-util:include>
<div class="container-fluid">
<div class="row header-calcolo">
<div class="col-xs-12 padding_15">
<%= intPratica.getTitle(false) %>
<strong>
<%= Validator.isNull(intPratica) ? StringPool.BLANK
: " - " + LanguageUtil.get(pageContext, "tipo-pratica-" + intPratica.getTipoPratica()) %>
</strong>
</div>
</div>
</div>
<c:if test="<%= Validator.isNotNull(pagamento) && !fineLavori.getNormEsenteBollo() %>">
<div class="container-fluid clearfix calcolo-importo">
<div class="row">
<div class="col-xs-12 padding_15">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false"
title="label-pagamento-bolli">
<div class="container-fluid">
<div class="row">
<c:if test="<%= pagamentoIsPagato || pagamentoIsPending %>">
<c:if test="<%= pagamentoIsPagato %>">
<div class="col-xs-12 padding_15"><span>
<%= LanguageUtil.get(pageContext, "text-pagamento-completato-bolli") %>
</span></div>
</c:if>
<c:if test="<%= pagamentoIsPending %>">
<liferay-portlet:actionURL name="allegatoFilePagamento"
var="allegatoFilePagamentoURL">
<liferay-portlet:param name="mvcPath"
value="/html/fascicolofe/verify_fine-lavori_calcolo.jsp" />
<liferay-portlet:param name="intPraticaId"
value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="fineLavoriId"
value="<%= String.valueOf(fineLavoriId) %>" />
<liferay-portlet:param name="pagamentoId"
value='<%= String.valueOf(pagamento.getPagamentoId()) %>'/>
<liferay-portlet:param name="redirect" value="<%=verifyPagamentoURL %>"/>
</liferay-portlet:actionURL>
<c:if test="<%= !PagamentiCommonUtil.irisIsEnable(companyId)
|| pagamento.getMezzo().equalsIgnoreCase(
PagamentoConstants.MEZZO_MANUALE) %>">
<div class="col-xs-10 padding_15"><span>
<%= LanguageUtil.get(pageContext, "text-pagamento-manuale-bolli") %>
</span>
<c:if test="<%= (pagamentoIsPending && pagamento.getMezzo()
.equals(PagamentoConstants.MEZZO_MANUALE) &&
PagamentiCommonUtil.irisIsEnable(companyId) ) %>">
<liferay-util:include servletContext="<%= application %>"
page="/html/fascicolofe/pagamenti/replace_payment.jsp" >
<liferay-util:param name="pagamentoId"
value='<%= String.valueOf(pagamento.getPagamentoId()) %>' />
<liferay-util:param name="verifyPagamentoURL"
value='<%= verifyPagamentoURL %>' />
</liferay-util:include>
</c:if>
</div>
<div class="col-xs-2 padding_15 total-row">
<aui:form name="<%= formRicevutaPagamento %>"
enctype="multipart/form-data" method="post"
action="<%= allegatoFilePagamentoURL %>">
<div>
<aui:input type="file" name="docFile"
label="Ricevuta Pagamento">
<aui:validator name="required"
errorMessage="File Richiesto" />
<aui:validator name="acceptFiles"
errorMessage="Errore... Formati supportati: pdf,p7m">'p7m,pdf'</aui:validator>
</aui:input>
</div>
<aui:button-row>
<aui:button type="submit" value="upload-file" />
</aui:button-row>
</aui:form>
</div>
</c:if>
<c:if test="<%= PagamentiCommonUtil.irisIsEnable(companyId)
&& pagamento.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_IRIS)
&& Validator.isNotNull(pagamento.getUrl())%>">
<liferay-util:include page="/html/fascicolofe/pagamenti/confirm_iris.jsp"
servletContext="<%= application %>" >
<liferay-util:param name="pagamentoId"
value='<%= String.valueOf(pagamento.getPagamentoId()) %>' />
</liferay-util:include>
</c:if>
</c:if>
</c:if>
<c:if test="<%= pagamentoNonPagabile || pagamentoRifiutato %>">
<c:if test="<%= pagamentoNonPagabile %>">
<div class="col-xs-10 padding_15">
<span><%= LanguageUtil.get(pageContext,
"text-pagamento-nonpagabile-bolli") %></span>
</div>
</c:if>
<c:if test="<%= pagamentoRifiutato %>">
<div class="col-xs-10 padding_15">
<span><%= LanguageUtil.get(pageContext,
"text-pagamento-rifiutato-bolli") %></span>
</div>
</c:if>
<div class="col-xs-2 padding_15">
<liferay-util:include page="/html/fascicolofe/pagamenti/replace_payment.jsp"
servletContext="<%= application %>" >
<liferay-util:param name="pagamentoId"
value='<%= String.valueOf(pagamento.getPagamentoId()) %>' />
<liferay-util:param name="verifyPagamentoURL"
value='<%= verifyPagamentoURL %>' />
</liferay-util:include>
</div>
</c:if>
<c:if test="<%= pagamentoAnnullato %>">
<span><%= LanguageUtil.get(pageContext, "text-pagamento-annullato-bolli") %></span>
</c:if>
</div>
</div>
</liferay-ui:panel>
</div>
</div>
</div>
</div>
</c:if>
<c:if test="<%= PagamentiCommonUtil.pagamentiCompleted(fineLavori.getFineLavoriId(), FineLavori.class.getName()) %>">
<liferay-util:include page="/html/fascicolofe/completed_fascicolo.jsp" servletContext="<%= application %>" >
<liferay-util:param name="classPk" value="<%=String.valueOf(fineLavori.getFineLavoriId())%>" />
<liferay-util:param name="className" value="<%=FineLavori.class.getName()%>" />
</liferay-util:include>
<div class="separator" style="margin: 30px 0 40px 0"></div>
</c:if>
<c:if test="<%= PagamentiCommonUtil.pagamentiInitialized(fineLavori.getFineLavoriId(), FineLavori.class.getName()) %>">
<h2 class="pagamento_riepilogo text-center txt-bold">Riepilogo</h2>
</c:if>
<liferay-portlet:actionURL name="pagaInvia" var="pagaInviaURL" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fine-lavori_calcolo.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="fineLavoriId" value="<%= String.valueOf(fineLavoriId) %>" />
<liferay-portlet:param name="url" value="<%= currentCompleteUrl %>"/>
<liferay-portlet:param name="redirect" value="<%=verifyPagamentoURL %>"/>
</liferay-portlet:actionURL>
<aui:form name="<%= formName %>" enctype="multipart/form-data" method="post" action="<%= pagaInviaURL %>">
<div class="container-fluid clearfix calcolo-importo">
<div class="row">
<div class="col-sm-6 col-xs-12">
<aui:select label="gc-soggetto-02" name="codiceFiscaleCommittente" showEmptyOption="true"
required="true" showRequiredLabel="true" disabled="<%= disabledInput %>" >
<%
List<Soggetto> committenti = SoggettoLocalServiceUtil.getValidByIntPratica_TipologiaSoggetto(
intPraticaId, TipoSoggettoUtil.COMMITTENTE);
for (Soggetto committente : committenti) {
%>
<aui:option label='<%= committente.getDescrizioneCompleta() %>'
value="<%= committente.getCodiceFiscale() %>"
selected="<%= (committenti.size() == 1) || (Validator.isNotNull(pagamento)
&& committente.getCodiceFiscale().equalsIgnoreCase(
pagamento.getCodiceFiscaleCommittente())) %>" />
<%
}
%>
</aui:select>
</div>
</div>
<div class="row">
<div class="col-xs-12 padding_15">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false"
title="label-pagamenti-spese-bolli">
<div class="container-fluid">
<div class="row">
<div class="col-xs-12 container-norm_esente_bollo">
<aui:input cssClass="refresh-input" disabled="true"
name="normEsenteBollo" label="norm-esente-bollo"
bean="<%= fineLavori %>" model="<%= FineLavori.class %>" />
</div>
<div class="col-xs-10 padding_15">
<div class="row container-price__row">
<c:if test="<%= fineLavori.isNormEsenteBollo() %>">
<ol style="list-style-type: none; width:100%">
<li>
<strong>Esente Bollo</strong>
</li>
</ol>
</c:if>
</div>
</div>
<div class="col-xs-2 padding_15 total-row">
<div class="total-row__label">Totale importo</div>
<%
BigDecimal importoBollo = null;
if (Validator.isNotNull(pagamento)) {
importoBollo = new BigDecimal(pagamento.getImporto());
} else {
importoBollo = fineLavori.isNormEsenteBollo() ? new BigDecimal("0.00")
: PagamentiCommonUtil.getImportoBolli(companyId,
fineLavori.getFineLavoriId(), FineLavori.class.getName(),
TipoIntegrazioneUtil.FINE_LAVORI);
}
%>
<div class="total-row__value"><strong> <%= NumberFormat.getCurrencyInstance(
LocaleUtil.getSiteDefault()).format(importoBollo) %></strong></div>
</div>
</div>
</div>
</liferay-ui:panel>
</div>
</div>
</div>
<c:if test="<%= Validator.isNull(pagamento) %>">
<div class="row">
<div class="col-md-12">
<div class="pull-right">
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true"
cssClass="inline_toolbar" >
<liferay-ui:icon iconCssClass="fa fa-close" message="cancel" url="<%= verifyURL %>"
linkCssClass="btn" />
<liferay-ui:icon id="<%=buttonId %>" iconCssClass="fa fa-credit-card"
message="Paga e invia" url="#" linkCssClass="btn btn-primary" />
</liferay-ui:icon-menu>
</div>
</div>
</div>
<div id='<%= renderResponse.getNamespace() + "saveAndCloseDiv" %>' class="hide" >
<%
String paymentConfirmText = StringPool.BLANK;
if (PagamentiCommonUtil.irisIsEnable(companyId)) {
paymentConfirmText = LanguageUtil.get(pageContext, "label-confirm-payment-iris");
} else {
paymentConfirmText = LanguageUtil.get(pageContext, "label-confirm-payment-manual");
}
%>
<span style="min-height:70px"><%= paymentConfirmText %></span>
</div>
<liferay-util:include page="/html/common/submit_window.jsp" servletContext="<%= application %>" >
<liferay-util:param name="formName" value="<%= formName %>" />
<liferay-util:param name="titolo" value="Attenzione" />
<liferay-util:param name="buttonId" value="<%= buttonId %>" />
<liferay-util:param name="buttonConferma" value="Conferma" />
<liferay-util:param name="width" value="500" />
<liferay-util:param name="height" value="280" />
<liferay-util:param name="externalForm" value="true" />
</liferay-util:include>
</c:if>
</div>
</aui:form>

2
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/edit_soggetto.jsp

@ -202,7 +202,7 @@ boolean inBO = ParamUtil.getBoolean(request, "inBO");
<div class="row container_tipologia_soggetto"> <div class="row container_tipologia_soggetto">
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4"> <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">
<c:if test="<%=disabledInput%>"> <c:if test="<%=disabledInput%>">
<aui:select disabled="<%=true%>" name="tipologiaSoggetto"> <aui:select disabled="true" name="tipologiaSoggetto">
<aui:option value="00" selected="<%= soggetto == null %>">Tipologia</aui:option> <aui:option value="00" selected="<%= soggetto == null %>">Tipologia</aui:option>
<aui:option label='<%= "gc-soggetto-" + TipoSoggettoUtil.COMMITTENTE %>' <aui:option label='<%= "gc-soggetto-" + TipoSoggettoUtil.COMMITTENTE %>'
value="<%= TipoSoggettoUtil.COMMITTENTE %>" value="<%= TipoSoggettoUtil.COMMITTENTE %>"

137
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/genera_delega.jsp

@ -0,0 +1,137 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@include file="/html/soggettipratica/init.jsp"%>
<%
String cssClass = "col-xs-12 col-sm-6 col-md-4";
Format format = new SimpleDateFormat("dd/MM/yyyy");
long committenteId = ParamUtil.getLong(renderRequest, "committenteId");
long dettPraticaId = ParamUtil.getLong(renderRequest, "dettPraticaId");
String action = ParamUtil.getString(renderRequest, "action", "anteprima");
%>
<style type="text/css">
.anteprimadelega h1 {
font-size: 14px;
}
.anteprimadelega p, .anteprimadelega li {
font-size: 12px;
margin-bottom: 6px;
}
.anteprimadelega ul {
list-style-type: square;
list-style-position: inside;
}
.anteprimadelega li {
display: list-item !important;
}
.anteprimadelega .indent {
margin-left: 24px;
list-style-type: circle;
margin-bottom: 3px;
}
</style>
<liferay-portlet:renderURL portletName="<%= PortletKeys.SOGGETTI %>" var="aggiornaDelegaURL"
windowState="<%= LiferayWindowState.NORMAL.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/soggettipratica/genera_delega.jsp" />
</liferay-portlet:renderURL>
<liferay-portlet:resourceURL id="delegaPdf" var="delegaPdfURL" >
<%
for (String key : renderRequest.getParameterMap().keySet()) {
String value = renderRequest.getParameter(key);
%>
<liferay-portlet:param name="<%= key %>" value="<%= value %>" />
<%
}
%>
</liferay-portlet:resourceURL>
<liferay-portlet:resourceURL id="inviaMailDelega" var="inviaMailDelegaURL" >
<%
for (String key : renderRequest.getParameterMap().keySet()) {
String value = renderRequest.getParameter(key);
%>
<liferay-portlet:param name="<%= key %>" value="<%= value %>" />
<%
}
%>
</liferay-portlet:resourceURL>
<aui:form action="<%= aggiornaDelegaURL %>">
<aui:input type="hidden" name="redirect" value="<%= currentURL %>" />
<aui:input type="hidden" name="committenteId" value="<%= committenteId %>" />
<aui:input type="hidden" name="dettPraticaId" value="<%= dettPraticaId %>" />
<aui:input type="hidden" name="action" id="action" value="" />
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="Committente">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="Documento di identità">
<div class="row">
<div class="<%= cssClass %>">
<aui:input name="dicommittente" label="Tipo" />
</div>
<div class="<%= cssClass %>">
<aui:input name="nicommittente" label="Numero" />
</div>
<div class="<%= cssClass %>">
<aui:input name="ricommittente" label="Rilasciato da" />
</div>
</div>
</liferay-ui:panel>
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="Rapporti di coniugio">
<div class="row">
<div class="col-xs-12 col-sm-6">
<aui:input type="radio" name="coniugio" value="false" label="Dichiara di non trovarsi in rapporti
di coniugio, parentela o affinità, del coniuge o del convivente, entro il 2° grado, con i
dirigenti e i dipendenti dell'Ufficio del Genio Civile deputati alla trattazione del
procedimento." onClick="mostraNascondiRelazioni()" />
</div>
<div class="col-xs-12 col-sm-6">
<div>
<aui:input type="radio" name="coniugio" value="true" label="Dichiara di trovarsi in rapporti di
coniugio, parentela o affinità entro il 2° grado con i seguenti dipendenti dell'Ufficio
del Genio Civile" onClick="mostraNascondiRelazioni()" />
</div>
<div id="_<%= PortletKeys.SOGGETTI %>_containerRelazioni">
<aui:input type="textarea" name="relazioni" label="Indicare un nome per riga"
value='<%= ParamUtil.getString(renderRequest, "relazioni") %>' />
</div>
</div>
</div>
</liferay-ui:panel>
</liferay-ui:panel>
<div class="row text-right">
<div class="col-xs-12">
<aui:button type="submit" primary="false" value='<i class="fa fa-eye"></i> Aggiorna dati' />
<aui:button href="<%= delegaPdfURL %>" value='<i class="fa fa-download"></i> Scarica PDF' />
<aui:button onClick="return inviaMailDelega()" type="submit"
value='<i class="fa fa-envelope-o"></i> Invia email' />
<br /><br />
</div>
</div>
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="Anteprima">
<div class="anteprimadelega">
<%= SoggettoLocalServiceUtil.getAnteprimaDelega(renderRequest) %>
</div>
</liferay-ui:panel>
</aui:form>
<script>
var elRelazioni = $('#_<%= PortletKeys.SOGGETTI %>_containerRelazioni');
function mostraNascondiRelazioni() {
if ('true' == $('input[name=_<%= PortletKeys.SOGGETTI %>_coniugio]:checked').val()) {
elRelazioni.show();
} else {
elRelazioni.hide();
}
}
function inviaMailDelega() {
$.ajax({
url: '<%= inviaMailDelegaURL %>',
}).done(function (data) {
alert(data.message);
});
return false;
}
$(document).ready(function() {
mostraNascondiRelazioni();
})
</script>

32
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/view.jsp

@ -49,6 +49,14 @@ if (!ValidazionePraticaUtil.praticaIsEditable(dettPratica.getDettPraticaId())) {
} }
Soggetto soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(dettPratica.getDettPraticaId()); Soggetto soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(dettPratica.getDettPraticaId());
boolean inBO = ParamUtil.getBoolean(request, "inBO", false); boolean inBO = ParamUtil.getBoolean(request, "inBO", false);
Soggetto titolare = null;
if (Validator.isNotNull(dettPratica.getCodiceFiscaleDelegatoCommittente())) {
List<Soggetto> titolari = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(dettPratica.getIntPraticaId(),
dettPratica.getCodiceFiscaleDelegatoCommittente());
if (!titolari.isEmpty()) {
titolare = titolari.get(0);
}
}
%> %>
<aui:model-context bean="<%= dettPratica %>" model="<%= DettPratica.class %>" /> <aui:model-context bean="<%= dettPratica %>" model="<%= DettPratica.class %>" />
<% <%
@ -178,6 +186,21 @@ dataMap.put("id", PortletKeys.SOGGETTI + "_dialogEditSoggetto");
<liferay-ui:search-container-column-text name="Azioni" cssClass="text-center"> <liferay-ui:search-container-column-text name="Azioni" cssClass="text-center">
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true"
cssClass="inline_toolbar"> cssClass="inline_toolbar">
<c:if test="<%= TipoSoggettoUtil.COMMITTENTE.equals(soggetto.getTipologiaSoggetto())
&& Validator.isNotNull(titolare) %>">
<liferay-portlet:renderURL portletName="<%= PortletKeys.SOGGETTI %>" var="delegaURL"
windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/soggettipratica/genera_delega.jsp" />
<liferay-portlet:param name="committenteId" value="<%= String.valueOf(soggetto.getSoggettoId()) %>" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPratica.getDettPraticaId()) %>" />
</liferay-portlet:renderURL>
<%
dataMap.put("title", "Genera Delega");
%>
<liferay-ui:icon iconCssClass="fa fa-pencil" message="Genera Delega"
url="<%= delegaURL %>" linkCssClass="btn btn-action btn-success"
useDialog="true" data="<%= dataMap %>" />
</c:if>
<c:if test="<%= soggetto.getDettPraticaId() == dettPratica.getDettPraticaId() %>"> <c:if test="<%= soggetto.getDettPraticaId() == dettPratica.getDettPraticaId() %>">
<liferay-portlet:renderURL portletName="<%= PortletKeys.SOGGETTI %>" var="editURL" <liferay-portlet:renderURL portletName="<%= PortletKeys.SOGGETTI %>" var="editURL"
windowState="<%= LiferayWindowState.POP_UP.toString() %>"> windowState="<%= LiferayWindowState.POP_UP.toString() %>">
@ -512,15 +535,6 @@ dataMap.put("id", PortletKeys.SOGGETTI + "_dialogEditSoggetto");
inlineField="true" useNamespace="false" /> inlineField="true" useNamespace="false" />
</c:if> </c:if>
<c:if test="<%= inBO %>"> <c:if test="<%= inBO %>">
<%
List<Soggetto> titolari = SoggettoLocalServiceUtil
.getValidByIntPratica_CodiceFiscale(dettPratica.getIntPraticaId(),
dettPratica.getCodiceFiscaleDelegatoCommittente());
Soggetto titolare = null;
if (!titolari.isEmpty()) {
titolare = titolari.get(0);
}
%>
<c:if test="<%= Validator.isNotNull(titolare) %>"> <c:if test="<%= Validator.isNotNull(titolare) %>">
<aui:input disabled="<%= disabledInput || inBO %>" type="checkbox" <aui:input disabled="<%= disabledInput || inBO %>" type="checkbox"
name='<%= StringPool.UNDERLINE + PortletKeys.FASCICOLOFE name='<%= StringPool.UNDERLINE + PortletKeys.FASCICOLOFE

14
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/init.jsp

@ -1,5 +1,4 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.util.PortalUtil"%> <%@page import="com.liferay.portal.util.PortalUtil"%>
<%@page import="com.liferay.portlet.PortletURLUtil"%> <%@page import="com.liferay.portlet.PortletURLUtil"%>
<%@page import="javax.portlet.PortletURL"%> <%@page import="javax.portlet.PortletURL"%>
@ -11,13 +10,9 @@
<%@page import="java.util.List"%> <%@page import="java.util.List"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%> <%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="com.liferay.portal.kernel.util.HtmlUtil"%> <%@page import="com.liferay.portal.kernel.util.HtmlUtil"%>
<%@page import="com.liferay.portal.kernel.util.StringPool"%> <%@page import="com.liferay.portal.kernel.util.StringPool"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> <%@taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@taglib uri="http://liferay.com/tld/aui" prefix="aui" %> <%@taglib uri="http://liferay.com/tld/aui" prefix="aui" %>
<%@taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %> <%@taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %>
<%@taglib uri="http://liferay.com/tld/security" prefix="liferay-security" %> <%@taglib uri="http://liferay.com/tld/security" prefix="liferay-security" %>
@ -25,22 +20,13 @@
<%@taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %> <%@taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
<%@taglib uri="http://liferay.com/tld/util" prefix="liferay-util" %> <%@taglib uri="http://liferay.com/tld/util" prefix="liferay-util" %>
<%@taglib uri="http://liferay.com/tld/ddm" prefix="liferay-ddm" %> <%@taglib uri="http://liferay.com/tld/ddm" prefix="liferay-ddm" %>
<%@page import="it.tref.liferay.portos.mailmanager.shared.util.MailManagerConstants"%> <%@page import="it.tref.liferay.portos.mailmanager.shared.util.MailManagerConstants"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@page import="com.liferay.portal.kernel.util.GetterUtil"%> <%@page import="com.liferay.portal.kernel.util.GetterUtil"%>
<liferay-theme:defineObjects /> <liferay-theme:defineObjects />
<portlet:defineObjects /> <portlet:defineObjects />
<% <%
PortletMode portletMode = liferayPortletRequest.getPortletMode(); PortletMode portletMode = liferayPortletRequest.getPortletMode();
WindowState windowState = liferayPortletRequest.getWindowState(); WindowState windowState = liferayPortletRequest.getWindowState();
PortletURL currentURLObj = PortletURLUtil.getCurrent(liferayPortletRequest, liferayPortletResponse); PortletURL currentURLObj = PortletURLUtil.getCurrent(liferayPortletRequest, liferayPortletResponse);
String currentURL = currentURLObj.toString(); String currentURL = currentURLObj.toString();
%> %>

65
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/edit.jsp

@ -1,17 +1,11 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/html/mail_manager/init.jsp"%> <%@include file="/html/mail_manager/init.jsp"%>
<% <%
final String EDITOR_WYSIWYG_IMPL_KEY = "editor.wysiwyg.mail-manager-portlet.docroot.html.mail_manager.edit.jsp"; final String EDITOR_WYSIWYG_IMPL_KEY = "editor.wysiwyg.mail-manager-portlet.docroot.html.mail_manager.edit.jsp";
long emailId = ParamUtil.getLong(request, "emailId"); long emailId = ParamUtil.getLong(request, "emailId");
Email email = EmailLocalServiceUtil.getEmail(emailId); Email email = EmailLocalServiceUtil.getEmail(emailId);
List<EmailAttachment> emailAttachments = EmailAttachmentLocalServiceUtil.findByEmailId(emailId); List<EmailAttachment> emailAttachments = EmailAttachmentLocalServiceUtil.findByEmailId(emailId);
%> %>
<liferay-ui:error exception="<%= RequiredEmailFromException.class %>" message="please-enter-from" /> <liferay-ui:error exception="<%= RequiredEmailFromException.class %>" message="please-enter-from" />
<liferay-ui:error exception="<%= EmailFromException.class %>" message="please-enter-a-valid-from" /> <liferay-ui:error exception="<%= EmailFromException.class %>" message="please-enter-a-valid-from" />
<liferay-ui:error exception="<%= RequiredEmailToException.class %>" message="please-enter-to" /> <liferay-ui:error exception="<%= RequiredEmailToException.class %>" message="please-enter-to" />
@ -20,76 +14,49 @@
<liferay-ui:error exception="<%= EmailBccException.class %>" message="please-enter-a-valid-ccn" /> <liferay-ui:error exception="<%= EmailBccException.class %>" message="please-enter-a-valid-ccn" />
<liferay-ui:error exception="<%= RequiredEmailSubjectException.class %>" message="please-enter-subject" /> <liferay-ui:error exception="<%= RequiredEmailSubjectException.class %>" message="please-enter-subject" />
<liferay-ui:error exception="<%= RequiredEmailBodyException.class %>" message="please-enter-a-valid-body" /> <liferay-ui:error exception="<%= RequiredEmailBodyException.class %>" message="please-enter-a-valid-body" />
<portlet:actionURL name="editEmail" var="actionURL" /> <portlet:actionURL name="editEmail" var="actionURL" />
<aui:form name="fm" method="post" action="<%= actionURL %>" onSubmit="event.preventDefault();">
<aui:form name="fm" method="post" action="<%= actionURL %>"
onSubmit="event.preventDefault();">
<aui:input type="hidden" name="actionURL" value="<%= actionURL %>" /> <aui:input type="hidden" name="actionURL" value="<%= actionURL %>" />
<aui:input type="text" name="to" label="to" cssClass="input-xxlarge" required="true" showRequiredLabel="false"
<aui:input type="text" name="to" label="to" cssClass="input-xxlarge"
required="<%= true %>" showRequiredLabel="<%= false %>"
value="<%= email.getTo() %>" /> value="<%= email.getTo() %>" />
<aui:input type="text" name="cc" label="cc" cssClass="input-xxlarge" showRequiredLabel="false"
<aui:input type="text" name="cc" label="cc" cssClass="input-xxlarge"
showRequiredLabel="<%= false %>"
value="<%= email.getCc() %>" /> value="<%= email.getCc() %>" />
<aui:input type="text" name="ccn" label="bcc" cssClass="input-xxlarge" showRequiredLabel="false" disabled="true"
<aui:input type="text" name="ccn" label="bcc" cssClass="input-xxlarge"
showRequiredLabel="<%= false %>" disabled="<%= true %>"
value="<%= email.getBcc() %>" /> value="<%= email.getBcc() %>" />
<aui:input type="text" name="subject" label="subject" cssClass="input-xxlarge" required="true"
<aui:input type="text" name="subject" label="subject" cssClass="input-xxlarge" showRequiredLabel="false" value="<%= email.getSubject() %>" />
required="<%= true %>" showRequiredLabel="<%= false %>"
value="<%= email.getSubject() %>" />
<aui:field-wrapper label="body"> <aui:field-wrapper label="body">
<liferay-ui:input-editor editorImpl="<%= EDITOR_WYSIWYG_IMPL_KEY %>" /> <liferay-ui:input-editor editorImpl="<%= EDITOR_WYSIWYG_IMPL_KEY %>" />
<aui:input name="body" type="hidden" required="true" />
<aui:input name="body" type="hidden" required="<%= true %>" />
</aui:field-wrapper> </aui:field-wrapper>
<aui:script> <aui:script>
function <portlet:namespace />initEditor() { function <portlet:namespace />initEditor() {
return "<%= UnicodeFormatter.toString(email.getBody()) %>"; return "<%= UnicodeFormatter.toString(email.getBody()) %>";
} }
</aui:script> </aui:script>
<c:if test="<%=emailAttachments != null && !emailAttachments.isEmpty() %>"> <c:if test="<%=emailAttachments != null && !emailAttachments.isEmpty() %>">
<aui:field-wrapper label="attachments"> <aui:field-wrapper label="attachments">
<ul> <ul>
<% for(EmailAttachment attachment : emailAttachments){ %> <%
for(EmailAttachment attachment : emailAttachments){
%>
<li><%= attachment.getFileEntry().getDescription() %> <li><%= attachment.getFileEntry().getDescription() %>
<% } %> <%
}
%>
</ul> </ul>
</aui:field-wrapper> </aui:field-wrapper>
</c:if> </c:if>
<aui:button-row> <aui:button-row>
<aui:button type="button" primary="<%= true %>" value="send" <aui:button type="button" primary="true" value="send"
onClick='<%= renderResponse.getNamespace() + "save();" %>' /> onClick='<%= renderResponse.getNamespace() + "save();" %>' />
</aui:button-row> </aui:button-row>
</aui:form> </aui:form>
<aui:script use="aui-base"> <aui:script use="aui-base">
Liferay.provide( window, '<portlet:namespace />save', function() {
Liferay.provide(
window,
'<portlet:namespace />save',
function() {
var A = new AUI(); var A = new AUI();
var body = window.<portlet:namespace />editor.getHTML(); var body = window.<portlet:namespace />editor.getHTML();
document.<portlet:namespace />fm.<portlet:namespace />body.value = body; document.<portlet:namespace />fm.<portlet:namespace />body.value = body;
submitForm(document.<portlet:namespace />fm); submitForm(document.<portlet:namespace />fm);
});
}
);
</aui:script> </aui:script>

30
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/email_action.jsp

@ -1,53 +1,29 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/html/mail_manager/init.jsp" %> <%@include file="/html/mail_manager/init.jsp" %>
<% <%
SearchContainer searchContainer = (SearchContainer) request.getAttribute("liferay-ui:search:searchContainer"); SearchContainer searchContainer = (SearchContainer) request.getAttribute("liferay-ui:search:searchContainer");
String redirect = searchContainer.getIteratorURL().toString(); String redirect = searchContainer.getIteratorURL().toString();
ResultRow row = (ResultRow) request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW); ResultRow row = (ResultRow) request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);
Email entry = (Email) row.getObject(); Email entry = (Email) row.getObject();
%> %>
<liferay-ui:icon-menu showWhenSingleIcon="true">
<liferay-ui:icon-menu showWhenSingleIcon="<%= true %>">
<c:if test="<%= EmailPermission.contains(permissionChecker, scopeGroupId, ActionKeys.ADMIN_EMAIL) %>"> <c:if test="<%= EmailPermission.contains(permissionChecker, scopeGroupId, ActionKeys.ADMIN_EMAIL) %>">
<portlet:renderURL var="editEntryURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> <portlet:renderURL var="editEntryURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<portlet:param name="mvcPath" value="/html/mail_manager/edit.jsp" /> <portlet:param name="mvcPath" value="/html/mail_manager/edit.jsp" />
<portlet:param name="emailId" value="<%= String.valueOf(entry.getEmailId()) %>" /> <portlet:param name="emailId" value="<%= String.valueOf(entry.getEmailId()) %>" />
</portlet:renderURL> </portlet:renderURL>
<liferay-ui:icon image="edit" useDialog="true" url="<%= editEntryURL %>" />
<liferay-ui:icon
image="edit"
useDialog="<%= true %>"
url="<%= editEntryURL %>"
/>
<portlet:actionURL name="resendEmail" var="resendEntryURL"> <portlet:actionURL name="resendEmail" var="resendEntryURL">
<portlet:param name="redirect" value="<%= redirect %>" /> <portlet:param name="redirect" value="<%= redirect %>" />
<portlet:param name="emailId" value="<%= String.valueOf(entry.getEmailId()) %>" /> <portlet:param name="emailId" value="<%= String.valueOf(entry.getEmailId()) %>" />
</portlet:actionURL> </portlet:actionURL>
<liferay-ui:icon label="resend" image="forward" url="<%= resendEntryURL %>" />
<liferay-ui:icon
label="resend"
image="forward"
url="<%= resendEntryURL %>"
/>
<c:if test="<%= !entry.isCancel() && !entry.isSent() %>"> <c:if test="<%= !entry.isCancel() && !entry.isSent() %>">
<portlet:actionURL name="annullaEmail" var="annullaEntryURL"> <portlet:actionURL name="annullaEmail" var="annullaEntryURL">
<portlet:param name="redirect" value="<%= redirect %>" /> <portlet:param name="redirect" value="<%= redirect %>" />
<portlet:param name="emailId" value="<%= String.valueOf(entry.getEmailId()) %>" /> <portlet:param name="emailId" value="<%= String.valueOf(entry.getEmailId()) %>" />
</portlet:actionURL> </portlet:actionURL>
<liferay-ui:icon-delete url="<%= annullaEntryURL %>" /> <liferay-ui:icon-delete url="<%= annullaEntryURL %>" />
</c:if> </c:if>
</c:if> </c:if>
</liferay-ui:icon-menu> </liferay-ui:icon-menu>

16
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/email_history_popup_button.jsp

@ -1,22 +1,15 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/html/mail_manager/init.jsp" %> <%@include file="/html/mail_manager/init.jsp" %>
<c:if test="<%= EmailPermission.contains(permissionChecker, scopeGroupId, ActionKeys.VIEW_EMAIL_HISTORY) %>"> <c:if test="<%= EmailPermission.contains(permissionChecker, scopeGroupId, ActionKeys.VIEW_EMAIL_HISTORY) %>">
<% <%
String cssClass = ParamUtil.getString(request, "cssClass"); String cssClass = ParamUtil.getString(request, "cssClass");
String buttonValue = ParamUtil.getString(request, "buttonValue","email-history-popup-btn"); String buttonValue = ParamUtil.getString(request, "buttonValue","email-history-popup-btn");
long classNameId = ParamUtil.getLong(request, "classNameId"); long classNameId = ParamUtil.getLong(request, "classNameId");
long classPK = ParamUtil.getLong(request, "classPK"); long classPK = ParamUtil.getLong(request, "classPK");
String templateName = ParamUtil.getString(request, "templateName"); String templateName = ParamUtil.getString(request, "templateName");
%> %>
<liferay-portlet:renderURL var="viewEmailHistoryURL" copyCurrentRenderParameters="false"
<liferay-portlet:renderURL var="viewEmailHistoryURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>" portletName="<%= PortletKeys.MAIL_MANAGER %>">
copyCurrentRenderParameters="<%= false %>"
windowState="<%= LiferayWindowState.POP_UP.toString() %>"
portletName="<%=PortletKeys.MAIL_MANAGER %>">
<liferay-portlet:param name="mvcPath" value="/html/mail_manager/view.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/mail_manager/view.jsp"/>
<c:if test="<%= Validator.isNotNull(classNameId) %>"> <c:if test="<%= Validator.isNotNull(classNameId) %>">
<liferay-portlet:param name="classNameId" value="<%= String.valueOf(classNameId) %>"/> <liferay-portlet:param name="classNameId" value="<%= String.valueOf(classNameId) %>"/>
@ -28,7 +21,6 @@
<liferay-portlet:param name="templateName" value="<%= templateName %>"/> <liferay-portlet:param name="templateName" value="<%= templateName %>"/>
</c:if> </c:if>
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<aui:button cssClass="<%= cssClass %>" href="<%= viewEmailHistoryURL.toString() %>" value="<%= buttonValue %>"
<aui:button cssClass="<%=cssClass %>" href="<%=viewEmailHistoryURL.toString() %>" value="<%=buttonValue %>" useDialog="<%=true %>"></aui:button> useDialog="true" />
</c:if> </c:if>

3
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/init.jsp

@ -1,6 +1,5 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/html/init.jsp" %> <%@include file="/html/init.jsp" %>
<%@page import="com.liferay.portal.kernel.util.TextFormatter"%> <%@page import="com.liferay.portal.kernel.util.TextFormatter"%>
<%@page import="com.liferay.portal.kernel.repository.model.FileVersion"%> <%@page import="com.liferay.portal.kernel.repository.model.FileVersion"%>
<%@page import="com.liferay.portal.kernel.util.StringBundler"%> <%@page import="com.liferay.portal.kernel.util.StringBundler"%>
@ -12,7 +11,6 @@
<%@page import="com.liferay.portal.kernel.util.UnicodeFormatter"%> <%@page import="com.liferay.portal.kernel.util.UnicodeFormatter"%>
<%@page import="it.tref.liferay.portos.mailmanager.model.Email"%> <%@page import="it.tref.liferay.portos.mailmanager.model.Email"%>
<%@page import="it.tref.liferay.portos.mailmanager.service.EmailAttachmentLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.mailmanager.service.EmailAttachmentLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.mailmanager.RequiredEmailToException"%> <%@page import="it.tref.liferay.portos.mailmanager.RequiredEmailToException"%>
<%@page import="it.tref.liferay.portos.mailmanager.RequiredEmailBodyException"%> <%@page import="it.tref.liferay.portos.mailmanager.RequiredEmailBodyException"%>
<%@page import="it.tref.liferay.portos.mailmanager.RequiredEmailSubjectException"%> <%@page import="it.tref.liferay.portos.mailmanager.RequiredEmailSubjectException"%>
@ -22,7 +20,6 @@
<%@page import="it.tref.liferay.portos.mailmanager.EmailFromException"%> <%@page import="it.tref.liferay.portos.mailmanager.EmailFromException"%>
<%@page import="it.tref.liferay.portos.mailmanager.RequiredEmailFromException"%> <%@page import="it.tref.liferay.portos.mailmanager.RequiredEmailFromException"%>
<%@page import="com.sun.xml.internal.ws.api.message.Attachment"%> <%@page import="com.sun.xml.internal.ws.api.message.Attachment"%>
<%@page import="com.liferay.portal.kernel.dao.search.SearchContainer"%> <%@page import="com.liferay.portal.kernel.dao.search.SearchContainer"%>
<%@page import="com.liferay.portal.kernel.util.WebKeys"%> <%@page import="com.liferay.portal.kernel.util.WebKeys"%>
<%@page import="com.liferay.portal.kernel.dao.search.ResultRow"%> <%@page import="com.liferay.portal.kernel.dao.search.ResultRow"%>

166
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/view.jsp

@ -1,165 +1,115 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/html/mail_manager/init.jsp"%> <%@include file="/html/mail_manager/init.jsp"%>
<% <%
long classNameId = ParamUtil.getLong(request, "classNameId"); long classNameId = ParamUtil.getLong(request, "classNameId");
long classPK = ParamUtil.getLong(request, "classPK"); long classPK = ParamUtil.getLong(request, "classPK");
String templateName = ParamUtil.getString(request, "templateName"); String templateName = ParamUtil.getString(request, "templateName");
long companyId = company.getCompanyId(); long companyId = company.getCompanyId();
%> %>
<liferay-ui:search-container emptyResultsMessage="no-entries-were-found">
<liferay-ui:search-container
emptyResultsMessage="no-entries-were-found"
>
<% <%
List<Email> results = null; List<Email> results = null;
int count = 0; int count = 0;
if (Validator.isNotNull(classNameId) && Validator.isNotNull(classPK)) { if (Validator.isNotNull(classNameId) && Validator.isNotNull(classPK)) {
results = EmailLocalServiceUtil.findByC_G_C_C(companyId, scopeGroupId, classNameId, classPK, searchContainer.getStart(), searchContainer.getEnd()); results = EmailLocalServiceUtil.findByC_G_C_C(companyId, scopeGroupId, classNameId, classPK,
searchContainer.getStart(), searchContainer.getEnd());
count = EmailLocalServiceUtil.countByC_G_C_C(companyId, scopeGroupId, classNameId, classPK); count = EmailLocalServiceUtil.countByC_G_C_C(companyId, scopeGroupId, classNameId, classPK);
} else if (Validator.isNotNull(templateName)) { } else if (Validator.isNotNull(templateName)) {
results = EmailLocalServiceUtil.findByC_G_T(companyId, scopeGroupId, templateName, searchContainer.getStart(), searchContainer.getEnd()); results = EmailLocalServiceUtil.findByC_G_T(companyId, scopeGroupId, templateName, searchContainer.getStart(),
searchContainer.getEnd());
count = EmailLocalServiceUtil.countByC_G_T(companyId, scopeGroupId, templateName); count = EmailLocalServiceUtil.countByC_G_T(companyId, scopeGroupId, templateName);
} else { } else {
results = EmailLocalServiceUtil.findByCompany(companyId, searchContainer.getStart(), searchContainer.getEnd()); results = EmailLocalServiceUtil.findByCompany(companyId, searchContainer.getStart(), searchContainer.getEnd());
count = EmailLocalServiceUtil.countByCompany(companyId); count = EmailLocalServiceUtil.countByCompany(companyId);
} }
searchContainer.setResults(results); searchContainer.setResults(results);
searchContainer.setTotal(count); searchContainer.setTotal(count);
%> %>
<liferay-ui:search-container-row className="it.tref.liferay.portos.mailmanager.model.Email" modelVar="email">
<liferay-ui:search-container-row
className="it.tref.liferay.portos.mailmanager.model.Email"
modelVar="email"
>
<liferay-ui:search-container-column-text name="from" property="from" /> <liferay-ui:search-container-column-text name="from" property="from" />
<liferay-ui:search-container-column-text name="to"> <liferay-ui:search-container-column-text name="to">
<% <%
String[] to = email.getToArray(); String[] to = email.getToArray();
%> %>
<span id="<portlet:namespace />toCount<%= email.getEmailId() %>" class='badge badge-info
<span id="<portlet:namespace />toCount<%= email.getEmailId() %>" <%= (to.length > 0 ? "clickable" : StringPool.BLANK) %>'>
class='badge badge-info <%= (to.length > 0 ? "clickable" : StringPool.BLANK) %>'>
<%= to.length %> <%= to.length %>
</span> </span>
<c:if test="<%= to.length > 0 %>"> <c:if test="<%= to.length > 0 %>">
<aui:script use="aui-modal"> <aui:script use="aui-modal">
A.one('#<portlet:namespace />toCount<%= email.getEmailId() %>').on('click', function(event) { A.one('#<portlet:namespace />toCount<%= email.getEmailId() %>').on('click', function(event) {
var modal = new A.Modal({
var modal = new A.Modal(
{
modal: true, modal: true,
centered: true, centered: true,
visible: true, visible: true,
bodyContent: '<%= getContent(to) %>', bodyContent: '<%= getContent(to) %>',
headerContent: '<h5> <liferay-ui:message key="to" /> </h5>', headerContent: '<h5> <liferay-ui:message key="to" /> </h5>',
render: '#<portlet:namespace />modal', render: '#<portlet:namespace />modal',
width: 300 width: 300,
} }).render();
).render();
}); });
</aui:script> </aui:script>
</c:if> </c:if>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="cc"> <liferay-ui:search-container-column-text name="cc">
<% <%
String[] cc = email.getCcArray(); String[] cc = email.getCcArray();
%> %>
<span id="<portlet:namespace />ccCount<%= email.getEmailId() %>" <span id="<portlet:namespace />ccCount<%= email.getEmailId() %>"
class='badge badge-info <%= (cc.length > 0 ? "clickable" : StringPool.BLANK) %>'> class='badge badge-info <%= (cc.length > 0 ? "clickable" : StringPool.BLANK) %>'>
<%= cc.length %> <%= cc.length %>
</span> </span>
<c:if test="<%= cc.length > 0 %>"> <c:if test="<%= cc.length > 0 %>">
<aui:script use="aui-modal"> <aui:script use="aui-modal">
A.one('#<portlet:namespace />ccCount<%= email.getEmailId() %>').on('click', function(event) { A.one('#<portlet:namespace />ccCount<%= email.getEmailId() %>').on('click', function(event) {
var modal = new A.Modal({
var modal = new A.Modal(
{
modal: true, modal: true,
centered: true, centered: true,
visible: true, visible: true,
bodyContent: '<%= getContent(cc) %>', bodyContent: '<%= getContent(cc) %>',
headerContent: '<h5> <liferay-ui:message key="cc" /> </h5>', headerContent: '<h5> <liferay-ui:message key="cc" /> </h5>',
render: '#<portlet:namespace />modal', render: '#<portlet:namespace />modal',
width: 300 width: 300,
} }).render();
).render();
}); });
</aui:script> </aui:script>
</c:if> </c:if>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="bcc" cssClass="text-center"> <liferay-ui:search-container-column-text name="bcc" cssClass="text-center">
<% <%
String[] bcc = email.getBccArray(); String[] bcc = email.getBccArray();
%> %>
<span id="<portlet:namespace />bccCount<%= email.getEmailId() %>" class='badge badge-info
<span id="<portlet:namespace />bccCount<%= email.getEmailId() %>" <%= (bcc.length > 0 ? "clickable" : StringPool.BLANK) %>'>
class='badge badge-info <%= (bcc.length > 0 ? "clickable" : StringPool.BLANK) %>'>
<%= bcc.length %> <%= bcc.length %>
</span> </span>
<c:if test="<%= bcc.length > 0 %>"> <c:if test="<%= bcc.length > 0 %>">
<aui:script use="aui-modal"> <aui:script use="aui-modal">
A.one('#<portlet:namespace />bccCount<%= email.getEmailId() %>').on('click', function(event) { A.one('#<portlet:namespace />bccCount<%= email.getEmailId() %>').on('click', function(event) {
var modal = new A.Modal({
var modal = new A.Modal(
{
modal: true, modal: true,
centered: true, centered: true,
visible: true, visible: true,
bodyContent: '<%= getContent(bcc) %>', bodyContent: '<%= getContent(bcc) %>',
headerContent: '<h5> <liferay-ui:message key="bcc" /> </h5>', headerContent: '<h5> <liferay-ui:message key="bcc" /> </h5>',
render: '#<portlet:namespace />modal', render: '#<portlet:namespace />modal',
width: 300 width: 300,
} }).render();
).render();
}); });
</aui:script> </aui:script>
</c:if> </c:if>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="subject"> <liferay-ui:search-container-column-text name="subject">
<span onmouseover="Liferay.Portal.ToolTip.show(this, '<%= email.getSubject() %>')"> <span onmouseover="Liferay.Portal.ToolTip.show(this, '<%= email.getSubject() %>')">
<%= StringUtil.shorten(email.getSubject(), 50) %> <%= StringUtil.shorten(email.getSubject(), 50) %>
</span> </span>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="body"> <liferay-ui:search-container-column-text name="body">
<span onmouseover="Liferay.Portal.ToolTip.show(this, '<%= HtmlUtil.extractText(email.getBody()) %>')"> <span onmouseover="Liferay.Portal.ToolTip.show(this, '<%= HtmlUtil.extractText(email.getBody()) %>')">
<%= StringUtil.shorten(HtmlUtil.extractText(email.getBody()), 50)%> <%= StringUtil.shorten(HtmlUtil.extractText(email.getBody()), 50)%>
</span> </span>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-date name="create-date" property="createDate" /> <liferay-ui:search-container-column-date name="create-date" property="createDate" />
<liferay-ui:search-container-column-text name="sent"> <liferay-ui:search-container-column-text name="sent">
<c:choose> <c:choose>
<c:when test="<%= email.isSent() %>"> <c:when test="<%= email.isSent() %>">
@ -167,45 +117,31 @@
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<liferay-ui:message key="no" /> <liferay-ui:message key="no" />
<c:if test="<%= Validator.isNotNull(email.getStatusMessage()) %>"> <c:if test="<%= Validator.isNotNull(email.getStatusMessage()) %>">
<liferay-ui:icon <liferay-ui:icon toolTip="true" label="false" localizeMessage="false"
toolTip="<%= true %>" message="<%= email.getStatusMessage() %>" iconCssClass="icon-exclamation-sign" />
label="<%= false %>"
localizeMessage="<%= false %>"
message="<%= email.getStatusMessage() %>"
iconCssClass="icon-exclamation-sign"
/>
</c:if> </c:if>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-date name="sent-date" property="sentDate" /> <liferay-ui:search-container-column-date name="sent-date" property="sentDate" />
<liferay-ui:search-container-column-text name="attachments"> <liferay-ui:search-container-column-text name="attachments">
<% <%
List<EmailAttachment> emailAttachments = email.getEmailAttachments(); List<EmailAttachment> emailAttachments = email.getEmailAttachments();
%> %>
<div class="text-center"> <div class="text-center">
<span id="<portlet:namespace />attachmentCount<%= email.getEmailId() %>" <span id="<portlet:namespace />attachmentCount<%= email.getEmailId() %>" class='badge badge-info
class='badge badge-info <%= (!emailAttachments.isEmpty() ? "clickable" : StringPool.BLANK) %>'> <%= emailAttachments.isEmpty() ? StringPool.BLANK : "clickable" %>'>
<%= emailAttachments.size() %> <%= emailAttachments.size() %>
</span> </span>
</div> </div>
<c:if test="<%= !emailAttachments.isEmpty() %>"> <c:if test="<%= !emailAttachments.isEmpty() %>">
<div id="<portlet:namespace />attachments<%= email.getEmailId() %>" class="hide"> <div id="<portlet:namespace />attachments<%= email.getEmailId() %>" class="hide">
<%
<% for (EmailAttachment emailAttachment : emailAttachments) { for (EmailAttachment emailAttachment : emailAttachments) {
FileEntry fileEntry = emailAttachment.getFileEntry(); FileEntry fileEntry = emailAttachment.getFileEntry();
FileVersion fileVersion = fileEntry.getFileVersion(); FileVersion fileVersion = fileEntry.getFileVersion();
%> %>
<aui:row> <aui:row>
<aui:col span="6"> <aui:col span="6">
<%= fileEntry.getTitle() %> <%= fileEntry.getTitle() %>
@ -217,72 +153,46 @@
<%= TextFormatter.formatStorageSize(fileVersion.getSize(), locale) %> <%= TextFormatter.formatStorageSize(fileVersion.getSize(), locale) %>
</aui:col> </aui:col>
<aui:col span="1"> <aui:col span="1">
<liferay-ui:icon <liferay-ui:icon label="false" target="_blank" iconCssClass="icon-download-alt"
label="<%= false %>" url="<%= DLUtil.getPreviewURL(fileEntry, fileVersion, themeDisplay,
target="_blank" StringPool.BLANK, false, true) %>" />
iconCssClass="icon-download-alt"
url="<%= DLUtil.getPreviewURL(fileEntry, fileVersion,
themeDisplay, StringPool.BLANK, false, true) %>"
/>
</aui:col> </aui:col>
</aui:row> </aui:row>
<% } %> <%
}
%>
</div> </div>
<aui:script use="aui-modal"> <aui:script use="aui-modal">
A.one('#<portlet:namespace />attachmentCount<%= email.getEmailId() %>').on('click', function(event) { A.one('#<portlet:namespace />attachmentCount<%= email.getEmailId() %>').on('click', function(event) {
var attachments = A.one('#<portlet:namespace />attachments<%= email.getEmailId() %>'); var attachments = A.one('#<portlet:namespace />attachments<%= email.getEmailId() %>');
attachments.show(); attachments.show();
var modal = new A.Modal({
var modal = new A.Modal(
{
modal: true, modal: true,
centered: true, centered: true,
visible: true, visible: true,
bodyContent: attachments, bodyContent: attachments,
headerContent: '<h5> <liferay-ui:message key="attachments" /> </h5>', headerContent: '<h5> <liferay-ui:message key="attachments" /> </h5>',
render: '#<portlet:namespace />modal', render: '#<portlet:namespace />modal',
width: 550 width: 550,
} }).render();
).render();
}); });
</aui:script> </aui:script>
</c:if> </c:if>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="cancel" property="cancel"/> <liferay-ui:search-container-column-text name="cancel" property="cancel"/>
<liferay-ui:search-container-column-jsp path="/html/mail_manager/email_action.jsp" align="right" /> <liferay-ui:search-container-column-jsp path="/html/mail_manager/email_action.jsp" align="right" />
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="true" />
<liferay-ui:search-iterator paginate="<%= true %>" />
</liferay-ui:search-container> </liferay-ui:search-container>
<div id="<portlet:namespace />modal"></div> <div id="<portlet:namespace />modal"></div>
<%! <%!
private String getContent(String[] addresses) { private String getContent(String[] addresses) {
StringBundler sb = new StringBundler(); StringBundler sb = new StringBundler();
for (String address : addresses) { for (String address : addresses) {
sb.append("<div class=\"row-fluid\">"); sb.append("<div class=\"row-fluid\"><div class=\"span12\">")
sb.append("<div class=\"span12\">"); .append(address)
sb.append(address); .append("</div></div>");
sb.append("</div>");
sb.append("</div>");
} }
return sb.toString(); return sb.toString();
} }
%> %>

BIN
liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/velocity.jar

File binario non mostrato.

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

@ -13,8 +13,8 @@
## ##
build.namespace=portos_rep build.namespace=portos_rep
build.number=33 build.number=34
build.date=1634829831564 build.date=1657543608492
build.auto.upgrade=true build.auto.upgrade=true
## ##

2
liferay-plugins-sdk-6.2/shared/portos-audit-shared/.classpath

@ -2,6 +2,6 @@
<classpath> <classpath>
<classpathentry kind="src" path="src"/> <classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80"/>
<classpathentry kind="lib" path="/media/esterno/lavoro/liferay/portali/sismica/tomcat-7.0.62/lib/ext/portal-service.jar" sourcepath="/home/ture/liferay/src/liferay-patched/liferay-portal"/> <classpathentry kind="lib" path="/home/ture/liferay/portali/sismica/tomcat-7.0.62/lib/ext/portal-service.jar" sourcepath="/home/ture/liferay/src/liferay-patched/liferay-portal"/>
<classpathentry kind="output" path="classes"/> <classpathentry kind="output" path="classes"/>
</classpath> </classpath>

8
liferay-plugins-sdk-6.2/shared/portos-bo-shared/.classpath

@ -2,9 +2,9 @@
<classpath> <classpath>
<classpathentry kind="src" path="src"/> <classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80"/>
<classpathentry kind="lib" path="/media/esterno/lavoro/liferay/portali/sismica/tomcat-7.0.62/lib/ext/portal-service.jar" sourcepath="/home/ture/liferay/src/liferay-patched/liferay-portal"/> <classpathentry kind="lib" path="/home/ture/liferay/portali/sismica/tomcat-7.0.62/lib/ext/portal-service.jar" sourcepath="/home/ture/liferay/src/liferay-patched/liferay-portal"/>
<classpathentry kind="lib" path="/media/esterno/lavoro/liferay/portali/sismica/tomcat-7.0.62/lib/ext/portlet.jar"/> <classpathentry kind="lib" path="/home/ture/liferay/portali/sismica/tomcat-7.0.62/lib/ext/portlet.jar"/>
<classpathentry kind="lib" path="/media/esterno/lavoro/liferay/portali/sismica/tomcat-7.0.62/lib/servlet-api.jar"/> <classpathentry kind="lib" path="/home/ture/liferay/portali/sismica/tomcat-7.0.62/lib/servlet-api.jar"/>
<classpathentry kind="lib" path="/media/esterno/lavoro/liferay/portali/sismica/tomcat-7.0.62/lib/jsp-api.jar"/> <classpathentry kind="lib" path="/home/ture/liferay/portali/sismica/tomcat-7.0.62/lib/jsp-api.jar"/>
<classpathentry kind="output" path="bin"/> <classpathentry kind="output" path="bin"/>
</classpath> </classpath>

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

@ -31,8 +31,6 @@ public class PagamentoConstants {
} }
}; };
public PagamentoConstants() {}
public static String mezzoToLabel(String mezzo) { public static String mezzoToLabel(String mezzo) {
return mezzoToLabel.get(mezzo); return mezzoToLabel.get(mezzo);

2
liferay-plugins-sdk-6.2/shared/portos-firma-shared/.classpath

@ -2,6 +2,6 @@
<classpath> <classpath>
<classpathentry kind="src" path="src"/> <classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80"/>
<classpathentry kind="lib" path="/media/esterno/lavoro/liferay/portali/sismica/tomcat-7.0.62/lib/ext/portal-service.jar" sourcepath="/home/ture/liferay/src/liferay-patched/liferay-portal"/> <classpathentry kind="lib" path="/home/ture/liferay/portali/sismica/tomcat-7.0.62/lib/ext/portal-service.jar" sourcepath="/home/ture/liferay/src/liferay-patched/liferay-portal"/>
<classpathentry kind="output" path="classes"/> <classpathentry kind="output" path="classes"/>
</classpath> </classpath>

2
liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/.classpath

@ -2,6 +2,6 @@
<classpath> <classpath>
<classpathentry kind="src" path="src"/> <classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80"/>
<classpathentry kind="lib" path="/media/esterno/lavoro/liferay/portali/sismica/tomcat-7.0.62/lib/ext/portal-service.jar" sourcepath="/home/ture/liferay/src/liferay-patched/liferay-portal"/> <classpathentry kind="lib" path="/home/ture/liferay/portali/sismica/tomcat-7.0.62/lib/ext/portal-service.jar" sourcepath="/home/ture/liferay/src/liferay-patched/liferay-portal"/>
<classpathentry kind="output" path="classes"/> <classpathentry kind="output" path="classes"/>
</classpath> </classpath>

4
liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.classpath

@ -2,7 +2,7 @@
<classpath> <classpath>
<classpathentry kind="src" path="src"/> <classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80"/>
<classpathentry kind="lib" path="/media/esterno/lavoro/liferay/portali/sismica/tomcat-7.0.62/lib/ext/portal-service.jar" sourcepath="/home/ture/liferay/src/liferay-patched/liferay-portal"/> <classpathentry kind="lib" path="/home/ture/liferay/portali/sismica/tomcat-7.0.62/lib/ext/portal-service.jar" sourcepath="/home/ture/liferay/src/liferay-patched/liferay-portal"/>
<classpathentry kind="lib" path="/media/esterno/lavoro/liferay/portali/sismica/tomcat-7.0.62/lib/ext/mail.jar"/> <classpathentry kind="lib" path="/home/ture/liferay/portali/sismica/tomcat-7.0.62/lib/ext/mail.jar"/>
<classpathentry kind="output" path="classes"/> <classpathentry kind="output" path="classes"/>
</classpath> </classpath>

2
liferay-plugins-sdk-6.2/shared/portos-report-shared/.classpath

@ -6,6 +6,6 @@
<classpathentry kind="lib" path="lib/velocity.jar"/> <classpathentry kind="lib" path="lib/velocity.jar"/>
<classpathentry kind="lib" path="lib/xmlworker-5.5.9.jar"/> <classpathentry kind="lib" path="lib/xmlworker-5.5.9.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="/media/esterno/lavoro/liferay/portali/sismica/tomcat-7.0.62/lib/ext/portal-service.jar" sourcepath="/home/ture/liferay/src/liferay-patched/liferay-portal"/> <classpathentry kind="lib" path="/home/ture/liferay/portali/sismica/tomcat-7.0.62/lib/ext/portal-service.jar" sourcepath="/home/ture/liferay/src/liferay-patched/liferay-portal"/>
<classpathentry kind="output" path="classes"/> <classpathentry kind="output" path="classes"/>
</classpath> </classpath>

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

@ -13,7 +13,7 @@
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="lib" path="/media/esterno/lavoro/liferay/portali/sismica/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/portal-impl.jar"/> <classpathentry kind="lib" path="/home/ture/liferay/portali/sismica/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/portal-impl.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80"> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80">
<attributes> <attributes>
<attribute name="owner.project.facets" value="java"/> <attribute name="owner.project.facets" value="java"/>

Caricamento…
Annulla
Salva