Confronta commit

..

5 Commit

Autore SHA1 Messaggio Data
Salvatore La Manna 2c3a85515e Aggiornamenti 2 anni fa
Salvatore La Manna 4f34c84cf6 Import in test 2 anni fa
Salvatore La Manna 912d42e764 Nuova gestione fine lavori 2 anni fa
Salvatore La Manna 99abb87f7c Delega committente 2 anni fa
Salvatore La Manna 4aecce8028 Modifica path build 2 anni fa
  1. 311
      jasper/vidimazione_fl.jrxml
  2. 26
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml
  3. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml
  4. 290
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriClp.java
  5. 116
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriModel.java
  6. 78
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriSoap.java
  7. 213
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriWrapper.java
  8. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalService.java
  9. 20
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceClp.java
  10. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceUtil.java
  11. 14
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceWrapper.java
  12. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriService.java
  13. 20
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriServiceClp.java
  14. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriServiceUtil.java
  15. 14
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriServiceWrapper.java
  16. 12
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalService.java
  17. 278
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceClp.java
  18. 18
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceUtil.java
  19. 19
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceWrapper.java
  20. 19
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoService.java
  21. 153
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoServiceClp.java
  22. 29
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoServiceUtil.java
  23. 30
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoServiceWrapper.java
  24. 21
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalService.java
  25. 165
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceClp.java
  26. 26
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceUtil.java
  27. 30
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceWrapper.java
  28. 47
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PagamentiCommonUtil.java
  29. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java
  30. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties
  31. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql
  32. 21
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql
  33. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml
  34. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml
  35. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml
  36. 48
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties
  37. 30
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/startup/DatabaseUpdateAction.java
  38. 250
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ManutenzioneDatabase.java
  39. 28
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SorteggioPraticaUtil.java
  40. 94
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriCacheModel.java
  41. 279
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriModelImpl.java
  42. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneFirmePortlet.java
  43. 60
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PagamentiPendingPortlet.java
  44. 89
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/SismicaAdministrationPortlet.java
  45. 26
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java
  46. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java
  47. 81
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/VerificaPagamentiScheduler.java
  48. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriLocalServiceClpInvoker.java
  49. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriServiceClpInvoker.java
  50. 234
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoLocalServiceClpInvoker.java
  51. 56
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoServiceClpInvoker.java
  52. 44
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoLocalServiceClpInvoker.java
  53. 13
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/FineLavoriServiceSoap.java
  54. 45
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/PagamentoServiceSoap.java
  55. 13
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java
  56. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/CollaudoLocalServiceImpl.java
  57. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java
  58. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java
  59. 33
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriLocalServiceImpl.java
  60. 15
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriServiceImpl.java
  61. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java
  62. 104
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoLocalServiceImpl.java
  63. 42
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoServiceImpl.java
  64. 260
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoLocalServiceImpl.java
  65. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java
  66. 100
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/PagamentiUtil.java
  67. 83
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/delega.html
  68. 29
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/delegawrapper.html
  69. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  70. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/avvisi_actions.jsp
  71. 13
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view.jsp
  72. 42
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_pagamenti_pending.jsp
  73. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_generic.jsp
  74. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_pagamenti_bolli.jsp
  75. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_pagamenti_spese.jsp
  76. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sismica_administration/view.jsp
  77. 273
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sorteggio/view.jsp
  78. 1384
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java
  79. 103
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/SoggettiPraticaPortlet.java
  80. 3
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/asseverazione_actions.jsp
  81. 294
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_collaudo.jsp
  82. 498
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_fine-lavori.jsp
  83. 55
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_inizio_lavori.jsp
  84. 107
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/fascicolo_action.jsp
  85. 1
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/save_actions.jspf
  86. 7
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp
  87. 217
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/pagamenti/confirm_iris.jsp
  88. 45
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/pagamenti/replace_payment.jsp
  89. 73
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/pagamenti/rigenera_pagamento.jsp
  90. 152
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_cambio_soggetti.jsp
  91. 97
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_collaudo_calcolo.jsp
  92. 34
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo.jsp
  93. 104
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo_calcolo.jsp
  94. 438
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fine-lavori_calcolo.jsp
  95. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/edit_soggetto.jsp
  96. 137
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/genera_delega.jsp
  97. 38
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/view.jsp
  98. 11
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailAttachmentPersistence.java
  99. 11
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailAttachmentUtil.java
  100. 17
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/hook/listener/DLFileEntryListener.java
  101. Some files were not shown because too many files have changed in this diff Show More

311
jasper/vidimazione_fl.jrxml

@ -11,67 +11,113 @@
<field name="sha256Allegato" class="java.lang.String"/>
</subDataset>
<parameter name="LOGO_REGIONE" class="java.lang.String"/>
<field name="alCollaudatore" class="java.lang.String"/>
<field name="allegati" class="java.util.List"/>
<field name="alTitolareDigitale" class="java.lang.String"/>
<field name="alCommittente" class="java.lang.String"/>
<field name="alDirettoreLavori" class="java.lang.String"/>
<field name="collaudatore" class="java.lang.String"/>
<field name="codiceUnivoco" class="java.lang.String"/>
<field name="committente" class="java.lang.String"/>
<field name="comune" class="java.lang.String"/>
<field name="dataAvviso" 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="numeroProgetto" 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="tecnicoEmail" class="java.lang.String"/>
<field name="tecnico" class="java.lang.String"/>
<field name="tipo" class="java.lang.String"/>
<field name="titolareDigitale" class="java.lang.String"/>
<field name="ubicazione" class="java.lang.String"/>
<pageHeader>
<band height="75" splitType="Stretch">
<band height="108" splitType="Stretch">
<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>
<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>
</image>
<textField>
<reportElement x="285" y="50" width="269" height="25" uuid="a329da1c-ce69-4c4e-8461-34eb44195739">
<staticText>
<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.y" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Bold" size="9" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA["Sede di "+$F{sedeGenioCivile}]]></textFieldExpression>
</textField>
<text><![CDATA[Dipartimento Regionale Tecnico]]></text>
</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.y" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Bold" size="9" isBold="false"/>
</textElement>
<text><![CDATA[Dipartimento Regionale Tecnico]]></text>
<text><![CDATA[Ufficio del Genio Civile]]></text>
</staticText>
<staticText>
<reportElement x="285" y="25" width="269" height="25" uuid="f1e093e1-71e5-4a60-94d0-5a80e51b1e60">
<textField>
<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.y" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Bold" size="9" isBold="false"/>
</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>
</band>
</pageHeader>
<detail>
<band height="398">
<line>
<reportElement x="0" y="13" width="555" height="1" uuid="94b2c91e-bbd3-4d62-b399-34fcba04c0cb"/>
</line>
<band height="149">
<staticText>
<reportElement x="0" y="19" width="56" height="13" uuid="2bb6962b-397c-4592-ab9b-f49f30c26032"/>
<textElement>
@ -80,242 +126,263 @@
<text><![CDATA[Oggetto:]]></text>
</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>
<font fontName="DejaVu Sans" isBold="true"/>
</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>
<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.x" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<textElement textAlignment="Center">
<font fontName="DejaVu Sans Bold" isBold="false" isUnderline="true"/>
</textElement>
<text><![CDATA[ATTESTAZIONE DEPOSITO FINE LAVORI]]></text>
</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"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans" size="8" isBold="false" isItalic="false"/>
<font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement>
<text><![CDATA[Data Avviso]]></text>
<text><![CDATA[Comune:]]></text>
</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>
<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"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement>
<text><![CDATA[Comune:]]></text>
<text><![CDATA[Committente:]]></text>
</staticText>
<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"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$F{alDirettoreLavori}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{comune}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="9" y="149" width="82" height="14" uuid="1937bfdd-32f4-4b4b-9e53-a1fb3d923925">
<textField isBlankWhenNull="true">
<reportElement x="91" y="135" width="458" height="14" uuid="5ec2ddc5-2a0b-4440-afb4-bef9e6102856">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans Bold" isBold="false"/>
<font fontName="DejaVu Sans"/>
</textElement>
<text><![CDATA[Lavori di:]]></text>
</staticText>
<textFieldExpression><![CDATA[$F{committente}]]></textFieldExpression>
</textField>
</band>
<band height="14">
<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.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans Bold" isBold="true"/>
<font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement>
<text><![CDATA[Al Committente]]></text>
<text><![CDATA[Lavori di:]]></text>
</staticText>
<staticText>
<reportElement x="266" y="254" width="115" height="14" uuid="9fe19eb8-bac2-4382-9120-ef8652c2617a">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<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.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans Bold" isBold="false"/>
<font fontName="DejaVu Sans"/>
</textElement>
<text><![CDATA[Al D.L.]]></text>
</staticText>
<textFieldExpression><![CDATA[$F{lavoriDi}]]></textFieldExpression>
</textField>
</band>
<band height="279">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<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.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans Bold" isBold="false"/>
<font fontName="DejaVu Sans Bold" isBold="true"/>
</textElement>
<text><![CDATA[Committente:]]></text>
<text><![CDATA[Al Committente]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="91" y="177" width="458" height="14" uuid="59326b1c-3092-45ab-ba73-d188ee32f184">
<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">
<reportElement x="215" y="63" width="334" height="14" uuid="137552fd-e658-4f57-a1fa-a7d07176df61">
<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>
<textElement>
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$F{lavoriDi}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{committente}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="91" y="121" width="458" height="14" uuid="6f2cb684-6534-4cc9-acd4-9c5fd6a677b1">
<staticText>
<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.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans"/>
<font fontName="DejaVu Sans Bold" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{comune}]]></textFieldExpression>
</textField>
<text><![CDATA[c/o il suo delegato]]></text>
</staticText>
<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.x" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$F{committente}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{titolareDigitale}]]></textFieldExpression>
</textField>
<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.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement>
<text><![CDATA[Progetto n.]]></text>
<text><![CDATA[Al D.LL.]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="381" y="226" width="168" height="14" uuid="f9c28d14-b419-47e8-8c47-a936d86fee32">
<staticText>
<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.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans"/>
<font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{alCommittente}]]></textFieldExpression>
</textField>
<text><![CDATA[Ubicazione:]]></text>
</staticText>
<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.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$F{numeroProtocollo}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{ubicazione} != null ? $F{ubicazione} : ""]]></textFieldExpression>
</textField>
<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.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement>
<text><![CDATA[Protocollo n.]]></text>
<text><![CDATA[Progetto n.]]></text>
</staticText>
<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.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$F{alTitolareDigitale}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{numeroProgetto}]]></textFieldExpression>
</textField>
<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.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans Bold" isBold="true"/>
<font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement>
<text><![CDATA[c/o il suo delegato]]></text>
<text><![CDATA[Protocollo n.]]></text>
</staticText>
<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"/>
<printWhenExpression><![CDATA[!"".equalsIgnoreCase( $F{alCollaudatore} ) && $F{alCollaudatore}!=null]]></printWhenExpression>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$F{alCollaudatore}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{numeroProtocollo}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="266" y="268" width="115" height="14" isRemoveLineWhenBlank="true" uuid="43505d3a-dbf3-4da8-8518-a8a175b6b4c6">
<textField isBlankWhenNull="true">
<reportElement x="215" y="91" width="334" height="14" uuid="aba07ff4-f812-4624-a3b0-8c85099e279c">
<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>
<textElement>
<font fontName="DejaVu Sans Bold" isBold="false"/>
<font fontName="DejaVu Sans"/>
</textElement>
<text><![CDATA[Al Collaudatore]]></text>
</staticText>
<textFieldExpression><![CDATA[$F{direttoreLavori}]]></textFieldExpression>
</textField>
<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.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<printWhenExpression><![CDATA[!"".equalsIgnoreCase( $F{collaudatore} ) && $F{collaudatore}!=null]]></printWhenExpression>
</reportElement>
<textElement>
<font fontName="DejaVu Sans Bold" isBold="false"/>
</textElement>
<text><![CDATA[Ubicazione:]]></text>
<text><![CDATA[Al Collaudatore]]></text>
</staticText>
<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.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>
<textElement>
<font fontName="DejaVu Sans"/>
</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">
<reportElement stretchType="RelativeToTallestObject" x="0" y="132" width="548" height="107" uuid="32a5d4f3-4499-49d3-8252-4454f1d46da9">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<printWhenExpression><![CDATA[$F{parziale}]]></printWhenExpression>
<property name="com.jaspersoft.studio.unit.firstLineIndent" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans Bold" isBold="false" isUnderline="false"/>
</textElement>
<textFieldExpression><![CDATA["[parziale n°" + $F{parzialeNumero} + "]"]]></textFieldExpression>
</textField>
<textField>
<reportElement stretchType="RelativeToTallestObject" x="0" y="285" width="548" height="65" uuid="122c39b6-f0c9-45b0-816c-4fdde45c8623"/>
<textElement textAlignment="Justified">
<font fontName="DejaVu Sans"/>
</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"+
"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"+
"Sismica-Sicilia, con n° protocollo " + $F{numeroProtocollo}]]></textFieldExpression>
<paragraph firstLineIndent="20"/>
</textElement>
<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}) +
" relativa al progetto n. " + $F{numeroProgetto} +
", si comunica che è stata vidimata e acquisita dal sistema regionale Sismica-Sicilia, con n° protocollo " + $F{numeroProtocollo} + ".\n" +
"La 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.\n" +
"Il presente documento viene generato automaticamente dal sistema informatico SISMICA della Regione Siciliana."]]></textFieldExpression>
</textField>
<staticText>
<reportElement stretchType="RelativeToTallestObject" x="3" y="360" width="548" height="30" uuid="d2f2dc73-ea35-4995-9f1c-a767e34a93a3"/>
<reportElement stretchType="RelativeToTallestObject" x="3" y="249" width="548" height="30" uuid="410373e1-0cd1-451f-b490-7d1a7cdb57ae">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<font fontName="DejaVu Sans"/>
</textElement>
@ -374,7 +441,7 @@ depositata:]]></text>
<font fontName="DejaVu Sans Bold" size="8" isBold="false"/>
</textElement>
<text><![CDATA[www.regione.sicilia.it
https://sismica.lavoripubblici.sicilia.it]]></text>
https://sismica.sicilia.it]]></text>
</staticText>
<line>
<reportElement x="0" y="99" width="555" height="1" uuid="f2f3ee86-58db-4a77-937b-428b7f419b7b"/>

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

@ -11,8 +11,8 @@
<scheduler-event-listener-class>it.tref.liferay.portos.bo.scheduler.SchedulerEstrazioneFirme</scheduler-event-listener-class>
<trigger>
<simple>
<simple-trigger-value>30</simple-trigger-value>
<time-unit>second</time-unit>
<simple-trigger-value>1</simple-trigger-value>
<time-unit>minute</time-unit>
</simple>
</trigger>
</scheduler-entry>
@ -21,8 +21,8 @@
<scheduler-event-listener-class>it.tref.liferay.portos.bo.scheduler.SchedulerInvioDocumento</scheduler-event-listener-class>
<trigger>
<simple>
<simple-trigger-value>30</simple-trigger-value>
<time-unit>second</time-unit>
<simple-trigger-value>1</simple-trigger-value>
<time-unit>minute</time-unit>
</simple>
</trigger>
</scheduler-entry>
@ -31,8 +31,8 @@
<scheduler-event-listener-class>it.tref.liferay.portos.bo.scheduler.SchedulerGeneraDocumento</scheduler-event-listener-class>
<trigger>
<simple>
<simple-trigger-value>30</simple-trigger-value>
<time-unit>second</time-unit>
<simple-trigger-value>1</simple-trigger-value>
<time-unit>minute</time-unit>
</simple>
</trigger>
</scheduler-entry>
@ -45,23 +45,13 @@
</cron>
</trigger>
</scheduler-entry>
<scheduler-entry>
<scheduler-description>Verifica Pagamenti</scheduler-description>
<scheduler-event-listener-class>it.tref.liferay.portos.bo.scheduler.VerificaPagamentiScheduler</scheduler-event-listener-class>
<trigger>
<simple>
<simple-trigger-value>30</simple-trigger-value>
<time-unit>second</time-unit>
</simple>
</trigger>
</scheduler-entry>
<scheduler-entry>
<scheduler-description>Pratiche</scheduler-description>
<scheduler-event-listener-class>it.tref.liferay.portos.bo.scheduler.SchedulerPratiche</scheduler-event-listener-class>
<trigger>
<simple>
<simple-trigger-value>30</simple-trigger-value>
<time-unit>second</time-unit>
<simple-trigger-value>1</simple-trigger-value>
<time-unit>minute</time-unit>
</simple>
</trigger>
</scheduler-entry>

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

@ -704,13 +704,20 @@
<column name="dataEffettuazione" type="Date" />
<column name="dataFineLavori" type="Date" />
<column name="normEsenteBollo" type="boolean" />
<column name="normEsenteSpese" type="boolean" />
<column name="normEsenteCollaudo" type="boolean" />
<column name="comunicazioneDirettoreLavori" type="String" />
<column name="pagamentoId" type="long" />
<column name="pagamentoSpeseId" type="long" />
<column name="codicePagamento" type="String" />
<column name="codicePagamentoSpese" type="String" />
<column name="causalePagamento" type="String" />
<column name="causalePagamentoSpese" type="String" />
<column name="mezzoPagamento" type="String" />
<column name="mezzoPagamentoSpese" type="String" />
<column name="importoBolli" type="String" />
<column name="importoSpese" type="String" />
<column name="richiestaAttestazione" type="boolean" />
<!-- Finder -->
<finder return-type="FineLavori" name="Protocollo">

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

@ -95,14 +95,21 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
attributes.put("dataEffettuazione", getDataEffettuazione());
attributes.put("dataFineLavori", getDataFineLavori());
attributes.put("normEsenteBollo", getNormEsenteBollo());
attributes.put("normEsenteSpese", getNormEsenteSpese());
attributes.put("normEsenteCollaudo", getNormEsenteCollaudo());
attributes.put("comunicazioneDirettoreLavori",
getComunicazioneDirettoreLavori());
attributes.put("pagamentoId", getPagamentoId());
attributes.put("pagamentoSpeseId", getPagamentoSpeseId());
attributes.put("codicePagamento", getCodicePagamento());
attributes.put("codicePagamentoSpese", getCodicePagamentoSpese());
attributes.put("causalePagamento", getCausalePagamento());
attributes.put("causalePagamentoSpese", getCausalePagamentoSpese());
attributes.put("mezzoPagamento", getMezzoPagamento());
attributes.put("mezzoPagamentoSpese", getMezzoPagamentoSpese());
attributes.put("importoBolli", getImportoBolli());
attributes.put("importoSpese", getImportoSpese());
attributes.put("richiestaAttestazione", getRichiestaAttestazione());
return attributes;
}
@ -224,6 +231,12 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
setNormEsenteBollo(normEsenteBollo);
}
Boolean normEsenteSpese = (Boolean)attributes.get("normEsenteSpese");
if (normEsenteSpese != null) {
setNormEsenteSpese(normEsenteSpese);
}
Boolean normEsenteCollaudo = (Boolean)attributes.get(
"normEsenteCollaudo");
@ -244,29 +257,69 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
setPagamentoId(pagamentoId);
}
Long pagamentoSpeseId = (Long)attributes.get("pagamentoSpeseId");
if (pagamentoSpeseId != null) {
setPagamentoSpeseId(pagamentoSpeseId);
}
String codicePagamento = (String)attributes.get("codicePagamento");
if (codicePagamento != null) {
setCodicePagamento(codicePagamento);
}
String codicePagamentoSpese = (String)attributes.get(
"codicePagamentoSpese");
if (codicePagamentoSpese != null) {
setCodicePagamentoSpese(codicePagamentoSpese);
}
String causalePagamento = (String)attributes.get("causalePagamento");
if (causalePagamento != null) {
setCausalePagamento(causalePagamento);
}
String causalePagamentoSpese = (String)attributes.get(
"causalePagamentoSpese");
if (causalePagamentoSpese != null) {
setCausalePagamentoSpese(causalePagamentoSpese);
}
String mezzoPagamento = (String)attributes.get("mezzoPagamento");
if (mezzoPagamento != null) {
setMezzoPagamento(mezzoPagamento);
}
String mezzoPagamentoSpese = (String)attributes.get(
"mezzoPagamentoSpese");
if (mezzoPagamentoSpese != null) {
setMezzoPagamentoSpese(mezzoPagamentoSpese);
}
String importoBolli = (String)attributes.get("importoBolli");
if (importoBolli != null) {
setImportoBolli(importoBolli);
}
String importoSpese = (String)attributes.get("importoSpese");
if (importoSpese != null) {
setImportoSpese(importoSpese);
}
Boolean richiestaAttestazione = (Boolean)attributes.get(
"richiestaAttestazione");
if (richiestaAttestazione != null) {
setRichiestaAttestazione(richiestaAttestazione);
}
}
@Override
@ -739,6 +792,35 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
}
}
@Override
public boolean getNormEsenteSpese() {
return _normEsenteSpese;
}
@Override
public boolean isNormEsenteSpese() {
return _normEsenteSpese;
}
@Override
public void setNormEsenteSpese(boolean normEsenteSpese) {
_normEsenteSpese = normEsenteSpese;
if (_fineLavoriRemoteModel != null) {
try {
Class<?> clazz = _fineLavoriRemoteModel.getClass();
Method method = clazz.getMethod("setNormEsenteSpese",
boolean.class);
method.invoke(_fineLavoriRemoteModel, normEsenteSpese);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public boolean getNormEsenteCollaudo() {
return _normEsenteCollaudo;
@ -817,6 +899,30 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
}
}
@Override
public long getPagamentoSpeseId() {
return _pagamentoSpeseId;
}
@Override
public void setPagamentoSpeseId(long pagamentoSpeseId) {
_pagamentoSpeseId = pagamentoSpeseId;
if (_fineLavoriRemoteModel != null) {
try {
Class<?> clazz = _fineLavoriRemoteModel.getClass();
Method method = clazz.getMethod("setPagamentoSpeseId",
long.class);
method.invoke(_fineLavoriRemoteModel, pagamentoSpeseId);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public String getCodicePagamento() {
return _codicePagamento;
@ -841,6 +947,30 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
}
}
@Override
public String getCodicePagamentoSpese() {
return _codicePagamentoSpese;
}
@Override
public void setCodicePagamentoSpese(String codicePagamentoSpese) {
_codicePagamentoSpese = codicePagamentoSpese;
if (_fineLavoriRemoteModel != null) {
try {
Class<?> clazz = _fineLavoriRemoteModel.getClass();
Method method = clazz.getMethod("setCodicePagamentoSpese",
String.class);
method.invoke(_fineLavoriRemoteModel, codicePagamentoSpese);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public String getCausalePagamento() {
return _causalePagamento;
@ -865,6 +995,30 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
}
}
@Override
public String getCausalePagamentoSpese() {
return _causalePagamentoSpese;
}
@Override
public void setCausalePagamentoSpese(String causalePagamentoSpese) {
_causalePagamentoSpese = causalePagamentoSpese;
if (_fineLavoriRemoteModel != null) {
try {
Class<?> clazz = _fineLavoriRemoteModel.getClass();
Method method = clazz.getMethod("setCausalePagamentoSpese",
String.class);
method.invoke(_fineLavoriRemoteModel, causalePagamentoSpese);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public String getMezzoPagamento() {
return _mezzoPagamento;
@ -889,6 +1043,30 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
}
}
@Override
public String getMezzoPagamentoSpese() {
return _mezzoPagamentoSpese;
}
@Override
public void setMezzoPagamentoSpese(String mezzoPagamentoSpese) {
_mezzoPagamentoSpese = mezzoPagamentoSpese;
if (_fineLavoriRemoteModel != null) {
try {
Class<?> clazz = _fineLavoriRemoteModel.getClass();
Method method = clazz.getMethod("setMezzoPagamentoSpese",
String.class);
method.invoke(_fineLavoriRemoteModel, mezzoPagamentoSpese);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public String getImportoBolli() {
return _importoBolli;
@ -912,6 +1090,58 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
}
}
@Override
public String getImportoSpese() {
return _importoSpese;
}
@Override
public void setImportoSpese(String importoSpese) {
_importoSpese = importoSpese;
if (_fineLavoriRemoteModel != null) {
try {
Class<?> clazz = _fineLavoriRemoteModel.getClass();
Method method = clazz.getMethod("setImportoSpese", String.class);
method.invoke(_fineLavoriRemoteModel, importoSpese);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@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
public java.lang.String getTitle(java.util.Locale locale) {
try {
@ -1063,13 +1293,20 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
clone.setDataEffettuazione(getDataEffettuazione());
clone.setDataFineLavori(getDataFineLavori());
clone.setNormEsenteBollo(getNormEsenteBollo());
clone.setNormEsenteSpese(getNormEsenteSpese());
clone.setNormEsenteCollaudo(getNormEsenteCollaudo());
clone.setComunicazioneDirettoreLavori(getComunicazioneDirettoreLavori());
clone.setPagamentoId(getPagamentoId());
clone.setPagamentoSpeseId(getPagamentoSpeseId());
clone.setCodicePagamento(getCodicePagamento());
clone.setCodicePagamentoSpese(getCodicePagamentoSpese());
clone.setCausalePagamento(getCausalePagamento());
clone.setCausalePagamentoSpese(getCausalePagamentoSpese());
clone.setMezzoPagamento(getMezzoPagamento());
clone.setMezzoPagamentoSpese(getMezzoPagamentoSpese());
clone.setImportoBolli(getImportoBolli());
clone.setImportoSpese(getImportoSpese());
clone.setRichiestaAttestazione(getRichiestaAttestazione());
return clone;
}
@ -1122,7 +1359,7 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
@Override
public String toString() {
StringBundler sb = new StringBundler(53);
StringBundler sb = new StringBundler(67);
sb.append("{uuid=");
sb.append(getUuid());
@ -1162,20 +1399,34 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
sb.append(getDataFineLavori());
sb.append(", normEsenteBollo=");
sb.append(getNormEsenteBollo());
sb.append(", normEsenteSpese=");
sb.append(getNormEsenteSpese());
sb.append(", normEsenteCollaudo=");
sb.append(getNormEsenteCollaudo());
sb.append(", comunicazioneDirettoreLavori=");
sb.append(getComunicazioneDirettoreLavori());
sb.append(", pagamentoId=");
sb.append(getPagamentoId());
sb.append(", pagamentoSpeseId=");
sb.append(getPagamentoSpeseId());
sb.append(", codicePagamento=");
sb.append(getCodicePagamento());
sb.append(", codicePagamentoSpese=");
sb.append(getCodicePagamentoSpese());
sb.append(", causalePagamento=");
sb.append(getCausalePagamento());
sb.append(", causalePagamentoSpese=");
sb.append(getCausalePagamentoSpese());
sb.append(", mezzoPagamento=");
sb.append(getMezzoPagamento());
sb.append(", mezzoPagamentoSpese=");
sb.append(getMezzoPagamentoSpese());
sb.append(", importoBolli=");
sb.append(getImportoBolli());
sb.append(", importoSpese=");
sb.append(getImportoSpese());
sb.append(", richiestaAttestazione=");
sb.append(getRichiestaAttestazione());
sb.append("}");
return sb.toString();
@ -1183,7 +1434,7 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
@Override
public String toXmlString() {
StringBundler sb = new StringBundler(82);
StringBundler sb = new StringBundler(103);
sb.append("<model><model-name>");
sb.append("it.tref.liferay.portos.bo.model.FineLavori");
@ -1265,6 +1516,10 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
"<column><column-name>normEsenteBollo</column-name><column-value><![CDATA[");
sb.append(getNormEsenteBollo());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>normEsenteSpese</column-name><column-value><![CDATA[");
sb.append(getNormEsenteSpese());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>normEsenteCollaudo</column-name><column-value><![CDATA[");
sb.append(getNormEsenteCollaudo());
@ -1277,22 +1532,46 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
"<column><column-name>pagamentoId</column-name><column-value><![CDATA[");
sb.append(getPagamentoId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>pagamentoSpeseId</column-name><column-value><![CDATA[");
sb.append(getPagamentoSpeseId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>codicePagamento</column-name><column-value><![CDATA[");
sb.append(getCodicePagamento());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>codicePagamentoSpese</column-name><column-value><![CDATA[");
sb.append(getCodicePagamentoSpese());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>causalePagamento</column-name><column-value><![CDATA[");
sb.append(getCausalePagamento());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>causalePagamentoSpese</column-name><column-value><![CDATA[");
sb.append(getCausalePagamentoSpese());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>mezzoPagamento</column-name><column-value><![CDATA[");
sb.append(getMezzoPagamento());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>mezzoPagamentoSpese</column-name><column-value><![CDATA[");
sb.append(getMezzoPagamentoSpese());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>importoBolli</column-name><column-value><![CDATA[");
sb.append(getImportoBolli());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>importoSpese</column-name><column-value><![CDATA[");
sb.append(getImportoSpese());
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>");
@ -1319,13 +1598,20 @@ public class FineLavoriClp extends BaseModelImpl<FineLavori>
private Date _dataEffettuazione;
private Date _dataFineLavori;
private boolean _normEsenteBollo;
private boolean _normEsenteSpese;
private boolean _normEsenteCollaudo;
private String _comunicazioneDirettoreLavori;
private long _pagamentoId;
private long _pagamentoSpeseId;
private String _codicePagamento;
private String _codicePagamentoSpese;
private String _causalePagamento;
private String _causalePagamentoSpese;
private String _mezzoPagamento;
private String _mezzoPagamentoSpese;
private String _importoBolli;
private String _importoSpese;
private boolean _richiestaAttestazione;
private BaseModel<?> _fineLavoriRemoteModel;
private Class<?> _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class;
}

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

@ -391,6 +391,27 @@ public interface FineLavoriModel extends BaseModel<FineLavori>,
*/
public void setNormEsenteBollo(boolean normEsenteBollo);
/**
* Returns the norm esente spese of this fine lavori.
*
* @return the norm esente spese of this fine lavori
*/
public boolean getNormEsenteSpese();
/**
* Returns <code>true</code> if this fine lavori is norm esente spese.
*
* @return <code>true</code> if this fine lavori is norm esente spese; <code>false</code> otherwise
*/
public boolean isNormEsenteSpese();
/**
* Sets whether this fine lavori is norm esente spese.
*
* @param normEsenteSpese the norm esente spese of this fine lavori
*/
public void setNormEsenteSpese(boolean normEsenteSpese);
/**
* Returns the norm esente collaudo of this fine lavori.
*
@ -442,6 +463,20 @@ public interface FineLavoriModel extends BaseModel<FineLavori>,
*/
public void setPagamentoId(long pagamentoId);
/**
* Returns the pagamento spese ID of this fine lavori.
*
* @return the pagamento spese ID of this fine lavori
*/
public long getPagamentoSpeseId();
/**
* Sets the pagamento spese ID of this fine lavori.
*
* @param pagamentoSpeseId the pagamento spese ID of this fine lavori
*/
public void setPagamentoSpeseId(long pagamentoSpeseId);
/**
* Returns the codice pagamento of this fine lavori.
*
@ -457,6 +492,21 @@ public interface FineLavoriModel extends BaseModel<FineLavori>,
*/
public void setCodicePagamento(String codicePagamento);
/**
* Returns the codice pagamento spese of this fine lavori.
*
* @return the codice pagamento spese of this fine lavori
*/
@AutoEscape
public String getCodicePagamentoSpese();
/**
* Sets the codice pagamento spese of this fine lavori.
*
* @param codicePagamentoSpese the codice pagamento spese of this fine lavori
*/
public void setCodicePagamentoSpese(String codicePagamentoSpese);
/**
* Returns the causale pagamento of this fine lavori.
*
@ -472,6 +522,21 @@ public interface FineLavoriModel extends BaseModel<FineLavori>,
*/
public void setCausalePagamento(String causalePagamento);
/**
* Returns the causale pagamento spese of this fine lavori.
*
* @return the causale pagamento spese of this fine lavori
*/
@AutoEscape
public String getCausalePagamentoSpese();
/**
* Sets the causale pagamento spese of this fine lavori.
*
* @param causalePagamentoSpese the causale pagamento spese of this fine lavori
*/
public void setCausalePagamentoSpese(String causalePagamentoSpese);
/**
* Returns the mezzo pagamento of this fine lavori.
*
@ -487,6 +552,21 @@ public interface FineLavoriModel extends BaseModel<FineLavori>,
*/
public void setMezzoPagamento(String mezzoPagamento);
/**
* Returns the mezzo pagamento spese of this fine lavori.
*
* @return the mezzo pagamento spese of this fine lavori
*/
@AutoEscape
public String getMezzoPagamentoSpese();
/**
* Sets the mezzo pagamento spese of this fine lavori.
*
* @param mezzoPagamentoSpese the mezzo pagamento spese of this fine lavori
*/
public void setMezzoPagamentoSpese(String mezzoPagamentoSpese);
/**
* Returns the importo bolli of this fine lavori.
*
@ -502,6 +582,42 @@ public interface FineLavoriModel extends BaseModel<FineLavori>,
*/
public void setImportoBolli(String importoBolli);
/**
* Returns the importo spese of this fine lavori.
*
* @return the importo spese of this fine lavori
*/
@AutoEscape
public String getImportoSpese();
/**
* Sets the importo spese of this fine lavori.
*
* @param importoSpese the importo spese of this fine lavori
*/
public void setImportoSpese(String importoSpese);
/**
* 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
public boolean isNew();

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

@ -50,13 +50,20 @@ public class FineLavoriSoap implements Serializable {
soapModel.setDataEffettuazione(model.getDataEffettuazione());
soapModel.setDataFineLavori(model.getDataFineLavori());
soapModel.setNormEsenteBollo(model.getNormEsenteBollo());
soapModel.setNormEsenteSpese(model.getNormEsenteSpese());
soapModel.setNormEsenteCollaudo(model.getNormEsenteCollaudo());
soapModel.setComunicazioneDirettoreLavori(model.getComunicazioneDirettoreLavori());
soapModel.setPagamentoId(model.getPagamentoId());
soapModel.setPagamentoSpeseId(model.getPagamentoSpeseId());
soapModel.setCodicePagamento(model.getCodicePagamento());
soapModel.setCodicePagamentoSpese(model.getCodicePagamentoSpese());
soapModel.setCausalePagamento(model.getCausalePagamento());
soapModel.setCausalePagamentoSpese(model.getCausalePagamentoSpese());
soapModel.setMezzoPagamento(model.getMezzoPagamento());
soapModel.setMezzoPagamentoSpese(model.getMezzoPagamentoSpese());
soapModel.setImportoBolli(model.getImportoBolli());
soapModel.setImportoSpese(model.getImportoSpese());
soapModel.setRichiestaAttestazione(model.getRichiestaAttestazione());
return soapModel;
}
@ -277,6 +284,18 @@ public class FineLavoriSoap implements Serializable {
_normEsenteBollo = normEsenteBollo;
}
public boolean getNormEsenteSpese() {
return _normEsenteSpese;
}
public boolean isNormEsenteSpese() {
return _normEsenteSpese;
}
public void setNormEsenteSpese(boolean normEsenteSpese) {
_normEsenteSpese = normEsenteSpese;
}
public boolean getNormEsenteCollaudo() {
return _normEsenteCollaudo;
}
@ -306,6 +325,14 @@ public class FineLavoriSoap implements Serializable {
_pagamentoId = pagamentoId;
}
public long getPagamentoSpeseId() {
return _pagamentoSpeseId;
}
public void setPagamentoSpeseId(long pagamentoSpeseId) {
_pagamentoSpeseId = pagamentoSpeseId;
}
public String getCodicePagamento() {
return _codicePagamento;
}
@ -314,6 +341,14 @@ public class FineLavoriSoap implements Serializable {
_codicePagamento = codicePagamento;
}
public String getCodicePagamentoSpese() {
return _codicePagamentoSpese;
}
public void setCodicePagamentoSpese(String codicePagamentoSpese) {
_codicePagamentoSpese = codicePagamentoSpese;
}
public String getCausalePagamento() {
return _causalePagamento;
}
@ -322,6 +357,14 @@ public class FineLavoriSoap implements Serializable {
_causalePagamento = causalePagamento;
}
public String getCausalePagamentoSpese() {
return _causalePagamentoSpese;
}
public void setCausalePagamentoSpese(String causalePagamentoSpese) {
_causalePagamentoSpese = causalePagamentoSpese;
}
public String getMezzoPagamento() {
return _mezzoPagamento;
}
@ -330,6 +373,14 @@ public class FineLavoriSoap implements Serializable {
_mezzoPagamento = mezzoPagamento;
}
public String getMezzoPagamentoSpese() {
return _mezzoPagamentoSpese;
}
public void setMezzoPagamentoSpese(String mezzoPagamentoSpese) {
_mezzoPagamentoSpese = mezzoPagamentoSpese;
}
public String getImportoBolli() {
return _importoBolli;
}
@ -338,6 +389,26 @@ public class FineLavoriSoap implements Serializable {
_importoBolli = importoBolli;
}
public String getImportoSpese() {
return _importoSpese;
}
public void setImportoSpese(String importoSpese) {
_importoSpese = importoSpese;
}
public boolean getRichiestaAttestazione() {
return _richiestaAttestazione;
}
public boolean isRichiestaAttestazione() {
return _richiestaAttestazione;
}
public void setRichiestaAttestazione(boolean richiestaAttestazione) {
_richiestaAttestazione = richiestaAttestazione;
}
private String _uuid;
private long _fineLavoriId;
private long _companyId;
@ -357,11 +428,18 @@ public class FineLavoriSoap implements Serializable {
private Date _dataEffettuazione;
private Date _dataFineLavori;
private boolean _normEsenteBollo;
private boolean _normEsenteSpese;
private boolean _normEsenteCollaudo;
private String _comunicazioneDirettoreLavori;
private long _pagamentoId;
private long _pagamentoSpeseId;
private String _codicePagamento;
private String _codicePagamentoSpese;
private String _causalePagamento;
private String _causalePagamentoSpese;
private String _mezzoPagamento;
private String _mezzoPagamentoSpese;
private String _importoBolli;
private String _importoSpese;
private boolean _richiestaAttestazione;
}

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

@ -69,14 +69,21 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
attributes.put("dataEffettuazione", getDataEffettuazione());
attributes.put("dataFineLavori", getDataFineLavori());
attributes.put("normEsenteBollo", getNormEsenteBollo());
attributes.put("normEsenteSpese", getNormEsenteSpese());
attributes.put("normEsenteCollaudo", getNormEsenteCollaudo());
attributes.put("comunicazioneDirettoreLavori",
getComunicazioneDirettoreLavori());
attributes.put("pagamentoId", getPagamentoId());
attributes.put("pagamentoSpeseId", getPagamentoSpeseId());
attributes.put("codicePagamento", getCodicePagamento());
attributes.put("codicePagamentoSpese", getCodicePagamentoSpese());
attributes.put("causalePagamento", getCausalePagamento());
attributes.put("causalePagamentoSpese", getCausalePagamentoSpese());
attributes.put("mezzoPagamento", getMezzoPagamento());
attributes.put("mezzoPagamentoSpese", getMezzoPagamentoSpese());
attributes.put("importoBolli", getImportoBolli());
attributes.put("importoSpese", getImportoSpese());
attributes.put("richiestaAttestazione", getRichiestaAttestazione());
return attributes;
}
@ -198,6 +205,12 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
setNormEsenteBollo(normEsenteBollo);
}
Boolean normEsenteSpese = (Boolean)attributes.get("normEsenteSpese");
if (normEsenteSpese != null) {
setNormEsenteSpese(normEsenteSpese);
}
Boolean normEsenteCollaudo = (Boolean)attributes.get(
"normEsenteCollaudo");
@ -218,29 +231,69 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
setPagamentoId(pagamentoId);
}
Long pagamentoSpeseId = (Long)attributes.get("pagamentoSpeseId");
if (pagamentoSpeseId != null) {
setPagamentoSpeseId(pagamentoSpeseId);
}
String codicePagamento = (String)attributes.get("codicePagamento");
if (codicePagamento != null) {
setCodicePagamento(codicePagamento);
}
String codicePagamentoSpese = (String)attributes.get(
"codicePagamentoSpese");
if (codicePagamentoSpese != null) {
setCodicePagamentoSpese(codicePagamentoSpese);
}
String causalePagamento = (String)attributes.get("causalePagamento");
if (causalePagamento != null) {
setCausalePagamento(causalePagamento);
}
String causalePagamentoSpese = (String)attributes.get(
"causalePagamentoSpese");
if (causalePagamentoSpese != null) {
setCausalePagamentoSpese(causalePagamentoSpese);
}
String mezzoPagamento = (String)attributes.get("mezzoPagamento");
if (mezzoPagamento != null) {
setMezzoPagamento(mezzoPagamento);
}
String mezzoPagamentoSpese = (String)attributes.get(
"mezzoPagamentoSpese");
if (mezzoPagamentoSpese != null) {
setMezzoPagamentoSpese(mezzoPagamentoSpese);
}
String importoBolli = (String)attributes.get("importoBolli");
if (importoBolli != null) {
setImportoBolli(importoBolli);
}
String importoSpese = (String)attributes.get("importoSpese");
if (importoSpese != null) {
setImportoSpese(importoSpese);
}
Boolean richiestaAttestazione = (Boolean)attributes.get(
"richiestaAttestazione");
if (richiestaAttestazione != null) {
setRichiestaAttestazione(richiestaAttestazione);
}
}
/**
@ -705,6 +758,36 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
_fineLavori.setNormEsenteBollo(normEsenteBollo);
}
/**
* Returns the norm esente spese of this fine lavori.
*
* @return the norm esente spese of this fine lavori
*/
@Override
public boolean getNormEsenteSpese() {
return _fineLavori.getNormEsenteSpese();
}
/**
* Returns <code>true</code> if this fine lavori is norm esente spese.
*
* @return <code>true</code> if this fine lavori is norm esente spese; <code>false</code> otherwise
*/
@Override
public boolean isNormEsenteSpese() {
return _fineLavori.isNormEsenteSpese();
}
/**
* Sets whether this fine lavori is norm esente spese.
*
* @param normEsenteSpese the norm esente spese of this fine lavori
*/
@Override
public void setNormEsenteSpese(boolean normEsenteSpese) {
_fineLavori.setNormEsenteSpese(normEsenteSpese);
}
/**
* Returns the norm esente collaudo of this fine lavori.
*
@ -776,6 +859,26 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
_fineLavori.setPagamentoId(pagamentoId);
}
/**
* Returns the pagamento spese ID of this fine lavori.
*
* @return the pagamento spese ID of this fine lavori
*/
@Override
public long getPagamentoSpeseId() {
return _fineLavori.getPagamentoSpeseId();
}
/**
* Sets the pagamento spese ID of this fine lavori.
*
* @param pagamentoSpeseId the pagamento spese ID of this fine lavori
*/
@Override
public void setPagamentoSpeseId(long pagamentoSpeseId) {
_fineLavori.setPagamentoSpeseId(pagamentoSpeseId);
}
/**
* Returns the codice pagamento of this fine lavori.
*
@ -796,6 +899,26 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
_fineLavori.setCodicePagamento(codicePagamento);
}
/**
* Returns the codice pagamento spese of this fine lavori.
*
* @return the codice pagamento spese of this fine lavori
*/
@Override
public java.lang.String getCodicePagamentoSpese() {
return _fineLavori.getCodicePagamentoSpese();
}
/**
* Sets the codice pagamento spese of this fine lavori.
*
* @param codicePagamentoSpese the codice pagamento spese of this fine lavori
*/
@Override
public void setCodicePagamentoSpese(java.lang.String codicePagamentoSpese) {
_fineLavori.setCodicePagamentoSpese(codicePagamentoSpese);
}
/**
* Returns the causale pagamento of this fine lavori.
*
@ -816,6 +939,26 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
_fineLavori.setCausalePagamento(causalePagamento);
}
/**
* Returns the causale pagamento spese of this fine lavori.
*
* @return the causale pagamento spese of this fine lavori
*/
@Override
public java.lang.String getCausalePagamentoSpese() {
return _fineLavori.getCausalePagamentoSpese();
}
/**
* Sets the causale pagamento spese of this fine lavori.
*
* @param causalePagamentoSpese the causale pagamento spese of this fine lavori
*/
@Override
public void setCausalePagamentoSpese(java.lang.String causalePagamentoSpese) {
_fineLavori.setCausalePagamentoSpese(causalePagamentoSpese);
}
/**
* Returns the mezzo pagamento of this fine lavori.
*
@ -836,6 +979,26 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
_fineLavori.setMezzoPagamento(mezzoPagamento);
}
/**
* Returns the mezzo pagamento spese of this fine lavori.
*
* @return the mezzo pagamento spese of this fine lavori
*/
@Override
public java.lang.String getMezzoPagamentoSpese() {
return _fineLavori.getMezzoPagamentoSpese();
}
/**
* Sets the mezzo pagamento spese of this fine lavori.
*
* @param mezzoPagamentoSpese the mezzo pagamento spese of this fine lavori
*/
@Override
public void setMezzoPagamentoSpese(java.lang.String mezzoPagamentoSpese) {
_fineLavori.setMezzoPagamentoSpese(mezzoPagamentoSpese);
}
/**
* Returns the importo bolli of this fine lavori.
*
@ -856,6 +1019,56 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
_fineLavori.setImportoBolli(importoBolli);
}
/**
* Returns the importo spese of this fine lavori.
*
* @return the importo spese of this fine lavori
*/
@Override
public java.lang.String getImportoSpese() {
return _fineLavori.getImportoSpese();
}
/**
* Sets the importo spese of this fine lavori.
*
* @param importoSpese the importo spese of this fine lavori
*/
@Override
public void setImportoSpese(java.lang.String importoSpese) {
_fineLavori.setImportoSpese(importoSpese);
}
/**
* 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
public boolean isNew() {
return _fineLavori.isNew();

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

@ -324,8 +324,9 @@ public interface FineLavoriLocalService extends BaseLocalService,
long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori)
boolean normEsenteSpese, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori,
boolean richiestaAttestazione)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchFineLavoriException;
@ -341,6 +342,7 @@ public interface FineLavoriLocalService extends BaseLocalService,
public it.tref.liferay.portos.bo.model.FineLavori pagaInvia(
long fineLavoriId, java.lang.String codiceFiscaleCommittente,
java.lang.String importoBolli, java.lang.String importoSpese,
java.lang.String currentURL,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,

20
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[] {
"long", "long", "long", "boolean", "boolean", "java.util.Date",
"java.lang.String", "boolean", "boolean", "java.lang.String"
"java.lang.String", "boolean", "boolean", "boolean",
"java.lang.String", "boolean"
};
_methodName25 = "getLastEditable";
@ -156,6 +157,7 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService {
_methodParameterTypes27 = new String[] {
"long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
};
@ -1027,8 +1029,9 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService {
long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori)
boolean normEsenteSpese, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori,
boolean richiestaAttestazione)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchFineLavoriException {
Object returnObj = null;
@ -1053,9 +1056,13 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService {
normEsenteBollo,
normEsenteSpese,
normEsenteCollaudo,
ClpSerializer.translateInput(comunicazioneDirettoreLavori)
ClpSerializer.translateInput(comunicazioneDirettoreLavori),
richiestaAttestazione
});
}
catch (Throwable t) {
@ -1142,6 +1149,7 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService {
@Override
public it.tref.liferay.portos.bo.model.FineLavori pagaInvia(
long fineLavoriId, java.lang.String codiceFiscaleCommittente,
java.lang.String importoBolli, java.lang.String importoSpese,
java.lang.String currentURL,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
@ -1156,6 +1164,10 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService {
ClpSerializer.translateInput(codiceFiscaleCommittente),
ClpSerializer.translateInput(importoBolli),
ClpSerializer.translateInput(importoSpese),
ClpSerializer.translateInput(currentURL),
ClpSerializer.translateInput(serviceContext)

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

@ -349,14 +349,16 @@ public class FineLavoriLocalServiceUtil {
long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori)
boolean normEsenteSpese, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori,
boolean richiestaAttestazione)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchFineLavoriException {
return getService()
.updateFineLavori(userId, fineLavoriId, intPraticaId,
parziale, completata, dataFineLavori, codiceFiscaleDelegato,
normEsenteBollo, normEsenteCollaudo, comunicazioneDirettoreLavori);
normEsenteBollo, normEsenteSpese, normEsenteCollaudo,
comunicazioneDirettoreLavori, richiestaAttestazione);
}
public static it.tref.liferay.portos.bo.model.FineLavori getLastEditable(
@ -373,13 +375,14 @@ public class FineLavoriLocalServiceUtil {
public static it.tref.liferay.portos.bo.model.FineLavori pagaInvia(
long fineLavoriId, java.lang.String codiceFiscaleCommittente,
java.lang.String importoBolli, java.lang.String importoSpese,
java.lang.String currentURL,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.pagaInvia(fineLavoriId, codiceFiscaleCommittente,
currentURL, serviceContext);
importoBolli, importoSpese, currentURL, serviceContext);
}
public static void updateEsitoPagamento(long pagamentoId,

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

@ -372,14 +372,16 @@ public class FineLavoriLocalServiceWrapper implements FineLavoriLocalService,
long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori)
boolean normEsenteSpese, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori,
boolean richiestaAttestazione)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchFineLavoriException {
return _fineLavoriLocalService.updateFineLavori(userId, fineLavoriId,
intPraticaId, parziale, completata, dataFineLavori,
codiceFiscaleDelegato, normEsenteBollo, normEsenteCollaudo,
comunicazioneDirettoreLavori);
codiceFiscaleDelegato, normEsenteBollo, normEsenteSpese,
normEsenteCollaudo, comunicazioneDirettoreLavori,
richiestaAttestazione);
}
@Override
@ -399,12 +401,14 @@ public class FineLavoriLocalServiceWrapper implements FineLavoriLocalService,
@Override
public it.tref.liferay.portos.bo.model.FineLavori pagaInvia(
long fineLavoriId, java.lang.String codiceFiscaleCommittente,
java.lang.String importoBolli, java.lang.String importoSpese,
java.lang.String currentURL,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _fineLavoriLocalService.pagaInvia(fineLavoriId,
codiceFiscaleCommittente, currentURL, serviceContext);
codiceFiscaleCommittente, importoBolli, importoSpese, currentURL,
serviceContext);
}
@Override

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

@ -95,8 +95,9 @@ public interface FineLavoriService extends BaseService, InvokableService {
long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori)
boolean normEsenteSpese, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori,
boolean richiestaAttestazione)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
@ -120,6 +121,7 @@ public interface FineLavoriService extends BaseService, InvokableService {
public it.tref.liferay.portos.bo.model.FineLavori pagaInvia(
long fineLavoriId, java.lang.String codiceFiscaleCommittente,
java.lang.String importoBolli, java.lang.String importoSpese,
java.lang.String currentURL,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,

20
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[] {
"long", "long", "long", "boolean", "boolean", "java.util.Date",
"java.lang.String", "boolean", "boolean", "java.lang.String"
"java.lang.String", "boolean", "boolean", "boolean",
"java.lang.String", "boolean"
};
_methodName9 = "getLastEditable";
@ -88,6 +89,7 @@ public class FineLavoriServiceClp implements FineLavoriService {
_methodParameterTypes13 = new String[] {
"long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
};
@ -346,8 +348,9 @@ public class FineLavoriServiceClp implements FineLavoriService {
long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori)
boolean normEsenteSpese, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori,
boolean richiestaAttestazione)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
@ -372,9 +375,13 @@ public class FineLavoriServiceClp implements FineLavoriService {
normEsenteBollo,
normEsenteSpese,
normEsenteCollaudo,
ClpSerializer.translateInput(comunicazioneDirettoreLavori)
ClpSerializer.translateInput(comunicazioneDirettoreLavori),
richiestaAttestazione
});
}
catch (Throwable t) {
@ -531,6 +538,7 @@ public class FineLavoriServiceClp implements FineLavoriService {
@Override
public it.tref.liferay.portos.bo.model.FineLavori pagaInvia(
long fineLavoriId, java.lang.String codiceFiscaleCommittente,
java.lang.String importoBolli, java.lang.String importoSpese,
java.lang.String currentURL,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
@ -545,6 +553,10 @@ public class FineLavoriServiceClp implements FineLavoriService {
ClpSerializer.translateInput(codiceFiscaleCommittente),
ClpSerializer.translateInput(importoBolli),
ClpSerializer.translateInput(importoSpese),
ClpSerializer.translateInput(currentURL),
ClpSerializer.translateInput(serviceContext)

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

@ -102,14 +102,16 @@ public class FineLavoriServiceUtil {
long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori)
boolean normEsenteSpese, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori,
boolean richiestaAttestazione)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.updateFineLavori(userId, fineLavoriId, intPraticaId,
parziale, completata, dataFineLavori, codiceFiscaleDelegato,
normEsenteBollo, normEsenteCollaudo, comunicazioneDirettoreLavori);
normEsenteBollo, normEsenteSpese, normEsenteCollaudo,
comunicazioneDirettoreLavori, richiestaAttestazione);
}
public static it.tref.liferay.portos.bo.model.FineLavori getLastEditable(
@ -141,13 +143,14 @@ public class FineLavoriServiceUtil {
public static it.tref.liferay.portos.bo.model.FineLavori pagaInvia(
long fineLavoriId, java.lang.String codiceFiscaleCommittente,
java.lang.String importoBolli, java.lang.String importoSpese,
java.lang.String currentURL,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.pagaInvia(fineLavoriId, codiceFiscaleCommittente,
currentURL, serviceContext);
importoBolli, importoSpese, currentURL, serviceContext);
}
public static it.tref.liferay.portos.bo.model.FineLavori updateEsito(

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

@ -101,14 +101,16 @@ public class FineLavoriServiceWrapper implements FineLavoriService,
long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori)
boolean normEsenteSpese, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori,
boolean richiestaAttestazione)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _fineLavoriService.updateFineLavori(userId, fineLavoriId,
intPraticaId, parziale, completata, dataFineLavori,
codiceFiscaleDelegato, normEsenteBollo, normEsenteCollaudo,
comunicazioneDirettoreLavori);
codiceFiscaleDelegato, normEsenteBollo, normEsenteSpese,
normEsenteCollaudo, comunicazioneDirettoreLavori,
richiestaAttestazione);
}
@Override
@ -144,12 +146,14 @@ public class FineLavoriServiceWrapper implements FineLavoriService,
@Override
public it.tref.liferay.portos.bo.model.FineLavori pagaInvia(
long fineLavoriId, java.lang.String codiceFiscaleCommittente,
java.lang.String importoBolli, java.lang.String importoSpese,
java.lang.String currentURL,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _fineLavoriService.pagaInvia(fineLavoriId,
codiceFiscaleCommittente, currentURL, serviceContext);
codiceFiscaleCommittente, importoBolli, importoSpese, currentURL,
serviceContext);
}
@Override

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

@ -372,11 +372,6 @@ public interface PagamentoLocalService extends BaseLocalService,
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public it.tref.liferay.portos.bo.model.Pagamento annullaPagamento(
long pagamentoId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo(
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
int start, int end)
@ -461,13 +456,6 @@ public interface PagamentoLocalService extends BaseLocalService,
public int countByIntPratica_Visible(long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException;
public void sostituisciPagamento(long pagamentoId,
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
java.lang.String url,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public void updatePagamentoManuale(long pagamentoId, byte[] content,
java.lang.String sourceFileName,
com.liferay.portal.service.ServiceContext serviceContext)

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

@ -186,145 +186,134 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
_methodParameterTypes30 = new String[] { "long", "java.lang.String" };
_methodName31 = "annullaPagamento";
_methodName31 = "findByCommittente_Mezzo";
_methodParameterTypes31 = new String[] { "long" };
_methodName32 = "findByCommittente_Mezzo";
_methodParameterTypes32 = new String[] {
_methodParameterTypes31 = new String[] {
"java.lang.String", "java.lang.String", "int", "int"
};
_methodName33 = "countByCommittente_Mezzo";
_methodName32 = "countByCommittente_Mezzo";
_methodParameterTypes33 = new String[] {
_methodParameterTypes32 = new String[] {
"java.lang.String", "java.lang.String"
};
_methodName34 = "findByCommittente_Mezzo_Utilizzata";
_methodName33 = "findByCommittente_Mezzo_Utilizzata";
_methodParameterTypes34 = new String[] {
_methodParameterTypes33 = new String[] {
"java.lang.String", "java.lang.String", "java.lang.String",
"int", "int"
};
_methodName35 = "countByCommittente_Mezzo_Utilizzata";
_methodName34 = "countByCommittente_Mezzo_Utilizzata";
_methodParameterTypes35 = new String[] {
_methodParameterTypes34 = new String[] {
"java.lang.String", "java.lang.String", "java.lang.String"
};
_methodName36 = "findByMezzo_Utilizzata";
_methodName35 = "findByMezzo_Utilizzata";
_methodParameterTypes36 = new String[] {
_methodParameterTypes35 = new String[] {
"java.lang.String", "java.lang.String", "int", "int"
};
_methodName37 = "findByOldPagamentoId";
_methodName36 = "findByOldPagamentoId";
_methodParameterTypes37 = new String[] { "long" };
_methodParameterTypes36 = new String[] { "long" };
_methodName38 = "countByMezzo_Utilizzata";
_methodName37 = "countByMezzo_Utilizzata";
_methodParameterTypes38 = new String[] {
_methodParameterTypes37 = new String[] {
"java.lang.String", "java.lang.String"
};
_methodName39 = "findByMezzo_Utilizzata_CreateDate";
_methodName38 = "findByMezzo_Utilizzata_CreateDate";
_methodParameterTypes39 = new String[] {
_methodParameterTypes38 = new String[] {
"java.lang.String", "java.lang.String", "java.util.Date", "int",
"int"
};
_methodName40 = "countByMezzo_Utilizzata_EmailPending_CreateDate";
_methodName39 = "countByMezzo_Utilizzata_EmailPending_CreateDate";
_methodParameterTypes40 = new String[] {
_methodParameterTypes39 = new String[] {
"java.lang.String", "java.lang.String", "boolean",
"java.util.Date"
};
_methodName41 = "findByMezzo_Utilizzata_EmailPending_CreateDate";
_methodName40 = "findByMezzo_Utilizzata_EmailPending_CreateDate";
_methodParameterTypes41 = new String[] {
_methodParameterTypes40 = new String[] {
"java.lang.String", "java.lang.String", "boolean",
"java.util.Date", "int", "int"
};
_methodName42 = "findInPending";
_methodName41 = "findInPending";
_methodParameterTypes42 = new String[] {
_methodParameterTypes41 = new String[] {
"java.util.Date", "int", "int",
"com.liferay.portal.kernel.util.OrderByComparator"
};
_methodName43 = "countInPending";
_methodName42 = "countInPending";
_methodParameterTypes43 = new String[] { "java.util.Date" };
_methodParameterTypes42 = new String[] { "java.util.Date" };
_methodName44 = "countByMezzo_Utilizzata_CreateDate";
_methodName43 = "countByMezzo_Utilizzata_CreateDate";
_methodParameterTypes44 = new String[] {
_methodParameterTypes43 = new String[] {
"java.lang.String", "java.lang.String", "java.util.Date"
};
_methodName45 = "updateEmailPendingPagamento";
_methodName44 = "updateEmailPendingPagamento";
_methodParameterTypes44 = new String[] { "long", "boolean" };
_methodName45 = "countByClassPk";
_methodParameterTypes45 = new String[] { "long", "boolean" };
_methodParameterTypes45 = new String[] { "long" };
_methodName46 = "countByClassPk";
_methodName46 = "findByClassPk";
_methodParameterTypes46 = new String[] { "long" };
_methodName47 = "findByClassPk";
_methodName47 = "findByIntPratica";
_methodParameterTypes47 = new String[] { "long" };
_methodName48 = "findByIntPratica";
_methodName48 = "countByIntPratica";
_methodParameterTypes48 = new String[] { "long" };
_methodName49 = "countByIntPratica";
_methodName49 = "findByIntPratica_Visible";
_methodParameterTypes49 = new String[] { "long" };
_methodName50 = "findByIntPratica_Visible";
_methodName50 = "countByIntPratica_Visible";
_methodParameterTypes50 = new String[] { "long" };
_methodName51 = "countByIntPratica_Visible";
_methodParameterTypes51 = new String[] { "long" };
_methodName52 = "sostituisciPagamento";
_methodName51 = "updatePagamentoManuale";
_methodParameterTypes52 = new String[] {
"long", "java.lang.String", "java.lang.String",
"java.lang.String", "com.liferay.portal.service.ServiceContext"
};
_methodName53 = "updatePagamentoManuale";
_methodParameterTypes53 = new String[] {
_methodParameterTypes51 = new String[] {
"long", "byte[][]", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
};
_methodName54 = "updatePagamentoManualeFromImport";
_methodName52 = "updatePagamentoManualeFromImport";
_methodParameterTypes54 = new String[] {
_methodParameterTypes52 = new String[] {
"long", "byte[][]", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
};
_methodName55 = "fetchByOldPagamentoId";
_methodName53 = "fetchByOldPagamentoId";
_methodParameterTypes55 = new String[] { "long" };
_methodParameterTypes53 = new String[] { "long" };
_methodName56 = "updateOtf";
_methodName54 = "updateOtf";
_methodParameterTypes56 = new String[] { "long", "boolean" };
_methodParameterTypes54 = new String[] { "long", "boolean" };
}
@Override
@ -1417,40 +1406,6 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
return (it.tref.liferay.portos.bo.model.Pagamento)ClpSerializer.translateOutput(returnObj);
}
@Override
public it.tref.liferay.portos.bo.model.Pagamento annullaPagamento(
long pagamentoId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName31,
_methodParameterTypes31, new Object[] { pagamentoId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(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 RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (it.tref.liferay.portos.bo.model.Pagamento)ClpSerializer.translateOutput(returnObj);
}
@Override
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo(
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
@ -1459,8 +1414,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName32,
_methodParameterTypes32,
returnObj = _invokableLocalService.invokeMethod(_methodName31,
_methodParameterTypes31,
new Object[] {
ClpSerializer.translateInput(codiceFiscaleCommittente),
@ -1497,8 +1452,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName33,
_methodParameterTypes33,
returnObj = _invokableLocalService.invokeMethod(_methodName32,
_methodParameterTypes32,
new Object[] {
ClpSerializer.translateInput(codiceFiscaleCommittente),
@ -1532,8 +1487,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName34,
_methodParameterTypes34,
returnObj = _invokableLocalService.invokeMethod(_methodName33,
_methodParameterTypes33,
new Object[] {
ClpSerializer.translateInput(codiceFiscaleCommittente),
@ -1573,8 +1528,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName35,
_methodParameterTypes35,
returnObj = _invokableLocalService.invokeMethod(_methodName34,
_methodParameterTypes34,
new Object[] {
ClpSerializer.translateInput(codiceFiscaleCommittente),
@ -1609,8 +1564,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName36,
_methodParameterTypes36,
returnObj = _invokableLocalService.invokeMethod(_methodName35,
_methodParameterTypes35,
new Object[] {
ClpSerializer.translateInput(mezzo),
@ -1647,8 +1602,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName37,
_methodParameterTypes37, new Object[] { oldPagamentoId });
returnObj = _invokableLocalService.invokeMethod(_methodName36,
_methodParameterTypes36, new Object[] { oldPagamentoId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -1676,8 +1631,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName38,
_methodParameterTypes38,
returnObj = _invokableLocalService.invokeMethod(_methodName37,
_methodParameterTypes37,
new Object[] {
ClpSerializer.translateInput(mezzo),
@ -1711,8 +1666,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName39,
_methodParameterTypes39,
returnObj = _invokableLocalService.invokeMethod(_methodName38,
_methodParameterTypes38,
new Object[] {
ClpSerializer.translateInput(mezzo),
@ -1752,8 +1707,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName40,
_methodParameterTypes40,
returnObj = _invokableLocalService.invokeMethod(_methodName39,
_methodParameterTypes39,
new Object[] {
ClpSerializer.translateInput(mezzo),
@ -1791,8 +1746,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName41,
_methodParameterTypes41,
returnObj = _invokableLocalService.invokeMethod(_methodName40,
_methodParameterTypes40,
new Object[] {
ClpSerializer.translateInput(mezzo),
@ -1834,8 +1789,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName42,
_methodParameterTypes42,
returnObj = _invokableLocalService.invokeMethod(_methodName41,
_methodParameterTypes41,
new Object[] {
ClpSerializer.translateInput(date),
@ -1871,8 +1826,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName43,
_methodParameterTypes43,
returnObj = _invokableLocalService.invokeMethod(_methodName42,
_methodParameterTypes42,
new Object[] { ClpSerializer.translateInput(date) });
}
catch (Throwable t) {
@ -1901,8 +1856,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName44,
_methodParameterTypes44,
returnObj = _invokableLocalService.invokeMethod(_methodName43,
_methodParameterTypes43,
new Object[] {
ClpSerializer.translateInput(mezzo),
@ -1938,8 +1893,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName45,
_methodParameterTypes45,
returnObj = _invokableLocalService.invokeMethod(_methodName44,
_methodParameterTypes44,
new Object[] { pagamentoId, emailPending });
}
catch (Throwable t) {
@ -1971,8 +1926,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName46,
_methodParameterTypes46, new Object[] { classPk });
returnObj = _invokableLocalService.invokeMethod(_methodName45,
_methodParameterTypes45, new Object[] { classPk });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -2000,8 +1955,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName47,
_methodParameterTypes47, new Object[] { classPk });
returnObj = _invokableLocalService.invokeMethod(_methodName46,
_methodParameterTypes46, new Object[] { classPk });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -2029,8 +1984,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName48,
_methodParameterTypes48, new Object[] { intPraticaId });
returnObj = _invokableLocalService.invokeMethod(_methodName47,
_methodParameterTypes47, new Object[] { intPraticaId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -2057,8 +2012,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName49,
_methodParameterTypes49, new Object[] { intPraticaId });
returnObj = _invokableLocalService.invokeMethod(_methodName48,
_methodParameterTypes48, new Object[] { intPraticaId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -2086,8 +2041,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName50,
_methodParameterTypes50, new Object[] { intPraticaId });
returnObj = _invokableLocalService.invokeMethod(_methodName49,
_methodParameterTypes49, new Object[] { intPraticaId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -2114,8 +2069,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName51,
_methodParameterTypes51, new Object[] { intPraticaId });
returnObj = _invokableLocalService.invokeMethod(_methodName50,
_methodParameterTypes50, new Object[] { intPraticaId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -2136,49 +2091,6 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
return ((Integer)returnObj).intValue();
}
@Override
public void sostituisciPagamento(long pagamentoId,
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
java.lang.String url,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
try {
_invokableLocalService.invokeMethod(_methodName52,
_methodParameterTypes52,
new Object[] {
pagamentoId,
ClpSerializer.translateInput(codiceFiscaleCommittente),
ClpSerializer.translateInput(mezzo),
ClpSerializer.translateInput(url),
ClpSerializer.translateInput(serviceContext)
});
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(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 RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
}
@Override
public void updatePagamentoManuale(long pagamentoId, byte[] content,
java.lang.String sourceFileName,
@ -2187,8 +2099,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException {
try {
_invokableLocalService.invokeMethod(_methodName53,
_methodParameterTypes53,
_invokableLocalService.invokeMethod(_methodName51,
_methodParameterTypes51,
new Object[] {
pagamentoId,
@ -2231,8 +2143,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
try {
_invokableLocalService.invokeMethod(_methodName54,
_methodParameterTypes54,
_invokableLocalService.invokeMethod(_methodName52,
_methodParameterTypes52,
new Object[] {
pagamentoId,
@ -2271,8 +2183,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName55,
_methodParameterTypes55, new Object[] { oldPagamentoId });
returnObj = _invokableLocalService.invokeMethod(_methodName53,
_methodParameterTypes53, new Object[] { oldPagamentoId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -2301,8 +2213,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName56,
_methodParameterTypes56, new Object[] { pagamentoId, otf });
returnObj = _invokableLocalService.invokeMethod(_methodName54,
_methodParameterTypes54, new Object[] { pagamentoId, otf });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -2436,8 +2348,4 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
private String[] _methodParameterTypes53;
private String _methodName54;
private String[] _methodParameterTypes54;
private String _methodName55;
private String[] _methodParameterTypes55;
private String _methodName56;
private String[] _methodParameterTypes56;
}

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

@ -427,13 +427,6 @@ public class PagamentoLocalServiceUtil {
return getService().updatePagamentoUtilizzata(pagamentoId, utilizzata);
}
public static it.tref.liferay.portos.bo.model.Pagamento annullaPagamento(
long pagamentoId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService().annullaPagamento(pagamentoId);
}
public static java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo(
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
int start, int end)
@ -573,17 +566,6 @@ public class PagamentoLocalServiceUtil {
return getService().countByIntPratica_Visible(intPraticaId);
}
public static void sostituisciPagamento(long pagamentoId,
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
java.lang.String url,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
getService()
.sostituisciPagamento(pagamentoId, codiceFiscaleCommittente, mezzo,
url, serviceContext);
}
public static void updatePagamentoManuale(long pagamentoId, byte[] content,
java.lang.String sourceFileName,
com.liferay.portal.service.ServiceContext serviceContext)

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

@ -451,14 +451,6 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService,
utilizzata);
}
@Override
public it.tref.liferay.portos.bo.model.Pagamento annullaPagamento(
long pagamentoId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.annullaPagamento(pagamentoId);
}
@Override
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo(
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
@ -613,17 +605,6 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService,
return _pagamentoLocalService.countByIntPratica_Visible(intPraticaId);
}
@Override
public void sostituisciPagamento(long pagamentoId,
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
java.lang.String url,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
_pagamentoLocalService.sostituisciPagamento(pagamentoId,
codiceFiscaleCommittente, mezzo, url, serviceContext);
}
@Override
public void updatePagamentoManuale(long pagamentoId, byte[] content,
java.lang.String sourceFileName,

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

@ -64,25 +64,6 @@ public interface PagamentoService extends BaseService, InvokableService {
java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable;
public void sostituisciPagamento(long pagamentoId,
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
java.lang.String url,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public void rigeneraPagamento(long pagamentoId,
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
java.lang.String url,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public void annullaPagamento(long pagamentoId,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public void updatePagamentoManuale(long pagamentoId, byte[] content,
java.lang.String sourceFileName,
com.liferay.portal.service.ServiceContext serviceContext)

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

@ -32,29 +32,9 @@ public class PagamentoServiceClp implements PagamentoService {
_methodParameterTypes1 = new String[] { "java.lang.String" };
_methodName3 = "sostituisciPagamento";
_methodName3 = "updatePagamentoManuale";
_methodParameterTypes3 = new String[] {
"long", "java.lang.String", "java.lang.String",
"java.lang.String", "com.liferay.portal.service.ServiceContext"
};
_methodName4 = "rigeneraPagamento";
_methodParameterTypes4 = new String[] {
"long", "java.lang.String", "java.lang.String",
"java.lang.String", "com.liferay.portal.service.ServiceContext"
};
_methodName5 = "annullaPagamento";
_methodParameterTypes5 = new String[] {
"long", "com.liferay.portal.service.ServiceContext"
};
_methodName6 = "updatePagamentoManuale";
_methodParameterTypes6 = new String[] {
"long", "byte[][]", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
};
@ -110,127 +90,6 @@ public class PagamentoServiceClp implements PagamentoService {
throw new UnsupportedOperationException();
}
@Override
public void sostituisciPagamento(long pagamentoId,
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
java.lang.String url,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
try {
_invokableService.invokeMethod(_methodName3,
_methodParameterTypes3,
new Object[] {
pagamentoId,
ClpSerializer.translateInput(codiceFiscaleCommittente),
ClpSerializer.translateInput(mezzo),
ClpSerializer.translateInput(url),
ClpSerializer.translateInput(serviceContext)
});
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(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 RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
}
@Override
public void rigeneraPagamento(long pagamentoId,
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
java.lang.String url,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
try {
_invokableService.invokeMethod(_methodName4,
_methodParameterTypes4,
new Object[] {
pagamentoId,
ClpSerializer.translateInput(codiceFiscaleCommittente),
ClpSerializer.translateInput(mezzo),
ClpSerializer.translateInput(url),
ClpSerializer.translateInput(serviceContext)
});
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(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 RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
}
@Override
public void annullaPagamento(long pagamentoId,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
try {
_invokableService.invokeMethod(_methodName5,
_methodParameterTypes5,
new Object[] {
pagamentoId,
ClpSerializer.translateInput(serviceContext)
});
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(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 RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
}
@Override
public void updatePagamentoManuale(long pagamentoId, byte[] content,
java.lang.String sourceFileName,
@ -239,8 +98,8 @@ public class PagamentoServiceClp implements PagamentoService {
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException {
try {
_invokableService.invokeMethod(_methodName6,
_methodParameterTypes6,
_invokableService.invokeMethod(_methodName3,
_methodParameterTypes3,
new Object[] {
pagamentoId,
@ -283,10 +142,4 @@ public class PagamentoServiceClp implements PagamentoService {
private String[] _methodParameterTypes1;
private String _methodName3;
private String[] _methodParameterTypes3;
private String _methodName4;
private String[] _methodParameterTypes4;
private String _methodName5;
private String[] _methodParameterTypes5;
private String _methodName6;
private String[] _methodParameterTypes6;
}

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

@ -63,35 +63,6 @@ public class PagamentoServiceUtil {
return getService().invokeMethod(name, parameterTypes, arguments);
}
public static void sostituisciPagamento(long pagamentoId,
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
java.lang.String url,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
getService()
.sostituisciPagamento(pagamentoId, codiceFiscaleCommittente, mezzo,
url, serviceContext);
}
public static void rigeneraPagamento(long pagamentoId,
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
java.lang.String url,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
getService()
.rigeneraPagamento(pagamentoId, codiceFiscaleCommittente, mezzo,
url, serviceContext);
}
public static void annullaPagamento(long pagamentoId,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
getService().annullaPagamento(pagamentoId, serviceContext);
}
public static void updatePagamentoManuale(long pagamentoId, byte[] content,
java.lang.String sourceFileName,
com.liferay.portal.service.ServiceContext serviceContext)

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

@ -56,36 +56,6 @@ public class PagamentoServiceWrapper implements PagamentoService,
return _pagamentoService.invokeMethod(name, parameterTypes, arguments);
}
@Override
public void sostituisciPagamento(long pagamentoId,
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
java.lang.String url,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
_pagamentoService.sostituisciPagamento(pagamentoId,
codiceFiscaleCommittente, mezzo, url, serviceContext);
}
@Override
public void rigeneraPagamento(long pagamentoId,
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
java.lang.String url,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
_pagamentoService.rigeneraPagamento(pagamentoId,
codiceFiscaleCommittente, mezzo, url, serviceContext);
}
@Override
public void annullaPagamento(long pagamentoId,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
_pagamentoService.annullaPagamento(pagamentoId, serviceContext);
}
@Override
public void updatePagamentoManuale(long pagamentoId, byte[] content,
java.lang.String sourceFileName,

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(
long intPraticaId)
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";
_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
@ -4569,6 +4585,147 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService {
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 String _methodName0;
private String[] _methodParameterTypes0;
@ -4768,4 +4925,12 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService {
private String[] _methodParameterTypes98;
private String _methodName99;
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);
}
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() {
_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);
}
@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}
*/

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

@ -26,7 +26,6 @@ import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.Validator;
public abstract class PagamentiCommonUtil {
@ -34,7 +33,7 @@ public abstract class PagamentiCommonUtil {
private static Log _log = LogFactoryUtil.getLog(PagamentiCommonUtil.class);
@SuppressWarnings("serial")
private static final Map<String, Integer> numeroBolliIntegrazioneMap = new HashMap<String, Integer>(7) {
private static final Map<String, Integer> NUMERO_BOLLI_INTEGRAZIONE = new HashMap<String, Integer>(7) {
{
put(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE, 0);
put(TipoIntegrazioneUtil.FINE_LAVORI_PARZIALE, 2);
@ -94,7 +93,9 @@ public abstract class PagamentiCommonUtil {
if (normEsenteBollo) {
return new BigDecimal("0.00");
}
} catch (PortalException e) {}
} catch (PortalException e) {
// Ignore
}
int numeroBolli = getNumeroBolli(tipoIntegrazione);
BigDecimal importoBolliBigDecimal = new BigDecimal(ConfigurazioneLocalServiceUtil.findByC_ChiaveString(
companyId, ConfigurazioneConstants.IMPORTO_BOLLO));
@ -112,23 +113,15 @@ public abstract class PagamentiCommonUtil {
private static Integer getNumeroBolliByTipoIntegrazione(String tipoIntegrazione) {
return numeroBolliIntegrazioneMap.get(tipoIntegrazione);
return NUMERO_BOLLI_INTEGRAZIONE.get(tipoIntegrazione);
}
public static boolean existsSpeseIstruttoria(String tipoIntegrazione) {
return !TipoIntegrazioneUtil.FINE_LAVORI_PARZIALE.equals(tipoIntegrazione)
&& !TipoIntegrazioneUtil.FINE_LAVORI.equals(tipoIntegrazione)
&& !TipoIntegrazioneUtil.COLLAUDO_PARZIALE.equals(tipoIntegrazione)
return !TipoIntegrazioneUtil.COLLAUDO_PARZIALE.equals(tipoIntegrazione)
&& !TipoIntegrazioneUtil.COLLAUDO.equals(tipoIntegrazione);
}
public static boolean irisIsEnable(long companyId) throws SystemException {
return GetterUtil.getBoolean(ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId,
ConfigurazioneConstants.SCHEDULER_IRIS));
}
public static boolean pagamentiInitialized(long classPK, String className) throws PortalException, SystemException {
boolean normEsenteSpese = false;
@ -143,9 +136,9 @@ public abstract class PagamentiCommonUtil {
pagamentoIdBolli = dettPratica.getPagamentoIdBolli();
} else if (FineLavori.class.getName().equals(className)) {
FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(classPK);
normEsenteSpese = true;
normEsenteSpese = fineLavori.isNormEsenteSpese();
normEsenteBollo = fineLavori.isNormEsenteBollo();
pagamentoIdSpese = 0L;
pagamentoIdSpese = fineLavori.getPagamentoSpeseId();
pagamentoIdBolli = fineLavori.getPagamentoId();
} else if (Collaudo.class.getName().equals(className)) {
Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(classPK);
@ -166,31 +159,31 @@ public abstract class PagamentiCommonUtil {
public static boolean pagamentiCompleted(long classPK, String className) throws PortalException, SystemException {
boolean normEsenteSpese = false;
boolean normEsenteBollo = false;
boolean esenteSpese = false;
boolean esenteBollo = false;
long pagamentoIdSpese = 0L;
long pagamentoIdBolli = 0L;
if (DettPratica.class.getName().equals(className)) {
DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(classPK);
normEsenteSpese = dettPratica.isNormEsenteSpese();
normEsenteBollo = dettPratica.isNormEsenteBollo();
esenteSpese = dettPratica.isNormEsenteSpese();
esenteBollo = dettPratica.isNormEsenteBollo();
pagamentoIdSpese = dettPratica.getPagamentoIdOneri();
pagamentoIdBolli = dettPratica.getPagamentoIdBolli();
} else if (FineLavori.class.getName().equals(className)) {
FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(classPK);
normEsenteSpese = true;
normEsenteBollo = fineLavori.isNormEsenteBollo();
pagamentoIdSpese = 0L;
esenteSpese = fineLavori.isNormEsenteSpese();
esenteBollo = fineLavori.isNormEsenteBollo();
pagamentoIdSpese = fineLavori.getPagamentoSpeseId();
pagamentoIdBolli = fineLavori.getPagamentoId();
} else if (Collaudo.class.getName().equals(className)) {
Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(classPK);
normEsenteSpese = true;
normEsenteBollo = collaudo.isNormEsenteBollo();
esenteSpese = true;
esenteBollo = collaudo.isNormEsenteBollo();
pagamentoIdSpese = 0L;
pagamentoIdBolli = collaudo.getPagamentoId();
}
boolean completed = false;
if (!normEsenteBollo && !normEsenteSpese) {
if (!esenteBollo && !esenteSpese) {
if (Validator.isNull(pagamentoIdBolli) || Validator.isNull(pagamentoIdSpese)) {
return false;
}
@ -199,10 +192,10 @@ public abstract class PagamentiCommonUtil {
completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoBolli.getUtilizzata())
&& PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoSpese.getUtilizzata());
} else {
if (normEsenteBollo && Validator.isNotNull(pagamentoIdSpese)) {
if (esenteBollo && Validator.isNotNull(pagamentoIdSpese)) {
Pagamento pagamentoSpese = PagamentoLocalServiceUtil.getPagamento(pagamentoIdSpese);
completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoSpese.getUtilizzata());
} else if (normEsenteSpese && Validator.isNotNull(pagamentoIdBolli)) {
} else if (esenteSpese && Validator.isNotNull(pagamentoIdBolli)) {
Pagamento pagamentoBolli = PagamentoLocalServiceUtil.getPagamento(pagamentoIdBolli);
completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoBolli.getUtilizzata());
}

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);
long intPraticaId = dettPratica.getIntPraticaId();
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId);
List<String> notCompleted = new ArrayList<>();
boolean titolare = SoggettiUtil.isTitolareInSoggetti(intPraticaId);
if (!titolare) {
@ -584,7 +585,7 @@ public class ValidazionePraticaUtil {
if (!collaudatoreNotRequired && !collaudatore) {
notCompleted.add("gc-soggetto-" + TipoSoggettoUtil.COLLAUDATORE + "-not-present");
} 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");
}
if (!committente) {
@ -970,11 +971,11 @@ public class ValidazionePraticaUtil {
}
} else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A29)) {
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()) {
// 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_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_E75F8D41=portos_bo_IntPratica.C_UserId
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 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_E75F8D41 on portos_bo_IntPratica (companyId, userId);
create index IX_779B836B on portos_bo_IntPratica (status, dtPratica);

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

@ -502,13 +502,20 @@ create table portos_bo_FineLavori (
dataEffettuazione DATE null,
dataFineLavori DATE null,
normEsenteBollo BOOLEAN,
normEsenteSpese BOOLEAN,
normEsenteCollaudo BOOLEAN,
comunicazioneDirettoreLavori STRING null,
pagamentoId LONG,
pagamentoSpeseId LONG,
codicePagamento VARCHAR(75) null,
codicePagamentoSpese VARCHAR(75) null,
causalePagamento VARCHAR(75) null,
causalePagamentoSpese VARCHAR(75) null,
mezzoPagamento VARCHAR(75) null,
importoBolli VARCHAR(75) null
mezzoPagamentoSpese VARCHAR(75) null,
importoBolli VARCHAR(75) null,
importoSpese VARCHAR(75) null,
richiestaAttestazione BOOLEAN
);
create table portos_bo_HistoryWorkflowAction (
@ -553,6 +560,18 @@ create table portos_bo_InfoFascicolo (
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 (
uuid_ VARCHAR(75) null,
intPraticaId LONG not null primary key,

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

@ -555,13 +555,20 @@
<property name="dataEffettuazione" type="org.hibernate.type.TimestampType" />
<property name="dataFineLavori" type="org.hibernate.type.TimestampType" />
<property name="normEsenteBollo" type="com.liferay.portal.dao.orm.hibernate.BooleanType" />
<property name="normEsenteSpese" type="com.liferay.portal.dao.orm.hibernate.BooleanType" />
<property name="normEsenteCollaudo" type="com.liferay.portal.dao.orm.hibernate.BooleanType" />
<property name="comunicazioneDirettoreLavori" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="pagamentoId" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property name="pagamentoSpeseId" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property name="codicePagamento" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="codicePagamentoSpese" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="causalePagamento" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="causalePagamentoSpese" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="mezzoPagamento" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="mezzoPagamentoSpese" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="importoBolli" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="importoSpese" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="richiestaAttestazione" type="com.liferay.portal.dao.orm.hibernate.BooleanType" />
</class>
<class name="it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionImpl" table="portos_bo_HistoryWorkflowAction">
<cache usage="read-write" />

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

@ -607,15 +607,22 @@
<field name="dataEffettuazione" type="Date" />
<field name="dataFineLavori" type="Date" />
<field name="normEsenteBollo" type="boolean" />
<field name="normEsenteSpese" type="boolean" />
<field name="normEsenteCollaudo" type="boolean" />
<field name="comunicazioneDirettoreLavori" type="String">
<hint name="max-length">4000</hint>
</field>
<field name="pagamentoId" type="long" />
<field name="pagamentoSpeseId" type="long" />
<field name="codicePagamento" type="String" />
<field name="codicePagamentoSpese" type="String" />
<field name="causalePagamento" type="String" />
<field name="causalePagamentoSpese" type="String" />
<field name="mezzoPagamento" type="String" />
<field name="mezzoPagamentoSpese" type="String" />
<field name="importoBolli" type="String" />
<field name="importoSpese" type="String" />
<field name="richiestaAttestazione" type="boolean" />
</model>
<model name="it.tref.liferay.portos.bo.model.HistoryWorkflowAction">
<field name="historyWorkflowActionId" type="long" />

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

@ -704,13 +704,20 @@
<temporal>TIMESTAMP</temporal>
</basic>
<basic name="normEsenteBollo" />
<basic name="normEsenteSpese" />
<basic name="normEsenteCollaudo" />
<basic name="comunicazioneDirettoreLavori" />
<basic name="pagamentoId" />
<basic name="pagamentoSpeseId" />
<basic name="codicePagamento" />
<basic name="codicePagamentoSpese" />
<basic name="causalePagamento" />
<basic name="causalePagamentoSpese" />
<basic name="mezzoPagamento" />
<basic name="mezzoPagamentoSpese" />
<basic name="importoBolli" />
<basic name="importoSpese" />
<basic name="richiestaAttestazione" />
<transient name="modelAttributes" />
<transient name="primaryKey" />
<transient name="primaryKeyObj" />

48
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-04 = Ditta
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-ES = Eseguita
@ -85,14 +85,19 @@ gc-soggetto-02 = Committente
gc-soggetto-03 = Direttore Lavori
gc-soggetto-04 = Ditta Costruttrice
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-02 = Committenti
gc-soggetti-03 = Direttori Lavori
gc-soggetti-04 = Ditte Costruttrici
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-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-04-not-present = Ditta 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-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-04-principale-not-present = Ditta 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
@ -237,6 +242,7 @@ norm-lavori-in-proprio = il committente esegue i lavori in proprio (IN ECONOMIA)
lavori-pubblici = lavori pubblici
norm-esente-bollo = esente da bollo ai sensi di <strong>D.P.R. 26/10/1972 n. 642 e s.m.i.</strong>
norm-esente-spese = esente da spese istruttoria
norm-esente-diritti = esente dal pagamento dei diritti fissi
collaudo-statico = Trattandosi di opere di riparazione o intervento locale eseguibile su un edificio esistente ai sensi del D.M. 17/01/2018, punto 8.4, non si effettuerà il collaudo statico
norm-art3com3 = Possono essere omessi i seguenti allegati
@ -832,7 +838,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-A16-old = Certificato di collaudo statico in bollo (se dovuto)
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-A99 = Altri
label-documenti-tipologia-dnf = Pratica non firmata
@ -850,7 +856,7 @@ label-documenti-tipologia-Afl = Altri
label-documenti-tipologia-111VS = Documento Variazione Soggetto - Portos 1
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-ACA = Certificato Acciaio
label-documenti-tipologia-ACL = Certificato Legno
@ -910,6 +916,7 @@ pagamento-utilizzata-07 = Sostituito
label-pagamenti-spese-istruttoria = Spese Istruttoria
label-pagamenti-spese-bolli = Bolli
label-pagamenti-diritti = Diritti fissi
label-pagamenti-nuove-costruzioni = Nuove costruzioni
label-pagamenti-adeguamento-sismico = Nuove costruzioni / Adeguamento sismico
label-pagamenti-miglioramento-sismico = Intervento di miglioramento sismico
@ -932,19 +939,28 @@ label-payment-otf-rigeneration = Solo nel caso in cui si è sicuri che il pagame
label-pagamento = Pagamento
label-pagamento-spese = Pagamento Spese Istruttoria
label-pagamento-bolli = Pagamento Bolli
label-pagamento-diritti = Pagamento diritti fissi
text-pagamento-iris = Il pagamento è stato correttamente inizializzato. Cliccare sul pulsante per procedere al saldo dell'importo
text-pagamento-manuale-oneri = text-pagamento-manuale-iris
text-pagamento-manuale-bolli = text-pagamento-manuale-bolli
text-pagamento-manuale-oneri = Allegare file comprovante il pagamento
text-pagamento-manuale-bolli = Allegare file comprovante il pagamento
sostituisci-pagamento-oneri = Cambia modalità pagamento Spese Istruttoria
sostituisci-pagamento-bolli = Cambia modalità pagamento Bolli
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-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-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-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-admin = Rigenera
text-annulla-pagamento-admin = Annulla
@ -973,21 +989,23 @@ 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-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-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-table-variante = Variante
fl-table-integrazione = Integrazioni
fl-table-parziale = Fine lavori parziale
fl-allegati = Allegati
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-parziale-not-possibile = Fine Lavori Parziale non possibile
no-varianti-integrazioni = Nessuna Variante o Integrazione 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.<br><b>Ove non è richiesta \
l’attestazione di deposito del fine lavori inserire una dichiarazione ai sensi del DPR 445 del 2020.
## Collaudo ##
col = Collaudo
@ -995,7 +1013,7 @@ col-tipo = Tipologia Collaudo
col-prov = Provincia
col-comune = Comune
col-sismica = Zona sismica
col-pericolosita = Fascia paricolosità
col-pericolosita = Fascia pericolosità
col-range = Range Ag
col-desc-interv = Descrizione Intervento
col-commit = Committente/i

30
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" };
for (String column : columns) {
int righe = s.executeUpdate("UPDATE " + DettPraticaImpl.TABLE_NAME + " SET " + column
+ "='NA' " + "WHERE " + column + "='0'");
int righe = s.executeUpdate("UPDATE " + DettPraticaImpl.TABLE_NAME + " SET " + column + "='NA' "
+ "WHERE " + column + "='0'");
if (righe > 0) {
_log.info("Aggiornate " + righe + " righe in " + DettPraticaImpl.TABLE_NAME
+ ", colonna " + column);
_log.info("Aggiornate " + righe + " righe in " + DettPraticaImpl.TABLE_NAME + ", colonna "
+ column);
}
}
@ -102,6 +102,16 @@ public class DatabaseUpdateAction extends SimpleAction {
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 normEsenteSpese BOOL,"
+ "ADD COLUMN pagamentoSpeseId BIGINT,"
+ "ADD COLUMN codicePagamentoSpese VARCHAR(75) NULL,"
+ "ADD COLUMN causalePagamentoSpese VARCHAR(75) NULL,"
+ "ADD COLUMN mezzoPagamentoSpese VARCHAR(75) NULL,"
+ "ADD COLUMN importoSpese VARCHAR(75) NULL,ADD COLUMN richiestaAttestazione BOOL");
}
if (hasColumn(CollaudoImpl.TABLE_NAME, "oldDettPraticaId")) {
_log.info("Aggiornamento a v2 di " + CollaudoImpl.TABLE_NAME);
s.executeUpdate("ALTER TABLE " + CollaudoImpl.TABLE_NAME + " DROP COLUMN oldDettPraticaId");
@ -119,14 +129,12 @@ public class DatabaseUpdateAction extends SimpleAction {
if (!hasColumn(AsseverazioneImpl.TABLE_NAME, "dichiarazioni")) {
_log.info("Aggiornamento a v2 di " + AsseverazioneImpl.TABLE_NAME);
s.executeUpdate("ALTER TABLE " + AsseverazioneImpl.TABLE_NAME
+ " ADD COLUMN dichiarazioni TEXT NULL");
s.executeUpdate("ALTER TABLE " + AsseverazioneImpl.TABLE_NAME + " ADD COLUMN dichiarazioni TEXT NULL");
}
if (!hasColumn(DelegaImpl.TABLE_NAME, "dichiarazioni")) {
_log.info("Aggiornamento a v2 di " + DelegaImpl.TABLE_NAME);
s.executeUpdate("ALTER TABLE " + DelegaImpl.TABLE_NAME
+ " ADD COLUMN dichiarazioni TEXT NULL");
s.executeUpdate("ALTER TABLE " + DelegaImpl.TABLE_NAME + " ADD COLUMN dichiarazioni TEXT NULL");
}
if (!hasColumn(IntPraticaImpl.TABLE_NAME, "inLavorazioneSue")) {
@ -134,7 +142,6 @@ public class DatabaseUpdateAction extends SimpleAction {
s.executeUpdate("ALTER TABLE " + IntPraticaImpl.TABLE_NAME + " ADD COLUMN inLavorazioneSue BOOL");
}
if (!hasColumn(DettPraticaImpl.TABLE_NAME, "contestoPaesaggistico")) {
_log.info("Aggiornamento a v7 di " + IntPraticaImpl.TABLE_NAME);
s.executeUpdate("ALTER TABLE " + DettPraticaImpl.TABLE_NAME + " ADD COLUMN contestoPaesaggistico TEXT");
@ -149,7 +156,6 @@ public class DatabaseUpdateAction extends SimpleAction {
_log.info("Aggiornamento a v7 di " + IntPraticaImpl.TABLE_NAME);
s.executeUpdate("ALTER TABLE " + DettPraticaImpl.TABLE_NAME + " ADD COLUMN vincoli TEXT");
}
} catch (SQLException e) {
_log.error("Errore di accesso al database: ", e);
throw new ActionException(e);
@ -165,10 +171,10 @@ public class DatabaseUpdateAction extends SimpleAction {
}
private boolean hasColumn(String table, String column) {
boolean result = true;
ResultSet rs = null;
try {
rs = s.executeQuery("SELECT " + column + " FROM " + table + " WHERE false");
ResultSet rs = s.executeQuery("SELECT " + column + " FROM " + table + " WHERE false");
rs.getMetaData().getColumnName(1);
DataAccess.cleanUp(rs);
} catch (SQLException e) {

250
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ManutenzioneDatabase.java

@ -64,6 +64,7 @@ import com.liferay.portal.kernel.cache.CacheRegistryUtil;
import com.liferay.portal.kernel.cache.MultiVMPoolUtil;
import com.liferay.portal.kernel.cache.SingleVMPoolUtil;
import com.liferay.portal.kernel.dao.jdbc.DataAccess;
import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log;
@ -164,6 +165,9 @@ public class ManutenzioneDatabase {
ZoneSismicheUtil zone = new ZoneSismicheUtil(serviceContext);
esitoLog(esito, zone.aggiornaComuni(companyId));
}
if (mode.contains("!Riduzione!")) {
esitoLog(esito, riduzione(companyId, mode.substring(11)));
}
if (mode.contains("!Pulisci!")) {
if (mode.contains("!DocumentLibrary!")) {
esitoLog(esito, puliziaDocumentLibrary(companyId));
@ -180,9 +184,9 @@ public class ManutenzioneDatabase {
esitoLog(esito, svuotaIntPraticaDettPratica());
}
if (mode.contains("!User!")) {
esitoLog(esito, svuotaUser(companyId));
esito.addAll(svuotaUser(companyId));
}
esitoLog(esito, svuotaDatabase(companyId));
esito.addAll(svuotaDatabase(companyId));
if (mode.contains("!Reset!")) {
ConfigurazioneLocalServiceUtil.storeConfig(Constants.NUMERO_PROGETTO_KEY_DB, "1", serviceContext);
}
@ -195,7 +199,30 @@ public class ManutenzioneDatabase {
return esito;
}
private static List<String> riduzione(long companyId, String rimaste) throws SystemException, PortalException {
// !Riduzione!107043,107023,106983,106793,104938,77853
List<String> esito = new ArrayList<>();
try {
Connection connection = DataAccess.getUpgradeOptimizedConnection();
Statement s = connection.createStatement();
String condizione = "numeroprogetto IN ('" + StringUtil.merge(StringUtil.split(rimaste, ','), "','") + "')";
String sql = "DELETE FROM portos_bo_intpratica WHERE NOT " + condizione;
int i = s.executeUpdate(sql);
esitoLog(esito, "Cancellate " + i + " IntPratica");
sql = "DELETE FROM portos_bo_dettpratica WHERE intpraticaid NOT IN ("
+ "SELECT intpraticaid FROM portos_bo_intpratica WHERE " + condizione + ')';
i = s.executeUpdate(sql);
esitoLog(esito, "Cancellate " + i + " DettPratica");
} catch (SQLException e) {
e.printStackTrace();
}
esito.addAll(svuotaDatabase(companyId));
return esito;
}
private static void clearCache() {
try {
SingleVMPoolUtil.clear();
MultiVMPoolUtil.clear();
@ -209,7 +236,7 @@ public class ManutenzioneDatabase {
List<String> esito = new ArrayList<>();
esitoLog(esito, svuotaDettPratica());
esitoLog(esito, svuotaAllegatoManuale());
esitoLog(esito, svuotaAssetEntry(companyId));
// esitoLog(esito, svuotaAssetEntry(companyId));
esitoLog(esito, svuotaAsseverazione());
esitoLog(esito, svuotaAvviso(companyId));
esitoLog(esito, svuotaCollaudo());
@ -223,28 +250,29 @@ public class ManutenzioneDatabase {
esitoLog(esito, svuotaFineLavori());
esitoLog(esito, svuotaGroup(companyId));
esitoLog(esito, svuotaHistoryWorkflowAction());
esitoLog(esito, svuotaMBDiscussion(companyId));
esitoLog(esito, svuotaMBMessage(companyId));
esitoLog(esito, svuotaMBThread());
// esitoLog(esito, svuotaMBDiscussion(companyId));
// esitoLog(esito, svuotaMBMessage(companyId));
// esitoLog(esito, svuotaMBThread());
esitoLog(esito, svuotaPagamento(companyId));
esitoLog(esito, svuotaParereGeologo());
esitoLog(esito, svuotaRatingsEntry());
esitoLog(esito, svuotaRatingsStats(companyId));
esitoLog(esito, svuotaResourcePermission(companyId));
// esitoLog(esito, svuotaResourcePermission(companyId));
esitoLog(esito, svuotaSoggetto());
esitoLog(esito, svuotaSorteggio());
esitoLog(esito, svuotaStoricoSoggettoPratica());
esitoLog(esito, svuotaSyncDLObject());
esitoLog(esito, svuotaSystemEvent(companyId));
esitoLog(esito, svuotaTempistica());
esito.addAll(svuotaUser(companyId));
esitoLog(esito, svuotaWorkflowInstance());
return esito;
}
private static List<String> puliziaDocumentLibrary(long companyId) {
List<String> esito = new ArrayList<>();
Set<String> parentFolderNames = new HashSet<>();
try {
long allegatiFolderId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId,
ConfigurazioneConstants.ATTACHMENT_FOLDER_ID);
@ -254,7 +282,6 @@ public class ManutenzioneDatabase {
List<DLFolder> folders;
do {
folders = DLFolderLocalServiceUtil.getDLFolders(start, start + SLICE);
int rimossi = 0;
totali += folders.size();
for (DLFolder folder : folders) {
DLFolder parent = folder.getParentFolder();
@ -279,7 +306,6 @@ public class ManutenzioneDatabase {
_log.info("Cancello la cartella " + folder.getName());
DLAppLocalServiceUtil.deleteFolder(folder.getFolderId());
cancellati++;
rimossi++;
}
} else {
_log.info("Mantengo la cartella " + folder.getName());
@ -294,14 +320,13 @@ public class ManutenzioneDatabase {
_log.info("Cancello la cartella " + folder.getName());
DLAppLocalServiceUtil.deleteFolder(folder.getFolderId());
cancellati++;
rimossi++;
}
} else {
_log.info("Non allegato " + folder.getName() + " in " + parent.getName());
}
}
}
start += folders.size() - rimossi;
start += folders.size();
} while (folders.size() > 0);
esitoLog(esito, "Analizzate " + totali + " cartelle, cancellate " + cancellati);
} catch (PortalException | SystemException e) {
@ -314,6 +339,7 @@ public class ManutenzioneDatabase {
}
private static List<Long> avvisiFileEntries() throws SystemException {
List<Long> result = new ArrayList<>();
int start = 0;
List<Avviso> avvisi = null;
@ -330,13 +356,13 @@ public class ManutenzioneDatabase {
}
private static String puliziaAllegati(long companyId, long folderId) throws SystemException, PortalException {
List<Long> avvisiFileEntries = avvisiFileEntries();
long repositoryId = DLAppLocalServiceUtil.getFolder(folderId).getRepositoryId();
int start = 0;
int cancellati = 0;
List<FileEntry> fileEntries = null;
do {
int rimossi = 0;
fileEntries = DLAppServiceUtil.getFileEntries(repositoryId, folderId, start, start + SLICE);
for (FileEntry fileEntry : fileEntries) {
String[] parti = StringUtil.split(fileEntry.getTitle().replaceAll("\\.p7m$", StringPool.BLANK), '_');
@ -366,7 +392,6 @@ public class ManutenzioneDatabase {
if (!esiste(DETTPRATICA_CLASS_NAME, id1)) {
DLAppLocalServiceUtil.deleteFileEntry(fileEntry.getFileEntryId());
cancellati++;
rimossi++;
}
break;
case "AI_B":
@ -377,7 +402,6 @@ public class ManutenzioneDatabase {
if (!avvisiFileEntries.contains(fileEntry.getFileEntryId())) {
DLAppLocalServiceUtil.deleteFileEntry(fileEntry.getFileEntryId());
cancellati++;
rimossi++;
}
break;
default:
@ -389,17 +413,17 @@ public class ManutenzioneDatabase {
_log.info("Nome sconosciuto " + fileEntry.getTitle());
}
}
start += SLICE - rimossi;
start += SLICE;
} while (fileEntries.size() > 0);
return "Cancellati " + cancellati + " File orfani";
}
private static String svuotaAllegatoManuale() throws SystemException {
int start = 0;
int cancellati = 0;
List<AllegatoManuale> allegatiManuali = null;
do {
int rimossi = 0;
allegatiManuali = AllegatoManualeLocalServiceUtil.getAllegatoManuales(start, start + SLICE);
for (AllegatoManuale allegatoManuale : allegatiManuali) {
if (!esiste(INTPRATICA_CLASS_NAME, allegatoManuale.getIntPraticaId())
@ -408,20 +432,19 @@ public class ManutenzioneDatabase {
deleteFileEntry(allegatoManuale.getFileEntryId());
AllegatoManualeLocalServiceUtil.deleteAllegatoManuale(allegatoManuale);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (allegatiManuali.size() > 0);
return "Cancellati " + cancellati + " AllegatoManuale";
}
private static String svuotaAssetEntry(long companyId) throws SystemException {
int start = 0;
int cancellati = 0;
List<AssetEntry> assetEntries = null;
do {
int rimossi = 0;
assetEntries = AssetEntryLocalServiceUtil.getAssetEntries(start, start + SLICE);
for (AssetEntry assetEntry : assetEntries) {
String className = assetEntry.getClassName();
@ -431,20 +454,19 @@ public class ManutenzioneDatabase {
if (!esiste(className, assetEntry.getClassPK(), companyId)) {
AssetEntryLocalServiceUtil.deleteAssetEntry(assetEntry);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (assetEntries.size() > 0);
return "Cancellati " + cancellati + " AssetEntry";
}
private static String svuotaAsseverazione() throws SystemException {
int start = 0;
int cancellati = 0;
List<Asseverazione> asseverazioni = null;
do {
int rimossi = 0;
asseverazioni = AsseverazioneLocalServiceUtil.getAsseveraziones(start, start + SLICE);
for (Asseverazione asseverazione : asseverazioni) {
if (!esiste(INTPRATICA_CLASS_NAME, asseverazione.getIntPraticaId())
@ -452,20 +474,19 @@ public class ManutenzioneDatabase {
deleteFileEntry(asseverazione.getFileEntryId());
AsseverazioneLocalServiceUtil.deleteAsseverazione(asseverazione);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (asseverazioni.size() > 0);
return "Cancellati " + cancellati + " Asseverazione";
}
private static String svuotaAvviso(long companyId) throws SystemException {
int start = 0;
int cancellati = 0;
List<Avviso> avvisi = null;
do {
int rimossi = 0;
avvisi = AvvisoLocalServiceUtil.getAvvisos(start, start + SLICE);
for (Avviso avviso : avvisi) {
if (!esiste(avviso.getClassName(), avviso.getClassPk(), companyId)
@ -475,117 +496,111 @@ public class ManutenzioneDatabase {
deleteFileEntry(avviso.getFileEntryIdProtocollo());
AvvisoLocalServiceUtil.deleteAvviso(avviso);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (avvisi.size() > 0);
return "Cancellati " + cancellati + " Avviso";
}
private static String svuotaCollaudo() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<Collaudo> collaudi = null;
do {
int rimossi = 0;
collaudi = CollaudoLocalServiceUtil.getCollaudos(start, start + SLICE);
for (Collaudo collaudo : collaudi) {
if (!esiste(INTPRATICA_CLASS_NAME, collaudo.getIntPraticaId())) {
CollaudoLocalServiceUtil.deleteCollaudo(collaudo);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (collaudi.size() > 0);
return "Cancellati " + cancellati + " Collaudo";
}
private static String svuotaContact(long companyId) throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<Contact> contacts = null;
do {
int rimossi = 0;
contacts = ContactLocalServiceUtil.getContacts(start, start + SLICE);
for (Contact contact : contacts) {
if (!esiste(contact.getClassName(), contact.getClassPK(), companyId)) {
ContactLocalServiceUtil.deleteContact(contact);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (contacts.size() > 0);
return "Cancellati " + cancellati + " Contact";
}
private static String svuotaControlloPratica() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<ControlloPratica> controlliPratiche = null;
do {
int rimossi = 0;
controlliPratiche = ControlloPraticaLocalServiceUtil.getControlloPraticas(start, start + SLICE);
for (ControlloPratica controlloPratica : controlliPratiche) {
if (!esiste(INTPRATICA_CLASS_NAME, controlloPratica.getIntPraticaId())
|| !esiste(DETTPRATICA_CLASS_NAME, controlloPratica.getDettPraticaId())) {
ControlloPraticaLocalServiceUtil.deleteControlloPratica(controlloPratica);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (controlliPratiche.size() > 0);
return "Cancellati " + cancellati + " ControlloPratica";
}
private static String svuotaDelega() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<Delega> deleghe = null;
do {
int rimossi = 0;
deleghe = DelegaLocalServiceUtil.getDelegas(start, start + SLICE);
for (Delega delega : deleghe) {
if (!esiste(INTPRATICA_CLASS_NAME, delega.getIntPraticaId())
|| !esiste(DETTPRATICA_CLASS_NAME, delega.getDettPraticaId())) {
DelegaLocalServiceUtil.deleteDelega(delega);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (deleghe.size() > 0);
return "Cancellati " + cancellati + " Delega";
}
private static String svuotaDettPratica() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<DettPratica> dettPratiche = null;
do {
int rimossi = 0;
dettPratiche = DettPraticaLocalServiceUtil.getDettPraticas(start, start + SLICE);
for (DettPratica dettPratica : dettPratiche) {
if (!esiste(INTPRATICA_CLASS_NAME, dettPratica.getIntPraticaId())) {
DettPraticaLocalServiceUtil.deleteDettPratica(dettPratica);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (dettPratiche.size() > 0);
return "Cancellati " + cancellati + " DettPratica";
}
private static String svuotaDocAggiuntiva() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<DocAggiuntiva> docAggiuntive = null;
do {
int rimossi = 0;
docAggiuntive = DocAggiuntivaLocalServiceUtil.getDocAggiuntivas(start, start + SLICE);
for (DocAggiuntiva docAggiuntiva : docAggiuntive) {
if (!esiste(INTPRATICA_CLASS_NAME, docAggiuntiva.getIntPraticaId())
@ -593,20 +608,19 @@ public class ManutenzioneDatabase {
deleteFileEntry(docAggiuntiva.getFileEntryId());
DocAggiuntivaLocalServiceUtil.deleteDocAggiuntiva(docAggiuntiva);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (docAggiuntive.size() > 0);
return "Cancellati " + cancellati + " DocAggiuntiva";
}
private static String svuotaDocPratica(long companyId) throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<DocPratica> docPratiche = null;
do {
int rimossi = 0;
docPratiche = DocPraticaLocalServiceUtil.getDocPraticas(start, start + SLICE);
for (DocPratica docPratica : docPratiche) {
if (!esiste(docPratica.getClassName(), docPratica.getClassPk(), companyId)
@ -614,74 +628,71 @@ public class ManutenzioneDatabase {
deleteFileEntry(docPratica.getDlFileEntryId());
DocPraticaLocalServiceUtil.deleteDocPratica(docPratica);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (docPratiche.size() > 0);
return "Cancellati " + cancellati + " DocPratica";
}
private static String svuotaEmail(long companyId) throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<Email> emails = null;
do {
int rimossi = 0;
emails = EmailLocalServiceUtil.getEmails(start, start + SLICE);
for (Email email : emails) {
if (!esiste(email.getClassName(), email.getClassPK(), companyId)) {
EmailLocalServiceUtil.deleteEmail(email);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (emails.size() > 0);
return "Cancellati " + cancellati + " Email";
}
private static String svuotaEmailAttachment() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<EmailAttachment> emailAttachments = null;
do {
int rimossi = 0;
emailAttachments = EmailAttachmentLocalServiceUtil.getEmailAttachments(start, start + SLICE);
for (EmailAttachment emailAttachment : emailAttachments) {
if (!esiste(EMAIL_CLASS_NAME, emailAttachment.getEmailId())) {
deleteFileEntry(emailAttachment.getFileEntryId());
EmailAttachmentLocalServiceUtil.deleteEmailAttachment(emailAttachment);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (emailAttachments.size() > 0);
return "Cancellati " + cancellati + " EmailAttachment";
}
private static String svuotaFineLavori() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<FineLavori> finiLavori = null;
do {
int rimossi = 0;
finiLavori = FineLavoriLocalServiceUtil.getFineLavoris(start, start + SLICE);
for (FineLavori fineLavori : finiLavori) {
if (!esiste(INTPRATICA_CLASS_NAME, fineLavori.getIntPraticaId())) {
FineLavoriLocalServiceUtil.deleteFineLavori(fineLavori);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (finiLavori.size() > 0);
return "Cancellati " + cancellati + " FineLavori";
}
// Troncare le tabelle è l'unico modo possibile
private static String svuotaIntPraticaDettPratica() {
int i = 0;
int d = 0;
try {
@ -689,56 +700,56 @@ public class ManutenzioneDatabase {
Statement s = connection.createStatement();
i = s.executeUpdate("DELETE FROM portos_bo_intpratica");
d = s.executeUpdate("DELETE FROM portos_bo_dettpratica");
} catch (SQLException e) {}
} catch (SQLException e) {
e.printStackTrace();
}
clearCache();
return "Cancellati " + i + " IntPratica, " + d + " DettPratica";
}
private static String svuotaGroup(long companyId) throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<Group> groups = null;
do {
int rimossi = 0;
groups = GroupLocalServiceUtil.getGroups(start, start + SLICE);
for (Group group : groups) {
if (!esiste(group.getClassName(), group.getClassPK(), companyId)) {
GroupLocalServiceUtil.deleteGroup(group);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (groups.size() > 0);
return "Cancellati " + cancellati + " Group";
}
private static String svuotaHistoryWorkflowAction() throws SystemException {
int start = 0;
int cancellati = 0;
List<HistoryWorkflowAction> actions = null;
do {
int rimossi = 0;
actions = HistoryWorkflowActionLocalServiceUtil.getHistoryWorkflowActions(start, start + SLICE);
for (HistoryWorkflowAction action : actions) {
if (!esiste(INTPRATICA_CLASS_NAME, action.getIntPraticaId())
|| !esiste(DETTPRATICA_CLASS_NAME, action.getDettPraticaId())) {
HistoryWorkflowActionLocalServiceUtil.deleteHistoryWorkflowAction(action);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (actions.size() > 0);
return "Cancellati " + cancellati + " HistoryWorkflowAction";
}
private static String svuotaMBDiscussion(long companyId) throws SystemException {
int start = 0;
int cancellati = 0;
List<MBDiscussion> mbDiscussions = null;
do {
int rimossi = 0;
mbDiscussions = MBDiscussionLocalServiceUtil.getMBDiscussions(start, start + SLICE);
for (MBDiscussion mbDiscussion : mbDiscussions) {
if (!esiste(mbDiscussion.getClassName(), mbDiscussion.getClassPK(), companyId)
@ -746,20 +757,19 @@ public class ManutenzioneDatabase {
|| !esiste(GROUP_CLASS_NAME, mbDiscussion.getGroupId())) {
MBDiscussionLocalServiceUtil.deleteMBDiscussion(mbDiscussion);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (mbDiscussions.size() > 0);
return "Cancellati " + cancellati + " MBDiscussion";
}
private static String svuotaMBMessage(long companyId) throws SystemException {
int start = 0;
int cancellati = 0;
List<MBMessage> mbMessages = null;
do {
int rimossi = 0;
mbMessages = MBMessageLocalServiceUtil.getMBMessages(start, start + SLICE);
for (MBMessage mbMessage : mbMessages) {
if (!esiste(mbMessage.getClassName(), mbMessage.getClassPK(), companyId)
@ -767,40 +777,38 @@ public class ManutenzioneDatabase {
|| !esiste(GROUP_CLASS_NAME, mbMessage.getGroupId())) {
MBMessageLocalServiceUtil.deleteMBMessage(mbMessage);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (mbMessages.size() > 0);
return "Cancellati " + cancellati + " MBMessage";
}
private static String svuotaMBThread() throws SystemException {
int start = 0;
int cancellati = 0;
List<MBThread> mbThreads = null;
do {
int rimossi = 0;
mbThreads = MBThreadLocalServiceUtil.getMBThreads(start, start + SLICE);
for (MBThread mbThread : mbThreads) {
if (!esiste(MBMESSAGE_CLASS_NAME, mbThread.getRootMessageId())
|| !esiste(GROUP_CLASS_NAME, mbThread.getGroupId())) {
MBThreadLocalServiceUtil.deleteMBThread(mbThread);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (mbThreads.size() > 0);
return "Cancellati " + cancellati + " MBThread";
}
private static String svuotaPagamento(long companyId) throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<Pagamento> pagamenti = null;
do {
int rimossi = 0;
pagamenti = PagamentoLocalServiceUtil.getPagamentos(start, start + SLICE);
for (Pagamento pagamento : pagamenti) {
if (!esiste(pagamento.getClassName(), pagamento.getClassPk(), companyId)
@ -808,20 +816,19 @@ public class ManutenzioneDatabase {
deleteFileEntry(pagamento.getFileEntryId());
PagamentoLocalServiceUtil.deletePagamento(pagamento);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (pagamenti.size() > 0);
return "Cancellati " + cancellati + " Pagamento";
}
private static String svuotaParereGeologo() throws SystemException {
int start = 0;
int cancellati = 0;
List<ParereGeologo> pareriGeologo = null;
do {
int rimossi = 0;
pareriGeologo = ParereGeologoLocalServiceUtil.getParereGeologos(start, start + SLICE);
for (ParereGeologo parereGeologo : pareriGeologo) {
if (!esiste(INTPRATICA_CLASS_NAME, parereGeologo.getIntPraticaId())
@ -829,58 +836,55 @@ public class ManutenzioneDatabase {
deleteFileEntry(parereGeologo.getFileEntryId());
ParereGeologoLocalServiceUtil.deleteParereGeologo(parereGeologo);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (pareriGeologo.size() > 0);
return "Cancellati " + cancellati + " ParereGeologo";
}
private static String svuotaRatingsEntry() throws SystemException {
int start = 0;
int cancellati = 0;
List<RatingsEntry> entries = null;
do {
int rimossi = 0;
entries = RatingsEntryLocalServiceUtil.getRatingsEntries(start, start + SLICE);
for (RatingsEntry entry : entries) {
if (!esiste(entry.getClassName(), entry.getClassPK())) {
RatingsEntryLocalServiceUtil.deleteRatingsEntry(entry);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (entries.size() > 0);
return "Cancellati " + cancellati + " RatingsEntry";
}
private static String svuotaRatingsStats(long companyId) throws SystemException {
int start = 0;
int cancellati = 0;
List<RatingsStats> ratingsStatses = null;
do {
int rimossi = 0;
ratingsStatses = RatingsStatsLocalServiceUtil.getRatingsStatses(start, start + SLICE);
for (RatingsStats ratingsStats : ratingsStatses) {
if (!esiste(ratingsStats.getClassName(), ratingsStats.getClassPK(), companyId)) {
RatingsStatsLocalServiceUtil.deleteRatingsStats(ratingsStats);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (ratingsStatses.size() > 0);
return "Cancellati " + cancellati + " RatingsStats";
}
private static String svuotaResourcePermission(long companyId) throws SystemException {
int start = 0;
int cancellati = 0;
List<ResourcePermission> resourcePermissions = null;
do {
int rimossi = 0;
resourcePermissions = ResourcePermissionLocalServiceUtil.getResourcePermissions(start, start + SLICE);
for (ResourcePermission resourcePermission : resourcePermissions) {
long classPK = 0;
@ -896,24 +900,23 @@ public class ManutenzioneDatabase {
if (!esiste(resourcePermission.getName(), classPK)) {
ResourcePermissionLocalServiceUtil.deleteResourcePermission(resourcePermission);
cancellati++;
rimossi++;
}
break;
}
}
}
start += SLICE - rimossi;
start += SLICE;
} while (resourcePermissions.size() > 0);
return "Cancellati " + cancellati + " ResourcePermission";
}
private static String svuotaSoggetto() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
int docPraticaCancellati = 0;
List<Soggetto> soggetti = null;
do {
int rimossi = 0;
soggetti = SoggettoLocalServiceUtil.getSoggettos(start, start + SLICE);
for (Soggetto soggetto : soggetti) {
if (!esiste(INTPRATICA_CLASS_NAME, soggetto.getIntPraticaId())
@ -929,79 +932,75 @@ public class ManutenzioneDatabase {
}
SoggettoLocalServiceUtil.deleteSoggetto(soggetto);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (soggetti.size() > 0);
return "Cancellati " + cancellati + " Soggetto, " + docPraticaCancellati + " DocPratica";
}
private static String svuotaSorteggio() throws SystemException {
int start = 0;
int cancellati = 0;
List<Sorteggio> sorteggi = null;
do {
int rimossi = 0;
sorteggi = SorteggioLocalServiceUtil.getSorteggios(start, start + SLICE);
for (Sorteggio sorteggio : sorteggi) {
if (!esiste(INTPRATICA_CLASS_NAME, sorteggio.getIntPraticaId())
|| !esiste(DETTPRATICA_CLASS_NAME, sorteggio.getDettPraticaId())) {
SorteggioLocalServiceUtil.deleteSorteggio(sorteggio);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (sorteggi.size() > 0);
return "Cancellati " + cancellati + " Sorteggio";
}
private static String svuotaStoricoSoggettoPratica() throws SystemException {
int start = 0;
int cancellati = 0;
List<StoricoSoggettoPratica> storicoSoggettiPratiche = null;
do {
int rimossi = 0;
storicoSoggettiPratiche = StoricoSoggettoPraticaLocalServiceUtil.getStoricoSoggettoPraticas(start, start
+ SLICE);
for (StoricoSoggettoPratica storicoSoggettoPratica : storicoSoggettiPratiche) {
if (!esiste(INTPRATICA_CLASS_NAME, storicoSoggettoPratica.getIntPraticaId())) {
StoricoSoggettoPraticaLocalServiceUtil.deleteStoricoSoggettoPratica(storicoSoggettoPratica);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (storicoSoggettiPratiche.size() > 0);
return "Cancellati " + cancellati + " StoricoSoggettoPratica";
}
private static String svuotaSystemEvent(long companyId) throws SystemException {
int start = 0;
int cancellati = 0;
List<SystemEvent> systemEvents = null;
do {
int rimossi = 0;
systemEvents = SystemEventLocalServiceUtil.getSystemEvents(start, start + SLICE);
for (SystemEvent systemEvent : systemEvents) {
if (!esiste(systemEvent.getClassName(), systemEvent.getClassPK(), companyId)) {
SystemEventLocalServiceUtil.deleteSystemEvent(systemEvent);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (systemEvents.size() > 0);
return "Cancellati " + cancellati + " SystemEvent";
}
private static String svuotaSyncDLObject() throws SystemException {
int start = 0;
int cancellati = 0;
List<SyncDLObject> syncDLObjects = null;
do {
int rimossi = 0;
syncDLObjects = SyncDLObjectLocalServiceUtil.getSyncDLObjects(start, start + SLICE);
for (SyncDLObject syncDLObject : syncDLObjects) {
String className = null;
@ -1016,58 +1015,72 @@ public class ManutenzioneDatabase {
if (!esiste(className, syncDLObject.getTypePK())) {
SyncDLObjectLocalServiceUtil.deleteSyncDLObject(syncDLObject);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (syncDLObjects.size() > 0);
return "Cancellati " + cancellati + " SyncDLObject";
}
private static String svuotaTempistica() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<Tempistica> tempistiche = null;
do {
int rimossi = 0;
tempistiche = TempisticaLocalServiceUtil.getTempisticas(start, start + SLICE);
for (Tempistica tempistica : tempistiche) {
if (!esiste(INTPRATICA_CLASS_NAME, tempistica.getIntPraticaId())
|| !esiste(DETTPRATICA_CLASS_NAME, tempistica.getDettPraticaId())) {
TempisticaLocalServiceUtil.deleteTempistica(tempistica);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (tempistiche.size() > 0);
return "Cancellati " + cancellati + " Tempistica";
}
private static String svuotaUser(long companyId) throws SystemException, PortalException {
private static List<String> svuotaUser(long companyId) throws SystemException, PortalException {
List<String> esito = new ArrayList<>();
int start = 0;
int cancellati = 0;
List<User> users = null;
Role adminRole = RoleLocalServiceUtil.getRole(companyId, RoleConstants.ADMINISTRATOR);
Set<String> soggetti = new HashSet<>();
for (Soggetto soggetto : SoggettoLocalServiceUtil.getSoggettos(QueryUtil.ALL_POS, QueryUtil.ALL_POS)) {
soggetti.add(soggetto.getCodiceFiscaleDelegato().toLowerCase());
soggetti.add(soggetto.getCodiceFiscale().toLowerCase());
}
for (IntPratica pratica : IntPraticaLocalServiceUtil.getIntPraticas(QueryUtil.ALL_POS, QueryUtil.ALL_POS)) {
soggetti.add(pratica.getUserName().toLowerCase());
}
do {
int rimossi = 0;
users = UserLocalServiceUtil.getUsers(start, start + SLICE);
for (User user : users) {
if (user.getRoles().contains(adminRole)) {
_log.info("Non cancello utente " + user.getFullName());
if (soggetti.contains(user.getScreenName().toLowerCase()) || user.getRoles().contains(adminRole)
|| (user.getOrganizationIds().length > 0) || user.getDefaultUser()) {} else {
try {
UserLocalServiceUtil.deleteUser(user);
} catch (Exception e) {
esitoLog(esito, "Errore utente " + user.getFullName() + ": " + e.getMessage());
}
cancellati++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (users.size() > 0);
return "Cancellati " + cancellati + " User";
esitoLog(esito, "Cancellati " + cancellati + " User");
return esito;
}
private static String svuotaWorkflowInstance() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<WorkflowInstanceLink> links = null;
do {
int rimossi = 0;
links = WorkflowInstanceLinkLocalServiceUtil.getWorkflowInstanceLinks(start, start + SLICE);
for (WorkflowInstanceLink link : links) {
if (!esiste(link.getClassName(), link.getClassPK())) {
@ -1084,19 +1097,20 @@ public class ManutenzioneDatabase {
instance.getWorkflowInstanceId());
}
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
start += SLICE;
} while (links.size() > 0);
return "Cancellati " + cancellati + " WorkflowInstance";
}
private static boolean esiste(String className, long classPK) throws SystemException {
return esiste(className, classPK, 0);
}
private static boolean esiste(String className, long classPK, long companyId) throws SystemException {
if (0 != classPK && Validator.isNotNull(className)) {
try {
if (ALLEGATOMANUALE_CLASS_NAME.equals(className)) {
@ -1193,7 +1207,7 @@ public class ManutenzioneDatabase {
WorkflowInstanceManagerUtil.getWorkflowInstance(companyId, classPK);
}
} else {
if (className.contains(".")) {
if (className.contains(StringPool.PERIOD)) {
switch (className) {
case "com.liferay.portlet.blogs":
case "com.liferay.portlet.documentlibrary":
@ -1216,6 +1230,7 @@ public class ManutenzioneDatabase {
}
private static void deleteFileEntry(long fileEntryId) throws SystemException {
try {
DLAppLocalServiceUtil.deleteFileEntry(fileEntryId);
} catch (PortalException e) {}
@ -1229,6 +1244,7 @@ public class ManutenzioneDatabase {
}
private static void esitoLog(List<String> esito, String msg) {
_log.info(msg);
esito.add(msg);
}

28
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SorteggioPraticaUtil.java

@ -79,12 +79,23 @@ public class SorteggioPraticaUtil {
*/
public static List<String> sorteggio(long companyId, Date dtSorteggio) throws PortalException, SystemException {
return sorteggio(companyId, dtSorteggio, null);
}
public static List<String> sorteggio(long companyId, Date dtSorteggio, Date dtRange) throws PortalException,
SystemException {
List<String> esito = new ArrayList<>();
if (lock.tryLock()) {
SimpleDateFormat sdf = new SimpleDateFormat(DATE_TIME_FORMAT);
esito.add("Sorteggio iniziato in data " + sdf.format(dtSorteggio) + ".<br><br>");
if (null == dtRange) {
dtRange = dtSorteggio;
} else {
esito.add("Le pratiche sono selezionate con data di riferimento " + sdf.format(dtRange) + ".<br>");
}
Map<String, List<IntPratica>> sorteggiabili = IntPraticaLocalServiceUtil.findSorteggiabiliNew(companyId,
dtSorteggio);
dtRange);
int numeroSorteggiabili = 0;
for (Map.Entry<String, List<IntPratica>> s : sorteggiabili.entrySet()) {
numeroSorteggiabili += s.getValue().size();
@ -152,6 +163,8 @@ public class SorteggioPraticaUtil {
ConfigurazioneLocalServiceUtil.storeConfig(ConfigurazioneConstants.DATE_ULTIMO_SORTEGGIO,
sdf.format(dtSorteggio), serviceContext);
lock.unlock();
} else {
esito.add("Sorteggio già in corso.");
}
return esito;
}
@ -264,15 +277,14 @@ public class SorteggioPraticaUtil {
}
}
public static FileEntry getFileEntrySorteggio(long companyId, long groupId, Date dtSorteggio)
throws PortalException, SystemException {
public static FileEntry getFileEntrySorteggio(long companyId, Date dtSorteggio) throws PortalException,
SystemException {
Company company = CompanyLocalServiceUtil.getCompany(companyId);
Folder folder = DLAppLocalServiceUtil.getFolder(company.getGroupId(),
DLFolderConstants.DEFAULT_PARENT_FOLDER_ID, FOLDER_SORTEGGIO);
String fileName = reportFileName(companyId, dtSorteggio);
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(groupId, folder.getFolderId(), fileName);
return fileEntry;
Calendar calSorteggio = DateUtils.toCalendar(dtSorteggio);
String anno = String.valueOf(calSorteggio.get(Calendar.YEAR));
int settimana = calSorteggio.get(Calendar.WEEK_OF_YEAR);
return getFileEntrySorteggio(companyId, company.getGroupId(), settimana, anno);
}
public static FileEntry getFileEntrySorteggio(long companyId, long groupId, int settimana, String anno)

94
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 {
@Override
public String toString() {
StringBundler sb = new StringBundler(53);
StringBundler sb = new StringBundler(67);
sb.append("{uuid=");
sb.append(uuid);
@ -78,20 +78,34 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
sb.append(dataFineLavori);
sb.append(", normEsenteBollo=");
sb.append(normEsenteBollo);
sb.append(", normEsenteSpese=");
sb.append(normEsenteSpese);
sb.append(", normEsenteCollaudo=");
sb.append(normEsenteCollaudo);
sb.append(", comunicazioneDirettoreLavori=");
sb.append(comunicazioneDirettoreLavori);
sb.append(", pagamentoId=");
sb.append(pagamentoId);
sb.append(", pagamentoSpeseId=");
sb.append(pagamentoSpeseId);
sb.append(", codicePagamento=");
sb.append(codicePagamento);
sb.append(", codicePagamentoSpese=");
sb.append(codicePagamentoSpese);
sb.append(", causalePagamento=");
sb.append(causalePagamento);
sb.append(", causalePagamentoSpese=");
sb.append(causalePagamentoSpese);
sb.append(", mezzoPagamento=");
sb.append(mezzoPagamento);
sb.append(", mezzoPagamentoSpese=");
sb.append(mezzoPagamentoSpese);
sb.append(", importoBolli=");
sb.append(importoBolli);
sb.append(", importoSpese=");
sb.append(importoSpese);
sb.append(", richiestaAttestazione=");
sb.append(richiestaAttestazione);
sb.append("}");
return sb.toString();
@ -177,6 +191,7 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
}
fineLavoriImpl.setNormEsenteBollo(normEsenteBollo);
fineLavoriImpl.setNormEsenteSpese(normEsenteSpese);
fineLavoriImpl.setNormEsenteCollaudo(normEsenteCollaudo);
if (comunicazioneDirettoreLavori == null) {
@ -187,6 +202,7 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
}
fineLavoriImpl.setPagamentoId(pagamentoId);
fineLavoriImpl.setPagamentoSpeseId(pagamentoSpeseId);
if (codicePagamento == null) {
fineLavoriImpl.setCodicePagamento(StringPool.BLANK);
@ -195,6 +211,13 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
fineLavoriImpl.setCodicePagamento(codicePagamento);
}
if (codicePagamentoSpese == null) {
fineLavoriImpl.setCodicePagamentoSpese(StringPool.BLANK);
}
else {
fineLavoriImpl.setCodicePagamentoSpese(codicePagamentoSpese);
}
if (causalePagamento == null) {
fineLavoriImpl.setCausalePagamento(StringPool.BLANK);
}
@ -202,6 +225,13 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
fineLavoriImpl.setCausalePagamento(causalePagamento);
}
if (causalePagamentoSpese == null) {
fineLavoriImpl.setCausalePagamentoSpese(StringPool.BLANK);
}
else {
fineLavoriImpl.setCausalePagamentoSpese(causalePagamentoSpese);
}
if (mezzoPagamento == null) {
fineLavoriImpl.setMezzoPagamento(StringPool.BLANK);
}
@ -209,6 +239,13 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
fineLavoriImpl.setMezzoPagamento(mezzoPagamento);
}
if (mezzoPagamentoSpese == null) {
fineLavoriImpl.setMezzoPagamentoSpese(StringPool.BLANK);
}
else {
fineLavoriImpl.setMezzoPagamentoSpese(mezzoPagamentoSpese);
}
if (importoBolli == null) {
fineLavoriImpl.setImportoBolli(StringPool.BLANK);
}
@ -216,6 +253,15 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
fineLavoriImpl.setImportoBolli(importoBolli);
}
if (importoSpese == null) {
fineLavoriImpl.setImportoSpese(StringPool.BLANK);
}
else {
fineLavoriImpl.setImportoSpese(importoSpese);
}
fineLavoriImpl.setRichiestaAttestazione(richiestaAttestazione);
fineLavoriImpl.resetOriginalValues();
return fineLavoriImpl;
@ -242,13 +288,20 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
dataEffettuazione = objectInput.readLong();
dataFineLavori = objectInput.readLong();
normEsenteBollo = objectInput.readBoolean();
normEsenteSpese = objectInput.readBoolean();
normEsenteCollaudo = objectInput.readBoolean();
comunicazioneDirettoreLavori = objectInput.readUTF();
pagamentoId = objectInput.readLong();
pagamentoSpeseId = objectInput.readLong();
codicePagamento = objectInput.readUTF();
codicePagamentoSpese = objectInput.readUTF();
causalePagamento = objectInput.readUTF();
causalePagamentoSpese = objectInput.readUTF();
mezzoPagamento = objectInput.readUTF();
mezzoPagamentoSpese = objectInput.readUTF();
importoBolli = objectInput.readUTF();
importoSpese = objectInput.readUTF();
richiestaAttestazione = objectInput.readBoolean();
}
@Override
@ -300,6 +353,7 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
objectOutput.writeLong(dataEffettuazione);
objectOutput.writeLong(dataFineLavori);
objectOutput.writeBoolean(normEsenteBollo);
objectOutput.writeBoolean(normEsenteSpese);
objectOutput.writeBoolean(normEsenteCollaudo);
if (comunicazioneDirettoreLavori == null) {
@ -310,6 +364,7 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
}
objectOutput.writeLong(pagamentoId);
objectOutput.writeLong(pagamentoSpeseId);
if (codicePagamento == null) {
objectOutput.writeUTF(StringPool.BLANK);
@ -318,6 +373,13 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
objectOutput.writeUTF(codicePagamento);
}
if (codicePagamentoSpese == null) {
objectOutput.writeUTF(StringPool.BLANK);
}
else {
objectOutput.writeUTF(codicePagamentoSpese);
}
if (causalePagamento == null) {
objectOutput.writeUTF(StringPool.BLANK);
}
@ -325,6 +387,13 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
objectOutput.writeUTF(causalePagamento);
}
if (causalePagamentoSpese == null) {
objectOutput.writeUTF(StringPool.BLANK);
}
else {
objectOutput.writeUTF(causalePagamentoSpese);
}
if (mezzoPagamento == null) {
objectOutput.writeUTF(StringPool.BLANK);
}
@ -332,12 +401,28 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
objectOutput.writeUTF(mezzoPagamento);
}
if (mezzoPagamentoSpese == null) {
objectOutput.writeUTF(StringPool.BLANK);
}
else {
objectOutput.writeUTF(mezzoPagamentoSpese);
}
if (importoBolli == null) {
objectOutput.writeUTF(StringPool.BLANK);
}
else {
objectOutput.writeUTF(importoBolli);
}
if (importoSpese == null) {
objectOutput.writeUTF(StringPool.BLANK);
}
else {
objectOutput.writeUTF(importoSpese);
}
objectOutput.writeBoolean(richiestaAttestazione);
}
public String uuid;
@ -359,11 +444,18 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
public long dataEffettuazione;
public long dataFineLavori;
public boolean normEsenteBollo;
public boolean normEsenteSpese;
public boolean normEsenteCollaudo;
public String comunicazioneDirettoreLavori;
public long pagamentoId;
public long pagamentoSpeseId;
public String codicePagamento;
public String codicePagamentoSpese;
public String causalePagamento;
public String causalePagamentoSpese;
public String mezzoPagamento;
public String mezzoPagamentoSpese;
public String importoBolli;
public String importoSpese;
public boolean richiestaAttestazione;
}

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

@ -86,15 +86,22 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
{ "dataEffettuazione", Types.TIMESTAMP },
{ "dataFineLavori", Types.TIMESTAMP },
{ "normEsenteBollo", Types.BOOLEAN },
{ "normEsenteSpese", Types.BOOLEAN },
{ "normEsenteCollaudo", Types.BOOLEAN },
{ "comunicazioneDirettoreLavori", Types.VARCHAR },
{ "pagamentoId", Types.BIGINT },
{ "pagamentoSpeseId", Types.BIGINT },
{ "codicePagamento", Types.VARCHAR },
{ "codicePagamentoSpese", Types.VARCHAR },
{ "causalePagamento", Types.VARCHAR },
{ "causalePagamentoSpese", Types.VARCHAR },
{ "mezzoPagamento", Types.VARCHAR },
{ "importoBolli", Types.VARCHAR }
{ "mezzoPagamentoSpese", Types.VARCHAR },
{ "importoBolli", Types.VARCHAR },
{ "importoSpese", 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,normEsenteSpese BOOLEAN,normEsenteCollaudo BOOLEAN,comunicazioneDirettoreLavori STRING null,pagamentoId LONG,pagamentoSpeseId LONG,codicePagamento VARCHAR(75) null,codicePagamentoSpese VARCHAR(75) null,causalePagamento VARCHAR(75) null,causalePagamentoSpese VARCHAR(75) null,mezzoPagamento VARCHAR(75) null,mezzoPagamentoSpese VARCHAR(75) null,importoBolli VARCHAR(75) null,importoSpese VARCHAR(75) null,richiestaAttestazione BOOLEAN)";
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_SQL = " ORDER BY portos_bo_FineLavori.fineLavoriId ASC";
@ -152,13 +159,20 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
model.setDataEffettuazione(soapModel.getDataEffettuazione());
model.setDataFineLavori(soapModel.getDataFineLavori());
model.setNormEsenteBollo(soapModel.getNormEsenteBollo());
model.setNormEsenteSpese(soapModel.getNormEsenteSpese());
model.setNormEsenteCollaudo(soapModel.getNormEsenteCollaudo());
model.setComunicazioneDirettoreLavori(soapModel.getComunicazioneDirettoreLavori());
model.setPagamentoId(soapModel.getPagamentoId());
model.setPagamentoSpeseId(soapModel.getPagamentoSpeseId());
model.setCodicePagamento(soapModel.getCodicePagamento());
model.setCodicePagamentoSpese(soapModel.getCodicePagamentoSpese());
model.setCausalePagamento(soapModel.getCausalePagamento());
model.setCausalePagamentoSpese(soapModel.getCausalePagamentoSpese());
model.setMezzoPagamento(soapModel.getMezzoPagamento());
model.setMezzoPagamentoSpese(soapModel.getMezzoPagamentoSpese());
model.setImportoBolli(soapModel.getImportoBolli());
model.setImportoSpese(soapModel.getImportoSpese());
model.setRichiestaAttestazione(soapModel.getRichiestaAttestazione());
return model;
}
@ -242,14 +256,21 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
attributes.put("dataEffettuazione", getDataEffettuazione());
attributes.put("dataFineLavori", getDataFineLavori());
attributes.put("normEsenteBollo", getNormEsenteBollo());
attributes.put("normEsenteSpese", getNormEsenteSpese());
attributes.put("normEsenteCollaudo", getNormEsenteCollaudo());
attributes.put("comunicazioneDirettoreLavori",
getComunicazioneDirettoreLavori());
attributes.put("pagamentoId", getPagamentoId());
attributes.put("pagamentoSpeseId", getPagamentoSpeseId());
attributes.put("codicePagamento", getCodicePagamento());
attributes.put("codicePagamentoSpese", getCodicePagamentoSpese());
attributes.put("causalePagamento", getCausalePagamento());
attributes.put("causalePagamentoSpese", getCausalePagamentoSpese());
attributes.put("mezzoPagamento", getMezzoPagamento());
attributes.put("mezzoPagamentoSpese", getMezzoPagamentoSpese());
attributes.put("importoBolli", getImportoBolli());
attributes.put("importoSpese", getImportoSpese());
attributes.put("richiestaAttestazione", getRichiestaAttestazione());
return attributes;
}
@ -371,6 +392,12 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
setNormEsenteBollo(normEsenteBollo);
}
Boolean normEsenteSpese = (Boolean)attributes.get("normEsenteSpese");
if (normEsenteSpese != null) {
setNormEsenteSpese(normEsenteSpese);
}
Boolean normEsenteCollaudo = (Boolean)attributes.get(
"normEsenteCollaudo");
@ -391,29 +418,69 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
setPagamentoId(pagamentoId);
}
Long pagamentoSpeseId = (Long)attributes.get("pagamentoSpeseId");
if (pagamentoSpeseId != null) {
setPagamentoSpeseId(pagamentoSpeseId);
}
String codicePagamento = (String)attributes.get("codicePagamento");
if (codicePagamento != null) {
setCodicePagamento(codicePagamento);
}
String codicePagamentoSpese = (String)attributes.get(
"codicePagamentoSpese");
if (codicePagamentoSpese != null) {
setCodicePagamentoSpese(codicePagamentoSpese);
}
String causalePagamento = (String)attributes.get("causalePagamento");
if (causalePagamento != null) {
setCausalePagamento(causalePagamento);
}
String causalePagamentoSpese = (String)attributes.get(
"causalePagamentoSpese");
if (causalePagamentoSpese != null) {
setCausalePagamentoSpese(causalePagamentoSpese);
}
String mezzoPagamento = (String)attributes.get("mezzoPagamento");
if (mezzoPagamento != null) {
setMezzoPagamento(mezzoPagamento);
}
String mezzoPagamentoSpese = (String)attributes.get(
"mezzoPagamentoSpese");
if (mezzoPagamentoSpese != null) {
setMezzoPagamentoSpese(mezzoPagamentoSpese);
}
String importoBolli = (String)attributes.get("importoBolli");
if (importoBolli != null) {
setImportoBolli(importoBolli);
}
String importoSpese = (String)attributes.get("importoSpese");
if (importoSpese != null) {
setImportoSpese(importoSpese);
}
Boolean richiestaAttestazione = (Boolean)attributes.get(
"richiestaAttestazione");
if (richiestaAttestazione != null) {
setRichiestaAttestazione(richiestaAttestazione);
}
}
@JSON
@ -763,6 +830,22 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
_normEsenteBollo = normEsenteBollo;
}
@JSON
@Override
public boolean getNormEsenteSpese() {
return _normEsenteSpese;
}
@Override
public boolean isNormEsenteSpese() {
return _normEsenteSpese;
}
@Override
public void setNormEsenteSpese(boolean normEsenteSpese) {
_normEsenteSpese = normEsenteSpese;
}
@JSON
@Override
public boolean getNormEsenteCollaudo() {
@ -807,6 +890,17 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
_pagamentoId = pagamentoId;
}
@JSON
@Override
public long getPagamentoSpeseId() {
return _pagamentoSpeseId;
}
@Override
public void setPagamentoSpeseId(long pagamentoSpeseId) {
_pagamentoSpeseId = pagamentoSpeseId;
}
@JSON
@Override
public String getCodicePagamento() {
@ -823,6 +917,22 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
_codicePagamento = codicePagamento;
}
@JSON
@Override
public String getCodicePagamentoSpese() {
if (_codicePagamentoSpese == null) {
return StringPool.BLANK;
}
else {
return _codicePagamentoSpese;
}
}
@Override
public void setCodicePagamentoSpese(String codicePagamentoSpese) {
_codicePagamentoSpese = codicePagamentoSpese;
}
@JSON
@Override
public String getCausalePagamento() {
@ -839,6 +949,22 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
_causalePagamento = causalePagamento;
}
@JSON
@Override
public String getCausalePagamentoSpese() {
if (_causalePagamentoSpese == null) {
return StringPool.BLANK;
}
else {
return _causalePagamentoSpese;
}
}
@Override
public void setCausalePagamentoSpese(String causalePagamentoSpese) {
_causalePagamentoSpese = causalePagamentoSpese;
}
@JSON
@Override
public String getMezzoPagamento() {
@ -855,6 +981,22 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
_mezzoPagamento = mezzoPagamento;
}
@JSON
@Override
public String getMezzoPagamentoSpese() {
if (_mezzoPagamentoSpese == null) {
return StringPool.BLANK;
}
else {
return _mezzoPagamentoSpese;
}
}
@Override
public void setMezzoPagamentoSpese(String mezzoPagamentoSpese) {
_mezzoPagamentoSpese = mezzoPagamentoSpese;
}
@JSON
@Override
public String getImportoBolli() {
@ -871,6 +1013,38 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
_importoBolli = importoBolli;
}
@JSON
@Override
public String getImportoSpese() {
if (_importoSpese == null) {
return StringPool.BLANK;
}
else {
return _importoSpese;
}
}
@Override
public void setImportoSpese(String importoSpese) {
_importoSpese = importoSpese;
}
@JSON
@Override
public boolean getRichiestaAttestazione() {
return _richiestaAttestazione;
}
@Override
public boolean isRichiestaAttestazione() {
return _richiestaAttestazione;
}
@Override
public void setRichiestaAttestazione(boolean richiestaAttestazione) {
_richiestaAttestazione = richiestaAttestazione;
}
@Override
public StagedModelType getStagedModelType() {
return new StagedModelType(PortalUtil.getClassNameId(
@ -927,13 +1101,20 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
fineLavoriImpl.setDataEffettuazione(getDataEffettuazione());
fineLavoriImpl.setDataFineLavori(getDataFineLavori());
fineLavoriImpl.setNormEsenteBollo(getNormEsenteBollo());
fineLavoriImpl.setNormEsenteSpese(getNormEsenteSpese());
fineLavoriImpl.setNormEsenteCollaudo(getNormEsenteCollaudo());
fineLavoriImpl.setComunicazioneDirettoreLavori(getComunicazioneDirettoreLavori());
fineLavoriImpl.setPagamentoId(getPagamentoId());
fineLavoriImpl.setPagamentoSpeseId(getPagamentoSpeseId());
fineLavoriImpl.setCodicePagamento(getCodicePagamento());
fineLavoriImpl.setCodicePagamentoSpese(getCodicePagamentoSpese());
fineLavoriImpl.setCausalePagamento(getCausalePagamento());
fineLavoriImpl.setCausalePagamentoSpese(getCausalePagamentoSpese());
fineLavoriImpl.setMezzoPagamento(getMezzoPagamento());
fineLavoriImpl.setMezzoPagamentoSpese(getMezzoPagamentoSpese());
fineLavoriImpl.setImportoBolli(getImportoBolli());
fineLavoriImpl.setImportoSpese(getImportoSpese());
fineLavoriImpl.setRichiestaAttestazione(getRichiestaAttestazione());
fineLavoriImpl.resetOriginalValues();
@ -1117,6 +1298,8 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
fineLavoriCacheModel.normEsenteBollo = getNormEsenteBollo();
fineLavoriCacheModel.normEsenteSpese = getNormEsenteSpese();
fineLavoriCacheModel.normEsenteCollaudo = getNormEsenteCollaudo();
fineLavoriCacheModel.comunicazioneDirettoreLavori = getComunicazioneDirettoreLavori();
@ -1130,6 +1313,8 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
fineLavoriCacheModel.pagamentoId = getPagamentoId();
fineLavoriCacheModel.pagamentoSpeseId = getPagamentoSpeseId();
fineLavoriCacheModel.codicePagamento = getCodicePagamento();
String codicePagamento = fineLavoriCacheModel.codicePagamento;
@ -1138,6 +1323,15 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
fineLavoriCacheModel.codicePagamento = null;
}
fineLavoriCacheModel.codicePagamentoSpese = getCodicePagamentoSpese();
String codicePagamentoSpese = fineLavoriCacheModel.codicePagamentoSpese;
if ((codicePagamentoSpese != null) &&
(codicePagamentoSpese.length() == 0)) {
fineLavoriCacheModel.codicePagamentoSpese = null;
}
fineLavoriCacheModel.causalePagamento = getCausalePagamento();
String causalePagamento = fineLavoriCacheModel.causalePagamento;
@ -1146,6 +1340,15 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
fineLavoriCacheModel.causalePagamento = null;
}
fineLavoriCacheModel.causalePagamentoSpese = getCausalePagamentoSpese();
String causalePagamentoSpese = fineLavoriCacheModel.causalePagamentoSpese;
if ((causalePagamentoSpese != null) &&
(causalePagamentoSpese.length() == 0)) {
fineLavoriCacheModel.causalePagamentoSpese = null;
}
fineLavoriCacheModel.mezzoPagamento = getMezzoPagamento();
String mezzoPagamento = fineLavoriCacheModel.mezzoPagamento;
@ -1154,6 +1357,15 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
fineLavoriCacheModel.mezzoPagamento = null;
}
fineLavoriCacheModel.mezzoPagamentoSpese = getMezzoPagamentoSpese();
String mezzoPagamentoSpese = fineLavoriCacheModel.mezzoPagamentoSpese;
if ((mezzoPagamentoSpese != null) &&
(mezzoPagamentoSpese.length() == 0)) {
fineLavoriCacheModel.mezzoPagamentoSpese = null;
}
fineLavoriCacheModel.importoBolli = getImportoBolli();
String importoBolli = fineLavoriCacheModel.importoBolli;
@ -1162,12 +1374,22 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
fineLavoriCacheModel.importoBolli = null;
}
fineLavoriCacheModel.importoSpese = getImportoSpese();
String importoSpese = fineLavoriCacheModel.importoSpese;
if ((importoSpese != null) && (importoSpese.length() == 0)) {
fineLavoriCacheModel.importoSpese = null;
}
fineLavoriCacheModel.richiestaAttestazione = getRichiestaAttestazione();
return fineLavoriCacheModel;
}
@Override
public String toString() {
StringBundler sb = new StringBundler(53);
StringBundler sb = new StringBundler(67);
sb.append("{uuid=");
sb.append(getUuid());
@ -1207,20 +1429,34 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
sb.append(getDataFineLavori());
sb.append(", normEsenteBollo=");
sb.append(getNormEsenteBollo());
sb.append(", normEsenteSpese=");
sb.append(getNormEsenteSpese());
sb.append(", normEsenteCollaudo=");
sb.append(getNormEsenteCollaudo());
sb.append(", comunicazioneDirettoreLavori=");
sb.append(getComunicazioneDirettoreLavori());
sb.append(", pagamentoId=");
sb.append(getPagamentoId());
sb.append(", pagamentoSpeseId=");
sb.append(getPagamentoSpeseId());
sb.append(", codicePagamento=");
sb.append(getCodicePagamento());
sb.append(", codicePagamentoSpese=");
sb.append(getCodicePagamentoSpese());
sb.append(", causalePagamento=");
sb.append(getCausalePagamento());
sb.append(", causalePagamentoSpese=");
sb.append(getCausalePagamentoSpese());
sb.append(", mezzoPagamento=");
sb.append(getMezzoPagamento());
sb.append(", mezzoPagamentoSpese=");
sb.append(getMezzoPagamentoSpese());
sb.append(", importoBolli=");
sb.append(getImportoBolli());
sb.append(", importoSpese=");
sb.append(getImportoSpese());
sb.append(", richiestaAttestazione=");
sb.append(getRichiestaAttestazione());
sb.append("}");
return sb.toString();
@ -1228,7 +1464,7 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
@Override
public String toXmlString() {
StringBundler sb = new StringBundler(82);
StringBundler sb = new StringBundler(103);
sb.append("<model><model-name>");
sb.append("it.tref.liferay.portos.bo.model.FineLavori");
@ -1310,6 +1546,10 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
"<column><column-name>normEsenteBollo</column-name><column-value><![CDATA[");
sb.append(getNormEsenteBollo());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>normEsenteSpese</column-name><column-value><![CDATA[");
sb.append(getNormEsenteSpese());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>normEsenteCollaudo</column-name><column-value><![CDATA[");
sb.append(getNormEsenteCollaudo());
@ -1322,22 +1562,46 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
"<column><column-name>pagamentoId</column-name><column-value><![CDATA[");
sb.append(getPagamentoId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>pagamentoSpeseId</column-name><column-value><![CDATA[");
sb.append(getPagamentoSpeseId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>codicePagamento</column-name><column-value><![CDATA[");
sb.append(getCodicePagamento());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>codicePagamentoSpese</column-name><column-value><![CDATA[");
sb.append(getCodicePagamentoSpese());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>causalePagamento</column-name><column-value><![CDATA[");
sb.append(getCausalePagamento());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>causalePagamentoSpese</column-name><column-value><![CDATA[");
sb.append(getCausalePagamentoSpese());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>mezzoPagamento</column-name><column-value><![CDATA[");
sb.append(getMezzoPagamento());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>mezzoPagamentoSpese</column-name><column-value><![CDATA[");
sb.append(getMezzoPagamentoSpese());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>importoBolli</column-name><column-value><![CDATA[");
sb.append(getImportoBolli());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>importoSpese</column-name><column-value><![CDATA[");
sb.append(getImportoSpese());
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>");
@ -1381,13 +1645,20 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
private Date _dataEffettuazione;
private Date _dataFineLavori;
private boolean _normEsenteBollo;
private boolean _normEsenteSpese;
private boolean _normEsenteCollaudo;
private String _comunicazioneDirettoreLavori;
private long _pagamentoId;
private long _pagamentoSpeseId;
private String _codicePagamento;
private String _codicePagamentoSpese;
private String _causalePagamento;
private String _causalePagamentoSpese;
private String _mezzoPagamento;
private String _mezzoPagamentoSpese;
private String _importoBolli;
private String _importoSpese;
private boolean _richiestaAttestazione;
private long _columnBitmask;
private FineLavori _escapedModel;
}

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

@ -81,11 +81,11 @@ public class GestioneFirmePortlet extends MVCPortlet {
public void simulaFirma(ActionRequest request, ActionResponse response) throws Exception {
ServiceContext serviceContext = ServiceContextFactory.getInstance(request);
if (ConfigurazioneLocalServiceUtil.isDeveloper(serviceContext.getUserId())) {
if (ConfigurazioneLocalServiceUtil.isProduction()) {
throw new PortletException("Firma simulata non permessa");
} else {
long avvisoId = ParamUtil.getLong(request, "avvisoId");
AvvisoLocalServiceUtil.simulaFirma(avvisoId, serviceContext);
} else {
throw new PortletException("Firma simulata non permessa");
}
}

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

@ -1,63 +1,5 @@
package it.tref.liferay.portos.bo.portlet;
import it.tref.liferay.portos.bo.model.Pagamento;
import it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.PagamentoServiceUtil;
import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.ParamUtil;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.ServiceContextFactory;
import com.liferay.portal.util.PortalUtil;
import com.liferay.util.bridges.mvc.MVCPortlet;
public class PagamentiPendingPortlet extends MVCPortlet {
private static final Log _log = LogFactoryUtil.getLog(PagamentiPendingPortlet.class);
public void rigeneraPagamento(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException,
SystemException {
try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
long pagamentoId = ParamUtil.getLong(actionRequest, "pagamentoId");
String url = ParamUtil.getString(actionRequest, "redirect");
Pagamento pagamento = PagamentoLocalServiceUtil.fetchPagamento(pagamentoId);
if (Validator.isNotNull(pagamento)) {
PagamentoServiceUtil.rigeneraPagamento(pagamentoId, pagamento.getCodiceFiscaleCommittente(),
pagamento.getMezzo(), url, serviceContext);
}
} catch (Exception e) {
PortalUtil.copyRequestParameters(actionRequest, actionResponse);
_log.error("Error", e);
throw new SystemException(e);
}
}
public void annullaPagamento(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException,
SystemException {
try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
long pagamentoId = ParamUtil.getLong(actionRequest, "pagamentoId");
PagamentoServiceUtil.annullaPagamento(pagamentoId, serviceContext);
} catch (Exception e) {
PortalUtil.copyRequestParameters(actionRequest, actionResponse);
_log.error("Error", e);
throw new SystemException(e);
}
}
}
public class PagamentiPendingPortlet extends MVCPortlet {}

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

@ -7,6 +7,7 @@ import it.mwg.sismica.bo.util.SorteggioPraticaUtil;
import it.tref.liferay.portos.bo.service.ConfigurazioneServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
@ -33,7 +34,7 @@ public class SismicaAdministrationPortlet extends MVCPortlet {
private static final Log _log = LogFactoryUtil.getLog(SismicaAdministrationPortlet.class);
public void mostraConfigurazione(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException {
public void mostraConfigurazione(ActionRequest request, ActionResponse response) throws SystemException {
List<String> esito = new ArrayList<String>();
esito.add("<h3>Env</h3>");
@ -44,108 +45,114 @@ public class SismicaAdministrationPortlet extends MVCPortlet {
for (Map.Entry<Object, Object> entry : System.getProperties().entrySet()) {
esito.add(entry.getKey() + StringPool.EQUAL + entry.getValue());
}
actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
response.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
}
public void generaDocumenti(ActionRequest actionRequest, ActionResponse actionResponse) {
public void generaDocumenti(ActionRequest request, ActionResponse response) {
List<String> esito = new ArrayList<>();
actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
response.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
}
public void sostituisciDL(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception {
AllegatiUtil.sostituisciDL(actionRequest, actionResponse);
public void sostituisciDL(ActionRequest request, ActionResponse response) throws Exception {
AllegatiUtil.sostituisciDL(request, response);
}
public void resetFirme(ActionRequest actionRequest, ActionResponse actionResponse) {
public void resetFirme(ActionRequest request, ActionResponse response) {
ThemeDisplay td = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
String numeroProgetto = ParamUtil.getString(actionRequest, "numeroProgetto");
ThemeDisplay td = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
String numeroProgetto = ParamUtil.getString(request, "numeroProgetto");
List<String> esito = new ArrayList<>();
try {
esito = SismicaUtil.resetFirme(td.getCompanyId(), numeroProgetto);
} catch (SystemException | PortalException e) {
esito.add("Errore durante l'invio " + e.getMessage());
}
actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
response.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
}
public void trasformaFLC(ActionRequest actionRequest, ActionResponse actionResponse) {
public void trasformaFLC(ActionRequest request, ActionResponse response) {
ThemeDisplay td = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
String numeroPratica = ParamUtil.getString(actionRequest, "numeroPratica");
String tipoDaRiaprire = ParamUtil.getString(actionRequest, "tipoDaRiaprire");
ThemeDisplay td = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
String numeroPratica = ParamUtil.getString(request, "numeroPratica");
String tipoDaRiaprire = ParamUtil.getString(request, "tipoDaRiaprire");
List<String> esito = new ArrayList<>();
try {
esito = SismicaUtil.trasformaFLC(td.getCompanyId(), numeroPratica, tipoDaRiaprire);
} catch (SystemException | PortalException e) {
esito.add("Errore durante la trasformazione della pratica " + e.getMessage());
}
actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
response.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
}
public void reIndexFasciolo(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException,
SystemException {
public void reIndexFasciolo(ActionRequest request, ActionResponse response) throws PortalException, SystemException {
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId");
long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
if (Validator.isNotNull(intPraticaId)) {
IntPraticaLocalServiceUtil.reIndexFasciolo(intPraticaId, themeDisplay.getCompanyId());
}
String numeroProgetto = ParamUtil.getString(actionRequest, "numeroProgetto");
String numeroProgetto = ParamUtil.getString(request, "numeroProgetto");
if (Validator.isNotNull(numeroProgetto)) {
IntPraticaLocalServiceUtil.reIndexFasciolo(numeroProgetto, themeDisplay.getCompanyId());
}
}
public void reIndexFascicoli(ActionRequest actionRequest, ActionResponse actionResponse) {
public void reIndexFascicoli(ActionRequest request, ActionResponse response) {
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
List<String> esito = null;
esito = SismicaUtil.reIndexFascicoli(themeDisplay.getCompanyId());
if (esito != null)
actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
if (esito != null) {
response.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
}
}
public void lanciaSorteggio(ActionRequest actionRequest, ActionResponse actionResponse) {
public void lanciaSorteggio(ActionRequest request, ActionResponse response) throws ParseException {
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
List<String> esito = null;
_log.info("Sorteggio lanciato manualmente");
try {
esito = SorteggioPraticaUtil.sorteggio(themeDisplay.getCompanyId(), new Date());
Date dtRange = null;
String dtRangeStr = ParamUtil.getString(request, "dtRange");
if (Validator.isNotNull(dtRangeStr)) {
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
dtRange = sdf.parse(dtRangeStr);
}
esito = SorteggioPraticaUtil.sorteggio(themeDisplay.getCompanyId(), new Date(), dtRange);
} catch (PortalException | SystemException e) {
_log.error("error", e);
}
if (esito != null)
actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
if (esito != null) {
response.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
}
}
public void manutenzioneDatabase(ActionRequest actionRequest, ActionResponse actionResponse)
throws PortalException, SystemException {
public void manutenzioneDatabase(ActionRequest request, ActionResponse response) throws PortalException,
SystemException {
String mode = ParamUtil.getString(actionRequest, "mode");
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
String mode = ParamUtil.getString(request, "mode");
ServiceContext serviceContext = ServiceContextFactory.getInstance(request);
List<String> esito = ManutenzioneDatabase.pulisci(serviceContext, mode);
actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
response.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
}
public void inviaAvviso(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException {
public void inviaAvviso(ActionRequest request, ActionResponse response) throws SystemException {
SismicaUtil.inviaAvviso(actionRequest, actionResponse);
SismicaUtil.inviaAvviso(request, response);
}
public void salvaDataProssimoSorteggio(ActionRequest actionRequest, ActionResponse actionResponse)
throws PortalException, SystemException {
public void salvaDataProssimoSorteggio(ActionRequest request, ActionResponse response) throws PortalException,
SystemException {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
ServiceContext serviceContext = ServiceContextFactory.getInstance(request);
serviceContext.setScopeGroupId(-1L);
serviceContext.setCompanyId(serviceContext.getCompanyId());
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
Date dataProssimoSorteggio = ParamUtil.getDate(actionRequest, "dataProssimoSorteggio", sdf);
Date dataProssimoSorteggio = ParamUtil.getDate(request, "dataProssimoSorteggio", sdf);
ConfigurazioneServiceUtil.storeConfig("conf.geniocivile.sorteggio.data.prossimo.sorteggio",
sdf.format(dataProssimoSorteggio), serviceContext);
}

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

@ -162,17 +162,13 @@ public class SchedulerInvioDocumento implements MessageListener {
for (int cursor = 0; cursor <= count; cursor += SIZE) {
List<Avviso> avvisi = AvvisoLocalServiceUtil.getAvvisiInvioSignal(cursor, cursor + SIZE);
for (Avviso avviso : avvisi) {
long controlloPraticaId = avviso.getControlloPraticaId();
if (controlloPraticaId != 0) {
try {
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil
.getControlloPratica(avviso.getControlloPraticaId());
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(avviso
.getControlloPraticaId());
invioSignal(avviso, controlloPratica);
} catch (Exception e) {
_log.info(e.getMessage() + StringPool.SPACE + avviso.getAvvisoId() + StringPool.SPACE
+ avviso.getControlloPraticaId());
_log.debug("Error", e);
}
}
}
}
@ -221,17 +217,13 @@ public class SchedulerInvioDocumento implements MessageListener {
for (int cursor = 0; cursor <= count; cursor += SIZE) {
List<Avviso> avvisi = AvvisoLocalServiceUtil.getAvvisiTempistica(cursor, cursor + SIZE);
for (Avviso avviso : avvisi) {
long controlloPraticaId = avviso.getControlloPraticaId();
if (controlloPraticaId > 0) {
try {
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil
.getControlloPratica(controlloPraticaId);
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(avviso
.getControlloPraticaId());
gestioneTempistica(avviso, controlloPratica);
} catch (Exception e) {
_log.debug(e.getMessage() + StringPool.SPACE + avviso.getAvvisoId() + StringPool.SPACE
_log.info(e.getMessage() + StringPool.SPACE + avviso.getAvvisoId() + StringPool.SPACE
+ avviso.getControlloPraticaId());
_log.debug("Error", e);
}
}
}
}
@ -466,11 +458,7 @@ public class SchedulerInvioDocumento implements MessageListener {
if (tipoDocumento.equals(StatoPraticaConstants.SOTTOPOSTA_A_PARERE)) {
long intPraticaId = controlloPratica.getIntPraticaId();
IntPratica intPratica = null;
try {
intPratica = IntPraticaLocalServiceUtil.getIntPratica(controlloPratica.getIntPraticaId());
} catch (PortalException e) {
_log.error(e, e);
}
intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(controlloPratica.getIntPraticaId());
// FIX prendo la data di vidimazione e non quella di sottoposto a parere per avvio dei tempi
Avviso avvisoExtra = null;
if (Validator.isNotNull(intPratica.getDtSorteggio())) {
@ -478,9 +466,11 @@ public class SchedulerInvioDocumento implements MessageListener {
} else {
List<Avviso> documentiVid = AvvisoLocalServiceUtil.findByIntPraticaId_tipoDocumento(intPraticaId,
StatoPraticaConstants.VIDIMATA);
if (documentiVid.size() > 0) {
avvisoExtra = documentiVid.get(0);
dtInvio = avvisoExtra.getDtInvio();
}
}
// fino qui
Date now = new Date();
// FIX come sopra

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());
PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(user);
PermissionThreadLocal.setPermissionChecker(permissionChecker);
if (!fineLavori.isParziale() && fineLavori.isRichiestaAttestazione()) {
creaAvvisoVidimazione(fineLavori.getCompanyId(), fineLavori.getGroupId(),
fineLavori.getUserId(), fineLavori.getIntPraticaId(),
fineLavori.getFineLavoriId(), FineLavori.class.getName());
}
fineLavori.setGestita(true);
FineLavoriLocalServiceUtil.updateFineLavori(fineLavori);
} catch (Exception e) {

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

@ -1,81 +0,0 @@
package it.tref.liferay.portos.bo.scheduler;
import it.tref.liferay.portos.bo.model.Pagamento;
import it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.PagamentoConstants;
import it.tref.liferay.portos.bo.util.PagamentiCommonUtil;
import it.tref.liferay.portos.bo.util.PagamentiUtil;
import java.io.IOException;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.messaging.Message;
import com.liferay.portal.kernel.messaging.MessageListener;
import com.liferay.portal.kernel.messaging.MessageListenerException;
import com.liferay.portal.model.Company;
import com.liferay.portal.service.CompanyLocalServiceUtil;
public class VerificaPagamentiScheduler implements MessageListener {
private static final Log _log = LogFactoryUtil.getLog(VerificaPagamentiScheduler.class);
private static final Lock lock = new ReentrantLock();
private final int SIZE = 10;
// parametro per recupero dei pagamenti IRIS avviati dopo XX minuti
private final int DELAY_IN_MINUTE = 5;
@Override
public void receive(Message message) throws MessageListenerException {
if (lock.tryLock()) {
try {
for (Company company : CompanyLocalServiceUtil.getCompanies()) {
boolean irisDisabled = !PagamentiCommonUtil.irisIsEnable(company.getCompanyId());
if (!irisDisabled) {
Calendar calendar = Calendar.getInstance();
calendar.add(Calendar.MINUTE, -DELAY_IN_MINUTE);
calendar.set(Calendar.SECOND, 0);
calendar.set(Calendar.MILLISECOND, 0);
Date date = calendar.getTime();
int count = PagamentoLocalServiceUtil.countByMezzo_Utilizzata_CreateDate(
PagamentoConstants.MEZZO_IRIS, PagamentoConstants.UTILIZZATA_IN_CORSO, date);
if (count > 0) {
for (int cursor = 0; cursor <= count; cursor += SIZE) {
List<Pagamento> pagamenti = PagamentoLocalServiceUtil
.findByMezzo_Utilizzata_CreateDate(PagamentoConstants.MEZZO_IRIS,
PagamentoConstants.UTILIZZATA_IN_CORSO, date, cursor, cursor
+ SIZE);
for (Pagamento pagamento : pagamenti) {
process(pagamento);
}
}
}
}
}
} catch (SystemException e) {
_log.error("Errore", e);
} finally {
lock.unlock();
}
}
}
private void process(Pagamento pagamento) {
try {
PagamentiUtil.verificaPagamentoIRIS(pagamento);
} catch (IOException | PortalException | SystemException e) {
_log.error("Errore", e);
}
}
}

11
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[] {
"long", "long", "long", "boolean", "boolean", "java.util.Date",
"java.lang.String", "boolean", "boolean", "java.lang.String"
"java.lang.String", "boolean", "boolean", "boolean",
"java.lang.String", "boolean"
};
_methodName187 = "getLastEditable";
@ -165,6 +166,7 @@ public class FineLavoriLocalServiceClpInvoker {
_methodParameterTypes189 = new String[] {
"long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
};
@ -457,7 +459,9 @@ public class FineLavoriLocalServiceClpInvoker {
(java.util.Date)arguments[5], (java.lang.String)arguments[6],
((Boolean)arguments[7]).booleanValue(),
((Boolean)arguments[8]).booleanValue(),
(java.lang.String)arguments[9]);
((Boolean)arguments[9]).booleanValue(),
(java.lang.String)arguments[10],
((Boolean)arguments[11]).booleanValue());
}
if (_methodName187.equals(name) &&
@ -474,7 +478,8 @@ public class FineLavoriLocalServiceClpInvoker {
Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) {
return FineLavoriLocalServiceUtil.pagaInvia(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (java.lang.String)arguments[2],
(com.liferay.portal.service.ServiceContext)arguments[3]);
(java.lang.String)arguments[3], (java.lang.String)arguments[4],
(com.liferay.portal.service.ServiceContext)arguments[5]);
}
if (_methodName190.equals(name) &&

11
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[] {
"long", "long", "long", "boolean", "boolean", "java.util.Date",
"java.lang.String", "boolean", "boolean", "java.lang.String"
"java.lang.String", "boolean", "boolean", "boolean",
"java.lang.String", "boolean"
};
_methodName168 = "getLastEditable";
@ -88,6 +89,7 @@ public class FineLavoriServiceClpInvoker {
_methodParameterTypes172 = new String[] {
"long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
};
@ -168,7 +170,9 @@ public class FineLavoriServiceClpInvoker {
(java.util.Date)arguments[5], (java.lang.String)arguments[6],
((Boolean)arguments[7]).booleanValue(),
((Boolean)arguments[8]).booleanValue(),
(java.lang.String)arguments[9]);
((Boolean)arguments[9]).booleanValue(),
(java.lang.String)arguments[10],
((Boolean)arguments[11]).booleanValue());
}
if (_methodName168.equals(name) &&
@ -200,7 +204,8 @@ public class FineLavoriServiceClpInvoker {
Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) {
return FineLavoriServiceUtil.pagaInvia(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (java.lang.String)arguments[2],
(com.liferay.portal.service.ServiceContext)arguments[3]);
(java.lang.String)arguments[3], (java.lang.String)arguments[4],
(com.liferay.portal.service.ServiceContext)arguments[5]);
}
if (_methodName173.equals(name) &&

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

@ -186,155 +186,144 @@ public class PagamentoLocalServiceClpInvoker {
_methodParameterTypes194 = new String[] { "long", "java.lang.String" };
_methodName195 = "annullaPagamento";
_methodName195 = "findByCommittente_Mezzo";
_methodParameterTypes195 = new String[] { "long" };
_methodName196 = "findByCommittente_Mezzo";
_methodParameterTypes196 = new String[] {
_methodParameterTypes195 = new String[] {
"java.lang.String", "java.lang.String", "int", "int"
};
_methodName197 = "countByCommittente_Mezzo";
_methodName196 = "countByCommittente_Mezzo";
_methodParameterTypes197 = new String[] {
_methodParameterTypes196 = new String[] {
"java.lang.String", "java.lang.String"
};
_methodName198 = "findByCommittente_Mezzo_Utilizzata";
_methodName197 = "findByCommittente_Mezzo_Utilizzata";
_methodParameterTypes198 = new String[] {
_methodParameterTypes197 = new String[] {
"java.lang.String", "java.lang.String", "java.lang.String",
"int", "int"
};
_methodName199 = "countByCommittente_Mezzo_Utilizzata";
_methodName198 = "countByCommittente_Mezzo_Utilizzata";
_methodParameterTypes199 = new String[] {
_methodParameterTypes198 = new String[] {
"java.lang.String", "java.lang.String", "java.lang.String"
};
_methodName200 = "findByMezzo_Utilizzata";
_methodName199 = "findByMezzo_Utilizzata";
_methodParameterTypes200 = new String[] {
_methodParameterTypes199 = new String[] {
"java.lang.String", "java.lang.String", "int", "int"
};
_methodName201 = "findByOldPagamentoId";
_methodName200 = "findByOldPagamentoId";
_methodParameterTypes201 = new String[] { "long" };
_methodParameterTypes200 = new String[] { "long" };
_methodName202 = "countByMezzo_Utilizzata";
_methodName201 = "countByMezzo_Utilizzata";
_methodParameterTypes202 = new String[] {
_methodParameterTypes201 = new String[] {
"java.lang.String", "java.lang.String"
};
_methodName203 = "findByMezzo_Utilizzata_CreateDate";
_methodName202 = "findByMezzo_Utilizzata_CreateDate";
_methodParameterTypes203 = new String[] {
_methodParameterTypes202 = new String[] {
"java.lang.String", "java.lang.String", "java.util.Date", "int",
"int"
};
_methodName204 = "countByMezzo_Utilizzata_EmailPending_CreateDate";
_methodName203 = "countByMezzo_Utilizzata_EmailPending_CreateDate";
_methodParameterTypes204 = new String[] {
_methodParameterTypes203 = new String[] {
"java.lang.String", "java.lang.String", "boolean",
"java.util.Date"
};
_methodName205 = "findByMezzo_Utilizzata_EmailPending_CreateDate";
_methodName204 = "findByMezzo_Utilizzata_EmailPending_CreateDate";
_methodParameterTypes205 = new String[] {
_methodParameterTypes204 = new String[] {
"java.lang.String", "java.lang.String", "boolean",
"java.util.Date", "int", "int"
};
_methodName206 = "findInPending";
_methodName205 = "findInPending";
_methodParameterTypes206 = new String[] {
_methodParameterTypes205 = new String[] {
"java.util.Date", "int", "int",
"com.liferay.portal.kernel.util.OrderByComparator"
};
_methodName207 = "countInPending";
_methodName206 = "countInPending";
_methodParameterTypes207 = new String[] { "java.util.Date" };
_methodParameterTypes206 = new String[] { "java.util.Date" };
_methodName209 = "countByMezzo_Utilizzata_CreateDate";
_methodName208 = "countByMezzo_Utilizzata_CreateDate";
_methodParameterTypes209 = new String[] {
_methodParameterTypes208 = new String[] {
"java.lang.String", "java.lang.String", "java.util.Date"
};
_methodName210 = "deletePagamento";
_methodName209 = "deletePagamento";
_methodParameterTypes210 = new String[] { "long" };
_methodParameterTypes209 = new String[] { "long" };
_methodName211 = "deletePagamento";
_methodName210 = "deletePagamento";
_methodParameterTypes211 = new String[] {
_methodParameterTypes210 = new String[] {
"it.tref.liferay.portos.bo.model.Pagamento"
};
_methodName212 = "updateEmailPendingPagamento";
_methodName211 = "updateEmailPendingPagamento";
_methodParameterTypes211 = new String[] { "long", "boolean" };
_methodParameterTypes212 = new String[] { "long", "boolean" };
_methodName214 = "countByClassPk";
_methodName215 = "countByClassPk";
_methodParameterTypes214 = new String[] { "long" };
_methodName215 = "findByClassPk";
_methodParameterTypes215 = new String[] { "long" };
_methodName216 = "findByClassPk";
_methodName216 = "findByIntPratica";
_methodParameterTypes216 = new String[] { "long" };
_methodName217 = "findByIntPratica";
_methodName217 = "countByIntPratica";
_methodParameterTypes217 = new String[] { "long" };
_methodName218 = "countByIntPratica";
_methodName218 = "findByIntPratica_Visible";
_methodParameterTypes218 = new String[] { "long" };
_methodName219 = "findByIntPratica_Visible";
_methodName219 = "countByIntPratica_Visible";
_methodParameterTypes219 = new String[] { "long" };
_methodName220 = "countByIntPratica_Visible";
_methodParameterTypes220 = new String[] { "long" };
_methodName221 = "updatePagamentoManuale";
_methodName222 = "sostituisciPagamento";
_methodParameterTypes222 = new String[] {
"long", "java.lang.String", "java.lang.String",
"java.lang.String", "com.liferay.portal.service.ServiceContext"
};
_methodName223 = "updatePagamentoManuale";
_methodParameterTypes223 = new String[] {
_methodParameterTypes221 = new String[] {
"long", "byte[][]", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
};
_methodName224 = "updatePagamentoManualeFromImport";
_methodName222 = "updatePagamentoManualeFromImport";
_methodParameterTypes224 = new String[] {
_methodParameterTypes222 = new String[] {
"long", "byte[][]", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
};
_methodName225 = "fetchByOldPagamentoId";
_methodName223 = "fetchByOldPagamentoId";
_methodParameterTypes225 = new String[] { "long" };
_methodParameterTypes223 = new String[] { "long" };
_methodName226 = "updateOtf";
_methodName224 = "updateOtf";
_methodParameterTypes226 = new String[] { "long", "boolean" };
_methodParameterTypes224 = new String[] { "long", "boolean" };
}
public Object invokeMethod(String name, String[] parameterTypes,
@ -539,74 +528,69 @@ public class PagamentoLocalServiceClpInvoker {
if (_methodName195.equals(name) &&
Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) {
return PagamentoLocalServiceUtil.annullaPagamento(((Long)arguments[0]).longValue());
}
if (_methodName196.equals(name) &&
Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) {
return PagamentoLocalServiceUtil.findByCommittente_Mezzo((java.lang.String)arguments[0],
(java.lang.String)arguments[1],
((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue());
}
if (_methodName197.equals(name) &&
Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) {
if (_methodName196.equals(name) &&
Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) {
return PagamentoLocalServiceUtil.countByCommittente_Mezzo((java.lang.String)arguments[0],
(java.lang.String)arguments[1]);
}
if (_methodName198.equals(name) &&
Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) {
if (_methodName197.equals(name) &&
Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) {
return PagamentoLocalServiceUtil.findByCommittente_Mezzo_Utilizzata((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.lang.String)arguments[2],
((Integer)arguments[3]).intValue(),
((Integer)arguments[4]).intValue());
}
if (_methodName199.equals(name) &&
Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) {
if (_methodName198.equals(name) &&
Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) {
return PagamentoLocalServiceUtil.countByCommittente_Mezzo_Utilizzata((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.lang.String)arguments[2]);
}
if (_methodName200.equals(name) &&
Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) {
if (_methodName199.equals(name) &&
Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) {
return PagamentoLocalServiceUtil.findByMezzo_Utilizzata((java.lang.String)arguments[0],
(java.lang.String)arguments[1],
((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue());
}
if (_methodName201.equals(name) &&
Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) {
if (_methodName200.equals(name) &&
Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) {
return PagamentoLocalServiceUtil.findByOldPagamentoId(((Long)arguments[0]).longValue());
}
if (_methodName202.equals(name) &&
Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) {
if (_methodName201.equals(name) &&
Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) {
return PagamentoLocalServiceUtil.countByMezzo_Utilizzata((java.lang.String)arguments[0],
(java.lang.String)arguments[1]);
}
if (_methodName203.equals(name) &&
Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) {
if (_methodName202.equals(name) &&
Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) {
return PagamentoLocalServiceUtil.findByMezzo_Utilizzata_CreateDate((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.util.Date)arguments[2],
((Integer)arguments[3]).intValue(),
((Integer)arguments[4]).intValue());
}
if (_methodName204.equals(name) &&
Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) {
if (_methodName203.equals(name) &&
Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) {
return PagamentoLocalServiceUtil.countByMezzo_Utilizzata_EmailPending_CreateDate((java.lang.String)arguments[0],
(java.lang.String)arguments[1],
((Boolean)arguments[2]).booleanValue(),
(java.util.Date)arguments[3]);
}
if (_methodName205.equals(name) &&
Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) {
if (_methodName204.equals(name) &&
Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) {
return PagamentoLocalServiceUtil.findByMezzo_Utilizzata_EmailPending_CreateDate((java.lang.String)arguments[0],
(java.lang.String)arguments[1],
((Boolean)arguments[2]).booleanValue(),
@ -615,83 +599,73 @@ public class PagamentoLocalServiceClpInvoker {
((Integer)arguments[5]).intValue());
}
if (_methodName206.equals(name) &&
Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) {
if (_methodName205.equals(name) &&
Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) {
return PagamentoLocalServiceUtil.findInPending((java.util.Date)arguments[0],
((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue(),
(com.liferay.portal.kernel.util.OrderByComparator)arguments[3]);
}
if (_methodName207.equals(name) &&
Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) {
if (_methodName206.equals(name) &&
Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) {
return PagamentoLocalServiceUtil.countInPending((java.util.Date)arguments[0]);
}
if (_methodName209.equals(name) &&
Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) {
if (_methodName208.equals(name) &&
Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) {
return PagamentoLocalServiceUtil.countByMezzo_Utilizzata_CreateDate((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.util.Date)arguments[2]);
}
if (_methodName210.equals(name) &&
Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) {
if (_methodName209.equals(name) &&
Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) {
return PagamentoLocalServiceUtil.deletePagamento(((Long)arguments[0]).longValue());
}
if (_methodName211.equals(name) &&
Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) {
if (_methodName210.equals(name) &&
Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) {
return PagamentoLocalServiceUtil.deletePagamento((it.tref.liferay.portos.bo.model.Pagamento)arguments[0]);
}
if (_methodName212.equals(name) &&
Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) {
if (_methodName211.equals(name) &&
Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) {
return PagamentoLocalServiceUtil.updateEmailPendingPagamento(((Long)arguments[0]).longValue(),
((Boolean)arguments[1]).booleanValue());
}
if (_methodName214.equals(name) &&
Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) {
return PagamentoLocalServiceUtil.countByClassPk(((Long)arguments[0]).longValue());
}
if (_methodName215.equals(name) &&
Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) {
return PagamentoLocalServiceUtil.countByClassPk(((Long)arguments[0]).longValue());
return PagamentoLocalServiceUtil.findByClassPk(((Long)arguments[0]).longValue());
}
if (_methodName216.equals(name) &&
Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) {
return PagamentoLocalServiceUtil.findByClassPk(((Long)arguments[0]).longValue());
return PagamentoLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue());
}
if (_methodName217.equals(name) &&
Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) {
return PagamentoLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue());
return PagamentoLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue());
}
if (_methodName218.equals(name) &&
Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) {
return PagamentoLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue());
return PagamentoLocalServiceUtil.findByIntPratica_Visible(((Long)arguments[0]).longValue());
}
if (_methodName219.equals(name) &&
Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) {
return PagamentoLocalServiceUtil.findByIntPratica_Visible(((Long)arguments[0]).longValue());
}
if (_methodName220.equals(name) &&
Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) {
return PagamentoLocalServiceUtil.countByIntPratica_Visible(((Long)arguments[0]).longValue());
}
if (_methodName222.equals(name) &&
Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) {
PagamentoLocalServiceUtil.sostituisciPagamento(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (java.lang.String)arguments[2],
(java.lang.String)arguments[3],
(com.liferay.portal.service.ServiceContext)arguments[4]);
return null;
}
if (_methodName223.equals(name) &&
Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) {
if (_methodName221.equals(name) &&
Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) {
PagamentoLocalServiceUtil.updatePagamentoManuale(((Long)arguments[0]).longValue(),
(byte[])arguments[1], (java.lang.String)arguments[2],
(com.liferay.portal.service.ServiceContext)arguments[3]);
@ -699,8 +673,8 @@ public class PagamentoLocalServiceClpInvoker {
return null;
}
if (_methodName224.equals(name) &&
Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) {
if (_methodName222.equals(name) &&
Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) {
PagamentoLocalServiceUtil.updatePagamentoManualeFromImport(((Long)arguments[0]).longValue(),
(byte[])arguments[1], (java.lang.String)arguments[2],
(com.liferay.portal.service.ServiceContext)arguments[3]);
@ -708,13 +682,13 @@ public class PagamentoLocalServiceClpInvoker {
return null;
}
if (_methodName225.equals(name) &&
Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) {
if (_methodName223.equals(name) &&
Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) {
return PagamentoLocalServiceUtil.fetchByOldPagamentoId(((Long)arguments[0]).longValue());
}
if (_methodName226.equals(name) &&
Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) {
if (_methodName224.equals(name) &&
Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) {
return PagamentoLocalServiceUtil.updateOtf(((Long)arguments[0]).longValue(),
((Boolean)arguments[1]).booleanValue());
}
@ -806,16 +780,16 @@ public class PagamentoLocalServiceClpInvoker {
private String[] _methodParameterTypes205;
private String _methodName206;
private String[] _methodParameterTypes206;
private String _methodName207;
private String[] _methodParameterTypes207;
private String _methodName208;
private String[] _methodParameterTypes208;
private String _methodName209;
private String[] _methodParameterTypes209;
private String _methodName210;
private String[] _methodParameterTypes210;
private String _methodName211;
private String[] _methodParameterTypes211;
private String _methodName212;
private String[] _methodParameterTypes212;
private String _methodName214;
private String[] _methodParameterTypes214;
private String _methodName215;
private String[] _methodParameterTypes215;
private String _methodName216;
@ -826,16 +800,12 @@ public class PagamentoLocalServiceClpInvoker {
private String[] _methodParameterTypes218;
private String _methodName219;
private String[] _methodParameterTypes219;
private String _methodName220;
private String[] _methodParameterTypes220;
private String _methodName221;
private String[] _methodParameterTypes221;
private String _methodName222;
private String[] _methodParameterTypes222;
private String _methodName223;
private String[] _methodParameterTypes223;
private String _methodName224;
private String[] _methodParameterTypes224;
private String _methodName225;
private String[] _methodParameterTypes225;
private String _methodName226;
private String[] _methodParameterTypes226;
}

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

@ -32,29 +32,9 @@ public class PagamentoServiceClpInvoker {
_methodParameterTypes161 = new String[] { "java.lang.String" };
_methodName166 = "sostituisciPagamento";
_methodName166 = "updatePagamentoManuale";
_methodParameterTypes166 = new String[] {
"long", "java.lang.String", "java.lang.String",
"java.lang.String", "com.liferay.portal.service.ServiceContext"
};
_methodName167 = "rigeneraPagamento";
_methodParameterTypes167 = new String[] {
"long", "java.lang.String", "java.lang.String",
"java.lang.String", "com.liferay.portal.service.ServiceContext"
};
_methodName168 = "annullaPagamento";
_methodParameterTypes168 = new String[] {
"long", "com.liferay.portal.service.ServiceContext"
};
_methodName169 = "updatePagamentoManuale";
_methodParameterTypes169 = new String[] {
"long", "byte[][]", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
};
@ -76,34 +56,6 @@ public class PagamentoServiceClpInvoker {
if (_methodName166.equals(name) &&
Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) {
PagamentoServiceUtil.sostituisciPagamento(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (java.lang.String)arguments[2],
(java.lang.String)arguments[3],
(com.liferay.portal.service.ServiceContext)arguments[4]);
return null;
}
if (_methodName167.equals(name) &&
Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) {
PagamentoServiceUtil.rigeneraPagamento(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (java.lang.String)arguments[2],
(java.lang.String)arguments[3],
(com.liferay.portal.service.ServiceContext)arguments[4]);
return null;
}
if (_methodName168.equals(name) &&
Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) {
PagamentoServiceUtil.annullaPagamento(((Long)arguments[0]).longValue(),
(com.liferay.portal.service.ServiceContext)arguments[1]);
return null;
}
if (_methodName169.equals(name) &&
Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) {
PagamentoServiceUtil.updatePagamentoManuale(((Long)arguments[0]).longValue(),
(byte[])arguments[1], (java.lang.String)arguments[2],
(com.liferay.portal.service.ServiceContext)arguments[3]);
@ -120,10 +72,4 @@ public class PagamentoServiceClpInvoker {
private String[] _methodParameterTypes161;
private String _methodName166;
private String[] _methodParameterTypes166;
private String _methodName167;
private String[] _methodParameterTypes167;
private String _methodName168;
private String[] _methodParameterTypes168;
private String _methodName169;
private String[] _methodParameterTypes169;
}

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";
_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,
@ -1440,6 +1456,26 @@ public class SoggettoLocalServiceClpInvoker {
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();
}
@ -1645,4 +1681,12 @@ public class SoggettoLocalServiceClpInvoker {
private String[] _methodParameterTypes272;
private String _methodName273;
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;
}

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

@ -143,14 +143,15 @@ public class FineLavoriServiceSoap {
long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori)
throws RemoteException {
boolean normEsenteSpese, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori,
boolean richiestaAttestazione) throws RemoteException {
try {
it.tref.liferay.portos.bo.model.FineLavori returnValue = FineLavoriServiceUtil.updateFineLavori(userId,
fineLavoriId, intPraticaId, parziale, completata,
dataFineLavori, codiceFiscaleDelegato, normEsenteBollo,
normEsenteCollaudo, comunicazioneDirettoreLavori);
normEsenteSpese, normEsenteCollaudo,
comunicazioneDirettoreLavori, richiestaAttestazione);
return it.tref.liferay.portos.bo.model.FineLavoriSoap.toSoapModel(returnValue);
}
@ -224,12 +225,14 @@ public class FineLavoriServiceSoap {
public static it.tref.liferay.portos.bo.model.FineLavoriSoap pagaInvia(
long fineLavoriId, java.lang.String codiceFiscaleCommittente,
java.lang.String importoBolli, java.lang.String importoSpese,
java.lang.String currentURL,
com.liferay.portal.service.ServiceContext serviceContext)
throws RemoteException {
try {
it.tref.liferay.portos.bo.model.FineLavori returnValue = FineLavoriServiceUtil.pagaInvia(fineLavoriId,
codiceFiscaleCommittente, currentURL, serviceContext);
codiceFiscaleCommittente, importoBolli, importoSpese,
currentURL, serviceContext);
return it.tref.liferay.portos.bo.model.FineLavoriSoap.toSoapModel(returnValue);
}

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

@ -62,51 +62,6 @@ import java.rmi.RemoteException;
* @generated
*/
public class PagamentoServiceSoap {
public static void sostituisciPagamento(long pagamentoId,
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
java.lang.String url,
com.liferay.portal.service.ServiceContext serviceContext)
throws RemoteException {
try {
PagamentoServiceUtil.sostituisciPagamento(pagamentoId,
codiceFiscaleCommittente, mezzo, url, serviceContext);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static void rigeneraPagamento(long pagamentoId,
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
java.lang.String url,
com.liferay.portal.service.ServiceContext serviceContext)
throws RemoteException {
try {
PagamentoServiceUtil.rigeneraPagamento(pagamentoId,
codiceFiscaleCommittente, mezzo, url, serviceContext);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static void annullaPagamento(long pagamentoId,
com.liferay.portal.service.ServiceContext serviceContext)
throws RemoteException {
try {
PagamentoServiceUtil.annullaPagamento(pagamentoId, serviceContext);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static void updatePagamentoManuale(long pagamentoId, byte[] content,
java.lang.String sourceFileName,
com.liferay.portal.service.ServiceContext serviceContext)

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

@ -146,14 +146,12 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
if (className.equals(DettPratica.class.getName())) {
DettPratica dettPratica = dettPraticaLocalService.getDettPratica(classPk);
varianteNonSostanziale = dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)
&& !dettPratica.getVarianteSostanziale();
&& !dettPratica.getVarianteSostanziale() && !stato.equalsIgnoreCase(StatoPraticaConstants.INTEGRAZIONE);
}
String statoPraticaCode = varianteNonSostanziale ? "DPVNS" : PraticaUtil.getStatoPraticaCode(stato, intPratica);
String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(statoPraticaCode);
long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(),
propertiesTemplate);
_log.info("debugAvviso: " + propertiesTemplate + " (" + statoPraticaCode + ")"
+ (varianteNonSostanziale ? " non sostanziale" : StringPool.BLANK));
return addAvviso(intPraticaId, StringPool.BLANK, new Date(), tipoAvviso, stato, fileEntryIdTemplate, classPk,
className, userCodiceFiscalePrimaFirma, jsonParameters, controlloPraticaId, serviceContext);
}
@ -603,6 +601,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
dynamicQuery.add(PropertyFactoryUtil.forName("dtInvioSignal").isNull());
dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false));
dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false));
dynamicQuery.add(PropertyFactoryUtil.forName("controlloPraticaId").ne(0L));
Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
disjunction.add(PropertyFactoryUtil.forName("inviato").eq(AvvisoUtil.DOCUMENTO_INVIATO));
disjunction.add(PropertyFactoryUtil.forName("rifiutato").eq(true));
@ -647,6 +646,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
dynamicQuery.add(PropertyFactoryUtil.forName("dtTempistica").isNull());
dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false));
dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false));
dynamicQuery.add(PropertyFactoryUtil.forName("controlloPraticaId").ne(0L));
if (Validator.isNotNull(avvisoId)) {
dynamicQuery.add(PropertyFactoryUtil.forName("avvisoId").eq(avvisoId));
}
@ -1106,9 +1106,12 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return avviso;
}
@Override
public Avviso simulaFirma(long avvisoId, ServiceContext serviceContext) throws Exception {
if (configurazioneLocalService.isDeveloper(serviceContext.getUserId())) {
if (configurazioneLocalService.isProduction()) {
throw new PortalException("Firma simulata non permessa");
} else {
Avviso avviso = fetchAvviso(avvisoId);
avviso.setFileEntryIdInvio(avviso.getFileEntryIdBase());
avviso = updateAvviso(avviso);
@ -1117,8 +1120,6 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
avviso = updateAvvisoProtocollo(avviso.getAvvisoId(), protocollo);
}
return avviso;
} else {
throw new PortalException("Firma simulata non permessa");
}
}

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

@ -194,10 +194,6 @@ public class CollaudoLocalServiceImpl extends CollaudoLocalServiceBaseImpl {
inviaMailnotifica(collaudoId, intPratica.getStatusByUserId(), now);
}
pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, stato);
} else if (stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE)
|| stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA)
|| stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO)) {
pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, stato);
}
}

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
public void aggiornaStatoPerRichiestaIntegrazione(long controlloPraticaId, Map<String, Serializable> workflowContext)
public void
aggiornaStatoPerRichiestaIntegrazione(long controlloPraticaId, Map<String, Serializable> workflowContext)
throws PortalException, SystemException {
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/DettPraticaLocalServiceImpl.java

@ -1152,11 +1152,6 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
}
pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, stato);
delegaLocalService.concludiDeleghePagamento(dettPraticaId);
} else if (stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE)
|| stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA)
|| stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO)) {
pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, stato);
}
}

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

@ -16,14 +16,11 @@ import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.model.Pagamento;
import it.tref.liferay.portos.bo.service.base.FineLavoriLocalServiceBaseImpl;
import it.tref.liferay.portos.bo.shared.util.PagamentoConstants;
import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil;
import it.tref.liferay.portos.bo.util.AzioniPraticheUtil;
import it.tref.liferay.portos.bo.util.MailUtil;
import it.tref.liferay.portos.bo.util.PagamentiCommonUtil;
import it.tref.liferay.portos.bo.util.PagamentiUtil;
import it.tref.liferay.portos.bo.util.WorkflowUtil;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
@ -38,6 +35,8 @@ import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.language.LanguageUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.search.Indexable;
import com.liferay.portal.kernel.search.IndexableType;
import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil;
@ -68,6 +67,8 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
* it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil} to access the fine lavori local service.
*/
private static final Log _log = LogFactoryUtil.getLog(FineLavoriLocalServiceImpl.class);
private FineLavori initFineLavori(ServiceContext serviceContext) throws PortalException, SystemException {
User user = userLocalService.getUser(serviceContext.getUserId());
@ -132,8 +133,8 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
@Indexable(type = IndexableType.REINDEX)
public FineLavori updateFineLavori(long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, Date dataFineLavori, String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo, String comunicazioneDirettoreLavori) throws NoSuchFineLavoriException,
SystemException {
boolean normEsenteSpese, boolean normEsenteCollaudo, String comunicazioneDirettoreLavori,
boolean richiestaAttestazione) throws NoSuchFineLavoriException, SystemException {
FineLavori fineLavori = fineLavoriPersistence.findByPrimaryKey(fineLavoriId);
fineLavori.setParziale(parziale);
@ -141,8 +142,10 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
fineLavori.setDataFineLavori(dataFineLavori);
fineLavori.setCodiceFiscaleDelegato(codiceFiscaleDelegato);
fineLavori.setNormEsenteBollo(normEsenteBollo);
fineLavori.setNormEsenteSpese(normEsenteSpese);
fineLavori.setNormEsenteCollaudo(normEsenteCollaudo);
fineLavori.setComunicazioneDirettoreLavori(comunicazioneDirettoreLavori);
fineLavori.setRichiestaAttestazione(richiestaAttestazione);
fineLavori = fineLavoriPersistence.update(fineLavori);
return fineLavori;
}
@ -172,16 +175,18 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
}
@Override
public FineLavori pagaInvia(long fineLavoriId, String codiceFiscaleCommittente, String currentURL,
ServiceContext serviceContext) throws SystemException, PortalException {
public FineLavori pagaInvia(long fineLavoriId, String codiceFiscaleCommittente, String importoBolli,
String importoSpese, String currentURL, ServiceContext serviceContext) throws SystemException,
PortalException {
FineLavori fineLavori = fineLavoriPersistence.findByPrimaryKey(fineLavoriId);
BigDecimal importoBolli = PagamentiCommonUtil.getImportoBolli(fineLavori.getCompanyId(),
fineLavori.getFineLavoriId(), FineLavori.class.getName(), TipoIntegrazioneUtil.FINE_LAVORI);
fineLavori.setImportoBolli(importoBolli.toString());
fineLavori.setImportoBolli(importoBolli);
fineLavori.setImportoSpese(importoSpese);
fineLavori = updateFineLavori(fineLavori);
PagamentiUtil.nuovoPagamento(currentURL, fineLavori.getFineLavoriId(), FineLavori.class.getName(),
PagamentoConstants.PAGAMENTO_BOLLI, importoBolli.toString(), codiceFiscaleCommittente, serviceContext);
PagamentiUtil.nuovoPagamento(currentURL, fineLavoriId, FineLavori.class.getName(),
PagamentoConstants.PAGAMENTO_BOLLI, importoBolli, codiceFiscaleCommittente, serviceContext);
PagamentiUtil.nuovoPagamento(currentURL, fineLavoriId, FineLavori.class.getName(),
PagamentoConstants.PAGAMENTO_ONERI, importoSpese, codiceFiscaleCommittente, serviceContext);
return fineLavori;
}
@ -213,10 +218,6 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
this.inviaMailnotifica(fineLavoriId, intPratica.getStatusByUserId(), now);
}
pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, stato);
} else if (stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE)
|| stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA)
|| stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO)) {
pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, stato);
}
}

15
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
public FineLavori updateFineLavori(long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, Date dataFineLavori, String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteCollaudo, String comunicazioneDirettoreLavori) throws PortalException, SystemException {
boolean normEsenteSpese, boolean normEsenteCollaudo, String comunicazioneDirettoreLavori,
boolean richiestaAttestazione) throws PortalException, SystemException {
FineLavori fineLavori = getFineLavori(fineLavoriId);
if (fineLavori.getUserId() == userId) {
fineLavori = fineLavoriLocalService.updateFineLavori(userId, fineLavoriId, intPraticaId, parziale,
completata, dataFineLavori, codiceFiscaleDelegato, normEsenteBollo, normEsenteCollaudo,
comunicazioneDirettoreLavori);
completata, dataFineLavori, codiceFiscaleDelegato, normEsenteBollo, normEsenteSpese,
normEsenteCollaudo, comunicazioneDirettoreLavori, richiestaAttestazione);
}
return fineLavori;
}
@ -111,10 +112,12 @@ public class FineLavoriServiceImpl extends FineLavoriServiceBaseImpl {
}
@Override
public FineLavori pagaInvia(long fineLavoriId, String codiceFiscaleCommittente, String currentURL,
ServiceContext serviceContext) throws SystemException, PortalException {
public FineLavori pagaInvia(long fineLavoriId, String codiceFiscaleCommittente, String importoBolli,
String importoSpese, String currentURL, ServiceContext serviceContext) throws SystemException,
PortalException {
return fineLavoriLocalService.pagaInvia(fineLavoriId, codiceFiscaleCommittente, currentURL, serviceContext);
return fineLavoriLocalService.pagaInvia(fineLavoriId, codiceFiscaleCommittente, importoBolli, importoSpese,
currentURL, serviceContext);
}
@Override

7
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 {
lista = intPraticaPersistence.findWithDynamicQuery(dq);
} 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>();
for (IntPratica pratica : lista) {
@ -500,7 +500,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
User newUser = userLocalService.getUser(soggettoId);
// sostituisci int pratica
intPratica.setUserId(soggettoId);
intPratica.setUserName(newUser.getFullName());
intPratica.setUserName(newUser.getScreenName());
DettPratica dettPratica = dettPraticaLocalService.getLastCompletedByIntPratica(intPraticaId);
dettPratica.setCodiceFiscaleDelegatoCommittente(newUser.getScreenName());
dettPraticaLocalService.updateDettPratica(dettPratica);
@ -948,7 +948,6 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
}
String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(
StatoPraticaConstants.ANNULLA_ISTANZA);
_log.info("debugAvviso: " + propertiesTemplate);
long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(),
propertiesTemplate);
avvisoLocalService.addAvviso(intPraticaId, StringPool.BLANK, new Date(), AvvisoUtil.TIPO_AVVISO_DIRETTO,
@ -974,7 +973,6 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
serviceContext.setCompanyId(controlloPratica.getCompanyId());
String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(
StatoPraticaConstants.CAMBIO_ISTRUTTORE);
_log.info("debugAvviso: " + propertiesTemplate);
long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(),
propertiesTemplate);
avvisoLocalService.addAvviso(intPraticaId, StringPool.BLANK, new Date(), AvvisoUtil.TIPO_AVVISO_DIRETTO,
@ -1067,7 +1065,6 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
territorio.getCodiceProvincia());
String tipoDocumento = "DOM";
String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(tipoDocumento);
_log.info("debugAvviso: " + propertiesTemplate);
long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(intPratica.getCompanyId(),
propertiesTemplate);
String propertiesFolder = AvvisoUtil.getAllTipoDocumentoFolderProps().get(tipoDocumento);

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

@ -17,8 +17,6 @@ import it.tref.liferay.portos.bo.model.impl.PagamentoModelImpl;
import it.tref.liferay.portos.bo.service.base.PagamentoLocalServiceBaseImpl;
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants;
import it.tref.liferay.portos.bo.shared.util.PagamentoConstants;
import it.tref.liferay.portos.bo.util.PagamentiCommonUtil;
import it.tref.liferay.portos.bo.util.PagamentiUtil;
import it.tref.liferay.portos.bo.util.PraticaUtil;
import java.io.IOException;
@ -161,7 +159,11 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
if (updateReference) {
switch (tipoPagamento) {
case PagamentoConstants.PAGAMENTO_ONERI:
throw new SystemException("error.fields.fineLavori.pagamento.classPk.invalid");
fineLavori.setPagamentoSpeseId(pagamento.getPagamentoId());
fineLavori.setCodicePagamentoSpese(pagamento.getCodice());
fineLavori.setCausalePagamento(pagamento.getCausale());
fineLavori.setMezzoPagamento(mezzo);
break;
case PagamentoConstants.PAGAMENTO_BOLLI:
fineLavori.setPagamentoId(pagamento.getPagamentoId());
fineLavori.setCodicePagamento(pagamento.getCodice());
@ -220,14 +222,6 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return updatePagamento(pagamento);
}
@Override
public Pagamento annullaPagamento(long pagamentoId) throws PortalException, SystemException {
Pagamento pagamento = pagamentoPersistence.findByPrimaryKey(pagamentoId);
pagamento.setUtilizzata(PagamentoConstants.UTILIZZATA_ANNULLATO);
return updatePagamento(pagamento);
}
@SuppressWarnings("unchecked")
@Override
public List<Pagamento> findByCommittente_Mezzo(String codiceFiscaleCommittente, String mezzo, int start, int end)
@ -331,8 +325,8 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
private DynamicQuery createPendingQuery(Date date) {
DynamicQuery dynamicQuery = dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.in("utilizzata", new String[] {
PagamentoConstants.UTILIZZATA_IN_CORSO, PagamentoConstants.UTILIZZATA_ANNULLATO }));
dynamicQuery.add(RestrictionsFactoryUtil.in("utilizzata",
new String[] { PagamentoConstants.UTILIZZATA_IN_CORSO }));
dynamicQuery.add(RestrictionsFactoryUtil.le("createDate", date));
return dynamicQuery;
}
@ -445,90 +439,6 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return dynamicQuery;
}
@Override
public void sostituisciPagamento(long pagamentoId, String codiceFiscaleCommittente, String mezzo, String url,
ServiceContext serviceContext) throws PortalException, SystemException {
Pagamento pagamento = getPagamento(pagamentoId);
long intPraticaId = pagamento.getIntPraticaId();
String currentUtilizzata = pagamento.getUtilizzata();
String currentMezzo = pagamento.getMezzo();
String tipoPagamento = pagamento.getTipoPagamento();
boolean irisEnable = PagamentiCommonUtil.irisIsEnable(pagamento.getCompanyId());
if (mezzo.equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE)) {
if (irisEnable) {
throw new PortalException("Creazione pagamento manuale con iris enable non possibile");
} else if (currentUtilizzata.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE)
|| currentUtilizzata.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA)
|| currentUtilizzata.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO)) {
if (DettPratica.class.getName().equals(pagamento.getClassName())) {
DettPratica dettPratica = dettPraticaLocalService.getDettPratica(pagamento.getClassPk());
if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) {
dettPratica.setPagamentoIdOneri(0L);
} else {
dettPratica.setPagamentoIdBolli(0L);
}
dettPratica = dettPraticaLocalService.updateDettPratica(dettPratica);
} else if (FineLavori.class.getName().equals(pagamento.getClassName())) {
FineLavori fineLavori = fineLavoriLocalService.getFineLavori(pagamento.getClassPk());
fineLavori.setPagamentoId(0L);
fineLavori = fineLavoriLocalService.updateFineLavori(fineLavori);
} else if (Collaudo.class.getName().equals(pagamento.getClassName())) {
Collaudo collaudo = collaudoLocalService.getCollaudo(pagamento.getClassPk());
collaudo.setPagamentoId(0L);
collaudo = collaudoLocalService.updateCollaudo(collaudo);
} else {
throw new RuntimeException("unable to replace pagamento for entity type "
+ pagamento.getClassName() + " with id " + pagamento.getClassPk());
}
pagamento.setUtilizzata(PagamentoConstants.UTILIZZATA_SOSTITUITA);
pagamento.setUtilizzataSostituita(currentUtilizzata);
updatePagamento(pagamento);
PagamentiUtil.nuovoPagamento(url, pagamento.getClassPk(), pagamento.getClassName(), tipoPagamento,
pagamento.getImporto(), codiceFiscaleCommittente, serviceContext);
} else {
throw new PortalException("Creazione pagamento manuale con stato " + currentUtilizzata
+ " non possibile");
}
} else if (mezzo.equalsIgnoreCase(PagamentoConstants.MEZZO_IRIS)) {
if (irisEnable
&& (currentMezzo.equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE) || (currentUtilizzata
.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE)
|| currentUtilizzata.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA) || currentUtilizzata
.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO)))) {
if (DettPratica.class.getName().equals(pagamento.getClassName())) {
DettPratica dettPratica = dettPraticaLocalService.getDettPratica(pagamento.getClassPk());
if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) {
dettPratica.setPagamentoIdOneri(0L);
} else {
dettPratica.setPagamentoIdBolli(0L);
}
dettPratica = dettPraticaLocalService.updateDettPratica(dettPratica);
} else if (FineLavori.class.getName().equals(pagamento.getClassName())) {
FineLavori fineLavori = fineLavoriLocalService.getFineLavori(pagamento.getClassPk());
fineLavori.setPagamentoId(0L);
fineLavori = fineLavoriLocalService.updateFineLavori(fineLavori);
} else if (Collaudo.class.getName().equals(pagamento.getClassName())) {
Collaudo collaudo = collaudoLocalService.getCollaudo(pagamento.getClassPk());
collaudo.setPagamentoId(0L);
collaudo = collaudoLocalService.updateCollaudo(collaudo);
} else {
throw new RuntimeException("unable to replace pagamento for entity type "
+ pagamento.getClassName() + " with id " + pagamento.getClassPk());
}
pagamento.setUtilizzata(PagamentoConstants.UTILIZZATA_SOSTITUITA);
pagamento.setUtilizzataSostituita(currentUtilizzata);
updatePagamento(pagamento);
PagamentiUtil.nuovoPagamento(url, pagamento.getClassPk(), pagamento.getClassName(),
pagamento.getTipoPagamento(), pagamento.getImporto(), codiceFiscaleCommittente, serviceContext);
} else {
throw new PortalException("Pagamento IRIS non sostituibile per intPratica " + intPraticaId);
}
} else {
throw new PortalException("Mezzo non presente");
}
}
@Override
public void updatePagamentoManuale(long pagamentoId, byte[] content, String sourceFileName,
ServiceContext serviceContext) throws IOException, PortalException, SystemException {

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

@ -13,8 +13,6 @@ import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.FineLavori;
import it.tref.liferay.portos.bo.model.Pagamento;
import it.tref.liferay.portos.bo.service.base.PagamentoServiceBaseImpl;
import it.tref.liferay.portos.bo.service.permission.PendingPagamentiPermission;
import it.tref.liferay.portos.bo.shared.util.ActionKeys;
import it.tref.liferay.portos.bo.util.DelegheUtil;
import java.io.IOException;
@ -43,46 +41,6 @@ public class PagamentoServiceImpl extends PagamentoServiceBaseImpl {
* it.tref.liferay.portos.bo.service.PagamentoServiceUtil} to access the pagamento remote service.
*/
@Override
public void sostituisciPagamento(long pagamentoId, String codiceFiscaleCommittente, String mezzo, String url,
ServiceContext serviceContext) throws PortalException, SystemException {
Pagamento pagamento = pagamentoLocalService.getPagamento(pagamentoId);
long userId = findTitolare(pagamentoId);
if (getUserId() == userId || DelegheUtil.hasDelegaPagamento(userId, pagamento.getClassPk())) {
pagamentoLocalService.sostituisciPagamento(pagamentoId, codiceFiscaleCommittente, mezzo, url,
serviceContext);
} else {
throw new SystemException("pagamento aggiornabile solo da titolare digitale del "
+ pagamento.getClassName());
}
}
@Override
public void rigeneraPagamento(long pagamentoId, String codiceFiscaleCommittente, String mezzo, String url,
ServiceContext serviceContext) throws PortalException, SystemException {
if (PendingPagamentiPermission.contains(getPermissionChecker(), serviceContext.getScopeGroupId(),
ActionKeys.PAGAMENTI_PENDING)) {
pagamentoLocalService.sostituisciPagamento(pagamentoId, codiceFiscaleCommittente, mezzo, url,
serviceContext);
} else {
throw new SystemException("pagamento rigenerabile solo da personale autorizzato");
}
}
@Override
public void annullaPagamento(long pagamentoId, ServiceContext serviceContext) throws PortalException,
SystemException {
if (PendingPagamentiPermission.contains(getPermissionChecker(), serviceContext.getScopeGroupId(),
ActionKeys.PAGAMENTI_PENDING)) {
pagamentoLocalService.annullaPagamento(pagamentoId);
} else {
throw new SystemException("pagamento annullabile solo da personale autorizzato");
}
}
@Override
public void updatePagamentoManuale(long pagamentoId, byte[] content, String sourceFileName,
ServiceContext serviceContext) throws IOException, PortalException, SystemException {

260
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;
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.DocPratica;
import it.tref.liferay.portos.bo.model.Provincia;
import it.tref.liferay.portos.bo.model.Soggetto;
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.TipoSoggettoUtil;
import it.tref.liferay.portos.bo.util.SoggettiUtil;
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.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.DynamicQuery;
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.exception.PortalException;
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.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.ParamUtil;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.User;
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.
@ -54,7 +91,8 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
* 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
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);
long intPraticaId = soggetto.getIntPraticaId();
long idSoggetto = soggetto.getSoggettoId();
List<Soggetto> soggettiIntPratica = soggettoLocalService.findByIntPratica(intPraticaId);
List<Soggetto> soggettiIntPratica = findByIntPratica(intPraticaId);
for (Soggetto sgt : soggettiIntPratica) {
long sostituitoDa = sgt.getSostituitoDa();
if (Validator.isNotNull(sostituitoDa) && sostituitoDa > 0 && idSoggetto == sostituitoDa) {
@ -1117,7 +1155,8 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
}
@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 {
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 {
User user = userLocalService.getUser(soggettoId);
DynamicQuery dynamicQuerySoggetti = soggettoLocalService.dynamicQuery();
DynamicQuery dynamicQuerySoggetti = dynamicQuery();
dynamicQuerySoggetti.add(RestrictionsFactoryUtil.ilike("codiceFiscale", user.getScreenName()));
dynamicQuerySoggetti.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil
.property("intPraticaId")));
@ -1182,7 +1221,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
if (!SoggettiUtil.hasSoggettoPrincipale(dettPraticaId, soggetto.getTipologiaSoggetto())) {
updatePrincipale(dettPraticaId, soggetto.getCodiceFiscale(), soggetto.getTipologiaSoggetto());
}
return soggettoLocalService.updateSoggetto(soggetto);
return updateSoggetto(soggetto);
}
@Override
@ -1195,7 +1234,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
if (SoggettiUtil.isSoggettoPrincipale(soggetto.getSoggettoId(), dettPraticaIdRimozione)) {
updatePrincipale(dettPraticaIdRimozione, StringPool.BLANK, soggetto.getTipologiaSoggetto());
}
return soggettoLocalService.updateSoggetto(soggetto);
return updateSoggetto(soggetto);
}
@Override
@ -1204,7 +1243,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
Soggetto soggetto = invalidaSoggetto(soggettoId, dettPraticaIdRimozione);
soggetto.setSostituitoDa(sostituitoDa);
return soggettoLocalService.updateSoggetto(soggetto);
return updateSoggetto(soggetto);
}
@Override
@ -1230,7 +1269,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
if (!SoggettiUtil.hasSoggettoPrincipale(soggetto.getDettPraticaId(), soggetto.getTipologiaSoggetto())) {
updatePrincipale(soggetto.getDettPraticaId(), soggetto.getCodiceFiscale(), soggetto.getTipologiaSoggetto());
}
soggetto = soggettoLocalService.updateSoggetto(soggetto);
soggetto = updateSoggetto(soggetto);
return soggetto;
}
@ -1238,9 +1277,208 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
@Override
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.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;
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());
residenzaCommittente = getDenominazione(committente.getProvincia(), committente.getComune(),
committente.getComuneEstero());
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());
residenzaCommittente = getDenominazione(committente.getProvinciaRap(), committente.getComuneRap(),
committente.getComuneRapEstero());
via = HtmlUtil.escape(committente.getViaRap());
civico = HtmlUtil.escape(committente.getNumeroCivicoRap());
}
String residenzaTitolare = getDenominazione(titolare.getProvincia(), titolare.getComune(),
titolare.getComuneEstero());
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;
}
private String getDenominazione(String codiceProvincia, String comuneId, String comuneEstero)
throws SystemException {
if ("ee".equalsIgnoreCase(codiceProvincia)) {
return comuneEstero;
} else {
Comune comune = comuneLocalService.fetchComune(Long.parseLong(comuneId));
try {
Provincia provincia = provinciaLocalService.findByC_C(comune.getCompanyId(), codiceProvincia);
return comune.getDenominazione() + " (" + provincia.getSigla() + ')';
} catch (NoSuchProvinciaException e) {
return comune.getDenominazione();
}
}
}
}

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

@ -5947,13 +5947,20 @@ public class FineLavoriPersistenceImpl extends BasePersistenceImpl<FineLavori>
fineLavoriImpl.setDataEffettuazione(fineLavori.getDataEffettuazione());
fineLavoriImpl.setDataFineLavori(fineLavori.getDataFineLavori());
fineLavoriImpl.setNormEsenteBollo(fineLavori.isNormEsenteBollo());
fineLavoriImpl.setNormEsenteSpese(fineLavori.isNormEsenteSpese());
fineLavoriImpl.setNormEsenteCollaudo(fineLavori.isNormEsenteCollaudo());
fineLavoriImpl.setComunicazioneDirettoreLavori(fineLavori.getComunicazioneDirettoreLavori());
fineLavoriImpl.setPagamentoId(fineLavori.getPagamentoId());
fineLavoriImpl.setPagamentoSpeseId(fineLavori.getPagamentoSpeseId());
fineLavoriImpl.setCodicePagamento(fineLavori.getCodicePagamento());
fineLavoriImpl.setCodicePagamentoSpese(fineLavori.getCodicePagamentoSpese());
fineLavoriImpl.setCausalePagamento(fineLavori.getCausalePagamento());
fineLavoriImpl.setCausalePagamentoSpese(fineLavori.getCausalePagamentoSpese());
fineLavoriImpl.setMezzoPagamento(fineLavori.getMezzoPagamento());
fineLavoriImpl.setMezzoPagamentoSpese(fineLavori.getMezzoPagamentoSpese());
fineLavoriImpl.setImportoBolli(fineLavori.getImportoBolli());
fineLavoriImpl.setImportoSpese(fineLavori.getImportoSpese());
fineLavoriImpl.setRichiestaAttestazione(fineLavori.isRichiestaAttestazione());
return fineLavoriImpl;
}

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

@ -1,8 +1,5 @@
package it.tref.liferay.portos.bo.util;
import it.toscana.rete.cart.www.servizi.iris_1_1.IdpEsito.InformazioniPagamentoType;
import it.toscana.rete.cart.www.servizi.iris_1_1.IdpEsito.VerificaStatoPagamentoDettagliato;
import it.tref.liferay.portos.bo.iris.IrisVerificaPagamenti;
import it.tref.liferay.portos.bo.model.Collaudo;
import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.FineLavori;
@ -14,17 +11,12 @@ import it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.PagamentoConstants;
import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.CalendarFactoryUtil;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator;
@ -32,82 +24,6 @@ import com.liferay.portal.service.ServiceContext;
public abstract class PagamentiUtil {
private static final Log _log = LogFactoryUtil.getLog(PagamentiUtil.class);
public static void verificaPagamentoIRIS(Pagamento pagamento) throws IOException, SystemException, PortalException {
String statoPagamento = callVerificaPagamenti(pagamento);
if (Validator.isNotNull(statoPagamento)) {
if (DettPratica.class.getName().equals(pagamento.getClassName())) {
DettPraticaLocalServiceUtil.updateEsitoPagamento(pagamento.getPagamentoId(), pagamento.getClassPk(),
statoPagamento);
} else if (FineLavori.class.getName().equals(pagamento.getClassName())) {
FineLavoriLocalServiceUtil.updateEsitoPagamento(pagamento.getPagamentoId(), pagamento.getClassPk(),
statoPagamento);
} else if (Collaudo.class.getName().equals(pagamento.getClassName())) {
CollaudoLocalServiceUtil.updateEsitoPagamento(pagamento.getPagamentoId(), pagamento.getClassPk(),
statoPagamento);
} else {
throw new RuntimeException("unable to update pagamento esito for entity type "
+ pagamento.getClassName() + " with id " + pagamento.getClassPk());
}
}
}
private static String callVerificaPagamenti(Pagamento pagamento) throws SystemException {
long companyId = pagamento.getCompanyId();
long groupId = pagamento.getGroupId();
if (PagamentoConstants.PAGAMENTO_ONERI.equals(pagamento.getTipoPagamento())) {
InformazioniPagamentoType[] statoPagamentiType = IrisVerificaPagamenti.verificaPagamenti(companyId,
groupId, pagamento.getCodice(), pagamento.getTipoPagamento());
return checkStatoPagamento(statoPagamentiType);
} else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(pagamento.getTipoPagamento())) {
List<String> statiPagamento = new ArrayList<String>();
if (statiPagamento.size() > 1) {
return StringPool.BLANK;
}
return statiPagamento.get(0);
}
throw new SystemException("error.geniocivile.tipopagamento.notexist");
}
private static String checkStatoPagamento(InformazioniPagamentoType[] statoPagamentiType) {
if (statoPagamentiType == null) {
return null;
}
InformazioniPagamentoType statoPagamentoType = statoPagamentiType[0];
String statoPendenza = statoPagamentoType.getStato().getValue();
String statoPagamento = StringPool.BLANK;
if (statoPendenza.equals(VerificaStatoPagamentoDettagliato._POSIZIONE_NON_PAGATA)) {
if (statoPagamentoType.getDescrizioneStato().equalsIgnoreCase(
VerificaStatoPagamentoDettagliato._POSIZIONE_NON_PAGATA)) {
// "Posizione non presente" -> si riprova successivamente
return StringPool.BLANK;
} else if (statoPagamentoType.getDescrizioneStato().equalsIgnoreCase("PAG_NON_ESEGUITO")) {
statoPagamento = PagamentoConstants.UTILIZZATA_RIFIUTATA;
} else if (statoPagamentoType.getDescrizioneStato().equalsIgnoreCase("PAG_IN_ERRORE")) {
statoPagamento = PagamentoConstants.UTILIZZATA_NON_PAGABILE;
}
_log.debug(statoPagamento);
} else if (statoPendenza.equals(VerificaStatoPagamentoDettagliato._POSIZIONE_NON_PAGABILE)) {
// "Posizione non pagabile" -> esito negativo
statoPagamento = PagamentoConstants.UTILIZZATA_NON_PAGABILE;
_log.debug(statoPagamento);
} else if (statoPendenza.equals(VerificaStatoPagamentoDettagliato._POSIZIONE_PAGATA)
|| statoPendenza.equals(VerificaStatoPagamentoDettagliato._POSIZIONE_PAGATA_SBF)) {
// "Pagamento eseguito" -> esito positivo
statoPagamento = PagamentoConstants.UTILIZZATA_PAGATA;
_log.debug(statoPagamento);
} else if (statoPendenza.equalsIgnoreCase(VerificaStatoPagamentoDettagliato._POSIZIONE_CON_PAG_IN_CORSO)) {
// "Pagamento non eseguito" -> esito in corso
statoPagamento = PagamentoConstants.UTILIZZATA_IN_CORSO;
return StringPool.BLANK;
}
return statoPagamento;
}
public static BigDecimal getImportoBolli(long companyId, long dettPraticaId, String tipoIntegrazione)
throws PortalException, SystemException {
@ -148,10 +64,10 @@ public abstract class PagamentiUtil {
} else if (FineLavori.class.getName().equals(className)) {
FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(classPk);
esenzioneBolli = fineLavori.isNormEsenteBollo();
esenzioneSpeseIstruttoria = true;
esenzioneSpeseIstruttoria = fineLavori.isNormEsenteSpese();
tipoIntegrazione = TipoIntegrazioneUtil.FINE_LAVORI;
if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) {
throw new SystemException("error.fields.fineLavori.pagamento.classPk.invalid");
pagamentoId = fineLavori.getPagamentoSpeseId();
} else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) {
pagamentoId = fineLavori.getPagamentoId();
}
@ -168,7 +84,6 @@ public abstract class PagamentiUtil {
} else {
throw new SystemException("error.fields.pratica.pagamento.classPk.invalid");
}
List<String> importi = new ArrayList<>();
if (esenzioneSpeseIstruttoria && esenzioneBolli) {
throw new SystemException("error.fields.pratica.pagamento.esente.oneri.bolli");
} else {
@ -179,15 +94,6 @@ public abstract class PagamentiUtil {
try {
BigDecimal importoVal = new BigDecimal(importo);
importo = importoVal.toPlainString();
if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) {
int numeroBolli = PagamentiCommonUtil.getNumeroBolli(tipoIntegrazione);
BigDecimal singoloImporto = importoVal.divide(new BigDecimal(numeroBolli));
for (int i = 0; i < numeroBolli; i++) {
importi.add(singoloImporto.toPlainString());
}
} else if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) {
importi.add(importo);
}
} catch (NumberFormatException e) {
throw new SystemException("error.fields.pratica.pagamento."
+ (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento) ? "bolli"
@ -217,7 +123,7 @@ public abstract class PagamentiUtil {
if (add) {
return PagamentoLocalServiceUtil.addPagamentoAndUpdate(StringPool.BLANK, StringPool.BLANK,
PagamentoConstants.MEZZO_MANUALE, codiceFiscaleCommittente, tipoPagamento, importo,
PagamentoConstants.UTILIZZATA_IN_CORSO, classPk, className, 0l, serviceContext);
PagamentoConstants.UTILIZZATA_IN_CORSO, classPk, className, 0L, serviceContext);
}
return null;
}

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

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/avvisi_actions.jsp

@ -48,7 +48,7 @@
<portlet:param name="tabs1" value="<%=tabs1%>" />
</portlet:actionURL>
<c:if test="<%= ConfigurazioneLocalServiceUtil.isDeveloper(user)
<c:if test="<%= !ConfigurazioneLocalServiceUtil.isProduction()
&& avviso.getUserCodiceFiscalePrimaFirma().equalsIgnoreCase(user.getScreenName()) %>">
<portlet:actionURL name="simulaFirma" var="simulaFirmaURL">
<portlet:param name="mvcPath" value="/html/gestionefirme/view.jsp" />

13
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view.jsp

@ -42,7 +42,7 @@
<liferay-ui:search-container-column-text cssClass="text-nowrap" name="Stato" value='<%= LanguageUtil.get(pageContext, "pagamento-utilizzata-"+pagamento.getUtilizzata()) %>'/>
<liferay-ui:search-container-column-text cssClass="text-nowrap" name="Spese Istruttoria" >
<c:if test="<%= PagamentoConstants.PAGAMENTO_ONERI.equalsIgnoreCase(pagamento.getTipoPagamento()) || PagamentoConstants.PAGAMENTO_ONERI_BOLLI.equals(pagamento.getTipoPagamento()) %>">
<c:if test="<%= PagamentoConstants.PAGAMENTO_ONERI.equalsIgnoreCase(pagamento.getTipoPagamento()) %>">
<%
String result = "";
if(dettPratica.isNormEsenteSpese()){
@ -82,10 +82,7 @@
<liferay-ui:search-container-column-text>
<%
String[] notAllowed = new String[]{PagamentoConstants.UTILIZZATA_SOSTITUITA, PagamentoConstants.UTILIZZATA_RIFIUTATA, PagamentoConstants.UTILIZZATA_NON_PAGABILE};
%>
<c:if test="<%= !Arrays.asList(notAllowed).contains(pagamento.getUtilizzata()) %>">
<%
String[] notAllowed = new String[]{};
String buttonId = "pagamentoButton_"+index;
String contentId = "pagamentoContent_"+index;
%>
@ -109,11 +106,6 @@
<liferay-util:param name="dettPraticaId" value="<%= String.valueOf(pagamento.getClassPk()) %>"/>
</liferay-util:include>
</c:if>
<c:if test="<%= PagamentoConstants.PAGAMENTO_ONERI_BOLLI.equalsIgnoreCase(pagamento.getTipoPagamento()) %>">
<liferay-util:include page="/html/pagamenti/view_panel_pagamenti_spese.jsp" servletContext='<%= application %>'>
<liferay-util:param name="dettPraticaId" value="<%= String.valueOf(pagamento.getClassPk()) %>"/>
</liferay-util:include>
</c:if>
</div>
<liferay-util:include page="/html/common/confirm_window.jsp" servletContext="<%= application %>" >
<liferay-util:param name="titolo" value="Dettaglio Pagamento"></liferay-util:param>
@ -121,7 +113,6 @@
<liferay-util:param name="contentDiv" value="<%=contentId%>"></liferay-util:param>
<liferay-util:param name="width" value="750"></liferay-util:param>
</liferay-util:include>
</c:if>
</liferay-ui:search-container-column-text>
</c:if>

42
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_pagamenti_pending.jsp

@ -44,7 +44,7 @@
<liferay-ui:search-container-column-text cssClass="text-nowrap" name="NumeroProgetto" >
<%
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(pagamento.getIntPraticaId());
if(Validator.isNotNull(intPratica)){
if (Validator.isNotNull(intPratica)) {
out.println(intPratica.getNumeroProgetto());
}
%>
@ -64,44 +64,6 @@
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text cssClass="text-nowrap" name="Mezzo" value='<%= LanguageUtil.get(pageContext, "mezzo-pagamento-"+pagamento.getMezzo()) %>'/>
<liferay-ui:search-container-column-text cssClass="text-nowrap" name="Importo" value='<%= pagamento.getImportoString() %>'/>
<liferay-ui:search-container-column-text name="actions" cssClass="text-nowrap">
<c:if test="<%= isAllowed %>">
<c:if test="<%= PagamentoConstants.UTILIZZATA_ANNULLATO.equalsIgnoreCase(pagamento.getUtilizzata()) %>">
<liferay-portlet:actionURL name="rigeneraPagamento" var="rigeneraPagamentoURL">
<liferay-portlet:param name="mvcPath" value="/html/pagamenti/view_pagamenti_pending.jsp"/>
<liferay-portlet:param name="pagamentoId" value="<%= String.valueOf(pagamento.getPagamentoId()) %>"/>
<liferay-portlet:param name="redirect" value="<%= PortalUtil.getCurrentCompleteURL(request) %>"/>
</liferay-portlet:actionURL>
<aui:form name="rigeneraPagamentoForm" method="post" action="<%= rigeneraPagamentoURL %>">
<c:if test="<%= PagamentiCommonUtil.irisIsEnable(company.getCompanyId())%>">
<aui:input type="hidden" name="mezzo" value="<%= PagamentoConstants.MEZZO_IRIS %>" />
</c:if>
<c:if test="<%= !PagamentiCommonUtil.irisIsEnable(company.getCompanyId())%>">
<aui:input type="hidden" name="mezzo" value="<%= PagamentoConstants.MEZZO_MANUALE %>" />
</c:if>
<aui:button type="submit" value="text-rigenera-pagamento-admin" icon="icon-retweet" iconAlign="left"/>
</aui:form>
</c:if>
<c:if test="<%= PagamentoConstants.UTILIZZATA_IN_CORSO.equalsIgnoreCase(pagamento.getUtilizzata()) %>">
<liferay-portlet:actionURL name="annullaPagamento" var="annullaPagamentoURL">
<liferay-portlet:param name="mvcPath" value="/html/pagamenti/view_pagamenti_pending.jsp"/>
<liferay-portlet:param name="pagamentoId" value="<%= String.valueOf(pagamento.getPagamentoId()) %>"/>
<liferay-portlet:param name="redirect" value="<%= PortalUtil.getCurrentCompleteURL(request) %>"/>
</liferay-portlet:actionURL>
<aui:form name="annullaPagamentoForm" method="post" action="<%= annullaPagamentoURL %>">
<aui:button type="submit" value="text-annulla-pagamento-admin" icon="icon-remove-sign" iconAlign="left" cssClass="btn-danger"/>
</aui:form>
</c:if>
</c:if>
<c:if test="<%= !isAllowed %>">
<span><i class=" icon-remove" style="color:red"></i> Azione non consentita</span>
</c:if>
</liferay-ui:search-container-column-text>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" />
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>

8
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_generic.jsp

@ -60,14 +60,6 @@
<span><strong class="text-success"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-04") %></strong></span>
<% } else if(pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO)) {%>
<span><strong class="text-warning"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-03") %></strong></span>
<% } else if(pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE)) {%>
<span><strong class="text-danger"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-05") %></strong></span>
<% } else if(pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA)) {%>
<span><strong class="text-danger"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-06") %></strong></span>
<% } else if(pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_SOSTITUITA)) {%>
<span><strong class="text-info"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-07") %></strong></span>
<% } else if(pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_SI)) {%>
<span><strong class="text-success"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-04") %></strong></span>
<% } else {%>
<span><strong class="text-warning"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-00") %></strong></span>
<% } %>

6
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_pagamenti_bolli.jsp

@ -35,12 +35,6 @@
<span><strong class="text-success"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-04") %></strong></span>
<% } else if(pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO)) {%>
<span><strong class="text-warning"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-03") %></strong></span>
<% } else if(pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE)) {%>
<span><strong class="text-danger"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-05") %></strong></span>
<% } else if(pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA)) {%>
<span><strong class="text-danger"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-06") %></strong></span>
<% } else if(pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_SOSTITUITA)) {%>
<span><strong class="text-success"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-07") %></strong></span>
<% } else {%>
<span><strong class="text-warning"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-00") %></strong></span>
<% } %>

8
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_pagamenti_spese.jsp

@ -35,14 +35,6 @@
<span><strong class="text-success"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-04") %></strong></span>
<% } else if(pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO)) {%>
<span><strong class="text-warning"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-03") %></strong></span>
<% } else if(pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE)) {%>
<span><strong class="text-danger"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-05") %></strong></span>
<% } else if(pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA)) {%>
<span><strong class="text-danger"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-06") %></strong></span>
<% } else if(pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_SOSTITUITA)) {%>
<span><strong class="text-info"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-07") %></strong></span>
<% } else if(pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_SI)) {%>
<span><strong class="text-success"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-04") %></strong></span>
<% } else {%>
<span><strong class="text-warning"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-00") %></strong></span>
<% } %>

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sismica_administration/view.jsp

@ -57,6 +57,9 @@ String dataSorteggio = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(compa
<%= dataSorteggio %>. <strong>Si è sicuri di volerlo lanciare?</strong>
</div>
<aui:form action="<%= lanciaSorteggioURL %>" method="post" name="fmLanciaSorteggio">
<div>
<aui:input name="dtRange" label="Data range" />
</div>
<div>
<aui:button cssClass="btn-danger" type="submit" value="Lancia Sorteggio" />
</div>

273
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sorteggio/view.jsp

@ -1,67 +1,45 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.util.Constants"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants"%>
<%@page import="com.liferay.portlet.PortletURLUtil"%>
<%@page import="javax.portlet.PortletURL"%>
<%@page import="it.mwg.sismica.bo.util.SorteggioPraticaUtil"%>
<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%>
<%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%>
<%@page import="com.liferay.portal.kernel.exception.PortalException"%>
<%@page import="com.liferay.portal.kernel.language.LanguageUtil"%>
<%@page import="org.apache.commons.lang.StringUtils"%>
<%@page import="com.liferay.portal.kernel.util.StringPool"%>
<%@page import="java.util.Calendar"%>
<%@page import="org.apache.commons.lang.time.DateUtils"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%>
<%@page import="com.liferay.portal.kernel.util.CalendarUtil"%>
<%@page import="com.liferay.portal.kernel.util.HttpUtil"%>
<%@page import="com.liferay.portal.kernel.util.StringPool"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="com.liferay.portlet.PortletURLUtil"%>
<%@page import="it.mwg.sismica.bo.util.SorteggioPraticaUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants"%>
<%@page import="java.text.DateFormat"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Calendar"%>
<%@page import="java.util.Date"%>
<%@page import="com.liferay.portal.kernel.util.FastDateFormatFactoryUtil"%>
<%@page import="javax.portlet.PortletURL"%>
<%@page import="org.apache.commons.lang.time.DateUtils"%>
<%@include file="/html/sorteggio/init.jsp" %>
<%
long companyId = company.getCompanyId();
long groupId = themeDisplay.getScopeGroupId();
String dataUltimoSorteggioString = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(
companyId, ConfigurazioneConstants.DATE_ULTIMO_SORTEGGIO);
String dataUltimoSorteggioString = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId,
ConfigurazioneConstants.DATE_ULTIMO_SORTEGGIO);
Date dtUltimoSorteggio = null;
if (Validator.isNotNull(dataUltimoSorteggioString)) {
Date now = DateUtils.truncate(new Date(), Calendar.DATE);
dtUltimoSorteggio = DateUtils.truncate(
new SimpleDateFormat(SorteggioPraticaUtil.DATE_TIME_FORMAT).parse(
dtUltimoSorteggio = DateUtils.truncate(new SimpleDateFormat(SorteggioPraticaUtil.DATE_TIME_FORMAT).parse(
dataUltimoSorteggioString), Calendar.DATE);
}
DateFormat formatDtSorteggio = DateFormat.getDateInstance(DateFormat.FULL, locale);
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
SimpleDateFormat sdfSorteggio = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
Date dtProssimoSorteggio = null;
String dataProssimoSorteggio =
ConfigurazioneServiceUtil.findByC_ChiaveString(company.getCompanyId(), "conf.geniocivile.sorteggio.data.prossimo.sorteggio");
String dataProssimoSorteggio = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId,
"conf.geniocivile.sorteggio.data.prossimo.sorteggio");
if(dataProssimoSorteggio != null && !dataProssimoSorteggio.equals("")){
dtProssimoSorteggio = DateUtils.truncate(sdf.parse(dataProssimoSorteggio), Calendar.DATE);
}
String homeURL = ParamUtil.getString(renderRequest, "homeURL");
if (Validator.isNull(homeURL)) {
homeURL = PortletURLUtil.getCurrent(renderRequest, renderResponse).toString();
}
boolean search = ParamUtil.getBoolean(renderRequest, "search");
boolean detailSorteggio = ParamUtil.getBoolean(renderRequest, "detailSorteggio");
String anno = ParamUtil.getString(renderRequest, "anno");
String mese = ParamUtil.getString(renderRequest, "mese");
int settimana = ParamUtil.getInteger(renderRequest, "settimana");
@ -70,36 +48,24 @@ String committente = ParamUtil.getString(renderRequest, "committente");
String tecnico = ParamUtil.getString(renderRequest, "tecnico");
String pratica = ParamUtil.getString(renderRequest, "pratica");
String numeroEstrazione = ParamUtil.getString(renderRequest, "numeroEstrazione");
//Task 31433
String provincia = ParamUtil.getString(renderRequest, "provincia");
String[] mesi = CalendarUtil.getMonths(locale);
boolean isPublicLayout = layout.isPublicLayout();
%>
<portlet:renderURL var="ricercaSorteggiURL">
<portlet:param name="homeURL" value="<%= homeURL %>"/>
<portlet:param name="search" value="<%= String.valueOf(true) %>"/>
<portlet:param name="homeURL" value="<%= homeURL %>" />
<portlet:param name="search" value="true" />
</portlet:renderURL>
<c:if test="<%= search || detailSorteggio %>">
<liferay-ui:header
title=""
backURL="<%=homeURL %>" />
<liferay-ui:header title="" backURL="<%= homeURL %>" />
</c:if>
<div class="container-fluid" style="padding: 15px;">
<c:if test="<%=!detailSorteggio %>">
<c:if test="<%= !detailSorteggio %>">
<aui:fieldset label="rs" style="width:100%">
<aui:form action="<%= ricercaSorteggiURL %>" method="post" name="fm">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-4">
<aui:input name="anno" label="rs-anno" size="25" value="<%=anno %>">
<div class="col-xs-12 col-md-4">
<aui:input name="anno" label="rs-anno" size="25" value="<%= anno %>">
<aui:validator name="custom" errorMessage="campo-non-valido" >
function (val, fieldNode, ruleValue) {
if(val != "") {
@ -112,9 +78,9 @@ boolean isPublicLayout = layout.isPublicLayout();
}
</aui:validator>
</aui:input>
<c:if test="<%=!isPublicLayout %>">
<!-- Bug 32653 -->
<aui:input name="numeroEstrazione" label="label.admingeniocivile.sorteggi.numeroEstrazione" size="25" value="<%= numeroEstrazione %>">
<c:if test="<%= !isPublicLayout %>">
<aui:input name="numeroEstrazione" label="label.admingeniocivile.sorteggi.numeroEstrazione"
size="25" value="<%= numeroEstrazione %>">
<aui:validator name="custom" errorMessage="campo-non-valido" >
function (val, fieldNode, ruleValue) {
if(val != "") {
@ -129,7 +95,7 @@ boolean isPublicLayout = layout.isPublicLayout();
</aui:input>
</c:if>
</div>
<div class="col-xs-12 col-sm-12 col-md-4">
<div class="col-xs-12 col-md-4">
<aui:select name="mese" label="Mese">
<aui:option value="null">-</aui:option>
<aui:option value="01" label='Gennaio'></aui:option>
@ -145,15 +111,15 @@ boolean isPublicLayout = layout.isPublicLayout();
<aui:option value="11" label='Novembre'></aui:option>
<aui:option value="12" label='Dicembre'></aui:option>
</aui:select>
<aui:input name="settimana" label="rs-settimana" size="10" value="<%= settimana > 0 ? settimana : \"\" %>" />
<aui:input name="settimana" label="rs-settimana" size="10"
value="<%= settimana > 0 ? settimana : \"\" %>" />
</div>
<div class="col-xs-12 col-sm-12 col-md-4">
<!-- Task 31433 -->
<aui:input name="provincia" label="rs-prov" size="25" value="<%=provincia %>" />
<aui:input name="comune" label="rs-comune" size="25" value="<%=comune %>" />
<c:if test="<%=!isPublicLayout %>">
<!-- Bug 32653 -->
<aui:input name="pratica" label="label.admingeniocivile.sorteggi.pratica" size="25" value="<%=pratica %>">
<div class="col-xs-12 col-md-4">
<aui:input name="provincia" label="rs-prov" size="25" value="<%= provincia %>" />
<aui:input name="comune" label="rs-comune" size="25" value="<%= comune %>" />
<c:if test="<%= !isPublicLayout %>">
<aui:input name="pratica" label="label.admingeniocivile.sorteggi.pratica" size="25"
value="<%= pratica %>">
<aui:validator name="custom" errorMessage="campo-non-valido" >
function (val, fieldNode, ruleValue) {
if(val != "") {
@ -168,82 +134,54 @@ boolean isPublicLayout = layout.isPublicLayout();
</aui:input>
</c:if>
</div>
<c:if test="<%=!isPublicLayout %>">
<div class="col-xs-12 col-sm-12 col-md-4">
<aui:input name="committente" label="rs-committente" size="25" value="<%=committente %>" />
<aui:input name="tecnico" label="rs-tecnico" size="25" value="<%=tecnico %>" />
<c:if test="<%= !isPublicLayout %>">
<div class="col-xs-12 col-md-4">
<aui:input name="committente" label="rs-committente" size="25"
value="<%= committente %>" />
<aui:input name="tecnico" label="rs-tecnico" size="25" value="<%= tecnico %>" />
</div>
</c:if>
</div>
<div class="row">
<div class="col-x
s-12 col-sm-12 col-md-12">
<div class="col-xs-12">
<aui:button type="submit" value="Cerca" />
</div>
</div>
</aui:form>
</aui:fieldset>
<!-- <c:if test="<%=dtUltimoSorteggio!=null %>">
<h3>
<liferay-ui:message key="rs-ultimo" />
<span>
<%=formatDtSorteggio.format(dtUltimoSorteggio) %>
</span>
</h3>
</c:if> -->
<h3>
<liferay-ui:message key="rs-prossimo" />
<span>
<c:if test="<%=dtProssimoSorteggio != null %>"></c:if>
<%=formatDtSorteggio.format(dtProssimoSorteggio) %>
<%= formatDtSorteggio.format(dtProssimoSorteggio) %>
</span>
</h3>
</c:if>
<c:choose>
<c:when test="<%=search || detailSorteggio %>">
<c:if test="<%=detailSorteggio %>">
</c:if>
<c:choose>
<c:when test="<%= search || detailSorteggio %>">
<c:if test="<%= detailSorteggio %>">
<br /> <br />
</c:if>
<div class="row-fluid" style="padding-left: 15px;padding-right: 15px;">
<div class="span12">
<%
try {
FileEntry fileEntry = SorteggioPraticaUtil.getFileEntrySorteggio(companyId,
themeDisplay.getScopeGroupId(), settimana, anno);
%>
<liferay-portlet:resourceURL var="downloadReportSorteggioURL" id="downloadReport">
<liferay-portlet:param name="fileEntryId" value="<%= String.valueOf(fileEntry.getFileEntryId()) %>" />
<liferay-portlet:param name="fileEntryId"
value="<%= String.valueOf(fileEntry.getFileEntryId()) %>" />
</liferay-portlet:resourceURL>
<liferay-ui:icon-menu icon="" showExpanded="<%=false %>" showWhenSingleIcon="<%=false%>">
<liferay-ui:icon
label="Download Verbale Sorteggio"
cssClass="btn"
image="links"
message="Download Verbale Sorteggio"
target="_blank"
url="<%= downloadReportSorteggioURL %>"
/>
<liferay-ui:icon-menu icon="" showExpanded="false" showWhenSingleIcon="false">
<liferay-ui:icon label="Download Verbale Sorteggio" cssClass="btn" image="links"
message="Download Verbale Sorteggio" target="_blank"
url="<%= downloadReportSorteggioURL %>" />
</liferay-ui:icon-menu>
<%
} catch(PortalException e) {
}
} catch(PortalException e) {}
%>
</div>
</div>
<%
PortletURL searchURL = renderResponse.createRenderURL();
searchURL.setParameter("homeURL", homeURL);
@ -257,40 +195,28 @@ boolean isPublicLayout = layout.isPublicLayout();
searchURL.setParameter("tecnico", tecnico);
searchURL.setParameter("pratica", pratica);
searchURL.setParameter("numeroEstrazione", numeroEstrazione);
//Task 31433
searchURL.setParameter("provincia", provincia);
%>
<liferay-ui:search-container iteratorURL="<%=searchURL %>" emptyResultsMessage="no-entries-were-found">
<liferay-ui:search-container iteratorURL="<%= searchURL %>" emptyResultsMessage="no-entries-were-found">
<%
Long numeroEstrazioneNumber = Validator.isNotNull(numeroEstrazione) ?
Long.parseLong(numeroEstrazione) : null;
Long numeroEstrazioneNumber = Validator.isNull(numeroEstrazione) ?
null : Long.parseLong(numeroEstrazione);
%>
<!-- Task 31433 -->
<!-- Bug 32653 -->
<liferay-ui:search-container-results
results="<%=SorteggioLocalServiceUtil.search(null, anno, mese, settimana, committente,
results="<%= SorteggioLocalServiceUtil.search(null, anno, mese, settimana, committente,
tecnico, comune, pratica, numeroEstrazioneNumber, provincia,
searchContainer.getStart(), searchContainer.getEnd()) %>"
total="<%=SorteggioLocalServiceUtil.count(null, anno, mese, settimana, committente,
tecnico, comune, pratica, numeroEstrazioneNumber, provincia)%>"
total="<%= SorteggioLocalServiceUtil.count(null, anno, mese, settimana, committente, tecnico,
comune, pratica, numeroEstrazioneNumber, provincia) %>"
/>
<liferay-ui:search-container-row
className="it.tref.liferay.portos.bo.model.Sorteggio"
modelVar="sorteggio"
indexVar="indexSorteggio"
>
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.Sorteggio"
modelVar="sorteggio" indexVar="indexSorteggio">
<liferay-ui:search-container-column-text name="rs-numero-estrazioni" property="numeroEstrazione" />
<liferay-ui:search-container-column-text name="rs-data-estrazione"
value="<%=sdfSorteggio.format(sorteggio.getDtSorteggio())
+ (sdfSorteggio.format(sorteggio.getDtSorteggio()).equals(
\"05/03/2020 11:12:18\") ? \"<br>Sorteggio non valido ed annullato per doppia esecuzione\"
: \"\")%>" />
+ (sdfSorteggio.format(sorteggio.getDtSorteggio()).equals(\"05/03/2020 11:12:18\")
? \"<br>Sorteggio non valido ed annullato per doppia esecuzione\"
: \"\") %>" />
<liferay-ui:search-container-column-text name="rs-pratica" property="pratica" />
<liferay-ui:search-container-column-text name="rs-committente" property="committente" />
<liferay-ui:search-container-column-text name="rs-comune" property="comune" />
@ -299,107 +225,70 @@ boolean isPublicLayout = layout.isPublicLayout();
value="<%=(sorteggio.getSettimana() == 24) && sorteggio.getAnno().equals(\"2020\") ?
\"22-23-24\" :
String.valueOf(sorteggio.getSettimana()) %>" />
<%
String tecnicoSorteggio = StringPool.BLANK;
//if (sorteggio.isEsterna()) {
// tecnicoSorteggio = SorteggioLocalServiceUtil.getTecnicoSorteggioPraticaEsterna(
// sorteggio.getPraticaEsternaId());
//} else {
tecnicoSorteggio = sorteggio.getTecnico();
//}
String tecnicoSorteggio = sorteggio.getTecnico();
%>
<liferay-ui:search-container-column-text name="rs-tecnico"
value='<%=Validator.isNotNull(tecnicoSorteggio) ? tecnicoSorteggio : StringPool.BLANK %>' />
value='<%= Validator.isNotNull(tecnicoSorteggio) ? tecnicoSorteggio : StringPool.BLANK %>' />
<liferay-ui:search-container-column-text name="rs-prov" property="provincia" />
<liferay-ui:search-container-column-text name="Report Sorteggio">
<%
try {
FileEntry fileEntry = SorteggioPraticaUtil.getFileEntrySorteggio(themeDisplay.getCompanyId(),
sorteggio.getGroupId(), sorteggio.getDtSorteggio());
FileEntry fileEntry = SorteggioPraticaUtil.getFileEntrySorteggio(companyId,
themeDisplay.getScopeGroupId(), settimana, anno);
%>
<liferay-portlet:resourceURL var="downloadReportURL" id="downloadReport">
<liferay-portlet:param name="fileEntryId" value="<%= String.valueOf(fileEntry.getFileEntryId()) %>" />
<liferay-portlet:param name="fileEntryId"
value="<%= String.valueOf(fileEntry.getFileEntryId()) %>" />
</liferay-portlet:resourceURL>
<liferay-ui:icon
cssClass="btn"
image="links"
message="Download"
target="_blank"
url="<%= downloadReportURL %>"
/>
<liferay-ui:icon cssClass="btn" image="links" message="Download" target="_blank"
url="<%= downloadReportURL %>" />
<%
} catch(PortalException e) {
}
} catch(PortalException e) {}
%>
</liferay-ui:search-container-column-text>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator />
</liferay-ui:search-container>
</c:when>
<c:otherwise>
<liferay-ui:search-container emptyResultsMessage="no-entries-were-found">
<liferay-ui:search-container-results
results="<%=SorteggioLocalServiceUtil.findSorteggiGroupByAnnoMeseSettimana(
searchContainer.getStart(), searchContainer.getEnd()) %>"
total="<%=SorteggioLocalServiceUtil.countSorteggiGroupByAnnoMeseSettimana() %>"
/>
<liferay-ui:search-container-row
className="java.lang.Object[]"
modelVar="sorteggio"
>
<liferay-ui:search-container-row className="java.lang.Object[]" modelVar="sorteggio">
<%
Long numeroPratiche = (Long) sorteggio[0];
String annoSorteggio = (String) sorteggio[1];
/* String meseSorteggio = mesi[(Integer.parseInt((String) sorteggio[2])-1)]; */
String meseSorteggio = (String) sorteggio[2];
String settimanaSorteggio = (String.valueOf((Integer) sorteggio[3]));
PortletURL buttonURL = renderResponse.createRenderURL();
buttonURL.setParameter("homeURL", homeURL);
buttonURL.setParameter("detailSorteggio", String.valueOf(true));
buttonURL.setParameter("detailSorteggio", StringPool.TRUE);
buttonURL.setParameter("anno", annoSorteggio);
buttonURL.setParameter("mese", meseSorteggio);
buttonURL.setParameter("settimana", settimanaSorteggio);
if (annoSorteggio.equals("2020") && settimanaSorteggio.equals("24")) {
settimanaSorteggio = "22-23-24";
}
%>
<liferay-ui:search-container-column-text name="rs-numero-pratiche" value="<%=String.valueOf(numeroPratiche) %>" cssClass="td-25"/>
<liferay-ui:search-container-column-text name="rs-anno" value="<%= annoSorteggio %>" cssClass="td-25"/>
<liferay-ui:search-container-column-text name="rs-settimana" value="<%= settimanaSorteggio %>" cssClass="td-25"/>
<liferay-ui:search-container-column-text name="rs-numero-pratiche"
value="<%=String.valueOf(numeroPratiche) %>" cssClass="td-25"/>
<liferay-ui:search-container-column-text name="rs-anno" value="<%= annoSorteggio %>"
cssClass="td-25"/>
<liferay-ui:search-container-column-text name="rs-settimana" value="<%= settimanaSorteggio %>"
cssClass="td-25"/>
<liferay-ui:search-container-column-text align="right" cssClass="text-center td-25">
<liferay-ui:icon-menu>
<liferay-ui:icon
linkCssClass="btn"
iconCssClass="fa fa-search-plus"
message="show"
url="<%=buttonURL.toString()%>"
/>
<liferay-ui:icon linkCssClass="btn" iconCssClass="fa fa-search-plus" message="show"
url="<%=buttonURL.toString()%>" />
</liferay-ui:icon-menu>
</liferay-ui:search-container-column-text>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator />
</liferay-ui:search-container>
</c:otherwise>
</c:choose>
</c:choose>
</div>

1384
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.DettPratica;
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.Soggetto;
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.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaServiceUtil;
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.SoggettoLocalServiceUtil;
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.util.FirmeUtil;
import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil;
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.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Arrays;
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.LogFactoryUtil;
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.upload.UploadPortletRequest;
import com.liferay.portal.kernel.util.ContentTypes;
import com.liferay.portal.kernel.util.DateFormatFactoryUtil;
import com.liferay.portal.kernel.util.FileUtil;
import com.liferay.portal.kernel.util.HttpUtil;
@ -335,16 +344,60 @@ public class SoggettiPraticaPortlet extends MVCPortlet {
}
@Override
public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException,
PortletException {
public void serveResource(ResourceRequest request, ResourceResponse response) throws IOException, PortletException {
String id = resourceRequest.getResourceID();
try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(resourceRequest);
if ("compilaSoggetti".equals(id)) {
long userId = ParamUtil.getLong(resourceRequest, "userId", 0L);
String codiceFiscale = ParamUtil.getString(resourceRequest, "codiceFiscale");
String tipologiaSoggetto = ParamUtil.getString(resourceRequest, "tipologiaSoggetto");
ServiceContext serviceContext = ServiceContextFactory.getInstance(request);
long companyId = serviceContext.getCompanyId();
String id = request.getResourceID();
if ("inviaMailDelega".equals(id)) {
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();
if (Validator.isNotNull(userId) && Validator.isNotNull(codiceFiscale)
&& Validator.isNotNull(tipologiaSoggetto)) {
@ -364,35 +417,35 @@ public class SoggettiPraticaPortlet extends MVCPortlet {
jsonSoggetti.put(serialized);
}
}
writeJSON(resourceRequest, resourceResponse, jsonSoggetti);
writeJSON(request, response, jsonSoggetti);
} else if ("province".equals(id)) {
JSONArray jsonArray = JSONFactoryUtil.createJSONArray();
JSONArray array = JSONFactoryUtil.createJSONArray();
List<Provincia> province = ProvinciaLocalServiceUtil.findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS,
OrderByComparatorFactoryUtil.create("portos_bo_Provincia", "provincia", true));
for (Provincia provincia : province) {
JSONObject jsonObject = JSONFactoryUtil.createJSONObject();
jsonObject.put("provinciaId", provincia.getCodiceProvincia());
jsonObject.put("descLong", provincia.getSigla() + "- " + provincia.getProvincia());
jsonArray.put(jsonObject);
JSONObject object = JSONFactoryUtil.createJSONObject();
object.put("provinciaId", provincia.getCodiceProvincia());
object.put("descLong", provincia.getSigla() + " - " + provincia.getProvincia());
array.put(object);
}
writeJSON(resourceRequest, resourceResponse, jsonArray);
writeJSON(request, response, array);
} else if ("comuni".equals(id)) {
String codiceProvincia = ParamUtil.getString(resourceRequest, "provinciaId");
JSONArray jsonArray = JSONFactoryUtil.createJSONArray();
String codiceProvincia = ParamUtil.getString(request, "provinciaId");
JSONArray array = JSONFactoryUtil.createJSONArray();
if (Validator.isNotNull(codiceProvincia) && Validator.isNotNull(codiceProvincia)) {
List<Comune> comuni = ComuneLocalServiceUtil.findByCompanyIdCodiceProvincia(
serviceContext.getCompanyId(), codiceProvincia, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
List<Comune> comuni = ComuneLocalServiceUtil.findByCompanyIdCodiceProvincia(companyId,
codiceProvincia, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
OrderByComparatorFactoryUtil.create("portos_bo_Comune", "denominazione", true));
for (Comune comune : comuni) {
JSONObject jsonObject = JSONFactoryUtil.createJSONObject();
jsonObject.put("comuneId", comune.getComuneId());
jsonObject.put("descLong", comune.getDenominazione());
jsonArray.put(jsonObject);
JSONObject object = JSONFactoryUtil.createJSONObject();
object.put("comuneId", comune.getComuneId());
object.put("descLong", comune.getDenominazione());
array.put(object);
}
}
writeJSON(resourceRequest, resourceResponse, jsonArray);
writeJSON(request, response, array);
} else {
super.serveResource(resourceRequest, resourceResponse);
super.serveResource(request, response);
}
} catch (Exception 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");
%>
<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>
</c:if>

294
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 import="it.tref.liferay.portos.bo.util.AzioniPraticheUtil"%>
<%@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.FineLavoriServiceUtil"%>
<%@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.service.SoggettoLocalServiceUtil"%>
<%@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.model.DettPratica"%>
<%@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.service.SoggettoServiceUtil"%>
<%@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"%>
@ -23,106 +19,80 @@
<%@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" %>
<%
String backURL = ParamUtil.getString(request, "backURL");
long collaudoId = ParamUtil.getLong(request, "collaudoId",0l);
Collaudo collaudo = CollaudoLocalServiceUtil.fetchCollaudo(collaudoId);
if( Validator.isNull(collaudo) ){
String backURL = ParamUtil.getString(request, "backURL");
long collaudoId = ParamUtil.getLong(request, "collaudoId", 0L);
Collaudo collaudo = CollaudoLocalServiceUtil.fetchCollaudo(collaudoId);
if (Validator.isNull(collaudo)) {
long intPraticaIdParam = ParamUtil.getLong(request, "intPraticaId");
collaudo = CollaudoLocalServiceUtil.getLastEditable(intPraticaIdParam);
collaudoId = collaudo.getCollaudoId();
}
boolean openVerifyUrl = ParamUtil.getBoolean(request, "openVerifyUrl");
boolean showHistory = ParamUtil.getBoolean(request, "showHistory", true);
long intPraticaId = collaudo.getIntPraticaId();
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId);
DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
if(dettPratica == null){
}
boolean openVerifyUrl = ParamUtil.getBoolean(request, "openVerifyUrl");
long intPraticaId = collaudo.getIntPraticaId();
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId);
DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
if (dettPratica == null) {
dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
Soggetto collaudatore = null;
List<Soggetto> collaudatori = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(intPraticaId, dettPratica.getCodiceFiscaleDelegatoCollaudo());
if(!collaudatori.isEmpty()){
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
Soggetto collaudatore = null;
List<Soggetto> collaudatori = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(intPraticaId, dettPratica.getCodiceFiscaleDelegatoCollaudo());
if (!collaudatori.isEmpty()) {
collaudatore = collaudatori.get(0);
}
String formName = "fmCollaudo";
boolean disabledEditing = collaudo.getCompletata();
request.setAttribute("bean.collaudo", collaudo);
}
String formName = "fmCollaudo";
boolean disabledEditing = collaudo.getCompletata();
request.setAttribute("bean.collaudo", collaudo);
%>
<liferay-portlet:actionURL name="saveCollaudo" var="saveCollaudoURL" >
<liferay-portlet:param name="collaudoId" value="<%=String.valueOf(collaudo.getCollaudoId()) %>"/>
<liferay-portlet:param name="backURL" value="<%=backURL %>"/>
<liferay-portlet:param name="successURL" value="<%=currentURL %>"/>
<liferay-portlet:actionURL name="saveCollaudo" var="saveCollaudoURL">
<liferay-portlet:param name="collaudoId" value="<%=String.valueOf(collaudo.getCollaudoId()) %>" />
<liferay-portlet:param name="backURL" value="<%=backURL %>" />
<liferay-portlet:param name="successURL" value="<%=currentURL %>" />
</liferay-portlet:actionURL>
<aui:form name="<%= formName %>" onSubmit="preventDefault();" action="<%= saveCollaudoURL %>">
<aui:model-context bean="<%= collaudo %>" model="<%=Collaudo.class %>"></aui:model-context>
<aui:input type="hidden" name="bozza" />
<div class="container-fluid">
<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;
if(disabledEditing){
if (disabledEditing) {
label = "view-collaudo";
}else if(Validator.isNull(collaudo.getCollaudoId())){
} else if (Validator.isNull(collaudo.getCollaudoId())) {
label = "new-collaudo";
} else {
label = "edit-collaudo";
}
%>
<liferay-ui:header
title='<%= LanguageUtil.get(pageContext, label)+" #"+dettPratica.getTitle() %>'
localizeTitle="<%= false %>"
backURL="<%= backURL %>"
/>
title='<%= LanguageUtil.get(pageContext, label) + " #" + dettPratica.getTitle() %>'
localizeTitle="false"
backURL="<%= backURL %>" />
</div>
<c:if test="<%= !disabledEditing %>">
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
<div class="pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon
iconCssClass="fa fa-save"
message="salva-bozza"
url="javascript:saveCollaudo(true);"
linkCssClass="btn"
/>
<liferay-ui:icon
iconCssClass="fa fa-check-square"
message="salva-conferma"
url="javascript:saveCollaudo(false);"
linkCssClass="btn btn-primary"
/>
<div class="col-xs-3">
<div class="pull-right">
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true"
cssClass="inline_toolbar">
<liferay-ui:icon iconCssClass="fa fa-save" message="salva-bozza"
url="javascript:saveCollaudo(true);" 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>
</div>
</div>
</c:if>
</div>
<div class="row">
<div class="col-md-12">
<div class="module-group">
@ -180,8 +150,10 @@
</div>
<div class="col-sm-6 col-md-3">
<%
List<Soggetto> committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(intPraticaId, TipoSoggettoUtil.COMMITTENTE);
if(!committenti.isEmpty()){
List<Soggetto> committenti = SoggettoLocalServiceUtil
.findByIntPratica_TipologiaSoggetto(intPraticaId,
TipoSoggettoUtil.COMMITTENTE);
if (!committenti.isEmpty()) {
%>
<ul>
<%
@ -203,10 +175,9 @@
</div>
<div class="col-sm-6 col-md-3">
<c:if test="<%= Validator.isNotNull(collaudatore) %>">
<aui:input name="collaudatore" value="<%= collaudatore.getCodiceFiscale() %>" type="hidden" />
<strong>
<%= collaudatore.getDescrizioneCompleta() %>
</strong>
<aui:input name="collaudatore" value="<%= collaudatore.getCodiceFiscale() %>"
type="hidden" />
<strong><%= collaudatore.getDescrizioneCompleta() %></strong>
</c:if>
</div>
</div>
@ -215,7 +186,8 @@
<%= LanguageUtil.get(pageContext, "col-tipo-dom") %>
</div>
<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 class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-data-invio-fl") %>
@ -235,12 +207,18 @@
<%= LanguageUtil.get(pageContext, "col-tipo") %>
</div>
<div class="col-sm-6 col-md-3">
<aui:select label="" name="tipoCollaudo" disabled="<%= disabledEditing %>" >
<c:if test="<%=AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_CO_PARZIALE)%>">
<aui:option label='Parziale' value="<%= true %>" selected="<%= Validator.isNotNull(collaudo) && collaudo.getParziale() %>"/>
<aui:select label="" name="tipoCollaudo" disabled="<%= disabledEditing %>">
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPraticaId,
AzioniPraticheUtil.ACTION_CO_PARZIALE)%>">
<aui:option label='Parziale' value="true"
selected="<%= Validator.isNotNull(collaudo)
&& collaudo.getParziale() %>" />
</c:if>
<c:if test="<%=AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_CO_TOTALE)%>">
<aui:option label='Totale' value="<%= false %>" selected="<%= Validator.isNotNull(collaudo) && !collaudo.getParziale() %>"/>
<c:if test="<%=AzioniPraticheUtil.isAllowedAction(intPraticaId,
AzioniPraticheUtil.ACTION_CO_TOTALE)%>">
<aui:option label='Totale' value="false"
selected="<%= Validator.isNotNull(collaudo)
&& !collaudo.getParziale() %>" />
</c:if>
</aui:select>
</div>
@ -248,17 +226,20 @@
<%= LanguageUtil.get(pageContext, "col-data-fine") %>
</div>
<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="formName" value="<%= formName %>" />
<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>
</div>
</div>
<div class="row">
<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>
<hr>
@ -266,7 +247,9 @@
<div class="col-sm-12 col-md-12">
<c:if test="<%= Validator.isNotNull(collaudatore) %>">
<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>
</c:if>
</div>
@ -282,26 +265,21 @@
<liferay-ui:search-container emptyResultsMessage="no-varianti-integrazioni">
<liferay-ui:search-container-results
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"
modelVar="dettPraticaExtra">
<%
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="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 name="Tipo Pratica" cssClass="text-nowrap">
<%= tipoIntegrazione %>
</liferay-ui:search-container-column-text>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" />
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</div>
</div>
@ -310,21 +288,16 @@
<liferay-ui:search-container emptyResultsMessage="no-fine-lavori">
<liferay-ui:search-container-results
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"
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="n-progetto" cssClass="text-nowrap">
<%= intPratica.getTitle(locale,true) %>
</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-iterator paginate="<%= false %>" />
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</div>
</div>
@ -332,22 +305,23 @@
<div class="col-sm-12 col-md-12 container-collaudi__dettagli">
<liferay-ui:search-container emptyResultsMessage="no-collaudi-parziali">
<liferay-ui:search-container-results
results='<%= CollaudoLocalServiceUtil.findByIntPraticaId_Parziale_leCollaudoId(collaudoId, intPraticaId, true, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null) %>'
total='<%= CollaudoLocalServiceUtil.countByIntPraticaId_Parziale_leCollaudoId(collaudoId, intPraticaId, true) %>'
/>
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.Collaudo"
modelVar="collaudoParziale">
<liferay-ui:search-container-column-text name="Data" cssClass="text-nowrap" value='<%= Validator.isNotNull(collaudoParziale.getDataCollaudo()) ? dateFormatDate.format(collaudoParziale.getDataCollaudo()) : ""%>' />
results='<%= CollaudoLocalServiceUtil
.findByIntPraticaId_Parziale_leCollaudoId(collaudoId,
intPraticaId, true, QueryUtil.ALL_POS,
QueryUtil.ALL_POS, null) %>'
total='<%= CollaudoLocalServiceUtil
.countByIntPraticaId_Parziale_leCollaudoId(collaudoId,
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">
<%= intPratica.getTitle(locale,true) %>
<%= intPratica.getTitle(locale, true) %>
</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-iterator paginate="<%= false %>" />
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</div>
</div>
@ -359,10 +333,10 @@
</div>
<div class="row">
<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>
</liferay-ui:panel>
</div>
@ -379,103 +353,87 @@
%>
<aui:script use="aui-base">
var allegatiEdit = false;
Liferay.on('popupReady',function(event) {
Liferay.on('popupReady',function (event) {
var modalName = event._event.details[0].windowName;
var modalWin = Liferay.Util.Window.getById(modalName);
modalWin.after('visibleChange', function(event) {
if(event.prevVal){
if(allegatiEdit){
Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_<%=comingFrom%>_");
}
modalWin.after('visibleChange', function (event) {
if (event.prevVal && allegatiEdit) {
Liferay.Portlet.refresh("#p_p_id_<%= PortletKeys.ALLEGATI %>_INSTANCE_<%= comingFrom %>_");
}
});
modalWin.after('hide', function(event) {
if(allegatiEdit){
modalWin.after('hide', function (event) {
if (allegatiEdit) {
Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_<%=comingFrom%>_");
}
});
modalWin.after('destroy', function(event) {
modalWin.after('destroy', function (event) {
if(allegatiEdit){
Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_<%=comingFrom%>_");
}
});
});
Liferay.on('allegati-<%=comingFrom%>-open',function(event) {
allegatiEdit=true;
Liferay.on('allegati-<%= comingFrom %>-open', function (event) {
allegatiEdit = true;
});
Liferay.on('allegati-<%=comingFrom%>-ready',function(event) {
if(allegatiEdit){
allegatiEdit=false;
}
Liferay.on('allegati-<%= comingFrom %>-ready', function (event) {
allegatiEdit = false;
});
</aui:script>
<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>
<liferay-portlet:runtime portletName='<%= PortletKeys.ALLEGATI + "_INSTANCE_" + comingFrom %>'
queryString='<%= "&classPk=" + collaudo.getCollaudoId() + "&className=" + Collaudo.class.getName()
+ "&comingFrom=" + comingFrom + "&disabled=" + disabledEditing + "&inBO="
+ disabledEditing %>' />
</div>
</div>
</div>
</aui:form>
<c:if test="<%=openVerifyUrl %>">
<liferay-portlet:renderURL var="verifyRenderURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>">
<c:if test="<%= openVerifyUrl %>">
<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="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" />
<liferay-portlet:param name="collaudoId" value="<%=String.valueOf(collaudoId)%>" />
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId)%>" />
<liferay-portlet:param name="collaudoId" value="<%= String.valueOf(collaudoId)%>" />
</liferay-portlet:renderURL>
<aui:script use="aui-base">
Liferay.Util.openWindow(
{
Liferay.Util.openWindow({
id: '<portlet:namespace />openVerificaCollaudo',
title: 'Verifica Collaudo',
uri: '<%=verifyRenderURL%>'
}
);
uri: '<%=verifyRenderURL%>',
});
</aui:script>
</c:if>
<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">
var verifyPopupReady = false;
Liferay.on('popupReady',function(event) {
var verifyPopupReady = false;
Liferay.on('popupReady',function (event) {
var modalName = event._event.details[0].windowName;
var modalWin = Liferay.Util.Window.getById(modalName);
modalWin.after('visibleChange', function(event) {
if(event.prevVal && verifyPopupReady){
modalWin.after('visibleChange', function (event) {
if (event.prevVal && verifyPopupReady) {
window.location.href = "<%= refreshURL %>"
}
});
modalWin.after('hide', function(event) {
if(verifyPopupReady){
modalWin.after('hide', function (event) {
if (verifyPopupReady) {
window.location.href = "<%= refreshURL %>"
}
});
modalWin.after('destroy', function(event) {
if(verifyPopupReady){
modalWin.after('destroy', function (event) {
if (verifyPopupReady) {
window.location.href = "<%= refreshURL %>"
}
});
});
Liferay.on('verifyPopup-ready',function(event) {
verifyPopupReady=true;
});
});
Liferay.on('verifyPopup-ready',function (event) {
verifyPopupReady = true;
});
</aui:script>
<script type="text/javascript">
Liferay.provide(
window,
'saveCollaudo',
function(bozza) {
Liferay.provide(window, 'saveCollaudo', function (bozza) {
AUI().one('#<portlet:namespace />bozza').set('value',bozza);
submitForm(document.<portlet:namespace /><%= formName %>);
},
['aui-base']
);
}, ['aui-base']);
</script>

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

@ -1,129 +1,107 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.util.AzioniPraticheUtil"%>
<%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%>
<%@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.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="com.liferay.portal.kernel.servlet.ServletContextPool"%>
<%@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.service.TerritorioLocalServiceUtil"%>
<%@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.service.SoggettoServiceUtil"%>
<%@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"%>
<%@page import="it.tref.liferay.portos.bo.util.AzioniPraticheUtil"%>
<%@ include file="/html/fascicolofe/init.jsp" %>
<%
String backURL = ParamUtil.getString(request, "backURL");
long fineLavoriId = ParamUtil.getLong(request, "fineLavoriId",0l);
FineLavori fineLavori = FineLavoriLocalServiceUtil.fetchFineLavori(fineLavoriId);
if( Validator.isNull(fineLavori) ){
String backURL = ParamUtil.getString(request, "backURL");
long fineLavoriId = ParamUtil.getLong(request, "fineLavoriId", 0L);
FineLavori fineLavori = FineLavoriLocalServiceUtil.fetchFineLavori(fineLavoriId);
if (Validator.isNull(fineLavori)) {
long intPraticaIdParam = ParamUtil.getLong(request, "intPraticaId");
fineLavori = FineLavoriServiceUtil.getLastEditable(intPraticaIdParam);
fineLavoriId = fineLavori.getFineLavoriId();
}
boolean openVerifyUrl = ParamUtil.getBoolean(request, "openVerifyUrl");
boolean showHistory = ParamUtil.getBoolean(request, "showHistory", true);
long intPraticaId = fineLavori.getIntPraticaId();
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId);
DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
if(dettPratica == null){
}
boolean openVerifyUrl = ParamUtil.getBoolean(request, "openVerifyUrl");
long intPraticaId = fineLavori.getIntPraticaId();
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId);
DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
if (dettPratica == null) {
dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
Soggetto direttoreLavori = null;
List<Soggetto> direttori = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(intPraticaId, dettPratica.getCodiceFiscaleDelegatoFineLavori());
if(!direttori.isEmpty()){
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
Soggetto direttoreLavori = null;
List<Soggetto> direttori = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(intPraticaId,
dettPratica.getCodiceFiscaleDelegatoFineLavori());
if (!direttori.isEmpty()) {
direttoreLavori = direttori.get(0);
}
String formName = "fmFineLavori";
boolean disabledEditing = fineLavori.getCompletata();
request.setAttribute("bean.fineLavori", fineLavori);
boolean isNewFineLavori = ParamUtil.getBoolean(request, "isNewFineLavori");
}
String fmName = "fmFineLavori";
boolean disabledEditing = fineLavori.getCompletata();
request.setAttribute("bean.fineLavori", fineLavori);
%>
<liferay-portlet:actionURL name="saveFineLavori" var="saveFineLavoriURL" >
<liferay-portlet:param name="fineLavoriId" value="<%=String.valueOf(fineLavori.getFineLavoriId()) %>"/>
<liferay-portlet:param name="backURL" value="<%=backURL %>"/>
<liferay-portlet:param name="successURL" value="<%=currentURL %>"/>
<liferay-portlet:param name="fineLavoriId" value="<%= String.valueOf(fineLavoriId) %>"/>
<liferay-portlet:param name="backURL" value="<%= backURL %>"/>
<liferay-portlet:param name="successURL" value="<%= currentURL %>"/>
</liferay-portlet:actionURL>
<aui:form name="<%= formName %>" onSubmit="preventDefault();" action="<%= saveFineLavoriURL %>">
<aui:model-context bean="<%= fineLavori %>" model="<%=FineLavori.class %>"></aui:model-context>
<aui:form name="<%= fmName %>" onSubmit="preventDefault();" action="<%= saveFineLavoriURL %>">
<aui:model-context bean="<%= fineLavori %>" model="<%= FineLavori.class %>" />
<aui:input type="hidden" name="bozza" />
<div class="container-fluid">
<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;
if(disabledEditing){
if (disabledEditing) {
label = "view-fine-lavori";
}else if(Validator.isNull(fineLavori.getFineLavoriId())){
} else if (Validator.isNull(fineLavori.getFineLavoriId())) {
label = "new-fine-lavori";
} else {
label = "edit-fine-lavori";
}
%>
<liferay-ui:header
title='<%= LanguageUtil.get(pageContext, label)+" #"+dettPratica.getTitle() %>'
localizeTitle="<%= false %>"
backURL="<%= backURL %>"
/>
<liferay-ui:header title='<%= LanguageUtil.get(pageContext, label) + " #" + dettPratica.getTitle() %>'
localizeTitle="false" backURL="<%= backURL %>" />
</div>
<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" >
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon
iconCssClass="fa fa-save"
message="salva-bozza"
url="javascript:saveFineLavori(true);"
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 showWhenSingleIcon="false" extended="false" showExpanded="true"
cssClass="inline_toolbar" >
<liferay-ui:icon iconCssClass="fa fa-save" message="salva-bozza"
url="javascript:saveFineLavori(true);" 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>
</div>
</div>
</c:if>
</div>
<div class="row">
<div class="col-md-12">
<div class="module-group">
<c:if test="<%= Validator.isNotNull(dettPratica.getDataInizioLavoriOpera()) %>">
<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>
</c:if>
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fl">
<div class="container-fluid">
<div class="row">
@ -131,13 +109,13 @@
<%= LanguageUtil.get(pageContext, "fl-prov") %>
</div>
<div class="col-sm-6 col-md-3">
<strong><%=BeanPropertiesUtil.getString(provincia, "provincia")%></strong>
<strong><%= BeanPropertiesUtil.getString(provincia, "provincia") %></strong>
</div>
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "fl-comune") %>
</div>
<div class="col-sm-6 col-md-3">
<strong><%=BeanPropertiesUtil.getString(comune, "denominazione")%></strong>
<strong><%= BeanPropertiesUtil.getString(comune, "denominazione") %></strong>
</div>
</div>
<div class="row">
@ -159,7 +137,8 @@
<%= LanguageUtil.get(pageContext, "fl-range") %>
</div>
<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>
<hr>
@ -168,7 +147,7 @@
<%= LanguageUtil.get(pageContext, "fl-desc-interv") %>
</div>
<div class="col-sm-6 col-md-9">
<strong><%=BeanPropertiesUtil.getString(dettPratica, "descLongIntervento") %></strong>
<strong><%= BeanPropertiesUtil.getString(dettPratica, "descLongIntervento") %></strong>
</div>
</div>
<hr>
@ -178,12 +157,14 @@
</div>
<div class="col-sm-6 col-md-3">
<%
List<Soggetto> committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(intPraticaId, TipoSoggettoUtil.COMMITTENTE);
if(!committenti.isEmpty()){
List<Soggetto> committenti = SoggettoLocalServiceUtil
.findByIntPratica_TipologiaSoggetto(intPraticaId,
TipoSoggettoUtil.COMMITTENTE);
if (!committenti.isEmpty()) {
%>
<ul>
<%
for(Soggetto committente : committenti){
for (Soggetto committente : committenti) {
%>
<li><strong>
<%= committente.getDescrizioneCompleta() %>
@ -201,7 +182,8 @@
</div>
<div class="col-sm-6 col-md-3">
<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>
<%= direttoreLavori.getDescrizioneCompleta() %>
</strong>
@ -213,7 +195,8 @@
<%= LanguageUtil.get(pageContext, "fl-tipo-dom") %>
</div>
<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>
<hr>
@ -222,17 +205,22 @@
<%= LanguageUtil.get(pageContext, "fl-tipo") %>
</div>
<div class="col-sm-6 col-md-3">
<aui:select label="" name="tipoFineLavori" showEmptyOption="true" disabled="<%= disabledEditing %>" >
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_PARZIALE)%>">
<aui:option label='Parziale' value="<%= true %>" selected="<%= Validator.isNotNull(fineLavori) && fineLavori.getParziale() %>"/>
<aui:select label="" name="tipoFineLavori" showEmptyOption="true"
disabled="<%= disabledEditing %>" >
<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 test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_TOTALE)%>">
<aui:option label='Totale' value="<%= false %>" selected="<%= Validator.isNotNull(fineLavori) && !fineLavori.getParziale() %>"/>
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(),
AzioniPraticheUtil.ACTION_FL_TOTALE)%>">
<aui:option label='Totale' value="false" selected="<%= Validator.isNotNull(fineLavori)
&& !fineLavori.getParziale() %>"/>
</c:if>
<c:if test="<%= !AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_PARZIALE) &&
!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='Totale' disabled="<%= true %>" value="<%= false %>" 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() %>"/>
</c:if>
</aui:select>
</div>
@ -242,7 +230,7 @@
<div class="col-sm-6 col-md-3">
<liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>">
<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="disabled" value="<%= String.valueOf(disabledEditing) %>" />
</liferay-util:include>
@ -250,8 +238,21 @@
</div>
<hr>
<div class="row">
<div class="col-xs-12">
<aui:input name="richiestaAttestazione" label="fl-attestazione"
disabled="<%= disabledEditing %>" />
* <%= LanguageUtil.get(pageContext, "fl-attestazione-note") %>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-12 col-md-12">
<aui:input name="normEsenteBollo" label="fl-esente-bollo"
disabled="<%= disabledEditing %>"/>
</div>
<div class="col-sm-12 col-md-12">
<aui:input name="normEsenteBollo" label="fl-esente-bollo" disabled="<%= disabledEditing %>"/>
<aui:input name="normEsenteSpese" label="norm-esente-diritti"
disabled="<%= disabledEditing %>"/>
</div>
</div>
<hr>
@ -264,99 +265,35 @@
<div class="col-sm-12 col-md-12 container-varianti-integrazioni__dettagli">
<liferay-ui:search-container emptyResultsMessage="no-varianti-integrazioni">
<liferay-ui:search-container-results
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})) %>"
results="<%= DettPraticaServiceUtil
.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"
modelVar="dettPraticaExtra">
<liferay-ui:search-container-row 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" value='<%= Validator.isNotNull(dettPraticaExtra.getDataEffettuazione()) ? dateFormatDate.format(dettPraticaExtra.getDataEffettuazione()) : ""%>' />
<liferay-ui:search-container-column-text name="Data" cssClass="text-nowrap"
value='<%= Validator.isNull(dettPraticaExtra.getDataEffettuazione())
? StringPool.BLANK
: dateFormatDate.format(dettPraticaExtra
.getDataEffettuazione()) %>' />
<liferay-ui:search-container-column-text name="n-progetto" cssClass="text-nowrap">
<%= intPratica.getTitle(locale,true) %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Tipo Pratica" cssClass="text-nowrap">
<%= tipoIntegrazione %>
</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-iterator paginate="<%= false %>" />
<liferay-ui:search-iterator paginate="false>" />
</liferay-ui:search-container>
</div>
</div>
@ -364,22 +301,29 @@
<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-results
results='<%= FineLavoriLocalServiceUtil.findByIntPraticaId_Parziale_leFineLavoriId(fineLavoriId, intPraticaId, true, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null) %>'
total='<%= FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale_leFineLavoriId(fineLavoriId, intPraticaId, true) %>'
/>
results='<%= FineLavoriLocalServiceUtil
.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"
modelVar="fineLavoriParziale">
<liferay-ui:search-container-column-text name="Data" cssClass="text-nowrap" value='<%= Validator.isNotNull(fineLavoriParziale.getDataEffettuazione()) ? dateFormatDate.format(fineLavoriParziale.getDataEffettuazione()) : ""%>' />
<liferay-ui:search-container-column-text name="n-progetto" cssClass="text-nowrap">
<%= intPratica.getTitle(locale,true) %>
<liferay-ui:search-container-column-text name="Data" cssClass="text-nowrap"
value='<%= Validator.isNull(fineLavoriParziale.getDataEffettuazione())
? StringPool.BLANK
: dateFormatDate.format(fineLavoriParziale
.getDataEffettuazione()) %>' />
<liferay-ui:search-container-column-text name="n-progetto"
cssClass="text-nowrap">
<%= intPratica.getTitle(locale, true) %>
</liferay-ui:search-container-column-text>
<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>
<liferay-ui:search-container-column-text name="Tipo Pratica"
cssClass="text-nowrap" value='<%= "Fine Lavori " + (fineLavoriParziale
.getParziale() ? "Parziale" : "Totale") %>' />
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" />
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</div>
</div>
@ -387,7 +331,9 @@
<div class="col-sm-12 col-md-12">
<c:if test="<%= Validator.isNotNull(direttoreLavori) %>">
<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>
</c:if>
</div>
@ -395,23 +341,28 @@
<hr>
<div class="row altro_check">
<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 class="row">
<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>
<hr>
<div class="row">
<div class="col-sm-12 col-md-12">
<c:if test="<%=!dettPratica.getCollaudoStatico() %>">
<liferay-util:include page="/html/common/help_message.jsp" servletContext="<%= application %>">
<liferay-util:param name="message" value="Selezione disabilitata perché la pratica prevede l\'esecuzione del collaudo statico"></liferay-util:param>
<c:if test="<%= !dettPratica.getCollaudoStatico() %>">
<liferay-util:include page="/html/common/help_message.jsp"
servletContext="<%= application %>">
<liferay-util:param name="message" value="Selezione disabilitata perché la pratica prevede l\'esecuzione del collaudo statico" />
</liferay-util:include>
</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>
@ -424,7 +375,9 @@
<div class="col-sm-12 col-md-12">
<c:if test="<%= Validator.isNotNull(direttoreLavori) %>">
<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>
</c:if>
</div>
@ -440,124 +393,97 @@
%>
<aui:script use="aui-base">
var allegatiEdit = false;
Liferay.on('popupReady',function(event) {
Liferay.on('popupReady', function (event) {
var modalName = event._event.details[0].windowName;
var modalWin = Liferay.Util.Window.getById(modalName);
modalWin.after('visibleChange', function(event) {
if(event.prevVal){
if(allegatiEdit){
Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_<%=comingFrom%>_");
modalWin.after('visibleChange', function (event) {
if (event.prevVal) {
if (allegatiEdit) {
Liferay.Portlet.refresh(
"#p_p_id_<%= PortletKeys.ALLEGATI %>_INSTANCE_<%= comingFrom %>_"
);
}
}
});
modalWin.after('hide', function(event) {
if(allegatiEdit){
Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_<%=comingFrom%>_");
modalWin.after('hide', function (event) {
if (allegatiEdit) {
Liferay.Portlet.refresh(
"#p_p_id_<%= PortletKeys.ALLEGATI %>_INSTANCE_<%= comingFrom %>_"
);
}
});
modalWin.after('destroy', function(event) {
if(allegatiEdit){
Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_<%=comingFrom%>_");
modalWin.after('destroy', function (event) {
if (allegatiEdit) {
Liferay.Portlet.refresh(
"#p_p_id_<%= PortletKeys.ALLEGATI %>_INSTANCE_<%= comingFrom %>_"
);
}
});
});
Liferay.on('allegati-<%=comingFrom%>-open',function(event) {
allegatiEdit=true;
Liferay.on('allegati-<%= comingFrom %>-open', function (event) {
allegatiEdit = true;
});
Liferay.on('allegati-<%=comingFrom%>-ready',function(event) {
if(allegatiEdit){
allegatiEdit=false;
}
Liferay.on('allegati-<%= comingFrom %>-ready', function (event) {
allegatiEdit = false;
});
</aui:script>
<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>
<liferay-portlet:runtime portletName='<%= PortletKeys.ALLEGATI + "_INSTANCE_" + comingFrom %>'
queryString='<%= "&classPk=" + fineLavori.getFineLavoriId() + "&className="
+ FineLavori.class.getName() + "&comingFrom=" + comingFrom + "&disabled="
+ disabledEditing + "&inBO=" + disabledEditing %>' />
</div>
</div>
</div>
</aui:form>
<c:if test="<%=openVerifyUrl %>">
<liferay-portlet:renderURL var="verifyRenderURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>">
</aui:form>
<c:if test="<%= openVerifyUrl %>">
<liferay-portlet:renderURL var="verifyRenderURL" 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:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="fineLavoriId" value="<%= String.valueOf(fineLavoriId) %>" />
</liferay-portlet:renderURL>
<aui:script use="aui-base">
Liferay.Util.openWindow(
{
Liferay.Util.openWindow({
id: '<portlet:namespace />openVerificaFineLavori',
title: 'Verifica Fine Lavori',
uri: '<%=verifyRenderURL%>'
}
);
uri: '<%= verifyRenderURL %>',
});
</aui:script>
</c:if>
</c:if>
<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">
/* 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;
Liferay.on('popupReady',function(event) {
var verifyPopupReady = false;
Liferay.on('popupReady',function (event) {
var modalName = event._event.details[0].windowName;
var modalWin = Liferay.Util.Window.getById(modalName);
modalWin.after('visibleChange', function(event) {
if(event.prevVal && verifyPopupReady){
modalWin.after('visibleChange', function (event) {
if (event.prevVal && verifyPopupReady) {
window.location.href = "<%= refreshURL %>"
}
});
modalWin.after('hide', function(event) {
if(verifyPopupReady){
modalWin.after('hide', function (event) {
if (verifyPopupReady) {
window.location.href = "<%= refreshURL %>"
}
});
modalWin.after('destroy', function(event) {
modalWin.after('destroy', function (event) {
if(verifyPopupReady){
window.location.href = "<%= refreshURL %>"
}
});
});
Liferay.on('verifyPopup-ready',function(event) {
verifyPopupReady=true;
});
Liferay.provide(
});
Liferay.on('verifyPopup-ready', function (event) {
verifyPopupReady = true;
});
Liferay.provide(
window,
'saveFineLavori',
function(bozza) {
AUI().one('#<portlet:namespace />bozza').set('value',bozza);
submitForm(document.<portlet:namespace /><%= formName %>);
function (bozza) {
AUI().one('#<portlet:namespace />bozza').set('value', bozza);
submitForm(document.<portlet:namespace /><%= fmName %>);
},
['aui-base']
);
);
</aui:script>

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

@ -0,0 +1,55 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%>
<%@include file="/html/fascicolofe/init.jsp"%>
<%
String backURL = ParamUtil.getString(request, "backURL");
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(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="col-xs-9">
<liferay-ui:header title='<%= "Comunica inizio lavori #" + dettPratica.getTitle() %>'
localizeTitle="false" backURL="<%= backURL %>" />
</div>
<div class="col-xs-3">
<div class="pull-right" >
<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 class="container-fluid">
<div class="col-xs-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="Inizio lavori">
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>
</liferay-ui:panel>
</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.Delega"%>
<%@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.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
@ -34,7 +35,8 @@ if (searchContainer != null) {
long intPraticaId = ParamUtil.getLong(request, "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;
%>
<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 %>" />
</c:if>
<c:if test="<%= isProgetti %>">
<c:if test="<%= ValidazionePraticaUtil.canEditPratica(intPratica.getIntPraticaId()) %>">
<c:if test="<%= ValidazionePraticaUtil.canEditPratica(intPraticaId) %>">
<portlet:renderURL var="editEntryURL">
<portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" />
<portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
@ -66,7 +68,7 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
</portlet:renderURL>
<liferay-ui:icon iconCssClass="fa fa-edit" message="edit" url="<%=editEntryURL%>" />
</c:if>
<c:if test="<%= ValidazionePraticaUtil.canDeletePratica(intPratica.getIntPraticaId(),
<c:if test="<%= ValidazionePraticaUtil.canDeletePratica(intPraticaId,
user.getUserId()) %>">
<portlet:actionURL name="deleteFascicolo" var="deleteFascicoloURL">
<portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
@ -76,9 +78,9 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
</c:if>
<%
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) %>">
<liferay-portlet:renderURL var="editUsersUrl" >
<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"
url="<%= addGestioneUtentiURL %>" />
</c:if>
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(),
AzioniPraticheUtil.ACTION_AGGIUNGI_SOGGETTO)
&& ValidazionePraticaUtil.canEditUsers(intPratica.getIntPraticaId()) %>">
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_AGGIUNGI_SOGGETTO)
&& ValidazionePraticaUtil.canEditUsers(intPraticaId) %>">
<c:if test="<%= Validator.isNotNull(variazioniSoggetto) %>">
<liferay-portlet:renderURL var="editGestioneUtentiURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" />
@ -110,9 +111,8 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
url="<%= deleteGestioneUtentiURL %>" />
</c:if>
</c:if>
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(),
AzioniPraticheUtil.ACTION_ANNULLA)
&& ValidazionePraticaUtil.praticaCanAbort(intPratica.getIntPraticaId(), user.getUserId())
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_ANNULLA)
&& ValidazionePraticaUtil.praticaCanAbort(intPraticaId, user.getUserId())
&& !intPratica.getSospesa() %>">
<%
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"
url="<%= abortFascicoloURL %>" useDialog="true" data="<%= dataMap %>"/>
</c:if>
<c:if test="<%= AzioniPraticheUtil.canPrintFascicolo(intPratica.getIntPraticaId()) %>">
<c:if test="<%= AzioniPraticheUtil.canPrintFascicolo(intPraticaId) %>">
<liferay-portlet:resourceURL var="stampaFascicoloURL" id="stampaFascicolo" >
<portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
</liferay-portlet:resourceURL>
@ -135,16 +135,15 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
target="_blank" />
</c:if>
<%
boolean canAddVariante = ValidazionePraticaUtil.praticaCanAddVariante(intPratica.getIntPraticaId());
boolean canEditVariante = ValidazionePraticaUtil.praticaCanEditVariante(intPratica.getIntPraticaId());
boolean canDeleteVariante = ValidazionePraticaUtil.praticaCanDeleteVariante(intPratica.getIntPraticaId());
boolean canAddVariante = ValidazionePraticaUtil.praticaCanAddVariante(intPraticaId);
boolean canEditVariante = ValidazionePraticaUtil.praticaCanEditVariante(intPraticaId);
boolean canDeleteVariante = ValidazionePraticaUtil.praticaCanDeleteVariante(intPraticaId);
%>
<c:if test="<%= intPratica.getUserId() == user.getUserId() && (canAddVariante || canEditVariante
|| canDeleteVariante) %>">
<c:if test="<%= !intPratica.getSospesa() %>">
<div class="separator"></div>
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(),
AzioniPraticheUtil.ACTION_VARIANTE)
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_VARIANTE)
&& canAddVariante %>">
<liferay-portlet:renderURL var="editUrl" >
<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>
<%
boolean canAddIntegrazione = ValidazionePraticaUtil.praticaCanAddIntegrazione(intPratica.getIntPraticaId());
boolean canEditIntegrazione = ValidazionePraticaUtil.praticaCanEditIntegrazione(intPratica.getIntPraticaId());
boolean canDeleteIntegrazione = ValidazionePraticaUtil.praticaCanDeleteIntegrazione(
intPratica.getIntPraticaId());
boolean canAddIntegrazione = ValidazionePraticaUtil.praticaCanAddIntegrazione(intPraticaId);
boolean canEditIntegrazione = ValidazionePraticaUtil.praticaCanEditIntegrazione(intPraticaId);
boolean canDeleteIntegrazione = ValidazionePraticaUtil.praticaCanDeleteIntegrazione(intPraticaId);
%>
<c:if test="<%= intPratica.getUserId() == user.getUserId() && (canAddIntegrazione || canEditIntegrazione
|| canDeleteIntegrazione) %>">
<c:if test="<%= !intPratica.getSospesa() %>">
<div class="separator"></div>
</c:if>
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(),
AzioniPraticheUtil.ACTION_INTEGRAZIONE) && canAddIntegrazione %>">
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_INTEGRAZIONE)
&& canAddIntegrazione %>">
<liferay-portlet:renderURL var="editUrl" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" />
</liferay-portlet:renderURL>
@ -222,18 +220,30 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
</c:if>
</c:if>
<c:if test="<%= isProgetti || isAltriProgetti || isDeleghe %>">
<c:if test="<%= ValidazionePraticaUtil.praticaCanAddFineLavori(intPratica.getIntPraticaId(),
user.getScreenName())
|| ValidazionePraticaUtil.praticaCanEditFineLavori(intPratica.getIntPraticaId(),
user.getScreenName()) %>">
<c:if test="<%= ValidazionePraticaUtil.praticaCanAddFineLavori(intPraticaId,user.getScreenName())
|| ValidazionePraticaUtil.praticaCanEditFineLavori(intPraticaId, user.getScreenName()) %>">
<c:if test="<%= !intPratica.getSospesa() %>">
<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.isAllowedAction(intPratica.getIntPraticaId(),
AzioniPraticheUtil.ACTION_FL_TOTALE))
&& ValidazionePraticaUtil.praticaCanAddFineLavori(intPratica.getIntPraticaId(),
user.getScreenName()) %>">
|| AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_FL_TOTALE))
&& ValidazionePraticaUtil.praticaCanAddFineLavori(intPraticaId, user.getScreenName()) %>">
<liferay-portlet:renderURL var="editUrl" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fine-lavori.jsp"/>
<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:param name="successURL" value="<%= editUrl %>"/>
<liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<liferay-portlet:param name="isNewFineLavori" value="true" />
</liferay-portlet:actionURL>
<liferay-ui:icon iconCssClass="fa fa-plus" message="add-fine-lavori"
url="<%= addFineLavoriURL %>" />
</c:if>
</c:otherwise>
</c:choose>
</c:if>
<c:if test="<%= ValidazionePraticaUtil.praticaCanEditFineLavori(intPratica.getIntPraticaId(),
user.getScreenName()) %>">
<c:if test="<%= ValidazionePraticaUtil.praticaCanEditFineLavori(intPraticaId, user.getScreenName()) %>">
<liferay-portlet:renderURL var="editFineLavoriURL" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fine-lavori.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<liferay-portlet:param name="backURL" value="<%= redirect %>" />
<liferay-portlet:param name="isNewFineLavori" value="false" />
</liferay-portlet:renderURL>
<liferay-ui:icon iconCssClass="fa fa-edit" message="edit-fine-lavori" url="<%= editFineLavoriURL %>" />
</c:if>
<c:if test="<%= ValidazionePraticaUtil.praticaCanDeleteFineLavori(intPratica.getIntPraticaId(),
user.getScreenName()) %>">
<c:if test="<%= ValidazionePraticaUtil.praticaCanDeleteFineLavori(intPraticaId, user.getScreenName()) %>">
<liferay-portlet:actionURL name="deleteFineLavori" var="deleteFineLavoriURL">
<liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<liferay-portlet:param name="backURL" value="<%= redirect %>" />
@ -269,20 +277,15 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
url="<%= deleteFineLavoriURL %>" />
</c:if>
</c:if>
<c:if test="<%= ValidazionePraticaUtil.praticaCanAddCollaudo(intPratica.getIntPraticaId(),
user.getScreenName())
|| ValidazionePraticaUtil.praticaCanEditCollaudo(intPratica.getIntPraticaId(), user.getScreenName())
|| ValidazionePraticaUtil.praticaCanDeleteCollaudo(intPratica.getIntPraticaId(),
user.getScreenName()) %>">
<c:if test="<%= ValidazionePraticaUtil.praticaCanAddCollaudo(intPraticaId, user.getScreenName())
|| ValidazionePraticaUtil.praticaCanEditCollaudo(intPraticaId, user.getScreenName())
|| ValidazionePraticaUtil.praticaCanDeleteCollaudo(intPraticaId, user.getScreenName()) %>">
<c:if test="<%= !intPratica.getSospesa() %>">
<div class="separator"></div>
</c:if>
<c:if test="<%= (AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(),
AzioniPraticheUtil.ACTION_CO_PARZIALE)
|| AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(),
AzioniPraticheUtil.ACTION_CO_TOTALE))
&& ValidazionePraticaUtil.praticaCanAddCollaudo(intPratica.getIntPraticaId(),
user.getScreenName())%>">
<c:if test="<%= (AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_CO_PARZIALE)
|| AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_CO_TOTALE))
&& ValidazionePraticaUtil.praticaCanAddCollaudo(intPraticaId, user.getScreenName()) %>">
<liferay-portlet:renderURL var="editUrl" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_collaudo.jsp"/>
<liferay-portlet:param name="backURL" value="<%= redirect %>" />
@ -293,8 +296,7 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
</liferay-portlet:actionURL>
<liferay-ui:icon iconCssClass="fa fa-plus" message="add-collaudo" url="<%= addCollaudoURL %>" />
</c:if>
<c:if test="<%= ValidazionePraticaUtil.praticaCanEditCollaudo(intPratica.getIntPraticaId(),
user.getScreenName()) %>">
<c:if test="<%= ValidazionePraticaUtil.praticaCanEditCollaudo(intPraticaId, user.getScreenName()) %>">
<liferay-portlet:renderURL var="editCollaudoURL" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_collaudo.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
@ -302,8 +304,7 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr
</liferay-portlet:renderURL>
<liferay-ui:icon iconCssClass="fa fa-edit" message="edit-collaudo" url="<%= editCollaudoURL %>" />
</c:if>
<c:if test="<%= ValidazionePraticaUtil.praticaCanDeleteCollaudo(intPratica.getIntPraticaId(),
user.getScreenName()) %>">
<c:if test="<%= ValidazionePraticaUtil.praticaCanDeleteCollaudo(intPraticaId, user.getScreenName()) %>">
<liferay-portlet:actionURL name="deleteCollaudo" var="deleteCollaudoURL">
<liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<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) {"
+ "var el_coniugio = $('input[name=_" + PortletKeys.FASCICOLOFE + "_{{prefix}}Coniugio]');"
+ "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_relazioni = ((el_relazioni.val().replace(/\\s*/g, '').length < 10) && (el_coniugiochk.val() == 1));"
+ "el_coniugio.parent().css({color:(err_coniugio ? '#a94442' : '#333')});"

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

@ -1,13 +1,10 @@
<%@page import="it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil"%>
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.Map"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.SessionUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.AzioniPraticheUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.SoggettiUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%>
<%@page import="java.util.regex.Pattern"%>
@ -17,6 +14,7 @@
<%@page import="it.tref.liferay.portos.bo.model.Provincia"%>
<%@page import="it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.ComuneLocalService"%>
<%@page import="it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Territorio"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
@ -57,6 +55,9 @@ boolean isDisabled = disabledInput && !enabledByIntegrazione;
String displayStyle = proceduraC ? "display:none" : StringPool.BLANK;
String urlIframeMappe = dettPratica.getUrlMappeFe(request, comune, disabledInput || isGeoEditable);
String originMappe = PortalUtil.getPortalURL(request);
if (!ConfigurazioneLocalServiceUtil.isProduction()) {
originMappe = "https://sismica.sicilia.it";
}
%>
<liferay-util:include page="/html/fascicolofe/navigator/header.jsp" servletContext="<%= application %>">

217
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/pagamenti/confirm_iris.jsp

@ -1,217 +0,0 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="java.util.Calendar"%>
<%@page import="java.util.Date"%>
<%@page import="java.util.UUID"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Pagamento"%>
<%@ include file="/html/init.jsp" %>
<%
long pagamentoId = ParamUtil.getLong(request, "pagamentoId");
Pagamento pagamento = PagamentoLocalServiceUtil.getPagamento(pagamentoId);
String random = UUID.randomUUID().toString();
%>
<c:if test="<%= !pagamento.getOtf() %>">
<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="pagamentoOneriUrl" value="<%=pagamentoOneri.getUrl()%>"/>
<aui:button value="go-to-iris" cssClass="btn btn-primary" onClick="window.open('${pagamentoOneriUrl}','_blank')"/> --%>
<%
String buttonOtf = "btnOtf_"+random;
String contentOtf = "saveAndCloseDiv_otf_"+random;
%>
<liferay-ui:icon-menu icon="" showExpanded="<%=false %>" showWhenSingleIcon="<%=false%>">
<liferay-ui:icon
id="<%= buttonOtf %>"
iconCssClass="fa fa-arrow-circle-o-right"
url="javascript:void(0)"
linkCssClass="btn btn-primary"
message="go-to-iris"
/>
</liferay-ui:icon-menu>
<liferay-portlet:resourceURL id="confirmOtf" var="confirmOtfUrl">
<liferay-portlet:param name="pagamentoId" value='<%= String.valueOf(pagamento.getPagamentoId()) %>'/>
</liferay-portlet:resourceURL>
<liferay-portlet:resourceURL id="resetOtf" var="resetOtfUrl">
<liferay-portlet:param name="pagamentoId" value='<%= String.valueOf(pagamento.getPagamentoId()) %>'/>
</liferay-portlet:resourceURL>
<%
String functionOtf =
"var newWin = window.open('"+pagamento.getUrl()+"','_blank');"+
"if(!newWin || newWin.closed || typeof newWin.closed=='undefined'){"+
"A.io.request('"+resetOtfUrl+"',{"+
"dataType: 'json',on: {"+
"complete: function(event, id, obj) {"+
"modalIrisPopupDisabled.show();"+
"}"+
"}"+
"});"+
"} else {"+
"A.io.request('"+confirmOtfUrl+"',{"+
"dataType: 'json',on: {"+
"success: function(event, id, obj) {"+
"var response = this.get('responseData');"+
"if(response.isCompleted){"+
"window.location.reload();"+
"}"+
"}"+
"}"+
"});"+
"}";
%>
<div id='<%=renderResponse.getNamespace()+contentOtf %>' class="hide" >
<span><%= LanguageUtil.get(pageContext, "label-confirm-payment-otf") %></span>
</div>
<liferay-util:include page="/html/common/submit_window.jsp" servletContext="<%= application %>" >
<liferay-util:param name="contentDiv" value='<%= contentOtf %>'></liferay-util:param>
<liferay-util:param name="titolo" value="Attenzione"></liferay-util:param>
<liferay-util:param name="headerCss" value="text-center"></liferay-util:param>
<liferay-util:param name="buttonId" value="<%= buttonOtf %>"></liferay-util:param>
<liferay-util:param name="buttonConferma" value="Conferma"></liferay-util:param>
<liferay-util:param name="onClick" value="<%= functionOtf %>"></liferay-util:param>
<liferay-util:param name="width" value="500"></liferay-util:param>
<liferay-util:param name="height" value="280"></liferay-util:param>
</liferay-util:include>
</div>
</c:if>
<!-- DEVO AGIRE QUI PER IL BOTTONE -->
<c:if test="<%= pagamento.getOtf() %>">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15">
<span><%= LanguageUtil.get(pageContext, "label-payment-otf-initialized") %></span>
</div>
<c:if test="<%=pagamento.getUtilizzata().equals(PagamentoConstants.UTILIZZATA_IN_CORSO) && pagamento.getOtfCreateDate() != null %>">
<%
Calendar calDataPagamento = Calendar.getInstance();
calDataPagamento.setTime(pagamento.getOtfCreateDate());
calDataPagamento.add(Calendar.MINUTE, 15);
Date dataPagamento = calDataPagamento.getTime();
Date nowDate = new Date();
%>
<c:if test="<%=nowDate.after(dataPagamento) %>">
<portlet:renderURL var="rigeneraPagamentoURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>" >
<portlet:param name="mvcPath" value="/html/fascicolofe/pagamenti/rigenera_pagamento.jsp"/>
<portlet:param name="pagamentoId" value='<%=pagamentoId + "" %>'/>
</portlet:renderURL>
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15">
<span><%= LanguageUtil.get(pageContext, "label-payment-otf-rigeneration") %></span>
<%
String buttonId = "pagamentoButton_" + pagamento.getPagamentoId();
%>
<aui:button type="button" id="<%=buttonId%>" value="text-rigenera-pagamento-admin" icon="icon-retweet" iconAlign="left" href="#" />
</div>
<script type="text/javascript">
AUI().ready('aui-node', function(A) {
A.one('#pagamentoButton_<%=pagamento.getPagamentoId() %>').on('click', function(e) {
Liferay.Util.openWindow(
{
dialog: {
modal: true,
cache: false,
centered: true,
resizable: false,
destroyOnClose: true,
width: 500,
height: 250
},
id: 'dialogRigeneraPagamentoId_<%=pagamento.getPagamentoId()%>',
title: 'Rigenera Pagamento',
uri: '<%=rigeneraPagamentoURL%>'
}
);
});
});
</script>
<aui:script>
Liferay.provide(window, 'refreshPortlet', function() {
var curPortlet = '#p_p_id<portlet:namespace/>';
Liferay.Portlet.refresh(curPortlet);
},
['aui-dialog','aui-dialog-iframe']
);
</aui:script>
<aui:script>
Liferay.provide(window, 'closePopup', function(dialogId) {
var A = AUI();
var dialog = Liferay.Util.getWindow(dialogId);
dialog.destroy();
},
['liferay-util-window']
);
</aui:script>
</c:if>
</c:if>
</c:if>
<div id='<%=renderResponse.getNamespace()+"help_message_iris_popup"%>' class="confirmModal"></div>
<%
String msgIris = LanguageUtil.get(pageContext, "help_message_iris_popup");
%>
<aui:script >
var modalIrisPopupDisabled = null;
AUI().ready(
'aui-modal',
function(A) {
modalIrisPopupDisabled = new A.Modal(
{
bodyContent: '<%= msgIris %>',
centered: true,
destroyOnHide: false,
headerContent: '<h3 class="modal_title">Attenzione</h3>',
modal: true,
render: '#<portlet:namespace />help_message_iris_popup',
visible: false,
close: true,
resizable: {
handles: ''
}
}).render();
modalIrisPopupDisabled.addToolbar(
[
{
label: 'Chiudi',
on: {
click: function() {
modalIrisPopupDisabled.hide();
window.location.reload();
}
}
}
]
);
}
);
</aui:script>

45
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/pagamenti/replace_payment.jsp

@ -1,45 +0,0 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="java.util.UUID"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Pagamento"%>
<%@ include file="/html/init.jsp" %>
<%
long companyId = company.getCompanyId();
long pagamentoId = ParamUtil.getLong(request, "pagamentoId");
String verifyPagamentoURL = ParamUtil.getString(request, "verifyPagamentoURL");
Pagamento pagamento = PagamentoLocalServiceUtil.getPagamento(pagamentoId);
String random = UUID.randomUUID().toString();
String formSostituisciPagamento = "fmSostituisci_"+random;
String buttonSubmit = "buttonSubmit_"+random;
String currentCompleteUrl = PortalUtil.getCurrentCompleteURL(request);
%>
<liferay-portlet:actionURL name="sostituisciPagamento" var="sostituisciPagamentoURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_calcolo.jsp"/>
<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 %>' method="post" action="<%= sostituisciPagamentoURL %>">
<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 id='<%= renderResponse.getNamespace()+buttonSubmit %>' type="submit" value="text-rigenera-pagamento" icon="icon-retweet" iconAlign="left"></aui:button>
<%-- <aui:script use="aui-base">
A.one('<%= "#"+renderResponse.getNamespace()+buttonSubmit %>').on(
'click',
function(event) {
event.preventDefault();
submitForm('#<%= renderResponse.getNamespace()+formSostituisciPagamento %>');
}
);
</aui:script> --%>
</aui:form>

73
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/pagamenti/rigenera_pagamento.jsp

@ -1,73 +0,0 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/html/init.jsp" %>
<%
long pagamentoId = ParamUtil.getLong(request, "pagamentoId", 0L);
String dialogId = "dialogRigeneraPagamentoId_" + pagamentoId;
String portletNameApp = "#p_p_id_"+ themeDisplay.getPortletDisplay().getId() +"_";
%>
<liferay-portlet:actionURL name="rigeneraPagamento" var="rigeneraPagamentoURL">
<portlet:param name="pagamentoId" value='<%=pagamentoId + "" %>'/>
</liferay-portlet:actionURL>
<aui:form action="<%=rigeneraPagamentoURL %>" method="POST" onSubmit='<%=renderResponse.getNamespace()+"closePopupRefresh()"%>'>
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12">
<span style="font-weight: bold;font-size:18px;">Si è sicuri di voler rigenerare il pagamento? Questa azione sarà irreversibile!</span>
</div>
</div>
<div class="row" style="margin-top:20px;">
<div class="col-sm-6 col-md-6" style="width:50%;float: left;">
<aui:button
name="submitFormRigeneraPagamentoChiudi"
type="button" cssClass="btn btn-info" value="Chiudi"
style=" font-size:12px;"
onClick='<%=renderResponse.getNamespace()+"closePopup()"%>'
/>
</div>
<div class="col-sm-6 col-md-6" style="width:50%;float: left;">
<aui:button name="submitFormRigeneraPagamento"
type="submit" cssClass="btn btn-danger" value="Rigenera Pagamento"
style=" font-size:12px;"
/>
</div>
</div>
</div>
</aui:form>
<aui:script use="aui-base">
Liferay.provide(
window,
'<portlet:namespace/>closePopup',
function() {
Liferay.Util.getOpener().closePopup('<%= dialogId %>');
},
['aui-base','liferay-util-window']
);
</aui:script>
<aui:script use="aui-base">
Liferay.provide(
window,
'<portlet:namespace/>closePopupRefresh',
function() {
Liferay.Util.getOpener().closePopup('<%= dialogId %>');
Liferay.Util.getOpener().refreshPortlet();
},
['aui-base','liferay-util-window']
);
</aui:script>

152
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_cambio_soggetti.jsp

@ -1,99 +1,64 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.SezioniUtil"%>
<%@page import="com.liferay.portal.kernel.util.UniqueList"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.FirmeUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.bean.FirmeBean"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="java.util.ArrayList"%>
<%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.AsseverazioniUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%>
<%@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.service.DocPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DocPratica"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.DocumentiPraticaUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="it.tref.liferay.portos.bo.util.SezioniUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%>
<%@ include file="/html/fascicolofe/init.jsp" %>
<%
long intPraticaId = ParamUtil.getLong(request, "intPraticaId",0l);
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId",0l);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
if(dettPratica==null){
long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId);
DettPratica dettPratica = DettPraticaServiceUtil.fetchDettPratica(dettPraticaId);
if (dettPratica == null) {
dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
if(dettPratica==null){
if (dettPratica == null) {
dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
}
}
}
%>
<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_cambio_soggetti.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" />
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" />
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
</liferay-portlet:renderURL>
<liferay-portlet:renderURL var="viewVerifyOkURL" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/navigator/common/verify_ok.jsp"/>
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="label" value="cambio-soggetti-ok" />
</liferay-portlet:renderURL>
<liferay-portlet:actionURL name="completeCambioSoggetti" var="completeCambioSoggettiURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_cambio_soggetti.jsp"/>
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="redirect" value="<%= viewVerifyOkURL %>" />
</liferay-portlet:actionURL>
<liferay-util:include page="/html/common/help_message.jsp" servletContext="<%= application %>">
<liferay-util:param name="message" value="help_message_cambio_soggetti"></liferay-util:param>
</liferay-util:include>
<liferay-util:include page="/html/common/help_message.jsp" servletContext="<%= application %>">
<liferay-util:param name="message" value="help_message_cambio_soggetti" />
</liferay-util:include>
<div class="container-fluid clearfix">
<div class="container-btn-fascicolo pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon
iconCssClass="fa fa-refresh"
message="refresh"
url="<%=verifyURL %>"
linkCssClass="btn"
/>
<liferay-ui:icon
linkCssClass='<%= ValidazionePraticaUtil.canCompleteUserEditing(dettPraticaId) ?"btn btn-primary":"btn btn-primary disabled" %>'
iconCssClass="fa fa-check"
message="Concludi Cambio Soggetti"
url="<%= completeCambioSoggettiURL %>"
/>
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true"
cssClass="inline_toolbar">
<liferay-ui:icon iconCssClass="fa fa-refresh" message="refresh" url="<%= verifyURL %>"
linkCssClass="btn" />
<liferay-ui:icon linkCssClass='<%= ValidazionePraticaUtil.canCompleteUserEditing(dettPraticaId)
? "btn btn-primary" : "btn btn-primary disabled" %>' iconCssClass="fa fa-check"
message="Concludi Cambio Soggetti" url="<%= completeCambioSoggettiURL %>" />
</liferay-ui:icon-menu>
</div>
</div>
<div class="container-fluid clearfix compilazione-domanda" id="<portlet:namespace/>_section-completed">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 asseverazioni tab-error">
<div class="col-xs-12 asseverazioni tab-error">
<div class="row asseverazioni-header">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="col-xs-12">
<div class="row" style="padding-top: 10px;">
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
<div class="col-xs-8">
Sezione
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 asserazioni-header-title">
<div class="col-xs-2 asserazioni-header-title">
Completata
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2"></div>
<div class="col-xs-2"></div>
</div>
</div>
</div>
@ -101,66 +66,59 @@
String section = SezioniUtil.SEZIONE_ANAGRAFE_SOGGETTI;
%>
<div class="row asseverazioni-title">
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
<div class="col-xs-8">
<%= LanguageUtil.get(pageContext, "sezione-" + section) %>
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 text-center">
<div class="col-xs-2 text-center">
<%
boolean isSectionCompleted = ValidazionePraticaUtil.notCompletedSection(section, dettPraticaId).isEmpty();
StringBuilder tooltipSection = new StringBuilder();
if(!isSectionCompleted){
List<String> notCompleted = ValidazionePraticaUtil.notCompletedSection(section, dettPraticaId);
if(!notCompleted.isEmpty()){
StringBuilder tooltipSection = new StringBuilder();
if (!notCompleted.isEmpty()) {
tooltipSection.append("<ul class='list-body-modal'>");
for(String incomplete : notCompleted){
tooltipSection.append("<li class='item-body-modal'>"+LanguageUtil.get(pageContext, incomplete)+"</li>");
for (String incomplete : notCompleted) {
tooltipSection.append("<li class='item-body-modal'>"
+ LanguageUtil.get(pageContext, incomplete) + "</li>");
}
tooltipSection.append("</ul>");
}
}
%>
<span class='icon-asseverazioni fa <%= isSectionCompleted ? "fa-check txt-green" : "fa-close txt-red"%>'>
<span class='icon-asseverazioni fa <%= notCompleted.isEmpty() ? "fa-check txt-green"
: "fa-close txt-red"%>'>
</span>
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 text-center">
<div class="col-xs-2 text-center">
<c:if test="<%= tooltipSection.length() > 0 %>">
<button id="<portlet:namespace /><%= section %>_button" class="btn btn-primary">Dettagli</button>
<div id="<portlet:namespace /><%= section %>_div" class="hide"><%= tooltipSection.toString() %></div>
<div id="<portlet:namespace /><%= section %>_div"
class="hide"><%= tooltipSection.toString() %></div>
<%
String title = "Riepilogo Errori Sezione "+LanguageUtil.get(pageContext, "sezione-"+section);
String buttonId = section+"_button";
String contentId = section+"_div";
String title = "Riepilogo Errori Sezione " + LanguageUtil.get(pageContext, "sezione-" + section);
String buttonId = section + "_button";
String contentId = section + "_div";
%>
<liferay-util:include page="/html/common/confirm_window.jsp" servletContext="<%= application %>" >
<liferay-util:param name="titolo" value="<%= title%>"></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="750"></liferay-util:param>
<liferay-util:param name="externalForm" value="true"></liferay-util:param>
<liferay-util:param name="titolo" value="<%= title %>" />
<liferay-util:param name="buttonId" value="<%= buttonId %>" />
<liferay-util:param name="contentDiv" value="<%= contentId %>" />
<liferay-util:param name="width" value="750" />
<liferay-util:param name="externalForm" value="true" />
</liferay-util:include>
</c:if>
</div>
</div>
</div>
</div>
<script type="text/javascript">
YUI().use(
'aui-tooltip',
function(Y) {
new Y.TooltipDelegate(
{
YUI().use('aui-tooltip', function (Y) {
new Y.TooltipDelegate({
trigger: '.tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1
}
);
}
);
opacity: 1,
});
});
</script>
<aui:script use="aui-base">
window.parent.Liferay.fire('verifyPopup-ready');
</aui:script>

97
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_collaudo_calcolo.jsp

@ -38,17 +38,11 @@
boolean pagamentoIsPagato = false;
boolean pagamentoIsPending = false;
boolean pagamentoNonPagabile = false;
boolean pagamentoRifiutato = false;
boolean pagamentoAnnullato = false;
Pagamento pagamento = null;
if( Validator.isNotNull(collaudo.getPagamentoId()) ){
pagamento = PagamentoLocalServiceUtil.getPagamento(collaudo.getPagamentoId());
pagamentoIsPagato = pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA);
pagamentoIsPending = pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO);
pagamentoNonPagabile = pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE);
pagamentoRifiutato = pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA);
pagamentoAnnullato = pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO);
}
String formRicevutaPagamento = "fmRicevuta";
@ -123,39 +117,9 @@
<liferay-portlet:param name="redirect" value="<%=verifyPagamentoURL %>"/>
</liferay-portlet:actionURL>
<c:if test="<%= !PagamentiCommonUtil.irisIsEnable(companyId) || pagamento.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE) %>">
<c:if test="<%= pagamento.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE) %>">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15">
<span><%= LanguageUtil.get(pageContext, "text-pagamento-manuale-bolli") %></span>
<c:if test="<%= (pagamentoIsPending && pagamento.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE) &&
PagamentiCommonUtil.irisIsEnable(companyId) ) %>">
<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>
<liferay-util:param name="verifyPagamentoURL" value='<%= verifyPagamentoURL %>'></liferay-util:param>
</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="collaudoId" value="<%= String.valueOf(collaudoId) %>" />
<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>
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 padding_15 total-row">
<aui:form name="<%= formRicevutaPagamento %>" enctype="multipart/form-data" method="post" action="<%= allegatoFilePagamentoURL %>">
@ -172,63 +136,8 @@
</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:param>
</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 test="<%= pagamentoNonPagabile || pagamentoRifiutato %>">
<c:if test="<%= pagamentoNonPagabile %>">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15">
<span><%= LanguageUtil.get(pageContext, "text-pagamento-nonpagabile-bolli") %></span>
</div>
</c:if>
<c:if test="<%= pagamentoRifiutato %>">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15">
<span><%= LanguageUtil.get(pageContext, "text-pagamento-rifiutato-bolli") %></span>
</div>
</c:if>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-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>
<liferay-util:param name="verifyPagamentoURL" value='<%= verifyPagamentoURL %>'></liferay-util:param>
</liferay-util:include>
</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="collaudoId" value="<%= String.valueOf(collaudoId) %>" />
<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 test="<%= pagamentoAnnullato %>">
<span><%= LanguageUtil.get(pageContext, "text-pagamento-annullato-bolli") %></span>
</c:if>
</div>
</div>
</liferay-ui:panel>
@ -345,11 +254,7 @@
<div id='<%=renderResponse.getNamespace()+"saveAndCloseDiv" %>' class="hide" >
<%
String paymentConfirmText = "";
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>

34
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo.jsp

@ -1,6 +1,3 @@
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@page import="java.util.HashSet"%>
<%@page import="java.util.Set"%>
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.util.UniqueList"%>
<%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%>
@ -19,6 +16,7 @@
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.SezioniUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%>
<%@page import="java.util.Set"%>
<%@ include file="/html/fascicolofe/init.jsp" %>
<%
long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0L);
@ -32,6 +30,11 @@ if (dettPratica == null) {
}
dettPraticaId = dettPratica.getDettPraticaId();
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
boolean avvisoSP = (!Constants.TIPO_PRATICA_AUTORIZZAZIONE.equalsIgnoreCase(intPratica.getTipoPratica()))
&& ((Constants.ZONA_1.equals(territorio.getZona()) || (Constants.ZONA_2.equals(territorio.getZona())
&& (dettPratica.getAg().replace(',', '.').compareTo("0.2") >= 0)))
&& (dettPratica.isTcAdeguamentoSismico() || dettPratica.isTcMiglioramentoSismico()));
%>
<liferay-portlet:renderURL var="verifyURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp" />
@ -151,6 +154,31 @@ List<String> tipologiaAllegati = DocumentiPraticaUtil.getDocObbligatori();
List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.COMMITTENTE, TipoSoggettoUtil.DITTA, TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.GEOLOGO, TipoSoggettoUtil.COLLAUDATORE);
%>
<div class="container-fluid clearfix compilazione-domanda" id="<portlet:namespace />_section-completed">
<c:if test="<%= avvisoSP %>">
<div class="col-xs-12" style="background-color: #ffebcd; padding: 8px; margin: 22px 0; font-size: 16px;">
<span style="color: red;"><b><u>ATTENZIONE!</u></b></span> Questa istanza sarà <b>SOTTOPOSTA A PARERE</b> e
non sarà considerata un deposito.<br />
L’inizio dei lavori rimane subordinato al successivo rilascio del <b><u>PROVVEDIMENTO DI
AUTORIZZAZIONE</u></b>, che sarà emesso dall’Ufficio ai sensi dell’art. 94 DPR 380/2001 (art. 18 L.64/74) e
nel rispetto del DDG 344/2020 del Dirigente Generale del DRT.<br />
<br />
Si sono verificate le seguenti condizioni:<br />
- Intervento in <b>zona
<%= Constants.ZONA_1.equalsIgnoreCase(territorio.getZona()) ? "1" : "2" %></b><br />
- Valore di AG: <b><%= dettPratica.getAg() %></b><br />
- Tipo di intervento:<b>
<c:if test="<%= dettPratica.isTcAdeguamentoSismico() %>">
<%= LanguageUtil.get(pageContext, "tc-adeguamento-sismico") %>
<c:if test="<%= dettPratica.isTcMiglioramentoSismico() %>">
e
</c:if>
</c:if>
<c:if test="<%= dettPratica.isTcMiglioramentoSismico() %>">
<%= LanguageUtil.get(pageContext, "tc-miglioramento-sismico") %>
</c:if>
</b>
</div>
</c:if>
<div class="col-xs-12 asseverazioni tab-error">
<div class="row asseverazioni-header">
<div class="col-xs-12 text-center asseverazioni-header__title">

104
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo_calcolo.jsp

@ -43,32 +43,20 @@
boolean pagamentoOneriIsPagato = false;
boolean pagamentoOneriIsPending = false;
boolean pagamentoOneriNonPagabile = false;
boolean pagamentoOneriRifiutato = false;
boolean pagamentoOneriAnnullato = false;
Pagamento pagamentoOneri = null;
if( Validator.isNotNull(dettPratica.getPagamentoIdOneri()) ){
pagamentoOneri = PagamentoLocalServiceUtil.getPagamento(dettPratica.getPagamentoIdOneri());
pagamentoOneriIsPagato = pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA);
pagamentoOneriIsPending = pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO);
pagamentoOneriNonPagabile = pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE);
pagamentoOneriRifiutato = pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA);
pagamentoOneriAnnullato = pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO);
}
boolean pagamentoBolliIsPagato = false;
boolean pagamentoBolliIsPending = false;
boolean pagamentoBolliNonPagabile = false;
boolean pagamentoBolliRifiutato = false;
boolean pagamentoBolliAnnullato = false;
Pagamento pagamentoBolli = null;
if( Validator.isNotNull(dettPratica.getPagamentoIdBolli()) ){
pagamentoBolli = PagamentoLocalServiceUtil.getPagamento(dettPratica.getPagamentoIdBolli());
pagamentoBolliIsPagato = pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA);
pagamentoBolliIsPending = pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO);
pagamentoBolliNonPagabile = pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE);
pagamentoBolliRifiutato = pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA);
pagamentoBolliAnnullato = pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO);
}
String formRicevutaPagamento = "fmRicevuta";
@ -147,18 +135,9 @@
</liferay-portlet:actionURL>
<c:if
test="<%=!PagamentiCommonUtil.irisIsEnable(companyId) || pagamentoOneri.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE)%>">
test="<%= pagamentoOneri.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE)%>">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15">
<span><%=LanguageUtil.get(pageContext, "text-pagamento-manuale-spese")%></span>
<c:if
test="<%=(pagamentoOneriIsPending && pagamentoOneri.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE) && PagamentiCommonUtil.irisIsEnable(companyId) )%>">
<liferay-util:include page="/html/fascicolofe/pagamenti/replace_payment.jsp"
servletContext="<%=application%>">
<liferay-util:param name="pagamentoId"
value='<%=String.valueOf(pagamentoOneri.getPagamentoId())%>'></liferay-util:param>
<liferay-util:param name="verifyPagamentoURL" value='<%=verifyPagamentoURL%>'></liferay-util:param>
</liferay-util:include>
</c:if>
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 padding_15 total-row">
<aui:form name="<%=formRicevutaPagamento%>" enctype="multipart/form-data" method="post"
@ -176,39 +155,7 @@
</aui:form>
</div>
</c:if>
<c:if
test="<%=PagamentiCommonUtil.irisIsEnable(companyId) && pagamentoOneri.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_IRIS)
&& Validator.isNotNull(pagamentoOneri.getUrl())%>">
<liferay-util:include page="/html/fascicolofe/pagamenti/confirm_iris.jsp"
servletContext="<%=application%>">
<liferay-util:param name="pagamentoId"
value='<%=String.valueOf(pagamentoOneri.getPagamentoId())%>'></liferay-util:param>
</liferay-util:include>
</c:if>
</c:if>
</c:if>
<c:if test="<%=pagamentoOneriNonPagabile || pagamentoOneriRifiutato%>">
<c:if test="<%=pagamentoOneriNonPagabile%>">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15">
<span><%=LanguageUtil.get(pageContext, "text-pagamento-nonpagabile-spese")%></span>
</div>
</c:if>
<c:if test="<%=pagamentoOneriRifiutato%>">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15">
<span><%=LanguageUtil.get(pageContext, "text-pagamento-rifiutato-spese")%></span>
</div>
</c:if>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 padding_15">
<liferay-util:include page="/html/fascicolofe/pagamenti/replace_payment.jsp"
servletContext="<%=application%>">
<liferay-util:param name="pagamentoId" value='<%=String.valueOf(pagamentoOneri.getPagamentoId())%>'></liferay-util:param>
<liferay-util:param name="verifyPagamentoURL" value='<%=verifyPagamentoURL%>'></liferay-util:param>
</liferay-util:include>
</div>
</c:if>
<c:if test="<%=pagamentoOneriAnnullato%>">
<span><%=LanguageUtil.get(pageContext, "text-pagamento-annullato-spese")%></span>
</c:if>
</div>
</div>
@ -244,19 +191,9 @@
</liferay-portlet:actionURL>
<c:if
test="<%=!PagamentiCommonUtil.irisIsEnable(companyId) || pagamentoBolli.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE)%>">
test="<%= pagamentoBolli.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE)%>">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15">
<span><%=LanguageUtil.get(pageContext, "text-pagamento-manuale-bolli")%></span>
<c:if
test="<%=(pagamentoBolliIsPending && pagamentoBolli.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE) &&
PagamentiCommonUtil.irisIsEnable(companyId) )%>">
<liferay-util:include page="/html/fascicolofe/pagamenti/replace_payment.jsp"
servletContext="<%=application%>">
<liferay-util:param name="pagamentoId"
value='<%=String.valueOf(pagamentoBolli.getPagamentoId())%>'></liferay-util:param>
<liferay-util:param name="verifyPagamentoURL" value='<%=verifyPagamentoURL%>'></liferay-util:param>
</liferay-util:include>
</c:if>
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 padding_15 total-row">
<aui:form name="<%=formRicevutaPagamento%>" enctype="multipart/form-data" method="post"
@ -274,40 +211,7 @@
</aui:form>
</div>
</c:if>
<c:if
test="<%=PagamentiCommonUtil.irisIsEnable(companyId) && pagamentoBolli.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_IRIS) &&
Validator.isNotNull(pagamentoBolli.getUrl())%>">
<liferay-util:include page="/html/fascicolofe/pagamenti/confirm_iris.jsp"
servletContext="<%=application%>">
<liferay-util:param name="pagamentoId"
value='<%=String.valueOf(pagamentoBolli.getPagamentoId())%>'></liferay-util:param>
</liferay-util:include>
</c:if>
</c:if>
</c:if>
<c:if test="<%=pagamentoBolliNonPagabile || pagamentoBolliRifiutato%>">
<c:if test="<%=pagamentoBolliNonPagabile%>">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15">
<span><%=LanguageUtil.get(pageContext, "text-pagamento-nonpagabile-bolli")%></span>
</div>
</c:if>
<c:if test="<%=pagamentoBolliRifiutato%>">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15">
<span><%=LanguageUtil.get(pageContext, "text-pagamento-rifiutato-bolli")%></span>
</div>
</c:if>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 padding_15">
<liferay-util:include page="/html/fascicolofe/pagamenti/replace_payment.jsp"
servletContext="<%=application%>">
<liferay-util:param name="pagamentoId" value='<%=String.valueOf(pagamentoBolli.getPagamentoId())%>'></liferay-util:param>
<liferay-util:param name="verifyPagamentoURL" value='<%=verifyPagamentoURL%>'></liferay-util:param>
</liferay-util:include>
</div>
</c:if>
<c:if test="<%=pagamentoBolliAnnullato%>">
<span><%=LanguageUtil.get(pageContext, "text-pagamento-annullato-bolli")%></span>
</c:if>
</div>
</div>
@ -543,11 +447,7 @@
<div id='<%=renderResponse.getNamespace()+"saveAndCloseDiv"%>' class="hide">
<%
String paymentConfirmText = "";
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>

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

@ -1,235 +1,195 @@
<%@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="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="java.text.NumberFormat"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@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="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@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){
long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
long fineLavoriId = ParamUtil.getLong(request, "fineLavoriId");
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().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA);
pagamentoIsPending = pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO);
pagamentoNonPagabile = pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE);
pagamentoRifiutato = pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA);
pagamentoAnnullato = pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO);
}
String formRicevutaPagamento = "fmRicevuta";
//String formSostituisciPagamento = "fmSostituisci";
String currentCompleteUrl = PortalUtil.getCurrentCompleteURL(request);
}
String formName = "fmpaga";
String buttonId = "fmbutton";
long companyId = company.getCompanyId();
boolean disabledInput = Validator.isNotNull(fineLavori.getPagamentoId());
Pagamento pagamento = PagamentoLocalServiceUtil.fetchPagamento(fineLavori.getPagamentoId());
boolean pagamentoIsPagato = Validator.isNotNull(pagamento)
&& pagamento.getUtilizzata().equals(PagamentoConstants.UTILIZZATA_PAGATA);
boolean pagamentoIsPending = Validator.isNotNull(pagamento)
&& pagamento.getUtilizzata().equals(PagamentoConstants.UTILIZZATA_IN_CORSO);
Pagamento pagamentoSpese = PagamentoLocalServiceUtil.fetchPagamento(fineLavori.getPagamentoSpeseId());
boolean pagamentoSpeseIsPagato = Validator.isNotNull(pagamentoSpese)
&& pagamentoSpese.getUtilizzata().equals(PagamentoConstants.UTILIZZATA_PAGATA);
boolean pagamentoSpeseIsPending = Validator.isNotNull(pagamentoSpese)
&& pagamentoSpese.getUtilizzata().equals(PagamentoConstants.UTILIZZATA_IN_CORSO);
String codiceFiscaleCommittente = StringPool.BLANK;
if (Validator.isNotNull(pagamento)) {
codiceFiscaleCommittente = pagamento.getCodiceFiscaleCommittente();
} else if (Validator.isNotNull(pagamentoSpese)) {
codiceFiscaleCommittente = pagamentoSpese.getCodiceFiscaleCommittente();
}
String formRicevutaPagamento = "fmRicevuta";
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="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: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"
/>
<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:param>
<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 col-sm-12 col-md-12 col-lg-12 padding_15">
<div class="col-xs-12 padding_15">
<%= intPratica.getTitle(false) %>
<strong>
<%= Validator.isNotNull(intPratica) ? " - "+LanguageUtil.get(pageContext, "tipo-pratica-"+intPratica.getTipoPratica()) : "" %>
- <%= LanguageUtil.get(pageContext, "tipo-pratica-" + intPratica.getTipoPratica()) %>
</strong>
</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="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">
<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="row">
<c:if test="<%= pagamentoIsPagato || pagamentoIsPending %>">
<c:if test="<%= pagamentoIsPagato %>">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 padding_15">
<span><%= LanguageUtil.get(pageContext, "text-pagamento-completato-bolli") %></span>
</div>
<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: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 col-sm-10 col-md-10 col-lg-10 padding_15">
<span><%= LanguageUtil.get(pageContext, "text-pagamento-manuale-bolli") %></span>
<c:if test="<%= (pagamentoIsPending && pagamento.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE) &&
PagamentiCommonUtil.irisIsEnable(companyId) ) %>">
<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>
<liferay-util:param name="verifyPagamentoURL" value='<%= verifyPagamentoURL %>'></liferay-util:param>
</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>
<c:if test="<%= pagamento.getMezzo().equals(
PagamentoConstants.MEZZO_MANUALE) %>">
<div class="col-xs-10 padding_15"><span>
<%= LanguageUtil.get(pageContext, "text-pagamento-manuale-bolli") %>
</span>
</div>
<div class="col-xs-2 padding_15 total-row">
<aui:form name="<%= formRicevutaPagamento %>"
enctype="multipart/form-data" method="post"
action="<%= allegatoFilePagamentoURL %>">
<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>
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-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 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:param>
</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 test="<%= pagamentoNonPagabile || pagamentoRifiutato %>">
<c:if test="<%= pagamentoNonPagabile %>">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15">
<span><%= LanguageUtil.get(pageContext, "text-pagamento-nonpagabile-bolli") %></span>
</div>
</c:if>
<c:if test="<%= pagamentoRifiutato %>">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15">
<span><%= LanguageUtil.get(pageContext, "text-pagamento-rifiutato-bolli") %></span>
</div>
</c:if>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-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>
<liferay-util:param name="verifyPagamentoURL" value='<%= verifyPagamentoURL %>'></liferay-util:param>
</liferay-util:include>
</liferay-ui:panel>
</div>
</div>
<div class="col-xs-12 padding_15">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false"
title="label-pagamento-diritti">
<div class="container-fluid">
<div class="row">
<c:if test="<%= pagamentoSpeseIsPagato %>">
<div class="col-xs-12 padding_15">
<span>
Pagamento diritti fissi completato
</span>
</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>
<c:if test="<%= pagamentoSpeseIsPending %>">
<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(pagamentoSpese.getPagamentoId()) %>'/>
<liferay-portlet:param name="redirect" value="<%= verifyPagamentoURL %>"/>
</liferay-portlet:actionURL>
<c:if test="<%= pagamentoSpese.getMezzo().equals(
PagamentoConstants.MEZZO_MANUALE) %>">
<div class="col-xs-10 padding_15"><span>
<%= LanguageUtil.get(pageContext, "text-pagamento-manuale-oneri") %>
</span>
</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="sostituisci-pagamento-bolli" icon="icon-retweet" iconAlign="left"/>
<aui:button type="submit" value="upload-file" />
</aui:button-row>
</aui:form>
</div> --%>
</div>
</c:if>
<c:if test="<%= pagamentoAnnullato %>">
<span><%= LanguageUtil.get(pageContext, "text-pagamento-annullato-bolli") %></span>
</c:if>
</div>
</div>
@ -239,7 +199,6 @@
</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())%>" />
@ -247,11 +206,9 @@
</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) %>"/>
@ -259,37 +216,41 @@
<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-md-6 col-sm-6 col-xs-12">
<aui:select label="gc-soggetto-02" name="codiceFiscaleCommittente" showEmptyOption="true" required="true" showRequiredLabel="true" disabled="<%= disabledInput %>" >
<div class="col-sm-6 col-xs-12">
<aui:select label="gc-soggetto-02" name="codiceFiscaleCommittente" showEmptyOption="true"
required="true" showRequiredLabel="true"
disabled="<%= !codiceFiscaleCommittente.isEmpty() %>" >
<%
List<Soggetto> committenti = SoggettoLocalServiceUtil.getValidByIntPratica_TipologiaSoggetto(intPraticaId, TipoSoggettoUtil.COMMITTENTE);
for(Soggetto committente : committenti){
List<Soggetto> committenti = SoggettoLocalServiceUtil.getValidByIntPratica_TipologiaSoggetto(
intPraticaId, TipoSoggettoUtil.COMMITTENTE);
for (Soggetto committente : committenti) {
%>
<aui:option label='<%= committente.getDescrizioneCompleta() %>' value="<%= committente.getCodiceFiscale() %>"
selected="<%= Validator.isNotNull(pagamento) && committente.getCodiceFiscale().equalsIgnoreCase(pagamento.getCodiceFiscaleCommittente()) %>"/>
<aui:option label='<%= committente.getDescrizioneCompleta() %>'
value="<%= committente.getCodiceFiscale() %>"
selected="<%= (committenti.size() == 1)
|| codiceFiscaleCommittente.equalsIgnoreCase(committente.getCodiceFiscale()) %>" />
<%
}
%>
</aui:select>
</div>
</div>
<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">
<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="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"
name="normEsenteBollo" label="norm-esente-bollo"
bean="<%= fineLavori %>" model="<%= FineLavori.class %>"/>
bean="<%= fineLavori %>" model="<%= FineLavori.class %>" />
</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">
<c:if test="<%= fineLavori.isNormEsenteBollo() %>">
<ol style="list-style-type: none; width:100%">
@ -300,18 +261,66 @@
</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">
<div class="total-row__label">Totale importo</div>
<%
BigDecimal importoBolli = null;
if (Validator.isNotNull(pagamento)) {
importoBolli = new BigDecimal(pagamento.getImporto());
} else {
importoBolli = fineLavori.isNormEsenteBollo() ? new BigDecimal("0.00")
: PagamentiCommonUtil.getImportoBolli(companyId,
fineLavori.getFineLavoriId(), FineLavori.class.getName(),
TipoIntegrazioneUtil.FINE_LAVORI);
}
%>
<aui:input type="hidden" name="importoBolli"
value="<%= importoBolli.toString() %>" />
<div class="total-row__value"><strong> <%= NumberFormat.getCurrencyInstance(
LocaleUtil.getSiteDefault()).format(importoBolli) %></strong></div>
</div>
</div>
</div>
</liferay-ui:panel>
</div>
</div>
<div class="col-xs-12 padding_15">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false"
title="label-pagamenti-diritti">
<div class="container-fluid">
<div class="row">
<div class="col-xs-12 container-norm_esente_bollo">
<aui:input cssClass="refresh-input" disabled="true"
name="normEsenteSpese" label="norm-esente-diritti"
bean="<%= fineLavori %>" model="<%= FineLavori.class %>" />
</div>
<div class="col-xs-10 padding_15">
<div class="row container-price__row">
<c:if test="<%= fineLavori.isNormEsenteSpese() %>">
<ol style="list-style-type: none; width:100%">
<li>
<strong>Esente Diritti fissi</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());
BigDecimal importoSpese = null;
if (Validator.isNotNull(pagamentoSpese)) {
importoSpese = new BigDecimal(pagamentoSpese.getImporto());
} else {
importoBollo = fineLavori.isNormEsenteBollo() ? new BigDecimal("0.00") : PagamentiCommonUtil.getImportoBolli(companyId, fineLavori.getFineLavoriId(), FineLavori.class.getName(), TipoIntegrazioneUtil.FINE_LAVORI);
importoSpese = fineLavori.isNormEsenteSpese() ? new BigDecimal("0.00")
: new BigDecimal("10.00");
}
%>
<div class="total-row__value"><strong> <%= NumberFormat.getCurrencyInstance(LocaleUtil.getSiteDefault()).format(importoBollo) %></strong></div>
<aui:input type="hidden" name="importoSpese"
value="<%= importoSpese.toString() %>" />
<div class="total-row__value"><strong> <%= NumberFormat.getCurrencyInstance(
LocaleUtil.getSiteDefault()).format(importoSpese) %></strong></div>
</div>
</div>
</div>
@ -319,51 +328,36 @@
</div>
</div>
</div>
<c:if test="<%= Validator.isNull(pagamento) %>">
<c:if test="<%= Validator.isNull(pagamento) || Validator.isNull(pagamentoSpese) %>">
<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 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" >
<div id='<%= renderResponse.getNamespace() + "saveAndCloseDiv" %>' class="hide" >
<%
String paymentConfirmText = "";
if( PagamentiCommonUtil.irisIsEnable(companyId) ){
paymentConfirmText = LanguageUtil.get(pageContext, "label-confirm-payment-iris");
} else{
String paymentConfirmText = StringPool.BLANK;
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>
<liferay-util:param name="titolo" value="Attenzione"></liferay-util:param>
<liferay-util:param name="buttonId" value="<%=buttonId %>"></liferay-util:param>
<liferay-util:param name="buttonConferma" value="Conferma"></liferay-util:param>
<liferay-util:param name="width" value="500"></liferay-util:param>
<liferay-util:param name="height" value="280"></liferay-util:param>
<liferay-util:param name="externalForm" value="true"></liferay-util:param>
<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="col-xs-4 col-sm-4 col-md-4 col-lg-4">
<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 label='<%= "gc-soggetto-" + 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>

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

@ -1,8 +1,6 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="com.liferay.portal.kernel.util.HttpUtil"%>
<%@page import="com.liferay.portal.kernel.util.KeyValuePair"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%>
<%@page import="com.liferay.portal.model.User"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
@ -19,15 +17,11 @@
<%@page import="it.tref.liferay.portos.bo.shared.util.FirmeUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.bean.FirmeDetail"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@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.AzioniPraticheUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.SoggettiUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%>
<%@page import="java.text.DateFormat"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.Map"%>
<%@include file="/html/soggettipratica/init.jsp"%>
@ -49,6 +43,14 @@ if (!ValidazionePraticaUtil.praticaIsEditable(dettPratica.getDettPraticaId())) {
}
Soggetto soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(dettPratica.getDettPraticaId());
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 %>" />
<%
@ -178,6 +180,21 @@ dataMap.put("id", PortletKeys.SOGGETTI + "_dialogEditSoggetto");
<liferay-ui:search-container-column-text name="Azioni" cssClass="text-center">
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true"
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() %>">
<liferay-portlet:renderURL portletName="<%= PortletKeys.SOGGETTI %>" var="editURL"
windowState="<%= LiferayWindowState.POP_UP.toString() %>">
@ -512,15 +529,6 @@ dataMap.put("id", PortletKeys.SOGGETTI + "_dialogEditSoggetto");
inlineField="true" useNamespace="false" />
</c:if>
<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) %>">
<aui:input disabled="<%= disabledInput || inBO %>" type="checkbox"
name='<%= StringPool.UNDERLINE + PortletKeys.FASCICOLOFE

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

@ -151,7 +151,8 @@ public interface EmailAttachmentPersistence extends BasePersistence<EmailAttachm
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.mailmanager.model.EmailAttachment[] findByEmailId_PrevAndNext(
EmailAttachmentPK emailAttachmentPK, long emailId,
it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK,
long emailId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException;
@ -256,7 +257,7 @@ public interface EmailAttachmentPersistence extends BasePersistence<EmailAttachm
* @return the new email attachment
*/
public it.tref.liferay.portos.mailmanager.model.EmailAttachment create(
EmailAttachmentPK emailAttachmentPK);
it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK);
/**
* Removes the email attachment with the primary key from the database. Also notifies the appropriate model listeners.
@ -267,7 +268,7 @@ public interface EmailAttachmentPersistence extends BasePersistence<EmailAttachm
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.mailmanager.model.EmailAttachment remove(
EmailAttachmentPK emailAttachmentPK)
it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException;
@ -284,7 +285,7 @@ public interface EmailAttachmentPersistence extends BasePersistence<EmailAttachm
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.mailmanager.model.EmailAttachment findByPrimaryKey(
EmailAttachmentPK emailAttachmentPK)
it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException;
@ -296,7 +297,7 @@ public interface EmailAttachmentPersistence extends BasePersistence<EmailAttachm
* @throws SystemException if a system exception occurred
*/
public it.tref.liferay.portos.mailmanager.model.EmailAttachment fetchByPrimaryKey(
EmailAttachmentPK emailAttachmentPK)
it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException;
/**

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

@ -239,7 +239,8 @@ public class EmailAttachmentUtil {
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailAttachment[] findByEmailId_PrevAndNext(
EmailAttachmentPK emailAttachmentPK, long emailId,
it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK,
long emailId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException {
@ -367,7 +368,7 @@ public class EmailAttachmentUtil {
* @return the new email attachment
*/
public static it.tref.liferay.portos.mailmanager.model.EmailAttachment create(
EmailAttachmentPK emailAttachmentPK) {
it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK) {
return getPersistence().create(emailAttachmentPK);
}
@ -380,7 +381,7 @@ public class EmailAttachmentUtil {
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailAttachment remove(
EmailAttachmentPK emailAttachmentPK)
it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException {
return getPersistence().remove(emailAttachmentPK);
@ -401,7 +402,7 @@ public class EmailAttachmentUtil {
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailAttachment findByPrimaryKey(
EmailAttachmentPK emailAttachmentPK)
it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException {
return getPersistence().findByPrimaryKey(emailAttachmentPK);
@ -415,7 +416,7 @@ public class EmailAttachmentUtil {
* @throws SystemException if a system exception occurred
*/
public static it.tref.liferay.portos.mailmanager.model.EmailAttachment fetchByPrimaryKey(
EmailAttachmentPK emailAttachmentPK)
it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().fetchByPrimaryKey(emailAttachmentPK);
}

17
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/hook/listener/DLFileEntryListener.java

@ -1,26 +1,11 @@
package it.tref.liferay.portos.mailmanager.hook.listener;
import it.tref.liferay.portos.mailmanager.model.EmailAttachment;
import it.tref.liferay.portos.mailmanager.service.EmailAttachmentLocalServiceUtil;
import com.liferay.portal.ModelListenerException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.model.BaseModelListener;
import com.liferay.portlet.documentlibrary.model.DLFileEntry;
public class DLFileEntryListener extends BaseModelListener<DLFileEntry> {
@Override
public void onBeforeRemove(DLFileEntry model) throws ModelListenerException {
try {
EmailAttachment emailAttachment = EmailAttachmentLocalServiceUtil
.fetchByFileEntryId(model.getFileEntryId());
if (emailAttachment != null) {
throw new ModelListenerException();
}
} catch (SystemException e) {
throw new ModelListenerException(e);
}
}
public void onBeforeRemove(DLFileEntry model) throws ModelListenerException {}
}

Some files were not shown because too many files have changed in this diff Show More

Caricamento…
Annulla
Salva